]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_controls_wrap.cpp
removed spaces; added WXDLLEXPORTs; make overlay classes non copiable
[wxWidgets.git] / wxPython / src / mac / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_bool swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_form_ops_t swig_types[2]
2469 #define SWIGTYPE_p_int swig_types[3]
2470 #define SWIGTYPE_p_long swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2479 #define SWIGTYPE_p_wxArrayString swig_types[13]
2480 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481 #define SWIGTYPE_p_wxBitmap swig_types[15]
2482 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486 #define SWIGTYPE_p_wxButton swig_types[20]
2487 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2488 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2489 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxChoice swig_types[25]
2492 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2493 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2494 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496 #define SWIGTYPE_p_wxColour swig_types[30]
2497 #define SWIGTYPE_p_wxColourPickerCtrl swig_types[31]
2498 #define SWIGTYPE_p_wxColourPickerEvent swig_types[32]
2499 #define SWIGTYPE_p_wxComboBox swig_types[33]
2500 #define SWIGTYPE_p_wxCommandEvent swig_types[34]
2501 #define SWIGTYPE_p_wxContextHelp swig_types[35]
2502 #define SWIGTYPE_p_wxContextHelpButton swig_types[36]
2503 #define SWIGTYPE_p_wxContextMenuEvent swig_types[37]
2504 #define SWIGTYPE_p_wxControl swig_types[38]
2505 #define SWIGTYPE_p_wxControlWithItems swig_types[39]
2506 #define SWIGTYPE_p_wxCursor swig_types[40]
2507 #define SWIGTYPE_p_wxDC swig_types[41]
2508 #define SWIGTYPE_p_wxDateEvent swig_types[42]
2509 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[43]
2510 #define SWIGTYPE_p_wxDateTime swig_types[44]
2511 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[45]
2512 #define SWIGTYPE_p_wxDirPickerCtrl swig_types[46]
2513 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[47]
2514 #define SWIGTYPE_p_wxDropFilesEvent swig_types[48]
2515 #define SWIGTYPE_p_wxDuplexMode swig_types[49]
2516 #define SWIGTYPE_p_wxEraseEvent swig_types[50]
2517 #define SWIGTYPE_p_wxEvent swig_types[51]
2518 #define SWIGTYPE_p_wxEvtHandler swig_types[52]
2519 #define SWIGTYPE_p_wxFSFile swig_types[53]
2520 #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[54]
2521 #define SWIGTYPE_p_wxFilePickerCtrl swig_types[55]
2522 #define SWIGTYPE_p_wxFileSystem swig_types[56]
2523 #define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
2524 #define SWIGTYPE_p_wxFocusEvent swig_types[58]
2525 #define SWIGTYPE_p_wxFont swig_types[59]
2526 #define SWIGTYPE_p_wxFontPickerCtrl swig_types[60]
2527 #define SWIGTYPE_p_wxFontPickerEvent swig_types[61]
2528 #define SWIGTYPE_p_wxGBSizerItem swig_types[62]
2529 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530 #define SWIGTYPE_p_wxGauge swig_types[64]
2531 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[65]
2532 #define SWIGTYPE_p_wxGenericDragImage swig_types[66]
2533 #define SWIGTYPE_p_wxGridBagSizer swig_types[67]
2534 #define SWIGTYPE_p_wxGridSizer swig_types[68]
2535 #define SWIGTYPE_p_wxHelpEvent swig_types[69]
2536 #define SWIGTYPE_p_wxHelpProvider swig_types[70]
2537 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[71]
2538 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[72]
2539 #define SWIGTYPE_p_wxICOHandler swig_types[73]
2540 #define SWIGTYPE_p_wxIcon swig_types[74]
2541 #define SWIGTYPE_p_wxIconizeEvent swig_types[75]
2542 #define SWIGTYPE_p_wxIdleEvent swig_types[76]
2543 #define SWIGTYPE_p_wxImage swig_types[77]
2544 #define SWIGTYPE_p_wxImageHandler swig_types[78]
2545 #define SWIGTYPE_p_wxImageList swig_types[79]
2546 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[80]
2547 #define SWIGTYPE_p_wxInitDialogEvent swig_types[81]
2548 #define SWIGTYPE_p_wxItemContainer swig_types[82]
2549 #define SWIGTYPE_p_wxJPEGHandler swig_types[83]
2550 #define SWIGTYPE_p_wxKeyEvent swig_types[84]
2551 #define SWIGTYPE_p_wxLayoutConstraints swig_types[85]
2552 #define SWIGTYPE_p_wxListBox swig_types[86]
2553 #define SWIGTYPE_p_wxListEvent swig_types[87]
2554 #define SWIGTYPE_p_wxListItem swig_types[88]
2555 #define SWIGTYPE_p_wxListItemAttr swig_types[89]
2556 #define SWIGTYPE_p_wxListView swig_types[90]
2557 #define SWIGTYPE_p_wxListbook swig_types[91]
2558 #define SWIGTYPE_p_wxListbookEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMaximizeEvent swig_types[93]
2560 #define SWIGTYPE_p_wxMemoryDC swig_types[94]
2561 #define SWIGTYPE_p_wxMenu swig_types[95]
2562 #define SWIGTYPE_p_wxMenuBar swig_types[96]
2563 #define SWIGTYPE_p_wxMenuEvent swig_types[97]
2564 #define SWIGTYPE_p_wxMenuItem swig_types[98]
2565 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[99]
2566 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[100]
2567 #define SWIGTYPE_p_wxMouseEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMoveEvent swig_types[102]
2569 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[103]
2570 #define SWIGTYPE_p_wxNcPaintEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNotebook swig_types[105]
2572 #define SWIGTYPE_p_wxNotebookEvent swig_types[106]
2573 #define SWIGTYPE_p_wxNotifyEvent swig_types[107]
2574 #define SWIGTYPE_p_wxObject swig_types[108]
2575 #define SWIGTYPE_p_wxPCXHandler swig_types[109]
2576 #define SWIGTYPE_p_wxPNGHandler swig_types[110]
2577 #define SWIGTYPE_p_wxPNMHandler swig_types[111]
2578 #define SWIGTYPE_p_wxPaintEvent swig_types[112]
2579 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[113]
2580 #define SWIGTYPE_p_wxPaperSize swig_types[114]
2581 #define SWIGTYPE_p_wxPickerBase swig_types[115]
2582 #define SWIGTYPE_p_wxPoint swig_types[116]
2583 #define SWIGTYPE_p_wxPyApp swig_types[117]
2584 #define SWIGTYPE_p_wxPyCommandEvent swig_types[118]
2585 #define SWIGTYPE_p_wxPyControl swig_types[119]
2586 #define SWIGTYPE_p_wxPyEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPyImageHandler swig_types[121]
2588 #define SWIGTYPE_p_wxPyListCtrl swig_types[122]
2589 #define SWIGTYPE_p_wxPySizer swig_types[123]
2590 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[124]
2591 #define SWIGTYPE_p_wxPyTreeItemData swig_types[125]
2592 #define SWIGTYPE_p_wxPyValidator swig_types[126]
2593 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[127]
2594 #define SWIGTYPE_p_wxRadioBox swig_types[128]
2595 #define SWIGTYPE_p_wxRadioButton swig_types[129]
2596 #define SWIGTYPE_p_wxRect swig_types[130]
2597 #define SWIGTYPE_p_wxScrollBar swig_types[131]
2598 #define SWIGTYPE_p_wxScrollEvent swig_types[132]
2599 #define SWIGTYPE_p_wxScrollWinEvent swig_types[133]
2600 #define SWIGTYPE_p_wxSetCursorEvent swig_types[134]
2601 #define SWIGTYPE_p_wxShowEvent swig_types[135]
2602 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[136]
2603 #define SWIGTYPE_p_wxSize swig_types[137]
2604 #define SWIGTYPE_p_wxSizeEvent swig_types[138]
2605 #define SWIGTYPE_p_wxSizer swig_types[139]
2606 #define SWIGTYPE_p_wxSizerItem swig_types[140]
2607 #define SWIGTYPE_p_wxSlider swig_types[141]
2608 #define SWIGTYPE_p_wxSpinButton swig_types[142]
2609 #define SWIGTYPE_p_wxSpinCtrl swig_types[143]
2610 #define SWIGTYPE_p_wxSpinEvent swig_types[144]
2611 #define SWIGTYPE_p_wxStaticBitmap swig_types[145]
2612 #define SWIGTYPE_p_wxStaticBox swig_types[146]
2613 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[147]
2614 #define SWIGTYPE_p_wxStaticLine swig_types[148]
2615 #define SWIGTYPE_p_wxStaticText swig_types[149]
2616 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[150]
2617 #define SWIGTYPE_p_wxString swig_types[151]
2618 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[152]
2619 #define SWIGTYPE_p_wxTIFFHandler swig_types[153]
2620 #define SWIGTYPE_p_wxTextAttr swig_types[154]
2621 #define SWIGTYPE_p_wxTextCtrl swig_types[155]
2622 #define SWIGTYPE_p_wxTextUrlEvent swig_types[156]
2623 #define SWIGTYPE_p_wxToggleButton swig_types[157]
2624 #define SWIGTYPE_p_wxToolBar swig_types[158]
2625 #define SWIGTYPE_p_wxToolBarBase swig_types[159]
2626 #define SWIGTYPE_p_wxToolBarToolBase swig_types[160]
2627 #define SWIGTYPE_p_wxToolbook swig_types[161]
2628 #define SWIGTYPE_p_wxToolbookEvent swig_types[162]
2629 #define SWIGTYPE_p_wxTreeEvent swig_types[163]
2630 #define SWIGTYPE_p_wxTreeItemId swig_types[164]
2631 #define SWIGTYPE_p_wxTreebook swig_types[165]
2632 #define SWIGTYPE_p_wxTreebookEvent swig_types[166]
2633 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[167]
2634 #define SWIGTYPE_p_wxValidator swig_types[168]
2635 #define SWIGTYPE_p_wxVisualAttributes swig_types[169]
2636 #define SWIGTYPE_p_wxWindow swig_types[170]
2637 #define SWIGTYPE_p_wxWindowBase swig_types[171]
2638 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[172]
2639 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[173]
2640 #define SWIGTYPE_p_wxXPMHandler swig_types[174]
2641 static swig_type_info *swig_types[176];
2642 static swig_module_info swig_module = {swig_types, 175, 0, 0, 0, 0};
2643 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2644 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2645
2646 /* -------- TYPES TABLE (END) -------- */
2647
2648 #if (PY_VERSION_HEX <= 0x02000000)
2649 # if !defined(SWIG_PYTHON_CLASSIC)
2650 # error "This python version requires to use swig with the '-classic' option"
2651 # endif
2652 #endif
2653 #if (PY_VERSION_HEX <= 0x02020000)
2654 # error "This python version requires to use swig with the '-nomodern' option"
2655 #endif
2656 #if (PY_VERSION_HEX <= 0x02020000)
2657 # error "This python version requires to use swig with the '-nomodernargs' option"
2658 #endif
2659 #ifndef METH_O
2660 # error "This python version requires to use swig with the '-nofastunpack' option"
2661 #endif
2662
2663 /*-----------------------------------------------
2664 @(target):= _controls_.so
2665 ------------------------------------------------*/
2666 #define SWIG_init init_controls_
2667
2668 #define SWIG_name "_controls_"
2669
2670 #define SWIGVERSION 0x010329
2671
2672
2673 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2674 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2675
2676
2677 #include <stdexcept>
2678
2679
2680 namespace swig {
2681 class PyObject_ptr {
2682 protected:
2683 PyObject *_obj;
2684
2685 public:
2686 PyObject_ptr() :_obj(0)
2687 {
2688 }
2689
2690 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2691 {
2692 Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2696 {
2697 if (initial_ref) Py_XINCREF(_obj);
2698 }
2699
2700 PyObject_ptr & operator=(const PyObject_ptr& item)
2701 {
2702 Py_XINCREF(item._obj);
2703 Py_XDECREF(_obj);
2704 _obj = item._obj;
2705 return *this;
2706 }
2707
2708 ~PyObject_ptr()
2709 {
2710 Py_XDECREF(_obj);
2711 }
2712
2713 operator PyObject *() const
2714 {
2715 return _obj;
2716 }
2717
2718 PyObject *operator->() const
2719 {
2720 return _obj;
2721 }
2722 };
2723 }
2724
2725
2726 namespace swig {
2727 struct PyObject_var : PyObject_ptr {
2728 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2729
2730 PyObject_var & operator = (PyObject* obj)
2731 {
2732 Py_XDECREF(_obj);
2733 _obj = obj;
2734 return *this;
2735 }
2736 };
2737 }
2738
2739
2740 #include "wx/wxPython/wxPython.h"
2741 #include "wx/wxPython/pyclasses.h"
2742
2743 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2744 static const wxString wxPyEmptyString(wxEmptyString);
2745 static const wxString wxPyControlNameStr(wxControlNameStr);
2746
2747 const wxArrayString wxPyEmptyStringArray;
2748
2749 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2750
2751 #define SWIG_From_long PyInt_FromLong
2752
2753
2754 SWIGINTERNINLINE PyObject *
2755 SWIG_From_int (int value)
2756 {
2757 return SWIG_From_long (value);
2758 }
2759
2760
2761 #include <limits.h>
2762 #ifndef LLONG_MIN
2763 # define LLONG_MIN LONG_LONG_MIN
2764 #endif
2765 #ifndef LLONG_MAX
2766 # define LLONG_MAX LONG_LONG_MAX
2767 #endif
2768 #ifndef ULLONG_MAX
2769 # define ULLONG_MAX ULONG_LONG_MAX
2770 #endif
2771
2772
2773 SWIGINTERN int
2774 SWIG_AsVal_long (PyObject* obj, long* val)
2775 {
2776 if (PyNumber_Check(obj)) {
2777 if (val) *val = PyInt_AsLong(obj);
2778 return SWIG_OK;
2779 }
2780 return SWIG_TypeError;
2781 }
2782
2783
2784 SWIGINTERN int
2785 SWIG_AsVal_int (PyObject * obj, int *val)
2786 {
2787 long v;
2788 int res = SWIG_AsVal_long (obj, &v);
2789 if (SWIG_IsOK(res)) {
2790 if ((v < INT_MIN || v > INT_MAX)) {
2791 return SWIG_OverflowError;
2792 } else {
2793 if (val) *val = static_cast< int >(v);
2794 }
2795 }
2796 return res;
2797 }
2798
2799 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2800
2801 SWIGINTERN int
2802 SWIG_AsVal_bool (PyObject *obj, bool *val)
2803 {
2804 if (obj == Py_True) {
2805 if (val) *val = true;
2806 return SWIG_OK;
2807 } else if (obj == Py_False) {
2808 if (val) *val = false;
2809 return SWIG_OK;
2810 } else {
2811 long v = 0;
2812 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2813 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2814 return res;
2815 }
2816 }
2817
2818 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2819 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2820 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2821 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2822 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2823 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2824
2825 #include <wx/checklst.h>
2826
2827 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2828 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2829 if (clientData)
2830 {
2831 wxPyClientData* data = new wxPyClientData(clientData);
2832 self->Insert(item, pos, data);
2833 }
2834 else
2835 self->Insert(item, pos);
2836 }
2837
2838 SWIGINTERN int
2839 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2840 {
2841 long v = 0;
2842 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2843 return SWIG_TypeError;
2844 }
2845 else if (val)
2846 *val = (unsigned long)v;
2847 return SWIG_OK;
2848 }
2849
2850
2851 SWIGINTERN int
2852 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2853 {
2854 unsigned long v;
2855 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2856 if (SWIG_IsOK(res)) {
2857 if ((v > UINT_MAX)) {
2858 return SWIG_OverflowError;
2859 } else {
2860 if (val) *val = static_cast< unsigned int >(v);
2861 }
2862 }
2863 return res;
2864 }
2865
2866 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2867 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2868 wxArrayInt lst;
2869 self->GetSelections(lst);
2870 PyObject *tup = PyTuple_New(lst.GetCount());
2871 for (size_t i=0; i<lst.GetCount(); i++)
2872 {
2873 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2874 }
2875 wxPyEndBlockThreads(blocked);
2876 return tup;
2877 }
2878 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2879 #ifdef __WXMSW__
2880 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2881 self->GetItem(item)->SetTextColour(c);
2882 #endif
2883 }
2884 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2885 #ifdef __WXMSW__
2886 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2887 self->GetItem(item)->SetBackgroundColour(c);
2888 #endif
2889 }
2890 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2891 #ifdef __WXMSW__
2892 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2893 self->GetItem(item)->SetFont(f);
2894 #endif
2895 }
2896 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2897 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2898 self->AppendText(text);
2899 }
2900 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2901 return self->GetValue().Mid(from, to - from);
2902 }
2903 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2904 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2905 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2906 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2907 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2908
2909 SWIGINTERNINLINE PyObject*
2910 SWIG_From_unsigned_SS_long (unsigned long value)
2911 {
2912 return (value > LONG_MAX) ?
2913 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2914 }
2915
2916
2917 SWIGINTERNINLINE PyObject *
2918 SWIG_From_size_t (size_t value)
2919 {
2920 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2921 }
2922
2923
2924 SWIGINTERNINLINE PyObject *
2925 SWIG_From_unsigned_SS_int (unsigned int value)
2926 {
2927 return SWIG_From_unsigned_SS_long (value);
2928 }
2929
2930
2931 #include <wx/slider.h>
2932
2933
2934 static const wxString wxPySliderNameStr(wxSliderNameStr);
2935 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2936
2937 #if !wxUSE_TOGGLEBTN
2938 // implement dummy items for platforms that don't have this class
2939
2940 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2941
2942 class wxToggleButton : public wxControl
2943 {
2944 public:
2945 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2946 const wxPoint&, const wxSize&, long,
2947 const wxValidator&, const wxString&)
2948 { wxPyRaiseNotImplemented(); }
2949
2950 wxToggleButton()
2951 { wxPyRaiseNotImplemented(); }
2952 };
2953 #endif
2954
2955 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2956
2957 SWIGINTERNINLINE int
2958 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2959 {
2960 unsigned long v;
2961 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2962 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2963 return res;
2964 }
2965
2966 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2967 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2968 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2969 if (udata) {
2970 Py_INCREF(udata->m_obj);
2971 return udata->m_obj;
2972 } else {
2973 Py_INCREF(Py_None);
2974 return Py_None;
2975 }
2976 }
2977 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2978 self->SetClientData(new wxPyUserData(clientData));
2979 }
2980 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){
2981 wxPyUserData* udata = NULL;
2982 if (clientData && clientData != Py_None)
2983 udata = new wxPyUserData(clientData);
2984 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2985 shortHelp, longHelp, udata);
2986 }
2987 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){
2988 wxPyUserData* udata = NULL;
2989 if (clientData && clientData != Py_None)
2990 udata = new wxPyUserData(clientData);
2991 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2992 shortHelp, longHelp, udata);
2993 }
2994 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2995 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2996 if (udata) {
2997 Py_INCREF(udata->m_obj);
2998 return udata->m_obj;
2999 } else {
3000 Py_INCREF(Py_None);
3001 return Py_None;
3002 }
3003 }
3004 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3005 self->SetToolClientData(id, new wxPyUserData(clientData));
3006 }
3007
3008 #include <wx/listctrl.h>
3009
3010 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3011 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3012 // Python aware sorting function for wxPyListCtrl
3013 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3014 int retval = 0;
3015 PyObject* func = (PyObject*)funcPtr;
3016 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3017
3018 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3019 PyObject* result = PyEval_CallObject(func, args);
3020 Py_DECREF(args);
3021 if (result) {
3022 retval = PyInt_AsLong(result);
3023 Py_DECREF(result);
3024 }
3025
3026 wxPyEndBlockThreads(blocked);
3027 return retval;
3028 }
3029
3030 // C++ Version of a Python aware class
3031 class wxPyListCtrl : public wxListCtrl {
3032 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3033 public:
3034 wxPyListCtrl() : wxListCtrl() {}
3035 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3036 const wxPoint& pos,
3037 const wxSize& size,
3038 long style,
3039 const wxValidator& validator,
3040 const wxString& name) :
3041 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3042
3043 bool Create(wxWindow* parent, wxWindowID id,
3044 const wxPoint& pos,
3045 const wxSize& size,
3046 long style,
3047 const wxValidator& validator,
3048 const wxString& name) {
3049 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3050 }
3051
3052 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3053 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3054
3055 // use the virtual version to avoid a confusing assert in the base class
3056 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3057 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3058
3059 PYPRIVATE;
3060 };
3061
3062 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3063
3064 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3065 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3066 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3067 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3068
3069
3070 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3071 wxListItem item;
3072 item.SetMask( wxLIST_MASK_STATE |
3073 wxLIST_MASK_TEXT |
3074 wxLIST_MASK_IMAGE |
3075 wxLIST_MASK_DATA |
3076 wxLIST_SET_ITEM |
3077 wxLIST_MASK_WIDTH |
3078 wxLIST_MASK_FORMAT
3079 );
3080 if (self->GetColumn(col, item))
3081 return new wxListItem(item);
3082 else
3083 return NULL;
3084 }
3085 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3086 wxListItem* info = new wxListItem;
3087 info->m_itemId = itemId;
3088 info->m_col = col;
3089 info->m_mask = 0xFFFF;
3090 self->GetItem(*info);
3091 return info;
3092 }
3093 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3094 wxPoint pos;
3095 self->GetItemPosition(item, pos);
3096 return pos;
3097 }
3098 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3099 wxRect rect;
3100 self->GetItemRect(item, rect, code);
3101 return rect;
3102 }
3103 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3104 if (!PyCallable_Check(func))
3105 return false;
3106 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3107 }
3108 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3109
3110 return self;
3111
3112
3113
3114 }
3115
3116 #include <wx/treectrl.h>
3117 #include "wx/wxPython/pytree.h"
3118
3119 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3120 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3121 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3122 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3123
3124 static wxTreeItemId wxNullTreeItemId;
3125
3126 // C++ version of Python aware wxTreeCtrl
3127 class wxPyTreeCtrl : public wxTreeCtrl {
3128 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3129 public:
3130 wxPyTreeCtrl() : wxTreeCtrl() {}
3131 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3132 const wxPoint& pos,
3133 const wxSize& size,
3134 long style,
3135 const wxValidator& validator,
3136 const wxString& name) :
3137 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3138
3139 bool Create(wxWindow *parent, wxWindowID id,
3140 const wxPoint& pos,
3141 const wxSize& size,
3142 long style,
3143 const wxValidator& validator,
3144 const wxString& name) {
3145 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3146 }
3147
3148
3149 int OnCompareItems(const wxTreeItemId& item1,
3150 const wxTreeItemId& item2) {
3151 int rval = 0;
3152 bool found;
3153 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3154 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3155 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3156 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3157 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3158 Py_DECREF(o1);
3159 Py_DECREF(o2);
3160 }
3161 wxPyEndBlockThreads(blocked);
3162 if (! found)
3163 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3164 return rval;
3165 }
3166 PYPRIVATE;
3167 };
3168
3169 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3170
3171
3172 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3173 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3174 if (data == NULL) {
3175 data = new wxPyTreeItemData();
3176 data->SetId(item); // set the id
3177 self->SetItemData(item, data);
3178 }
3179 return data;
3180 }
3181 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3182 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3183 if (data == NULL) {
3184 data = new wxPyTreeItemData();
3185 data->SetId(item); // set the id
3186 self->SetItemData(item, data);
3187 }
3188 return data->GetData();
3189 }
3190 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3191 data->SetId(item); // set the id
3192 self->SetItemData(item, data);
3193 }
3194 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3195 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3196 if (data == NULL) {
3197 data = new wxPyTreeItemData(obj);
3198 data->SetId(item); // set the id
3199 self->SetItemData(item, data);
3200 } else
3201 data->SetData(obj);
3202 }
3203 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3204 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3205 PyObject* rval = PyList_New(0);
3206 wxArrayTreeItemIds array;
3207 size_t num, x;
3208 num = self->GetSelections(array);
3209 for (x=0; x < num; x++) {
3210 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3211 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3212 PyList_Append(rval, item);
3213 Py_DECREF(item);
3214 }
3215 wxPyEndBlockThreads(blocked);
3216 return rval;
3217 }
3218 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3219 void* cookie = 0;
3220 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3221 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3222 PyObject* tup = PyTuple_New(2);
3223 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3224 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3225 wxPyEndBlockThreads(blocked);
3226 return tup;
3227 }
3228 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3229 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3230 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3231 PyObject* tup = PyTuple_New(2);
3232 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3233 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3234 wxPyEndBlockThreads(blocked);
3235 return tup;
3236 }
3237 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3238 wxRect rect;
3239 if (self->GetBoundingRect(item, rect, textOnly)) {
3240 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3241 wxRect* r = new wxRect(rect);
3242 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3243 wxPyEndBlockThreads(blocked);
3244 return val;
3245 }
3246 else
3247 RETURN_NONE();
3248 }
3249 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3250
3251 SWIGINTERNINLINE PyObject*
3252 SWIG_From_bool (bool value)
3253 {
3254 return PyBool_FromLong(value ? 1 : 0);
3255 }
3256
3257 // C++ version of Python aware wxControl
3258 class wxPyControl : public wxControl
3259 {
3260 DECLARE_DYNAMIC_CLASS(wxPyControl)
3261 public:
3262 wxPyControl() : wxControl() {}
3263 wxPyControl(wxWindow* parent, const wxWindowID id,
3264 const wxPoint& pos = wxDefaultPosition,
3265 const wxSize& size = wxDefaultSize,
3266 long style = 0,
3267 const wxValidator& validator=wxDefaultValidator,
3268 const wxString& name = wxPyControlNameStr)
3269 : wxControl(parent, id, pos, size, style, validator, name) {}
3270
3271 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
3272
3273 bool DoEraseBackground(wxDC* dc) {
3274 #ifdef __WXMSW__
3275 return wxWindow::DoEraseBackground(dc->GetHDC());
3276 #else
3277 dc->SetBackground(wxBrush(GetBackgroundColour()));
3278 dc->Clear();
3279 return true;
3280 #endif
3281 }
3282
3283 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3284 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3285 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3286 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3287
3288 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3289 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3290 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3291
3292 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3293 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3294
3295 DEC_PYCALLBACK__(InitDialog);
3296 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3297 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3298 DEC_PYCALLBACK_BOOL_(Validate);
3299
3300 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3301 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3302 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3303
3304 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3305 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3306
3307 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3308 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3309
3310 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3311
3312 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3313
3314 PYPRIVATE;
3315 };
3316
3317 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3318
3319 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3320 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3321 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3322 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3323
3324 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3325 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3326 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3327
3328 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3329 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3330
3331 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3332 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3333 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3334 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3335
3336 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3337 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3338 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3339
3340 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3341 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3342
3343 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3344 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3345
3346 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3347
3348 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3349
3350
3351
3352 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3353
3354 #include <wx/generic/dragimgg.h>
3355
3356 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3357 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3358 wxDateTime rv;
3359 self->GetRange(&rv, NULL);
3360 return rv;
3361 }
3362 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3363 wxDateTime rv;
3364 self->GetRange(NULL, &rv);
3365 return rv;
3366 }
3367 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3368 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3369 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3370 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3371 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3372 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3373 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3374 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3375 #ifdef __cplusplus
3376 extern "C" {
3377 #endif
3378 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3379 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3380 return 1;
3381 }
3382
3383
3384 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3385 PyObject *pyobj = 0;
3386
3387 {
3388 #if wxUSE_UNICODE
3389 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3390 #else
3391 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3392 #endif
3393 }
3394 return pyobj;
3395 }
3396
3397
3398 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3399 PyObject *resultobj = 0;
3400 wxWindow *arg1 = (wxWindow *) 0 ;
3401 int arg2 = (int) -1 ;
3402 wxString const &arg3_defvalue = wxPyEmptyString ;
3403 wxString *arg3 = (wxString *) &arg3_defvalue ;
3404 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3405 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3406 wxSize const &arg5_defvalue = wxDefaultSize ;
3407 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3408 long arg6 = (long) 0 ;
3409 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3410 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3411 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3412 wxString *arg8 = (wxString *) &arg8_defvalue ;
3413 wxButton *result = 0 ;
3414 void *argp1 = 0 ;
3415 int res1 = 0 ;
3416 int val2 ;
3417 int ecode2 = 0 ;
3418 bool temp3 = false ;
3419 wxPoint temp4 ;
3420 wxSize temp5 ;
3421 long val6 ;
3422 int ecode6 = 0 ;
3423 void *argp7 = 0 ;
3424 int res7 = 0 ;
3425 bool temp8 = false ;
3426 PyObject * obj0 = 0 ;
3427 PyObject * obj1 = 0 ;
3428 PyObject * obj2 = 0 ;
3429 PyObject * obj3 = 0 ;
3430 PyObject * obj4 = 0 ;
3431 PyObject * obj5 = 0 ;
3432 PyObject * obj6 = 0 ;
3433 PyObject * obj7 = 0 ;
3434 char * kwnames[] = {
3435 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3436 };
3437
3438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3440 if (!SWIG_IsOK(res1)) {
3441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3442 }
3443 arg1 = reinterpret_cast< wxWindow * >(argp1);
3444 if (obj1) {
3445 ecode2 = SWIG_AsVal_int(obj1, &val2);
3446 if (!SWIG_IsOK(ecode2)) {
3447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3448 }
3449 arg2 = static_cast< int >(val2);
3450 }
3451 if (obj2) {
3452 {
3453 arg3 = wxString_in_helper(obj2);
3454 if (arg3 == NULL) SWIG_fail;
3455 temp3 = true;
3456 }
3457 }
3458 if (obj3) {
3459 {
3460 arg4 = &temp4;
3461 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3462 }
3463 }
3464 if (obj4) {
3465 {
3466 arg5 = &temp5;
3467 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3468 }
3469 }
3470 if (obj5) {
3471 ecode6 = SWIG_AsVal_long(obj5, &val6);
3472 if (!SWIG_IsOK(ecode6)) {
3473 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3474 }
3475 arg6 = static_cast< long >(val6);
3476 }
3477 if (obj6) {
3478 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3479 if (!SWIG_IsOK(res7)) {
3480 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3481 }
3482 if (!argp7) {
3483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3484 }
3485 arg7 = reinterpret_cast< wxValidator * >(argp7);
3486 }
3487 if (obj7) {
3488 {
3489 arg8 = wxString_in_helper(obj7);
3490 if (arg8 == NULL) SWIG_fail;
3491 temp8 = true;
3492 }
3493 }
3494 {
3495 if (!wxPyCheckForApp()) SWIG_fail;
3496 PyThreadState* __tstate = wxPyBeginAllowThreads();
3497 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3498 wxPyEndAllowThreads(__tstate);
3499 if (PyErr_Occurred()) SWIG_fail;
3500 }
3501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3502 {
3503 if (temp3)
3504 delete arg3;
3505 }
3506 {
3507 if (temp8)
3508 delete arg8;
3509 }
3510 return resultobj;
3511 fail:
3512 {
3513 if (temp3)
3514 delete arg3;
3515 }
3516 {
3517 if (temp8)
3518 delete arg8;
3519 }
3520 return NULL;
3521 }
3522
3523
3524 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3525 PyObject *resultobj = 0;
3526 wxButton *result = 0 ;
3527
3528 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3529 {
3530 if (!wxPyCheckForApp()) SWIG_fail;
3531 PyThreadState* __tstate = wxPyBeginAllowThreads();
3532 result = (wxButton *)new wxButton();
3533 wxPyEndAllowThreads(__tstate);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 }
3536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3537 return resultobj;
3538 fail:
3539 return NULL;
3540 }
3541
3542
3543 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3544 PyObject *resultobj = 0;
3545 wxButton *arg1 = (wxButton *) 0 ;
3546 wxWindow *arg2 = (wxWindow *) 0 ;
3547 int arg3 = (int) -1 ;
3548 wxString const &arg4_defvalue = wxPyEmptyString ;
3549 wxString *arg4 = (wxString *) &arg4_defvalue ;
3550 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3551 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3552 wxSize const &arg6_defvalue = wxDefaultSize ;
3553 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3554 long arg7 = (long) 0 ;
3555 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3556 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3557 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3558 wxString *arg9 = (wxString *) &arg9_defvalue ;
3559 bool result;
3560 void *argp1 = 0 ;
3561 int res1 = 0 ;
3562 void *argp2 = 0 ;
3563 int res2 = 0 ;
3564 int val3 ;
3565 int ecode3 = 0 ;
3566 bool temp4 = false ;
3567 wxPoint temp5 ;
3568 wxSize temp6 ;
3569 long val7 ;
3570 int ecode7 = 0 ;
3571 void *argp8 = 0 ;
3572 int res8 = 0 ;
3573 bool temp9 = false ;
3574 PyObject * obj0 = 0 ;
3575 PyObject * obj1 = 0 ;
3576 PyObject * obj2 = 0 ;
3577 PyObject * obj3 = 0 ;
3578 PyObject * obj4 = 0 ;
3579 PyObject * obj5 = 0 ;
3580 PyObject * obj6 = 0 ;
3581 PyObject * obj7 = 0 ;
3582 PyObject * obj8 = 0 ;
3583 char * kwnames[] = {
3584 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3585 };
3586
3587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3589 if (!SWIG_IsOK(res1)) {
3590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3591 }
3592 arg1 = reinterpret_cast< wxButton * >(argp1);
3593 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3594 if (!SWIG_IsOK(res2)) {
3595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3596 }
3597 arg2 = reinterpret_cast< wxWindow * >(argp2);
3598 if (obj2) {
3599 ecode3 = SWIG_AsVal_int(obj2, &val3);
3600 if (!SWIG_IsOK(ecode3)) {
3601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3602 }
3603 arg3 = static_cast< int >(val3);
3604 }
3605 if (obj3) {
3606 {
3607 arg4 = wxString_in_helper(obj3);
3608 if (arg4 == NULL) SWIG_fail;
3609 temp4 = true;
3610 }
3611 }
3612 if (obj4) {
3613 {
3614 arg5 = &temp5;
3615 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3616 }
3617 }
3618 if (obj5) {
3619 {
3620 arg6 = &temp6;
3621 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3622 }
3623 }
3624 if (obj6) {
3625 ecode7 = SWIG_AsVal_long(obj6, &val7);
3626 if (!SWIG_IsOK(ecode7)) {
3627 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3628 }
3629 arg7 = static_cast< long >(val7);
3630 }
3631 if (obj7) {
3632 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3633 if (!SWIG_IsOK(res8)) {
3634 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3635 }
3636 if (!argp8) {
3637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3638 }
3639 arg8 = reinterpret_cast< wxValidator * >(argp8);
3640 }
3641 if (obj8) {
3642 {
3643 arg9 = wxString_in_helper(obj8);
3644 if (arg9 == NULL) SWIG_fail;
3645 temp9 = true;
3646 }
3647 }
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3651 wxPyEndAllowThreads(__tstate);
3652 if (PyErr_Occurred()) SWIG_fail;
3653 }
3654 {
3655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3656 }
3657 {
3658 if (temp4)
3659 delete arg4;
3660 }
3661 {
3662 if (temp9)
3663 delete arg9;
3664 }
3665 return resultobj;
3666 fail:
3667 {
3668 if (temp4)
3669 delete arg4;
3670 }
3671 {
3672 if (temp9)
3673 delete arg9;
3674 }
3675 return NULL;
3676 }
3677
3678
3679 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3680 PyObject *resultobj = 0;
3681 wxButton *arg1 = (wxButton *) 0 ;
3682 void *argp1 = 0 ;
3683 int res1 = 0 ;
3684 PyObject *swig_obj[1] ;
3685
3686 if (!args) SWIG_fail;
3687 swig_obj[0] = args;
3688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3689 if (!SWIG_IsOK(res1)) {
3690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3691 }
3692 arg1 = reinterpret_cast< wxButton * >(argp1);
3693 {
3694 PyThreadState* __tstate = wxPyBeginAllowThreads();
3695 (arg1)->SetDefault();
3696 wxPyEndAllowThreads(__tstate);
3697 if (PyErr_Occurred()) SWIG_fail;
3698 }
3699 resultobj = SWIG_Py_Void();
3700 return resultobj;
3701 fail:
3702 return NULL;
3703 }
3704
3705
3706 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3707 PyObject *resultobj = 0;
3708 wxSize result;
3709
3710 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3711 {
3712 PyThreadState* __tstate = wxPyBeginAllowThreads();
3713 result = wxButton::GetDefaultSize();
3714 wxPyEndAllowThreads(__tstate);
3715 if (PyErr_Occurred()) SWIG_fail;
3716 }
3717 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3718 return resultobj;
3719 fail:
3720 return NULL;
3721 }
3722
3723
3724 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj = 0;
3726 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3727 SwigValueWrapper<wxVisualAttributes > result;
3728 int val1 ;
3729 int ecode1 = 0 ;
3730 PyObject * obj0 = 0 ;
3731 char * kwnames[] = {
3732 (char *) "variant", NULL
3733 };
3734
3735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3736 if (obj0) {
3737 ecode1 = SWIG_AsVal_int(obj0, &val1);
3738 if (!SWIG_IsOK(ecode1)) {
3739 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3740 }
3741 arg1 = static_cast< wxWindowVariant >(val1);
3742 }
3743 {
3744 if (!wxPyCheckForApp()) SWIG_fail;
3745 PyThreadState* __tstate = wxPyBeginAllowThreads();
3746 result = wxButton::GetClassDefaultAttributes(arg1);
3747 wxPyEndAllowThreads(__tstate);
3748 if (PyErr_Occurred()) SWIG_fail;
3749 }
3750 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3751 return resultobj;
3752 fail:
3753 return NULL;
3754 }
3755
3756
3757 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3758 PyObject *obj;
3759 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3760 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3761 return SWIG_Py_Void();
3762 }
3763
3764 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3765 return SWIG_Python_InitShadowInstance(args);
3766 }
3767
3768 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3769 PyObject *resultobj = 0;
3770 wxWindow *arg1 = (wxWindow *) 0 ;
3771 int arg2 = (int) -1 ;
3772 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3773 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3774 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3775 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3776 wxSize const &arg5_defvalue = wxDefaultSize ;
3777 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3778 long arg6 = (long) wxBU_AUTODRAW ;
3779 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3780 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3781 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3782 wxString *arg8 = (wxString *) &arg8_defvalue ;
3783 wxBitmapButton *result = 0 ;
3784 void *argp1 = 0 ;
3785 int res1 = 0 ;
3786 int val2 ;
3787 int ecode2 = 0 ;
3788 void *argp3 = 0 ;
3789 int res3 = 0 ;
3790 wxPoint temp4 ;
3791 wxSize temp5 ;
3792 long val6 ;
3793 int ecode6 = 0 ;
3794 void *argp7 = 0 ;
3795 int res7 = 0 ;
3796 bool temp8 = false ;
3797 PyObject * obj0 = 0 ;
3798 PyObject * obj1 = 0 ;
3799 PyObject * obj2 = 0 ;
3800 PyObject * obj3 = 0 ;
3801 PyObject * obj4 = 0 ;
3802 PyObject * obj5 = 0 ;
3803 PyObject * obj6 = 0 ;
3804 PyObject * obj7 = 0 ;
3805 char * kwnames[] = {
3806 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3807 };
3808
3809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3811 if (!SWIG_IsOK(res1)) {
3812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3813 }
3814 arg1 = reinterpret_cast< wxWindow * >(argp1);
3815 if (obj1) {
3816 ecode2 = SWIG_AsVal_int(obj1, &val2);
3817 if (!SWIG_IsOK(ecode2)) {
3818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3819 }
3820 arg2 = static_cast< int >(val2);
3821 }
3822 if (obj2) {
3823 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3824 if (!SWIG_IsOK(res3)) {
3825 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3826 }
3827 if (!argp3) {
3828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3829 }
3830 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3831 }
3832 if (obj3) {
3833 {
3834 arg4 = &temp4;
3835 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3836 }
3837 }
3838 if (obj4) {
3839 {
3840 arg5 = &temp5;
3841 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3842 }
3843 }
3844 if (obj5) {
3845 ecode6 = SWIG_AsVal_long(obj5, &val6);
3846 if (!SWIG_IsOK(ecode6)) {
3847 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3848 }
3849 arg6 = static_cast< long >(val6);
3850 }
3851 if (obj6) {
3852 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3853 if (!SWIG_IsOK(res7)) {
3854 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3855 }
3856 if (!argp7) {
3857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3858 }
3859 arg7 = reinterpret_cast< wxValidator * >(argp7);
3860 }
3861 if (obj7) {
3862 {
3863 arg8 = wxString_in_helper(obj7);
3864 if (arg8 == NULL) SWIG_fail;
3865 temp8 = true;
3866 }
3867 }
3868 {
3869 if (!wxPyCheckForApp()) SWIG_fail;
3870 PyThreadState* __tstate = wxPyBeginAllowThreads();
3871 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3872 wxPyEndAllowThreads(__tstate);
3873 if (PyErr_Occurred()) SWIG_fail;
3874 }
3875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3876 {
3877 if (temp8)
3878 delete arg8;
3879 }
3880 return resultobj;
3881 fail:
3882 {
3883 if (temp8)
3884 delete arg8;
3885 }
3886 return NULL;
3887 }
3888
3889
3890 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3891 PyObject *resultobj = 0;
3892 wxBitmapButton *result = 0 ;
3893
3894 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3895 {
3896 if (!wxPyCheckForApp()) SWIG_fail;
3897 PyThreadState* __tstate = wxPyBeginAllowThreads();
3898 result = (wxBitmapButton *)new wxBitmapButton();
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3903 return resultobj;
3904 fail:
3905 return NULL;
3906 }
3907
3908
3909 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3910 PyObject *resultobj = 0;
3911 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3912 wxWindow *arg2 = (wxWindow *) 0 ;
3913 int arg3 = (int) -1 ;
3914 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3915 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3916 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3917 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3918 wxSize const &arg6_defvalue = wxDefaultSize ;
3919 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3920 long arg7 = (long) wxBU_AUTODRAW ;
3921 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3922 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3923 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3924 wxString *arg9 = (wxString *) &arg9_defvalue ;
3925 bool result;
3926 void *argp1 = 0 ;
3927 int res1 = 0 ;
3928 void *argp2 = 0 ;
3929 int res2 = 0 ;
3930 int val3 ;
3931 int ecode3 = 0 ;
3932 void *argp4 = 0 ;
3933 int res4 = 0 ;
3934 wxPoint temp5 ;
3935 wxSize temp6 ;
3936 long val7 ;
3937 int ecode7 = 0 ;
3938 void *argp8 = 0 ;
3939 int res8 = 0 ;
3940 bool temp9 = false ;
3941 PyObject * obj0 = 0 ;
3942 PyObject * obj1 = 0 ;
3943 PyObject * obj2 = 0 ;
3944 PyObject * obj3 = 0 ;
3945 PyObject * obj4 = 0 ;
3946 PyObject * obj5 = 0 ;
3947 PyObject * obj6 = 0 ;
3948 PyObject * obj7 = 0 ;
3949 PyObject * obj8 = 0 ;
3950 char * kwnames[] = {
3951 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3952 };
3953
3954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3956 if (!SWIG_IsOK(res1)) {
3957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3958 }
3959 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3960 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3961 if (!SWIG_IsOK(res2)) {
3962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3963 }
3964 arg2 = reinterpret_cast< wxWindow * >(argp2);
3965 if (obj2) {
3966 ecode3 = SWIG_AsVal_int(obj2, &val3);
3967 if (!SWIG_IsOK(ecode3)) {
3968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3969 }
3970 arg3 = static_cast< int >(val3);
3971 }
3972 if (obj3) {
3973 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3974 if (!SWIG_IsOK(res4)) {
3975 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3976 }
3977 if (!argp4) {
3978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3979 }
3980 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3981 }
3982 if (obj4) {
3983 {
3984 arg5 = &temp5;
3985 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3986 }
3987 }
3988 if (obj5) {
3989 {
3990 arg6 = &temp6;
3991 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3992 }
3993 }
3994 if (obj6) {
3995 ecode7 = SWIG_AsVal_long(obj6, &val7);
3996 if (!SWIG_IsOK(ecode7)) {
3997 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3998 }
3999 arg7 = static_cast< long >(val7);
4000 }
4001 if (obj7) {
4002 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4003 if (!SWIG_IsOK(res8)) {
4004 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4005 }
4006 if (!argp8) {
4007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4008 }
4009 arg8 = reinterpret_cast< wxValidator * >(argp8);
4010 }
4011 if (obj8) {
4012 {
4013 arg9 = wxString_in_helper(obj8);
4014 if (arg9 == NULL) SWIG_fail;
4015 temp9 = true;
4016 }
4017 }
4018 {
4019 PyThreadState* __tstate = wxPyBeginAllowThreads();
4020 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4021 wxPyEndAllowThreads(__tstate);
4022 if (PyErr_Occurred()) SWIG_fail;
4023 }
4024 {
4025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4026 }
4027 {
4028 if (temp9)
4029 delete arg9;
4030 }
4031 return resultobj;
4032 fail:
4033 {
4034 if (temp9)
4035 delete arg9;
4036 }
4037 return NULL;
4038 }
4039
4040
4041 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4042 PyObject *resultobj = 0;
4043 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4044 wxBitmap result;
4045 void *argp1 = 0 ;
4046 int res1 = 0 ;
4047 PyObject *swig_obj[1] ;
4048
4049 if (!args) SWIG_fail;
4050 swig_obj[0] = args;
4051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4052 if (!SWIG_IsOK(res1)) {
4053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4054 }
4055 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4056 {
4057 PyThreadState* __tstate = wxPyBeginAllowThreads();
4058 result = (arg1)->GetBitmapLabel();
4059 wxPyEndAllowThreads(__tstate);
4060 if (PyErr_Occurred()) SWIG_fail;
4061 }
4062 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4063 return resultobj;
4064 fail:
4065 return NULL;
4066 }
4067
4068
4069 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4070 PyObject *resultobj = 0;
4071 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4072 wxBitmap result;
4073 void *argp1 = 0 ;
4074 int res1 = 0 ;
4075 PyObject *swig_obj[1] ;
4076
4077 if (!args) SWIG_fail;
4078 swig_obj[0] = args;
4079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4080 if (!SWIG_IsOK(res1)) {
4081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4082 }
4083 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4084 {
4085 PyThreadState* __tstate = wxPyBeginAllowThreads();
4086 result = (arg1)->GetBitmapDisabled();
4087 wxPyEndAllowThreads(__tstate);
4088 if (PyErr_Occurred()) SWIG_fail;
4089 }
4090 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4091 return resultobj;
4092 fail:
4093 return NULL;
4094 }
4095
4096
4097 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4098 PyObject *resultobj = 0;
4099 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4100 wxBitmap result;
4101 void *argp1 = 0 ;
4102 int res1 = 0 ;
4103 PyObject *swig_obj[1] ;
4104
4105 if (!args) SWIG_fail;
4106 swig_obj[0] = args;
4107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4108 if (!SWIG_IsOK(res1)) {
4109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4110 }
4111 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4112 {
4113 PyThreadState* __tstate = wxPyBeginAllowThreads();
4114 result = (arg1)->GetBitmapFocus();
4115 wxPyEndAllowThreads(__tstate);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4119 return resultobj;
4120 fail:
4121 return NULL;
4122 }
4123
4124
4125 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4126 PyObject *resultobj = 0;
4127 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4128 wxBitmap result;
4129 void *argp1 = 0 ;
4130 int res1 = 0 ;
4131 PyObject *swig_obj[1] ;
4132
4133 if (!args) SWIG_fail;
4134 swig_obj[0] = args;
4135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4136 if (!SWIG_IsOK(res1)) {
4137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4138 }
4139 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4140 {
4141 PyThreadState* __tstate = wxPyBeginAllowThreads();
4142 result = (arg1)->GetBitmapSelected();
4143 wxPyEndAllowThreads(__tstate);
4144 if (PyErr_Occurred()) SWIG_fail;
4145 }
4146 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4147 return resultobj;
4148 fail:
4149 return NULL;
4150 }
4151
4152
4153 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4154 PyObject *resultobj = 0;
4155 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4156 wxBitmap result;
4157 void *argp1 = 0 ;
4158 int res1 = 0 ;
4159 PyObject *swig_obj[1] ;
4160
4161 if (!args) SWIG_fail;
4162 swig_obj[0] = args;
4163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4164 if (!SWIG_IsOK(res1)) {
4165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4166 }
4167 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4168 {
4169 PyThreadState* __tstate = wxPyBeginAllowThreads();
4170 result = (arg1)->GetBitmapHover();
4171 wxPyEndAllowThreads(__tstate);
4172 if (PyErr_Occurred()) SWIG_fail;
4173 }
4174 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4175 return resultobj;
4176 fail:
4177 return NULL;
4178 }
4179
4180
4181 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4182 PyObject *resultobj = 0;
4183 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4184 wxBitmap *arg2 = 0 ;
4185 void *argp1 = 0 ;
4186 int res1 = 0 ;
4187 void *argp2 = 0 ;
4188 int res2 = 0 ;
4189 PyObject * obj0 = 0 ;
4190 PyObject * obj1 = 0 ;
4191 char * kwnames[] = {
4192 (char *) "self",(char *) "bitmap", NULL
4193 };
4194
4195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4197 if (!SWIG_IsOK(res1)) {
4198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4199 }
4200 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4202 if (!SWIG_IsOK(res2)) {
4203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4204 }
4205 if (!argp2) {
4206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4207 }
4208 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4209 {
4210 PyThreadState* __tstate = wxPyBeginAllowThreads();
4211 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4212 wxPyEndAllowThreads(__tstate);
4213 if (PyErr_Occurred()) SWIG_fail;
4214 }
4215 resultobj = SWIG_Py_Void();
4216 return resultobj;
4217 fail:
4218 return NULL;
4219 }
4220
4221
4222 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4223 PyObject *resultobj = 0;
4224 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4225 wxBitmap *arg2 = 0 ;
4226 void *argp1 = 0 ;
4227 int res1 = 0 ;
4228 void *argp2 = 0 ;
4229 int res2 = 0 ;
4230 PyObject * obj0 = 0 ;
4231 PyObject * obj1 = 0 ;
4232 char * kwnames[] = {
4233 (char *) "self",(char *) "bitmap", NULL
4234 };
4235
4236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4238 if (!SWIG_IsOK(res1)) {
4239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4240 }
4241 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4242 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4243 if (!SWIG_IsOK(res2)) {
4244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4245 }
4246 if (!argp2) {
4247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4248 }
4249 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4250 {
4251 PyThreadState* __tstate = wxPyBeginAllowThreads();
4252 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4253 wxPyEndAllowThreads(__tstate);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 resultobj = SWIG_Py_Void();
4257 return resultobj;
4258 fail:
4259 return NULL;
4260 }
4261
4262
4263 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4264 PyObject *resultobj = 0;
4265 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4266 wxBitmap *arg2 = 0 ;
4267 void *argp1 = 0 ;
4268 int res1 = 0 ;
4269 void *argp2 = 0 ;
4270 int res2 = 0 ;
4271 PyObject * obj0 = 0 ;
4272 PyObject * obj1 = 0 ;
4273 char * kwnames[] = {
4274 (char *) "self",(char *) "bitmap", NULL
4275 };
4276
4277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4279 if (!SWIG_IsOK(res1)) {
4280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4281 }
4282 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4283 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4284 if (!SWIG_IsOK(res2)) {
4285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4286 }
4287 if (!argp2) {
4288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4289 }
4290 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4291 {
4292 PyThreadState* __tstate = wxPyBeginAllowThreads();
4293 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4294 wxPyEndAllowThreads(__tstate);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 resultobj = SWIG_Py_Void();
4298 return resultobj;
4299 fail:
4300 return NULL;
4301 }
4302
4303
4304 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4305 PyObject *resultobj = 0;
4306 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4307 wxBitmap *arg2 = 0 ;
4308 void *argp1 = 0 ;
4309 int res1 = 0 ;
4310 void *argp2 = 0 ;
4311 int res2 = 0 ;
4312 PyObject * obj0 = 0 ;
4313 PyObject * obj1 = 0 ;
4314 char * kwnames[] = {
4315 (char *) "self",(char *) "bitmap", NULL
4316 };
4317
4318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4320 if (!SWIG_IsOK(res1)) {
4321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4322 }
4323 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4325 if (!SWIG_IsOK(res2)) {
4326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4327 }
4328 if (!argp2) {
4329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4330 }
4331 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4332 {
4333 PyThreadState* __tstate = wxPyBeginAllowThreads();
4334 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4335 wxPyEndAllowThreads(__tstate);
4336 if (PyErr_Occurred()) SWIG_fail;
4337 }
4338 resultobj = SWIG_Py_Void();
4339 return resultobj;
4340 fail:
4341 return NULL;
4342 }
4343
4344
4345 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4346 PyObject *resultobj = 0;
4347 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4348 wxBitmap *arg2 = 0 ;
4349 void *argp1 = 0 ;
4350 int res1 = 0 ;
4351 void *argp2 = 0 ;
4352 int res2 = 0 ;
4353 PyObject * obj0 = 0 ;
4354 PyObject * obj1 = 0 ;
4355 char * kwnames[] = {
4356 (char *) "self",(char *) "hover", NULL
4357 };
4358
4359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4361 if (!SWIG_IsOK(res1)) {
4362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4363 }
4364 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4365 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4366 if (!SWIG_IsOK(res2)) {
4367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4368 }
4369 if (!argp2) {
4370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4371 }
4372 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4373 {
4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
4375 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4376 wxPyEndAllowThreads(__tstate);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 resultobj = SWIG_Py_Void();
4380 return resultobj;
4381 fail:
4382 return NULL;
4383 }
4384
4385
4386 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4387 PyObject *resultobj = 0;
4388 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4389 int arg2 ;
4390 int arg3 ;
4391 void *argp1 = 0 ;
4392 int res1 = 0 ;
4393 int val2 ;
4394 int ecode2 = 0 ;
4395 int val3 ;
4396 int ecode3 = 0 ;
4397 PyObject * obj0 = 0 ;
4398 PyObject * obj1 = 0 ;
4399 PyObject * obj2 = 0 ;
4400 char * kwnames[] = {
4401 (char *) "self",(char *) "x",(char *) "y", NULL
4402 };
4403
4404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4406 if (!SWIG_IsOK(res1)) {
4407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4408 }
4409 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4410 ecode2 = SWIG_AsVal_int(obj1, &val2);
4411 if (!SWIG_IsOK(ecode2)) {
4412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4413 }
4414 arg2 = static_cast< int >(val2);
4415 ecode3 = SWIG_AsVal_int(obj2, &val3);
4416 if (!SWIG_IsOK(ecode3)) {
4417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4418 }
4419 arg3 = static_cast< int >(val3);
4420 {
4421 PyThreadState* __tstate = wxPyBeginAllowThreads();
4422 (arg1)->SetMargins(arg2,arg3);
4423 wxPyEndAllowThreads(__tstate);
4424 if (PyErr_Occurred()) SWIG_fail;
4425 }
4426 resultobj = SWIG_Py_Void();
4427 return resultobj;
4428 fail:
4429 return NULL;
4430 }
4431
4432
4433 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4434 PyObject *resultobj = 0;
4435 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4436 int result;
4437 void *argp1 = 0 ;
4438 int res1 = 0 ;
4439 PyObject *swig_obj[1] ;
4440
4441 if (!args) SWIG_fail;
4442 swig_obj[0] = args;
4443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4444 if (!SWIG_IsOK(res1)) {
4445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4446 }
4447 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4448 {
4449 PyThreadState* __tstate = wxPyBeginAllowThreads();
4450 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4451 wxPyEndAllowThreads(__tstate);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 resultobj = SWIG_From_int(static_cast< int >(result));
4455 return resultobj;
4456 fail:
4457 return NULL;
4458 }
4459
4460
4461 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4462 PyObject *resultobj = 0;
4463 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4464 int result;
4465 void *argp1 = 0 ;
4466 int res1 = 0 ;
4467 PyObject *swig_obj[1] ;
4468
4469 if (!args) SWIG_fail;
4470 swig_obj[0] = args;
4471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4472 if (!SWIG_IsOK(res1)) {
4473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4474 }
4475 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4476 {
4477 PyThreadState* __tstate = wxPyBeginAllowThreads();
4478 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4479 wxPyEndAllowThreads(__tstate);
4480 if (PyErr_Occurred()) SWIG_fail;
4481 }
4482 resultobj = SWIG_From_int(static_cast< int >(result));
4483 return resultobj;
4484 fail:
4485 return NULL;
4486 }
4487
4488
4489 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4490 PyObject *obj;
4491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4492 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4493 return SWIG_Py_Void();
4494 }
4495
4496 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4497 return SWIG_Python_InitShadowInstance(args);
4498 }
4499
4500 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4501 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4502 return 1;
4503 }
4504
4505
4506 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4507 PyObject *pyobj = 0;
4508
4509 {
4510 #if wxUSE_UNICODE
4511 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4512 #else
4513 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4514 #endif
4515 }
4516 return pyobj;
4517 }
4518
4519
4520 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4521 PyObject *resultobj = 0;
4522 wxWindow *arg1 = (wxWindow *) 0 ;
4523 int arg2 = (int) -1 ;
4524 wxString const &arg3_defvalue = wxPyEmptyString ;
4525 wxString *arg3 = (wxString *) &arg3_defvalue ;
4526 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4527 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4528 wxSize const &arg5_defvalue = wxDefaultSize ;
4529 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4530 long arg6 = (long) 0 ;
4531 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4532 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4533 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4534 wxString *arg8 = (wxString *) &arg8_defvalue ;
4535 wxCheckBox *result = 0 ;
4536 void *argp1 = 0 ;
4537 int res1 = 0 ;
4538 int val2 ;
4539 int ecode2 = 0 ;
4540 bool temp3 = false ;
4541 wxPoint temp4 ;
4542 wxSize temp5 ;
4543 long val6 ;
4544 int ecode6 = 0 ;
4545 void *argp7 = 0 ;
4546 int res7 = 0 ;
4547 bool temp8 = false ;
4548 PyObject * obj0 = 0 ;
4549 PyObject * obj1 = 0 ;
4550 PyObject * obj2 = 0 ;
4551 PyObject * obj3 = 0 ;
4552 PyObject * obj4 = 0 ;
4553 PyObject * obj5 = 0 ;
4554 PyObject * obj6 = 0 ;
4555 PyObject * obj7 = 0 ;
4556 char * kwnames[] = {
4557 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4558 };
4559
4560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4562 if (!SWIG_IsOK(res1)) {
4563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4564 }
4565 arg1 = reinterpret_cast< wxWindow * >(argp1);
4566 if (obj1) {
4567 ecode2 = SWIG_AsVal_int(obj1, &val2);
4568 if (!SWIG_IsOK(ecode2)) {
4569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4570 }
4571 arg2 = static_cast< int >(val2);
4572 }
4573 if (obj2) {
4574 {
4575 arg3 = wxString_in_helper(obj2);
4576 if (arg3 == NULL) SWIG_fail;
4577 temp3 = true;
4578 }
4579 }
4580 if (obj3) {
4581 {
4582 arg4 = &temp4;
4583 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4584 }
4585 }
4586 if (obj4) {
4587 {
4588 arg5 = &temp5;
4589 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4590 }
4591 }
4592 if (obj5) {
4593 ecode6 = SWIG_AsVal_long(obj5, &val6);
4594 if (!SWIG_IsOK(ecode6)) {
4595 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4596 }
4597 arg6 = static_cast< long >(val6);
4598 }
4599 if (obj6) {
4600 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4601 if (!SWIG_IsOK(res7)) {
4602 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4603 }
4604 if (!argp7) {
4605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4606 }
4607 arg7 = reinterpret_cast< wxValidator * >(argp7);
4608 }
4609 if (obj7) {
4610 {
4611 arg8 = wxString_in_helper(obj7);
4612 if (arg8 == NULL) SWIG_fail;
4613 temp8 = true;
4614 }
4615 }
4616 {
4617 if (!wxPyCheckForApp()) SWIG_fail;
4618 PyThreadState* __tstate = wxPyBeginAllowThreads();
4619 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4620 wxPyEndAllowThreads(__tstate);
4621 if (PyErr_Occurred()) SWIG_fail;
4622 }
4623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4624 {
4625 if (temp3)
4626 delete arg3;
4627 }
4628 {
4629 if (temp8)
4630 delete arg8;
4631 }
4632 return resultobj;
4633 fail:
4634 {
4635 if (temp3)
4636 delete arg3;
4637 }
4638 {
4639 if (temp8)
4640 delete arg8;
4641 }
4642 return NULL;
4643 }
4644
4645
4646 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4647 PyObject *resultobj = 0;
4648 wxCheckBox *result = 0 ;
4649
4650 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4651 {
4652 if (!wxPyCheckForApp()) SWIG_fail;
4653 PyThreadState* __tstate = wxPyBeginAllowThreads();
4654 result = (wxCheckBox *)new wxCheckBox();
4655 wxPyEndAllowThreads(__tstate);
4656 if (PyErr_Occurred()) SWIG_fail;
4657 }
4658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4659 return resultobj;
4660 fail:
4661 return NULL;
4662 }
4663
4664
4665 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4666 PyObject *resultobj = 0;
4667 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4668 wxWindow *arg2 = (wxWindow *) 0 ;
4669 int arg3 = (int) -1 ;
4670 wxString const &arg4_defvalue = wxPyEmptyString ;
4671 wxString *arg4 = (wxString *) &arg4_defvalue ;
4672 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4673 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4674 wxSize const &arg6_defvalue = wxDefaultSize ;
4675 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4676 long arg7 = (long) 0 ;
4677 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4678 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4679 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4680 wxString *arg9 = (wxString *) &arg9_defvalue ;
4681 bool result;
4682 void *argp1 = 0 ;
4683 int res1 = 0 ;
4684 void *argp2 = 0 ;
4685 int res2 = 0 ;
4686 int val3 ;
4687 int ecode3 = 0 ;
4688 bool temp4 = false ;
4689 wxPoint temp5 ;
4690 wxSize temp6 ;
4691 long val7 ;
4692 int ecode7 = 0 ;
4693 void *argp8 = 0 ;
4694 int res8 = 0 ;
4695 bool temp9 = false ;
4696 PyObject * obj0 = 0 ;
4697 PyObject * obj1 = 0 ;
4698 PyObject * obj2 = 0 ;
4699 PyObject * obj3 = 0 ;
4700 PyObject * obj4 = 0 ;
4701 PyObject * obj5 = 0 ;
4702 PyObject * obj6 = 0 ;
4703 PyObject * obj7 = 0 ;
4704 PyObject * obj8 = 0 ;
4705 char * kwnames[] = {
4706 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4707 };
4708
4709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4711 if (!SWIG_IsOK(res1)) {
4712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4713 }
4714 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4715 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4716 if (!SWIG_IsOK(res2)) {
4717 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4718 }
4719 arg2 = reinterpret_cast< wxWindow * >(argp2);
4720 if (obj2) {
4721 ecode3 = SWIG_AsVal_int(obj2, &val3);
4722 if (!SWIG_IsOK(ecode3)) {
4723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4724 }
4725 arg3 = static_cast< int >(val3);
4726 }
4727 if (obj3) {
4728 {
4729 arg4 = wxString_in_helper(obj3);
4730 if (arg4 == NULL) SWIG_fail;
4731 temp4 = true;
4732 }
4733 }
4734 if (obj4) {
4735 {
4736 arg5 = &temp5;
4737 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4738 }
4739 }
4740 if (obj5) {
4741 {
4742 arg6 = &temp6;
4743 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4744 }
4745 }
4746 if (obj6) {
4747 ecode7 = SWIG_AsVal_long(obj6, &val7);
4748 if (!SWIG_IsOK(ecode7)) {
4749 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4750 }
4751 arg7 = static_cast< long >(val7);
4752 }
4753 if (obj7) {
4754 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4755 if (!SWIG_IsOK(res8)) {
4756 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4757 }
4758 if (!argp8) {
4759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4760 }
4761 arg8 = reinterpret_cast< wxValidator * >(argp8);
4762 }
4763 if (obj8) {
4764 {
4765 arg9 = wxString_in_helper(obj8);
4766 if (arg9 == NULL) SWIG_fail;
4767 temp9 = true;
4768 }
4769 }
4770 {
4771 PyThreadState* __tstate = wxPyBeginAllowThreads();
4772 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4773 wxPyEndAllowThreads(__tstate);
4774 if (PyErr_Occurred()) SWIG_fail;
4775 }
4776 {
4777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4778 }
4779 {
4780 if (temp4)
4781 delete arg4;
4782 }
4783 {
4784 if (temp9)
4785 delete arg9;
4786 }
4787 return resultobj;
4788 fail:
4789 {
4790 if (temp4)
4791 delete arg4;
4792 }
4793 {
4794 if (temp9)
4795 delete arg9;
4796 }
4797 return NULL;
4798 }
4799
4800
4801 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4802 PyObject *resultobj = 0;
4803 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4804 bool result;
4805 void *argp1 = 0 ;
4806 int res1 = 0 ;
4807 PyObject *swig_obj[1] ;
4808
4809 if (!args) SWIG_fail;
4810 swig_obj[0] = args;
4811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4812 if (!SWIG_IsOK(res1)) {
4813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4814 }
4815 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4816 {
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 result = (bool)(arg1)->GetValue();
4819 wxPyEndAllowThreads(__tstate);
4820 if (PyErr_Occurred()) SWIG_fail;
4821 }
4822 {
4823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4824 }
4825 return resultobj;
4826 fail:
4827 return NULL;
4828 }
4829
4830
4831 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4832 PyObject *resultobj = 0;
4833 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4834 bool result;
4835 void *argp1 = 0 ;
4836 int res1 = 0 ;
4837 PyObject *swig_obj[1] ;
4838
4839 if (!args) SWIG_fail;
4840 swig_obj[0] = args;
4841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4842 if (!SWIG_IsOK(res1)) {
4843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4844 }
4845 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 result = (bool)(arg1)->IsChecked();
4849 wxPyEndAllowThreads(__tstate);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 {
4853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4854 }
4855 return resultobj;
4856 fail:
4857 return NULL;
4858 }
4859
4860
4861 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj = 0;
4863 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4864 bool arg2 ;
4865 void *argp1 = 0 ;
4866 int res1 = 0 ;
4867 bool val2 ;
4868 int ecode2 = 0 ;
4869 PyObject * obj0 = 0 ;
4870 PyObject * obj1 = 0 ;
4871 char * kwnames[] = {
4872 (char *) "self",(char *) "state", NULL
4873 };
4874
4875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4877 if (!SWIG_IsOK(res1)) {
4878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4879 }
4880 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4881 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4882 if (!SWIG_IsOK(ecode2)) {
4883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4884 }
4885 arg2 = static_cast< bool >(val2);
4886 {
4887 PyThreadState* __tstate = wxPyBeginAllowThreads();
4888 (arg1)->SetValue(arg2);
4889 wxPyEndAllowThreads(__tstate);
4890 if (PyErr_Occurred()) SWIG_fail;
4891 }
4892 resultobj = SWIG_Py_Void();
4893 return resultobj;
4894 fail:
4895 return NULL;
4896 }
4897
4898
4899 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4900 PyObject *resultobj = 0;
4901 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4902 wxCheckBoxState result;
4903 void *argp1 = 0 ;
4904 int res1 = 0 ;
4905 PyObject *swig_obj[1] ;
4906
4907 if (!args) SWIG_fail;
4908 swig_obj[0] = args;
4909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4910 if (!SWIG_IsOK(res1)) {
4911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4912 }
4913 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4914 {
4915 PyThreadState* __tstate = wxPyBeginAllowThreads();
4916 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4917 wxPyEndAllowThreads(__tstate);
4918 if (PyErr_Occurred()) SWIG_fail;
4919 }
4920 resultobj = SWIG_From_int(static_cast< int >(result));
4921 return resultobj;
4922 fail:
4923 return NULL;
4924 }
4925
4926
4927 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4928 PyObject *resultobj = 0;
4929 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4930 wxCheckBoxState arg2 ;
4931 void *argp1 = 0 ;
4932 int res1 = 0 ;
4933 int val2 ;
4934 int ecode2 = 0 ;
4935 PyObject * obj0 = 0 ;
4936 PyObject * obj1 = 0 ;
4937 char * kwnames[] = {
4938 (char *) "self",(char *) "state", NULL
4939 };
4940
4941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4943 if (!SWIG_IsOK(res1)) {
4944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4945 }
4946 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4947 ecode2 = SWIG_AsVal_int(obj1, &val2);
4948 if (!SWIG_IsOK(ecode2)) {
4949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4950 }
4951 arg2 = static_cast< wxCheckBoxState >(val2);
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 (arg1)->Set3StateValue(arg2);
4955 wxPyEndAllowThreads(__tstate);
4956 if (PyErr_Occurred()) SWIG_fail;
4957 }
4958 resultobj = SWIG_Py_Void();
4959 return resultobj;
4960 fail:
4961 return NULL;
4962 }
4963
4964
4965 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4966 PyObject *resultobj = 0;
4967 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4968 bool result;
4969 void *argp1 = 0 ;
4970 int res1 = 0 ;
4971 PyObject *swig_obj[1] ;
4972
4973 if (!args) SWIG_fail;
4974 swig_obj[0] = args;
4975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4976 if (!SWIG_IsOK(res1)) {
4977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4978 }
4979 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4980 {
4981 PyThreadState* __tstate = wxPyBeginAllowThreads();
4982 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4983 wxPyEndAllowThreads(__tstate);
4984 if (PyErr_Occurred()) SWIG_fail;
4985 }
4986 {
4987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4988 }
4989 return resultobj;
4990 fail:
4991 return NULL;
4992 }
4993
4994
4995 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4996 PyObject *resultobj = 0;
4997 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4998 bool result;
4999 void *argp1 = 0 ;
5000 int res1 = 0 ;
5001 PyObject *swig_obj[1] ;
5002
5003 if (!args) SWIG_fail;
5004 swig_obj[0] = args;
5005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5006 if (!SWIG_IsOK(res1)) {
5007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5008 }
5009 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5010 {
5011 PyThreadState* __tstate = wxPyBeginAllowThreads();
5012 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5013 wxPyEndAllowThreads(__tstate);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 }
5016 {
5017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5018 }
5019 return resultobj;
5020 fail:
5021 return NULL;
5022 }
5023
5024
5025 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5026 PyObject *resultobj = 0;
5027 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5028 SwigValueWrapper<wxVisualAttributes > result;
5029 int val1 ;
5030 int ecode1 = 0 ;
5031 PyObject * obj0 = 0 ;
5032 char * kwnames[] = {
5033 (char *) "variant", NULL
5034 };
5035
5036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5037 if (obj0) {
5038 ecode1 = SWIG_AsVal_int(obj0, &val1);
5039 if (!SWIG_IsOK(ecode1)) {
5040 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5041 }
5042 arg1 = static_cast< wxWindowVariant >(val1);
5043 }
5044 {
5045 if (!wxPyCheckForApp()) SWIG_fail;
5046 PyThreadState* __tstate = wxPyBeginAllowThreads();
5047 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5048 wxPyEndAllowThreads(__tstate);
5049 if (PyErr_Occurred()) SWIG_fail;
5050 }
5051 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5052 return resultobj;
5053 fail:
5054 return NULL;
5055 }
5056
5057
5058 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5059 PyObject *obj;
5060 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5061 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5062 return SWIG_Py_Void();
5063 }
5064
5065 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5066 return SWIG_Python_InitShadowInstance(args);
5067 }
5068
5069 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5070 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5071 return 1;
5072 }
5073
5074
5075 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5076 PyObject *pyobj = 0;
5077
5078 {
5079 #if wxUSE_UNICODE
5080 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5081 #else
5082 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5083 #endif
5084 }
5085 return pyobj;
5086 }
5087
5088
5089 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5090 PyObject *resultobj = 0;
5091 wxWindow *arg1 = (wxWindow *) 0 ;
5092 int arg2 = (int) -1 ;
5093 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5094 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5095 wxSize const &arg4_defvalue = wxDefaultSize ;
5096 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5097 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5098 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5099 long arg6 = (long) 0 ;
5100 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5101 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5102 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5103 wxString *arg8 = (wxString *) &arg8_defvalue ;
5104 wxChoice *result = 0 ;
5105 void *argp1 = 0 ;
5106 int res1 = 0 ;
5107 int val2 ;
5108 int ecode2 = 0 ;
5109 wxPoint temp3 ;
5110 wxSize temp4 ;
5111 bool temp5 = false ;
5112 long val6 ;
5113 int ecode6 = 0 ;
5114 void *argp7 = 0 ;
5115 int res7 = 0 ;
5116 bool temp8 = false ;
5117 PyObject * obj0 = 0 ;
5118 PyObject * obj1 = 0 ;
5119 PyObject * obj2 = 0 ;
5120 PyObject * obj3 = 0 ;
5121 PyObject * obj4 = 0 ;
5122 PyObject * obj5 = 0 ;
5123 PyObject * obj6 = 0 ;
5124 PyObject * obj7 = 0 ;
5125 char * kwnames[] = {
5126 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5127 };
5128
5129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5131 if (!SWIG_IsOK(res1)) {
5132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5133 }
5134 arg1 = reinterpret_cast< wxWindow * >(argp1);
5135 if (obj1) {
5136 ecode2 = SWIG_AsVal_int(obj1, &val2);
5137 if (!SWIG_IsOK(ecode2)) {
5138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5139 }
5140 arg2 = static_cast< int >(val2);
5141 }
5142 if (obj2) {
5143 {
5144 arg3 = &temp3;
5145 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5146 }
5147 }
5148 if (obj3) {
5149 {
5150 arg4 = &temp4;
5151 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5152 }
5153 }
5154 if (obj4) {
5155 {
5156 if (! PySequence_Check(obj4)) {
5157 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5158 SWIG_fail;
5159 }
5160 arg5 = new wxArrayString;
5161 temp5 = true;
5162 int i, len=PySequence_Length(obj4);
5163 for (i=0; i<len; i++) {
5164 PyObject* item = PySequence_GetItem(obj4, i);
5165 wxString* s = wxString_in_helper(item);
5166 if (PyErr_Occurred()) SWIG_fail;
5167 arg5->Add(*s);
5168 delete s;
5169 Py_DECREF(item);
5170 }
5171 }
5172 }
5173 if (obj5) {
5174 ecode6 = SWIG_AsVal_long(obj5, &val6);
5175 if (!SWIG_IsOK(ecode6)) {
5176 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5177 }
5178 arg6 = static_cast< long >(val6);
5179 }
5180 if (obj6) {
5181 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5182 if (!SWIG_IsOK(res7)) {
5183 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5184 }
5185 if (!argp7) {
5186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5187 }
5188 arg7 = reinterpret_cast< wxValidator * >(argp7);
5189 }
5190 if (obj7) {
5191 {
5192 arg8 = wxString_in_helper(obj7);
5193 if (arg8 == NULL) SWIG_fail;
5194 temp8 = true;
5195 }
5196 }
5197 {
5198 if (!wxPyCheckForApp()) SWIG_fail;
5199 PyThreadState* __tstate = wxPyBeginAllowThreads();
5200 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5201 wxPyEndAllowThreads(__tstate);
5202 if (PyErr_Occurred()) SWIG_fail;
5203 }
5204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5205 {
5206 if (temp5) delete arg5;
5207 }
5208 {
5209 if (temp8)
5210 delete arg8;
5211 }
5212 return resultobj;
5213 fail:
5214 {
5215 if (temp5) delete arg5;
5216 }
5217 {
5218 if (temp8)
5219 delete arg8;
5220 }
5221 return NULL;
5222 }
5223
5224
5225 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5226 PyObject *resultobj = 0;
5227 wxChoice *result = 0 ;
5228
5229 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5230 {
5231 if (!wxPyCheckForApp()) SWIG_fail;
5232 PyThreadState* __tstate = wxPyBeginAllowThreads();
5233 result = (wxChoice *)new wxChoice();
5234 wxPyEndAllowThreads(__tstate);
5235 if (PyErr_Occurred()) SWIG_fail;
5236 }
5237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5238 return resultobj;
5239 fail:
5240 return NULL;
5241 }
5242
5243
5244 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5245 PyObject *resultobj = 0;
5246 wxChoice *arg1 = (wxChoice *) 0 ;
5247 wxWindow *arg2 = (wxWindow *) 0 ;
5248 int arg3 = (int) -1 ;
5249 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5250 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5251 wxSize const &arg5_defvalue = wxDefaultSize ;
5252 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5253 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5254 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5255 long arg7 = (long) 0 ;
5256 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5257 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5258 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5259 wxString *arg9 = (wxString *) &arg9_defvalue ;
5260 bool result;
5261 void *argp1 = 0 ;
5262 int res1 = 0 ;
5263 void *argp2 = 0 ;
5264 int res2 = 0 ;
5265 int val3 ;
5266 int ecode3 = 0 ;
5267 wxPoint temp4 ;
5268 wxSize temp5 ;
5269 bool temp6 = false ;
5270 long val7 ;
5271 int ecode7 = 0 ;
5272 void *argp8 = 0 ;
5273 int res8 = 0 ;
5274 bool temp9 = false ;
5275 PyObject * obj0 = 0 ;
5276 PyObject * obj1 = 0 ;
5277 PyObject * obj2 = 0 ;
5278 PyObject * obj3 = 0 ;
5279 PyObject * obj4 = 0 ;
5280 PyObject * obj5 = 0 ;
5281 PyObject * obj6 = 0 ;
5282 PyObject * obj7 = 0 ;
5283 PyObject * obj8 = 0 ;
5284 char * kwnames[] = {
5285 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5286 };
5287
5288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5290 if (!SWIG_IsOK(res1)) {
5291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5292 }
5293 arg1 = reinterpret_cast< wxChoice * >(argp1);
5294 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5295 if (!SWIG_IsOK(res2)) {
5296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5297 }
5298 arg2 = reinterpret_cast< wxWindow * >(argp2);
5299 if (obj2) {
5300 ecode3 = SWIG_AsVal_int(obj2, &val3);
5301 if (!SWIG_IsOK(ecode3)) {
5302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5303 }
5304 arg3 = static_cast< int >(val3);
5305 }
5306 if (obj3) {
5307 {
5308 arg4 = &temp4;
5309 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5310 }
5311 }
5312 if (obj4) {
5313 {
5314 arg5 = &temp5;
5315 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5316 }
5317 }
5318 if (obj5) {
5319 {
5320 if (! PySequence_Check(obj5)) {
5321 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5322 SWIG_fail;
5323 }
5324 arg6 = new wxArrayString;
5325 temp6 = true;
5326 int i, len=PySequence_Length(obj5);
5327 for (i=0; i<len; i++) {
5328 PyObject* item = PySequence_GetItem(obj5, i);
5329 wxString* s = wxString_in_helper(item);
5330 if (PyErr_Occurred()) SWIG_fail;
5331 arg6->Add(*s);
5332 delete s;
5333 Py_DECREF(item);
5334 }
5335 }
5336 }
5337 if (obj6) {
5338 ecode7 = SWIG_AsVal_long(obj6, &val7);
5339 if (!SWIG_IsOK(ecode7)) {
5340 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5341 }
5342 arg7 = static_cast< long >(val7);
5343 }
5344 if (obj7) {
5345 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5346 if (!SWIG_IsOK(res8)) {
5347 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5348 }
5349 if (!argp8) {
5350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5351 }
5352 arg8 = reinterpret_cast< wxValidator * >(argp8);
5353 }
5354 if (obj8) {
5355 {
5356 arg9 = wxString_in_helper(obj8);
5357 if (arg9 == NULL) SWIG_fail;
5358 temp9 = true;
5359 }
5360 }
5361 {
5362 PyThreadState* __tstate = wxPyBeginAllowThreads();
5363 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5364 wxPyEndAllowThreads(__tstate);
5365 if (PyErr_Occurred()) SWIG_fail;
5366 }
5367 {
5368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5369 }
5370 {
5371 if (temp6) delete arg6;
5372 }
5373 {
5374 if (temp9)
5375 delete arg9;
5376 }
5377 return resultobj;
5378 fail:
5379 {
5380 if (temp6) delete arg6;
5381 }
5382 {
5383 if (temp9)
5384 delete arg9;
5385 }
5386 return NULL;
5387 }
5388
5389
5390 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5391 PyObject *resultobj = 0;
5392 wxChoice *arg1 = (wxChoice *) 0 ;
5393 int result;
5394 void *argp1 = 0 ;
5395 int res1 = 0 ;
5396 PyObject *swig_obj[1] ;
5397
5398 if (!args) SWIG_fail;
5399 swig_obj[0] = args;
5400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5401 if (!SWIG_IsOK(res1)) {
5402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5403 }
5404 arg1 = reinterpret_cast< wxChoice * >(argp1);
5405 {
5406 PyThreadState* __tstate = wxPyBeginAllowThreads();
5407 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5408 wxPyEndAllowThreads(__tstate);
5409 if (PyErr_Occurred()) SWIG_fail;
5410 }
5411 resultobj = SWIG_From_int(static_cast< int >(result));
5412 return resultobj;
5413 fail:
5414 return NULL;
5415 }
5416
5417
5418 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5419 PyObject *resultobj = 0;
5420 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5421 SwigValueWrapper<wxVisualAttributes > result;
5422 int val1 ;
5423 int ecode1 = 0 ;
5424 PyObject * obj0 = 0 ;
5425 char * kwnames[] = {
5426 (char *) "variant", NULL
5427 };
5428
5429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5430 if (obj0) {
5431 ecode1 = SWIG_AsVal_int(obj0, &val1);
5432 if (!SWIG_IsOK(ecode1)) {
5433 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5434 }
5435 arg1 = static_cast< wxWindowVariant >(val1);
5436 }
5437 {
5438 if (!wxPyCheckForApp()) SWIG_fail;
5439 PyThreadState* __tstate = wxPyBeginAllowThreads();
5440 result = wxChoice::GetClassDefaultAttributes(arg1);
5441 wxPyEndAllowThreads(__tstate);
5442 if (PyErr_Occurred()) SWIG_fail;
5443 }
5444 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5445 return resultobj;
5446 fail:
5447 return NULL;
5448 }
5449
5450
5451 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5452 PyObject *obj;
5453 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5454 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5455 return SWIG_Py_Void();
5456 }
5457
5458 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5459 return SWIG_Python_InitShadowInstance(args);
5460 }
5461
5462 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5463 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5464 return 1;
5465 }
5466
5467
5468 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5469 PyObject *pyobj = 0;
5470
5471 {
5472 #if wxUSE_UNICODE
5473 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5474 #else
5475 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5476 #endif
5477 }
5478 return pyobj;
5479 }
5480
5481
5482 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5483 PyObject *resultobj = 0;
5484 wxWindow *arg1 = (wxWindow *) 0 ;
5485 int arg2 = (int) -1 ;
5486 wxString const &arg3_defvalue = wxPyEmptyString ;
5487 wxString *arg3 = (wxString *) &arg3_defvalue ;
5488 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5489 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5490 wxSize const &arg5_defvalue = wxDefaultSize ;
5491 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5492 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5493 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5494 long arg7 = (long) 0 ;
5495 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5496 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5497 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5498 wxString *arg9 = (wxString *) &arg9_defvalue ;
5499 wxComboBox *result = 0 ;
5500 void *argp1 = 0 ;
5501 int res1 = 0 ;
5502 int val2 ;
5503 int ecode2 = 0 ;
5504 bool temp3 = false ;
5505 wxPoint temp4 ;
5506 wxSize temp5 ;
5507 bool temp6 = false ;
5508 long val7 ;
5509 int ecode7 = 0 ;
5510 void *argp8 = 0 ;
5511 int res8 = 0 ;
5512 bool temp9 = false ;
5513 PyObject * obj0 = 0 ;
5514 PyObject * obj1 = 0 ;
5515 PyObject * obj2 = 0 ;
5516 PyObject * obj3 = 0 ;
5517 PyObject * obj4 = 0 ;
5518 PyObject * obj5 = 0 ;
5519 PyObject * obj6 = 0 ;
5520 PyObject * obj7 = 0 ;
5521 PyObject * obj8 = 0 ;
5522 char * kwnames[] = {
5523 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5524 };
5525
5526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5528 if (!SWIG_IsOK(res1)) {
5529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5530 }
5531 arg1 = reinterpret_cast< wxWindow * >(argp1);
5532 if (obj1) {
5533 ecode2 = SWIG_AsVal_int(obj1, &val2);
5534 if (!SWIG_IsOK(ecode2)) {
5535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5536 }
5537 arg2 = static_cast< int >(val2);
5538 }
5539 if (obj2) {
5540 {
5541 arg3 = wxString_in_helper(obj2);
5542 if (arg3 == NULL) SWIG_fail;
5543 temp3 = true;
5544 }
5545 }
5546 if (obj3) {
5547 {
5548 arg4 = &temp4;
5549 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5550 }
5551 }
5552 if (obj4) {
5553 {
5554 arg5 = &temp5;
5555 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5556 }
5557 }
5558 if (obj5) {
5559 {
5560 if (! PySequence_Check(obj5)) {
5561 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5562 SWIG_fail;
5563 }
5564 arg6 = new wxArrayString;
5565 temp6 = true;
5566 int i, len=PySequence_Length(obj5);
5567 for (i=0; i<len; i++) {
5568 PyObject* item = PySequence_GetItem(obj5, i);
5569 wxString* s = wxString_in_helper(item);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 arg6->Add(*s);
5572 delete s;
5573 Py_DECREF(item);
5574 }
5575 }
5576 }
5577 if (obj6) {
5578 ecode7 = SWIG_AsVal_long(obj6, &val7);
5579 if (!SWIG_IsOK(ecode7)) {
5580 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5581 }
5582 arg7 = static_cast< long >(val7);
5583 }
5584 if (obj7) {
5585 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5586 if (!SWIG_IsOK(res8)) {
5587 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5588 }
5589 if (!argp8) {
5590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5591 }
5592 arg8 = reinterpret_cast< wxValidator * >(argp8);
5593 }
5594 if (obj8) {
5595 {
5596 arg9 = wxString_in_helper(obj8);
5597 if (arg9 == NULL) SWIG_fail;
5598 temp9 = true;
5599 }
5600 }
5601 {
5602 if (!wxPyCheckForApp()) SWIG_fail;
5603 PyThreadState* __tstate = wxPyBeginAllowThreads();
5604 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);
5605 wxPyEndAllowThreads(__tstate);
5606 if (PyErr_Occurred()) SWIG_fail;
5607 }
5608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5609 {
5610 if (temp3)
5611 delete arg3;
5612 }
5613 {
5614 if (temp6) delete arg6;
5615 }
5616 {
5617 if (temp9)
5618 delete arg9;
5619 }
5620 return resultobj;
5621 fail:
5622 {
5623 if (temp3)
5624 delete arg3;
5625 }
5626 {
5627 if (temp6) delete arg6;
5628 }
5629 {
5630 if (temp9)
5631 delete arg9;
5632 }
5633 return NULL;
5634 }
5635
5636
5637 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5638 PyObject *resultobj = 0;
5639 wxComboBox *result = 0 ;
5640
5641 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5642 {
5643 if (!wxPyCheckForApp()) SWIG_fail;
5644 PyThreadState* __tstate = wxPyBeginAllowThreads();
5645 result = (wxComboBox *)new wxComboBox();
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) SWIG_fail;
5648 }
5649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5650 return resultobj;
5651 fail:
5652 return NULL;
5653 }
5654
5655
5656 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj = 0;
5658 wxComboBox *arg1 = (wxComboBox *) 0 ;
5659 wxWindow *arg2 = (wxWindow *) 0 ;
5660 int arg3 = (int) -1 ;
5661 wxString const &arg4_defvalue = wxPyEmptyString ;
5662 wxString *arg4 = (wxString *) &arg4_defvalue ;
5663 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5664 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5665 wxSize const &arg6_defvalue = wxDefaultSize ;
5666 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5667 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5668 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5669 long arg8 = (long) 0 ;
5670 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5671 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5672 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5673 wxString *arg10 = (wxString *) &arg10_defvalue ;
5674 bool result;
5675 void *argp1 = 0 ;
5676 int res1 = 0 ;
5677 void *argp2 = 0 ;
5678 int res2 = 0 ;
5679 int val3 ;
5680 int ecode3 = 0 ;
5681 bool temp4 = false ;
5682 wxPoint temp5 ;
5683 wxSize temp6 ;
5684 bool temp7 = false ;
5685 long val8 ;
5686 int ecode8 = 0 ;
5687 void *argp9 = 0 ;
5688 int res9 = 0 ;
5689 bool temp10 = false ;
5690 PyObject * obj0 = 0 ;
5691 PyObject * obj1 = 0 ;
5692 PyObject * obj2 = 0 ;
5693 PyObject * obj3 = 0 ;
5694 PyObject * obj4 = 0 ;
5695 PyObject * obj5 = 0 ;
5696 PyObject * obj6 = 0 ;
5697 PyObject * obj7 = 0 ;
5698 PyObject * obj8 = 0 ;
5699 PyObject * obj9 = 0 ;
5700 char * kwnames[] = {
5701 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5702 };
5703
5704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5706 if (!SWIG_IsOK(res1)) {
5707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5708 }
5709 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5710 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5711 if (!SWIG_IsOK(res2)) {
5712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5713 }
5714 arg2 = reinterpret_cast< wxWindow * >(argp2);
5715 if (obj2) {
5716 ecode3 = SWIG_AsVal_int(obj2, &val3);
5717 if (!SWIG_IsOK(ecode3)) {
5718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5719 }
5720 arg3 = static_cast< int >(val3);
5721 }
5722 if (obj3) {
5723 {
5724 arg4 = wxString_in_helper(obj3);
5725 if (arg4 == NULL) SWIG_fail;
5726 temp4 = true;
5727 }
5728 }
5729 if (obj4) {
5730 {
5731 arg5 = &temp5;
5732 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5733 }
5734 }
5735 if (obj5) {
5736 {
5737 arg6 = &temp6;
5738 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5739 }
5740 }
5741 if (obj6) {
5742 {
5743 if (! PySequence_Check(obj6)) {
5744 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5745 SWIG_fail;
5746 }
5747 arg7 = new wxArrayString;
5748 temp7 = true;
5749 int i, len=PySequence_Length(obj6);
5750 for (i=0; i<len; i++) {
5751 PyObject* item = PySequence_GetItem(obj6, i);
5752 wxString* s = wxString_in_helper(item);
5753 if (PyErr_Occurred()) SWIG_fail;
5754 arg7->Add(*s);
5755 delete s;
5756 Py_DECREF(item);
5757 }
5758 }
5759 }
5760 if (obj7) {
5761 ecode8 = SWIG_AsVal_long(obj7, &val8);
5762 if (!SWIG_IsOK(ecode8)) {
5763 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5764 }
5765 arg8 = static_cast< long >(val8);
5766 }
5767 if (obj8) {
5768 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5769 if (!SWIG_IsOK(res9)) {
5770 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5771 }
5772 if (!argp9) {
5773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5774 }
5775 arg9 = reinterpret_cast< wxValidator * >(argp9);
5776 }
5777 if (obj9) {
5778 {
5779 arg10 = wxString_in_helper(obj9);
5780 if (arg10 == NULL) SWIG_fail;
5781 temp10 = true;
5782 }
5783 }
5784 {
5785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5786 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);
5787 wxPyEndAllowThreads(__tstate);
5788 if (PyErr_Occurred()) SWIG_fail;
5789 }
5790 {
5791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5792 }
5793 {
5794 if (temp4)
5795 delete arg4;
5796 }
5797 {
5798 if (temp7) delete arg7;
5799 }
5800 {
5801 if (temp10)
5802 delete arg10;
5803 }
5804 return resultobj;
5805 fail:
5806 {
5807 if (temp4)
5808 delete arg4;
5809 }
5810 {
5811 if (temp7) delete arg7;
5812 }
5813 {
5814 if (temp10)
5815 delete arg10;
5816 }
5817 return NULL;
5818 }
5819
5820
5821 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5822 PyObject *resultobj = 0;
5823 wxComboBox *arg1 = (wxComboBox *) 0 ;
5824 wxString result;
5825 void *argp1 = 0 ;
5826 int res1 = 0 ;
5827 PyObject *swig_obj[1] ;
5828
5829 if (!args) SWIG_fail;
5830 swig_obj[0] = args;
5831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5832 if (!SWIG_IsOK(res1)) {
5833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5834 }
5835 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 result = ((wxComboBox const *)arg1)->GetValue();
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 {
5843 #if wxUSE_UNICODE
5844 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5845 #else
5846 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5847 #endif
5848 }
5849 return resultobj;
5850 fail:
5851 return NULL;
5852 }
5853
5854
5855 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5856 PyObject *resultobj = 0;
5857 wxComboBox *arg1 = (wxComboBox *) 0 ;
5858 wxString *arg2 = 0 ;
5859 void *argp1 = 0 ;
5860 int res1 = 0 ;
5861 bool temp2 = false ;
5862 PyObject * obj0 = 0 ;
5863 PyObject * obj1 = 0 ;
5864 char * kwnames[] = {
5865 (char *) "self",(char *) "value", NULL
5866 };
5867
5868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5870 if (!SWIG_IsOK(res1)) {
5871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5872 }
5873 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5874 {
5875 arg2 = wxString_in_helper(obj1);
5876 if (arg2 == NULL) SWIG_fail;
5877 temp2 = true;
5878 }
5879 {
5880 PyThreadState* __tstate = wxPyBeginAllowThreads();
5881 (arg1)->SetValue((wxString const &)*arg2);
5882 wxPyEndAllowThreads(__tstate);
5883 if (PyErr_Occurred()) SWIG_fail;
5884 }
5885 resultobj = SWIG_Py_Void();
5886 {
5887 if (temp2)
5888 delete arg2;
5889 }
5890 return resultobj;
5891 fail:
5892 {
5893 if (temp2)
5894 delete arg2;
5895 }
5896 return NULL;
5897 }
5898
5899
5900 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5901 PyObject *resultobj = 0;
5902 wxComboBox *arg1 = (wxComboBox *) 0 ;
5903 void *argp1 = 0 ;
5904 int res1 = 0 ;
5905 PyObject *swig_obj[1] ;
5906
5907 if (!args) SWIG_fail;
5908 swig_obj[0] = args;
5909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5910 if (!SWIG_IsOK(res1)) {
5911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5912 }
5913 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5914 {
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 (arg1)->Copy();
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_Py_Void();
5921 return resultobj;
5922 fail:
5923 return NULL;
5924 }
5925
5926
5927 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5928 PyObject *resultobj = 0;
5929 wxComboBox *arg1 = (wxComboBox *) 0 ;
5930 void *argp1 = 0 ;
5931 int res1 = 0 ;
5932 PyObject *swig_obj[1] ;
5933
5934 if (!args) SWIG_fail;
5935 swig_obj[0] = args;
5936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5937 if (!SWIG_IsOK(res1)) {
5938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5939 }
5940 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 (arg1)->Cut();
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 resultobj = SWIG_Py_Void();
5948 return resultobj;
5949 fail:
5950 return NULL;
5951 }
5952
5953
5954 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5955 PyObject *resultobj = 0;
5956 wxComboBox *arg1 = (wxComboBox *) 0 ;
5957 void *argp1 = 0 ;
5958 int res1 = 0 ;
5959 PyObject *swig_obj[1] ;
5960
5961 if (!args) SWIG_fail;
5962 swig_obj[0] = args;
5963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5964 if (!SWIG_IsOK(res1)) {
5965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5966 }
5967 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5968 {
5969 PyThreadState* __tstate = wxPyBeginAllowThreads();
5970 (arg1)->Paste();
5971 wxPyEndAllowThreads(__tstate);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 }
5974 resultobj = SWIG_Py_Void();
5975 return resultobj;
5976 fail:
5977 return NULL;
5978 }
5979
5980
5981 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5982 PyObject *resultobj = 0;
5983 wxComboBox *arg1 = (wxComboBox *) 0 ;
5984 long arg2 ;
5985 void *argp1 = 0 ;
5986 int res1 = 0 ;
5987 long val2 ;
5988 int ecode2 = 0 ;
5989 PyObject * obj0 = 0 ;
5990 PyObject * obj1 = 0 ;
5991 char * kwnames[] = {
5992 (char *) "self",(char *) "pos", NULL
5993 };
5994
5995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5997 if (!SWIG_IsOK(res1)) {
5998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5999 }
6000 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6001 ecode2 = SWIG_AsVal_long(obj1, &val2);
6002 if (!SWIG_IsOK(ecode2)) {
6003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6004 }
6005 arg2 = static_cast< long >(val2);
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 (arg1)->SetInsertionPoint(arg2);
6009 wxPyEndAllowThreads(__tstate);
6010 if (PyErr_Occurred()) SWIG_fail;
6011 }
6012 resultobj = SWIG_Py_Void();
6013 return resultobj;
6014 fail:
6015 return NULL;
6016 }
6017
6018
6019 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6020 PyObject *resultobj = 0;
6021 wxComboBox *arg1 = (wxComboBox *) 0 ;
6022 long result;
6023 void *argp1 = 0 ;
6024 int res1 = 0 ;
6025 PyObject *swig_obj[1] ;
6026
6027 if (!args) SWIG_fail;
6028 swig_obj[0] = args;
6029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6030 if (!SWIG_IsOK(res1)) {
6031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6032 }
6033 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6034 {
6035 PyThreadState* __tstate = wxPyBeginAllowThreads();
6036 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6037 wxPyEndAllowThreads(__tstate);
6038 if (PyErr_Occurred()) SWIG_fail;
6039 }
6040 resultobj = SWIG_From_long(static_cast< long >(result));
6041 return resultobj;
6042 fail:
6043 return NULL;
6044 }
6045
6046
6047 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6048 PyObject *resultobj = 0;
6049 wxComboBox *arg1 = (wxComboBox *) 0 ;
6050 long result;
6051 void *argp1 = 0 ;
6052 int res1 = 0 ;
6053 PyObject *swig_obj[1] ;
6054
6055 if (!args) SWIG_fail;
6056 swig_obj[0] = args;
6057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6058 if (!SWIG_IsOK(res1)) {
6059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6060 }
6061 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6062 {
6063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6064 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6065 wxPyEndAllowThreads(__tstate);
6066 if (PyErr_Occurred()) SWIG_fail;
6067 }
6068 resultobj = SWIG_From_long(static_cast< long >(result));
6069 return resultobj;
6070 fail:
6071 return NULL;
6072 }
6073
6074
6075 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6076 PyObject *resultobj = 0;
6077 wxComboBox *arg1 = (wxComboBox *) 0 ;
6078 long arg2 ;
6079 long arg3 ;
6080 wxString *arg4 = 0 ;
6081 void *argp1 = 0 ;
6082 int res1 = 0 ;
6083 long val2 ;
6084 int ecode2 = 0 ;
6085 long val3 ;
6086 int ecode3 = 0 ;
6087 bool temp4 = false ;
6088 PyObject * obj0 = 0 ;
6089 PyObject * obj1 = 0 ;
6090 PyObject * obj2 = 0 ;
6091 PyObject * obj3 = 0 ;
6092 char * kwnames[] = {
6093 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6094 };
6095
6096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6098 if (!SWIG_IsOK(res1)) {
6099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6100 }
6101 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6102 ecode2 = SWIG_AsVal_long(obj1, &val2);
6103 if (!SWIG_IsOK(ecode2)) {
6104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6105 }
6106 arg2 = static_cast< long >(val2);
6107 ecode3 = SWIG_AsVal_long(obj2, &val3);
6108 if (!SWIG_IsOK(ecode3)) {
6109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6110 }
6111 arg3 = static_cast< long >(val3);
6112 {
6113 arg4 = wxString_in_helper(obj3);
6114 if (arg4 == NULL) SWIG_fail;
6115 temp4 = true;
6116 }
6117 {
6118 PyThreadState* __tstate = wxPyBeginAllowThreads();
6119 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6120 wxPyEndAllowThreads(__tstate);
6121 if (PyErr_Occurred()) SWIG_fail;
6122 }
6123 resultobj = SWIG_Py_Void();
6124 {
6125 if (temp4)
6126 delete arg4;
6127 }
6128 return resultobj;
6129 fail:
6130 {
6131 if (temp4)
6132 delete arg4;
6133 }
6134 return NULL;
6135 }
6136
6137
6138 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6139 PyObject *resultobj = 0;
6140 wxComboBox *arg1 = (wxComboBox *) 0 ;
6141 long arg2 ;
6142 long arg3 ;
6143 void *argp1 = 0 ;
6144 int res1 = 0 ;
6145 long val2 ;
6146 int ecode2 = 0 ;
6147 long val3 ;
6148 int ecode3 = 0 ;
6149 PyObject * obj0 = 0 ;
6150 PyObject * obj1 = 0 ;
6151 PyObject * obj2 = 0 ;
6152 char * kwnames[] = {
6153 (char *) "self",(char *) "from",(char *) "to", NULL
6154 };
6155
6156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6158 if (!SWIG_IsOK(res1)) {
6159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6160 }
6161 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6162 ecode2 = SWIG_AsVal_long(obj1, &val2);
6163 if (!SWIG_IsOK(ecode2)) {
6164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6165 }
6166 arg2 = static_cast< long >(val2);
6167 ecode3 = SWIG_AsVal_long(obj2, &val3);
6168 if (!SWIG_IsOK(ecode3)) {
6169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6170 }
6171 arg3 = static_cast< long >(val3);
6172 {
6173 PyThreadState* __tstate = wxPyBeginAllowThreads();
6174 (arg1)->SetSelection(arg2,arg3);
6175 wxPyEndAllowThreads(__tstate);
6176 if (PyErr_Occurred()) SWIG_fail;
6177 }
6178 resultobj = SWIG_Py_Void();
6179 return resultobj;
6180 fail:
6181 return NULL;
6182 }
6183
6184
6185 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6186 PyObject *resultobj = 0;
6187 wxComboBox *arg1 = (wxComboBox *) 0 ;
6188 int result;
6189 void *argp1 = 0 ;
6190 int res1 = 0 ;
6191 PyObject *swig_obj[1] ;
6192
6193 if (!args) SWIG_fail;
6194 swig_obj[0] = args;
6195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6196 if (!SWIG_IsOK(res1)) {
6197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6198 }
6199 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6200 {
6201 PyThreadState* __tstate = wxPyBeginAllowThreads();
6202 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6203 wxPyEndAllowThreads(__tstate);
6204 if (PyErr_Occurred()) SWIG_fail;
6205 }
6206 resultobj = SWIG_From_int(static_cast< int >(result));
6207 return resultobj;
6208 fail:
6209 return NULL;
6210 }
6211
6212
6213 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6214 PyObject *resultobj = 0;
6215 wxComboBox *arg1 = (wxComboBox *) 0 ;
6216 wxString *arg2 = 0 ;
6217 bool result;
6218 void *argp1 = 0 ;
6219 int res1 = 0 ;
6220 bool temp2 = false ;
6221 PyObject * obj0 = 0 ;
6222 PyObject * obj1 = 0 ;
6223 char * kwnames[] = {
6224 (char *) "self",(char *) "string", NULL
6225 };
6226
6227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6229 if (!SWIG_IsOK(res1)) {
6230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6231 }
6232 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6233 {
6234 arg2 = wxString_in_helper(obj1);
6235 if (arg2 == NULL) SWIG_fail;
6236 temp2 = true;
6237 }
6238 {
6239 PyThreadState* __tstate = wxPyBeginAllowThreads();
6240 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6241 wxPyEndAllowThreads(__tstate);
6242 if (PyErr_Occurred()) SWIG_fail;
6243 }
6244 {
6245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6246 }
6247 {
6248 if (temp2)
6249 delete arg2;
6250 }
6251 return resultobj;
6252 fail:
6253 {
6254 if (temp2)
6255 delete arg2;
6256 }
6257 return NULL;
6258 }
6259
6260
6261 SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6262 PyObject *resultobj = 0;
6263 wxComboBox *arg1 = (wxComboBox *) 0 ;
6264 int arg2 ;
6265 wxString *arg3 = 0 ;
6266 void *argp1 = 0 ;
6267 int res1 = 0 ;
6268 int val2 ;
6269 int ecode2 = 0 ;
6270 bool temp3 = false ;
6271 PyObject * obj0 = 0 ;
6272 PyObject * obj1 = 0 ;
6273 PyObject * obj2 = 0 ;
6274 char * kwnames[] = {
6275 (char *) "self",(char *) "n",(char *) "string", NULL
6276 };
6277
6278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6280 if (!SWIG_IsOK(res1)) {
6281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6282 }
6283 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6284 ecode2 = SWIG_AsVal_int(obj1, &val2);
6285 if (!SWIG_IsOK(ecode2)) {
6286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6287 }
6288 arg2 = static_cast< int >(val2);
6289 {
6290 arg3 = wxString_in_helper(obj2);
6291 if (arg3 == NULL) SWIG_fail;
6292 temp3 = true;
6293 }
6294 {
6295 PyThreadState* __tstate = wxPyBeginAllowThreads();
6296 (arg1)->SetString(arg2,(wxString const &)*arg3);
6297 wxPyEndAllowThreads(__tstate);
6298 if (PyErr_Occurred()) SWIG_fail;
6299 }
6300 resultobj = SWIG_Py_Void();
6301 {
6302 if (temp3)
6303 delete arg3;
6304 }
6305 return resultobj;
6306 fail:
6307 {
6308 if (temp3)
6309 delete arg3;
6310 }
6311 return NULL;
6312 }
6313
6314
6315 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6316 PyObject *resultobj = 0;
6317 wxComboBox *arg1 = (wxComboBox *) 0 ;
6318 bool arg2 ;
6319 void *argp1 = 0 ;
6320 int res1 = 0 ;
6321 bool val2 ;
6322 int ecode2 = 0 ;
6323 PyObject * obj0 = 0 ;
6324 PyObject * obj1 = 0 ;
6325 char * kwnames[] = {
6326 (char *) "self",(char *) "editable", NULL
6327 };
6328
6329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6331 if (!SWIG_IsOK(res1)) {
6332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6333 }
6334 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6335 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6336 if (!SWIG_IsOK(ecode2)) {
6337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6338 }
6339 arg2 = static_cast< bool >(val2);
6340 {
6341 PyThreadState* __tstate = wxPyBeginAllowThreads();
6342 (arg1)->SetEditable(arg2);
6343 wxPyEndAllowThreads(__tstate);
6344 if (PyErr_Occurred()) SWIG_fail;
6345 }
6346 resultobj = SWIG_Py_Void();
6347 return resultobj;
6348 fail:
6349 return NULL;
6350 }
6351
6352
6353 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6354 PyObject *resultobj = 0;
6355 wxComboBox *arg1 = (wxComboBox *) 0 ;
6356 void *argp1 = 0 ;
6357 int res1 = 0 ;
6358 PyObject *swig_obj[1] ;
6359
6360 if (!args) SWIG_fail;
6361 swig_obj[0] = args;
6362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6363 if (!SWIG_IsOK(res1)) {
6364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6365 }
6366 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6367 {
6368 PyThreadState* __tstate = wxPyBeginAllowThreads();
6369 (arg1)->SetInsertionPointEnd();
6370 wxPyEndAllowThreads(__tstate);
6371 if (PyErr_Occurred()) SWIG_fail;
6372 }
6373 resultobj = SWIG_Py_Void();
6374 return resultobj;
6375 fail:
6376 return NULL;
6377 }
6378
6379
6380 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6381 PyObject *resultobj = 0;
6382 wxComboBox *arg1 = (wxComboBox *) 0 ;
6383 long arg2 ;
6384 long arg3 ;
6385 void *argp1 = 0 ;
6386 int res1 = 0 ;
6387 long val2 ;
6388 int ecode2 = 0 ;
6389 long val3 ;
6390 int ecode3 = 0 ;
6391 PyObject * obj0 = 0 ;
6392 PyObject * obj1 = 0 ;
6393 PyObject * obj2 = 0 ;
6394 char * kwnames[] = {
6395 (char *) "self",(char *) "from",(char *) "to", NULL
6396 };
6397
6398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6400 if (!SWIG_IsOK(res1)) {
6401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6402 }
6403 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6404 ecode2 = SWIG_AsVal_long(obj1, &val2);
6405 if (!SWIG_IsOK(ecode2)) {
6406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6407 }
6408 arg2 = static_cast< long >(val2);
6409 ecode3 = SWIG_AsVal_long(obj2, &val3);
6410 if (!SWIG_IsOK(ecode3)) {
6411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6412 }
6413 arg3 = static_cast< long >(val3);
6414 {
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
6416 (arg1)->Remove(arg2,arg3);
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 resultobj = SWIG_Py_Void();
6421 return resultobj;
6422 fail:
6423 return NULL;
6424 }
6425
6426
6427 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6428 PyObject *resultobj = 0;
6429 wxComboBox *arg1 = (wxComboBox *) 0 ;
6430 bool result;
6431 void *argp1 = 0 ;
6432 int res1 = 0 ;
6433 PyObject *swig_obj[1] ;
6434
6435 if (!args) SWIG_fail;
6436 swig_obj[0] = args;
6437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6438 if (!SWIG_IsOK(res1)) {
6439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6440 }
6441 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6442 {
6443 PyThreadState* __tstate = wxPyBeginAllowThreads();
6444 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6445 wxPyEndAllowThreads(__tstate);
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 {
6449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6450 }
6451 return resultobj;
6452 fail:
6453 return NULL;
6454 }
6455
6456
6457 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6458 PyObject *resultobj = 0;
6459 wxComboBox *arg1 = (wxComboBox *) 0 ;
6460 void *argp1 = 0 ;
6461 int res1 = 0 ;
6462 PyObject *swig_obj[1] ;
6463
6464 if (!args) SWIG_fail;
6465 swig_obj[0] = args;
6466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6467 if (!SWIG_IsOK(res1)) {
6468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6469 }
6470 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6471 {
6472 PyThreadState* __tstate = wxPyBeginAllowThreads();
6473 (arg1)->Undo();
6474 wxPyEndAllowThreads(__tstate);
6475 if (PyErr_Occurred()) SWIG_fail;
6476 }
6477 resultobj = SWIG_Py_Void();
6478 return resultobj;
6479 fail:
6480 return NULL;
6481 }
6482
6483
6484 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6485 PyObject *resultobj = 0;
6486 wxComboBox *arg1 = (wxComboBox *) 0 ;
6487 void *argp1 = 0 ;
6488 int res1 = 0 ;
6489 PyObject *swig_obj[1] ;
6490
6491 if (!args) SWIG_fail;
6492 swig_obj[0] = args;
6493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6494 if (!SWIG_IsOK(res1)) {
6495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6496 }
6497 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6498 {
6499 PyThreadState* __tstate = wxPyBeginAllowThreads();
6500 (arg1)->Redo();
6501 wxPyEndAllowThreads(__tstate);
6502 if (PyErr_Occurred()) SWIG_fail;
6503 }
6504 resultobj = SWIG_Py_Void();
6505 return resultobj;
6506 fail:
6507 return NULL;
6508 }
6509
6510
6511 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6512 PyObject *resultobj = 0;
6513 wxComboBox *arg1 = (wxComboBox *) 0 ;
6514 void *argp1 = 0 ;
6515 int res1 = 0 ;
6516 PyObject *swig_obj[1] ;
6517
6518 if (!args) SWIG_fail;
6519 swig_obj[0] = args;
6520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6521 if (!SWIG_IsOK(res1)) {
6522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6523 }
6524 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6525 {
6526 PyThreadState* __tstate = wxPyBeginAllowThreads();
6527 (arg1)->SelectAll();
6528 wxPyEndAllowThreads(__tstate);
6529 if (PyErr_Occurred()) SWIG_fail;
6530 }
6531 resultobj = SWIG_Py_Void();
6532 return resultobj;
6533 fail:
6534 return NULL;
6535 }
6536
6537
6538 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6539 PyObject *resultobj = 0;
6540 wxComboBox *arg1 = (wxComboBox *) 0 ;
6541 bool result;
6542 void *argp1 = 0 ;
6543 int res1 = 0 ;
6544 PyObject *swig_obj[1] ;
6545
6546 if (!args) SWIG_fail;
6547 swig_obj[0] = args;
6548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6549 if (!SWIG_IsOK(res1)) {
6550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6551 }
6552 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6553 {
6554 PyThreadState* __tstate = wxPyBeginAllowThreads();
6555 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6556 wxPyEndAllowThreads(__tstate);
6557 if (PyErr_Occurred()) SWIG_fail;
6558 }
6559 {
6560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6561 }
6562 return resultobj;
6563 fail:
6564 return NULL;
6565 }
6566
6567
6568 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6569 PyObject *resultobj = 0;
6570 wxComboBox *arg1 = (wxComboBox *) 0 ;
6571 bool result;
6572 void *argp1 = 0 ;
6573 int res1 = 0 ;
6574 PyObject *swig_obj[1] ;
6575
6576 if (!args) SWIG_fail;
6577 swig_obj[0] = args;
6578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6579 if (!SWIG_IsOK(res1)) {
6580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6581 }
6582 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6583 {
6584 PyThreadState* __tstate = wxPyBeginAllowThreads();
6585 result = (bool)((wxComboBox const *)arg1)->CanCut();
6586 wxPyEndAllowThreads(__tstate);
6587 if (PyErr_Occurred()) SWIG_fail;
6588 }
6589 {
6590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6591 }
6592 return resultobj;
6593 fail:
6594 return NULL;
6595 }
6596
6597
6598 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6599 PyObject *resultobj = 0;
6600 wxComboBox *arg1 = (wxComboBox *) 0 ;
6601 bool result;
6602 void *argp1 = 0 ;
6603 int res1 = 0 ;
6604 PyObject *swig_obj[1] ;
6605
6606 if (!args) SWIG_fail;
6607 swig_obj[0] = args;
6608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6609 if (!SWIG_IsOK(res1)) {
6610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6611 }
6612 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6613 {
6614 PyThreadState* __tstate = wxPyBeginAllowThreads();
6615 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6616 wxPyEndAllowThreads(__tstate);
6617 if (PyErr_Occurred()) SWIG_fail;
6618 }
6619 {
6620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6621 }
6622 return resultobj;
6623 fail:
6624 return NULL;
6625 }
6626
6627
6628 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6629 PyObject *resultobj = 0;
6630 wxComboBox *arg1 = (wxComboBox *) 0 ;
6631 bool result;
6632 void *argp1 = 0 ;
6633 int res1 = 0 ;
6634 PyObject *swig_obj[1] ;
6635
6636 if (!args) SWIG_fail;
6637 swig_obj[0] = args;
6638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6639 if (!SWIG_IsOK(res1)) {
6640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6641 }
6642 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6643 {
6644 PyThreadState* __tstate = wxPyBeginAllowThreads();
6645 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6646 wxPyEndAllowThreads(__tstate);
6647 if (PyErr_Occurred()) SWIG_fail;
6648 }
6649 {
6650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6651 }
6652 return resultobj;
6653 fail:
6654 return NULL;
6655 }
6656
6657
6658 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6659 PyObject *resultobj = 0;
6660 wxComboBox *arg1 = (wxComboBox *) 0 ;
6661 bool result;
6662 void *argp1 = 0 ;
6663 int res1 = 0 ;
6664 PyObject *swig_obj[1] ;
6665
6666 if (!args) SWIG_fail;
6667 swig_obj[0] = args;
6668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6669 if (!SWIG_IsOK(res1)) {
6670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6671 }
6672 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6673 {
6674 PyThreadState* __tstate = wxPyBeginAllowThreads();
6675 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6676 wxPyEndAllowThreads(__tstate);
6677 if (PyErr_Occurred()) SWIG_fail;
6678 }
6679 {
6680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6681 }
6682 return resultobj;
6683 fail:
6684 return NULL;
6685 }
6686
6687
6688 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6689 PyObject *resultobj = 0;
6690 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6691 SwigValueWrapper<wxVisualAttributes > result;
6692 int val1 ;
6693 int ecode1 = 0 ;
6694 PyObject * obj0 = 0 ;
6695 char * kwnames[] = {
6696 (char *) "variant", NULL
6697 };
6698
6699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6700 if (obj0) {
6701 ecode1 = SWIG_AsVal_int(obj0, &val1);
6702 if (!SWIG_IsOK(ecode1)) {
6703 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6704 }
6705 arg1 = static_cast< wxWindowVariant >(val1);
6706 }
6707 {
6708 if (!wxPyCheckForApp()) SWIG_fail;
6709 PyThreadState* __tstate = wxPyBeginAllowThreads();
6710 result = wxComboBox::GetClassDefaultAttributes(arg1);
6711 wxPyEndAllowThreads(__tstate);
6712 if (PyErr_Occurred()) SWIG_fail;
6713 }
6714 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6715 return resultobj;
6716 fail:
6717 return NULL;
6718 }
6719
6720
6721 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6722 PyObject *obj;
6723 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6724 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6725 return SWIG_Py_Void();
6726 }
6727
6728 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6729 return SWIG_Python_InitShadowInstance(args);
6730 }
6731
6732 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6733 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6734 return 1;
6735 }
6736
6737
6738 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6739 PyObject *pyobj = 0;
6740
6741 {
6742 #if wxUSE_UNICODE
6743 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6744 #else
6745 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6746 #endif
6747 }
6748 return pyobj;
6749 }
6750
6751
6752 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6753 PyObject *resultobj = 0;
6754 wxWindow *arg1 = (wxWindow *) 0 ;
6755 int arg2 = (int) -1 ;
6756 int arg3 = (int) 100 ;
6757 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6758 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6759 wxSize const &arg5_defvalue = wxDefaultSize ;
6760 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6761 long arg6 = (long) wxGA_HORIZONTAL ;
6762 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6763 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6764 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6765 wxString *arg8 = (wxString *) &arg8_defvalue ;
6766 wxGauge *result = 0 ;
6767 void *argp1 = 0 ;
6768 int res1 = 0 ;
6769 int val2 ;
6770 int ecode2 = 0 ;
6771 int val3 ;
6772 int ecode3 = 0 ;
6773 wxPoint temp4 ;
6774 wxSize temp5 ;
6775 long val6 ;
6776 int ecode6 = 0 ;
6777 void *argp7 = 0 ;
6778 int res7 = 0 ;
6779 bool temp8 = false ;
6780 PyObject * obj0 = 0 ;
6781 PyObject * obj1 = 0 ;
6782 PyObject * obj2 = 0 ;
6783 PyObject * obj3 = 0 ;
6784 PyObject * obj4 = 0 ;
6785 PyObject * obj5 = 0 ;
6786 PyObject * obj6 = 0 ;
6787 PyObject * obj7 = 0 ;
6788 char * kwnames[] = {
6789 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6790 };
6791
6792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6794 if (!SWIG_IsOK(res1)) {
6795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6796 }
6797 arg1 = reinterpret_cast< wxWindow * >(argp1);
6798 if (obj1) {
6799 ecode2 = SWIG_AsVal_int(obj1, &val2);
6800 if (!SWIG_IsOK(ecode2)) {
6801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6802 }
6803 arg2 = static_cast< int >(val2);
6804 }
6805 if (obj2) {
6806 ecode3 = SWIG_AsVal_int(obj2, &val3);
6807 if (!SWIG_IsOK(ecode3)) {
6808 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6809 }
6810 arg3 = static_cast< int >(val3);
6811 }
6812 if (obj3) {
6813 {
6814 arg4 = &temp4;
6815 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6816 }
6817 }
6818 if (obj4) {
6819 {
6820 arg5 = &temp5;
6821 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6822 }
6823 }
6824 if (obj5) {
6825 ecode6 = SWIG_AsVal_long(obj5, &val6);
6826 if (!SWIG_IsOK(ecode6)) {
6827 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6828 }
6829 arg6 = static_cast< long >(val6);
6830 }
6831 if (obj6) {
6832 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6833 if (!SWIG_IsOK(res7)) {
6834 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6835 }
6836 if (!argp7) {
6837 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6838 }
6839 arg7 = reinterpret_cast< wxValidator * >(argp7);
6840 }
6841 if (obj7) {
6842 {
6843 arg8 = wxString_in_helper(obj7);
6844 if (arg8 == NULL) SWIG_fail;
6845 temp8 = true;
6846 }
6847 }
6848 {
6849 if (!wxPyCheckForApp()) SWIG_fail;
6850 PyThreadState* __tstate = wxPyBeginAllowThreads();
6851 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6852 wxPyEndAllowThreads(__tstate);
6853 if (PyErr_Occurred()) SWIG_fail;
6854 }
6855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6856 {
6857 if (temp8)
6858 delete arg8;
6859 }
6860 return resultobj;
6861 fail:
6862 {
6863 if (temp8)
6864 delete arg8;
6865 }
6866 return NULL;
6867 }
6868
6869
6870 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6871 PyObject *resultobj = 0;
6872 wxGauge *result = 0 ;
6873
6874 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6875 {
6876 if (!wxPyCheckForApp()) SWIG_fail;
6877 PyThreadState* __tstate = wxPyBeginAllowThreads();
6878 result = (wxGauge *)new wxGauge();
6879 wxPyEndAllowThreads(__tstate);
6880 if (PyErr_Occurred()) SWIG_fail;
6881 }
6882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6883 return resultobj;
6884 fail:
6885 return NULL;
6886 }
6887
6888
6889 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6890 PyObject *resultobj = 0;
6891 wxGauge *arg1 = (wxGauge *) 0 ;
6892 wxWindow *arg2 = (wxWindow *) 0 ;
6893 int arg3 = (int) -1 ;
6894 int arg4 = (int) 100 ;
6895 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6896 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6897 wxSize const &arg6_defvalue = wxDefaultSize ;
6898 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6899 long arg7 = (long) wxGA_HORIZONTAL ;
6900 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6901 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6902 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6903 wxString *arg9 = (wxString *) &arg9_defvalue ;
6904 bool result;
6905 void *argp1 = 0 ;
6906 int res1 = 0 ;
6907 void *argp2 = 0 ;
6908 int res2 = 0 ;
6909 int val3 ;
6910 int ecode3 = 0 ;
6911 int val4 ;
6912 int ecode4 = 0 ;
6913 wxPoint temp5 ;
6914 wxSize temp6 ;
6915 long val7 ;
6916 int ecode7 = 0 ;
6917 void *argp8 = 0 ;
6918 int res8 = 0 ;
6919 bool temp9 = false ;
6920 PyObject * obj0 = 0 ;
6921 PyObject * obj1 = 0 ;
6922 PyObject * obj2 = 0 ;
6923 PyObject * obj3 = 0 ;
6924 PyObject * obj4 = 0 ;
6925 PyObject * obj5 = 0 ;
6926 PyObject * obj6 = 0 ;
6927 PyObject * obj7 = 0 ;
6928 PyObject * obj8 = 0 ;
6929 char * kwnames[] = {
6930 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6931 };
6932
6933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6935 if (!SWIG_IsOK(res1)) {
6936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6937 }
6938 arg1 = reinterpret_cast< wxGauge * >(argp1);
6939 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6940 if (!SWIG_IsOK(res2)) {
6941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6942 }
6943 arg2 = reinterpret_cast< wxWindow * >(argp2);
6944 if (obj2) {
6945 ecode3 = SWIG_AsVal_int(obj2, &val3);
6946 if (!SWIG_IsOK(ecode3)) {
6947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6948 }
6949 arg3 = static_cast< int >(val3);
6950 }
6951 if (obj3) {
6952 ecode4 = SWIG_AsVal_int(obj3, &val4);
6953 if (!SWIG_IsOK(ecode4)) {
6954 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6955 }
6956 arg4 = static_cast< int >(val4);
6957 }
6958 if (obj4) {
6959 {
6960 arg5 = &temp5;
6961 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6962 }
6963 }
6964 if (obj5) {
6965 {
6966 arg6 = &temp6;
6967 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6968 }
6969 }
6970 if (obj6) {
6971 ecode7 = SWIG_AsVal_long(obj6, &val7);
6972 if (!SWIG_IsOK(ecode7)) {
6973 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6974 }
6975 arg7 = static_cast< long >(val7);
6976 }
6977 if (obj7) {
6978 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6979 if (!SWIG_IsOK(res8)) {
6980 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6981 }
6982 if (!argp8) {
6983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6984 }
6985 arg8 = reinterpret_cast< wxValidator * >(argp8);
6986 }
6987 if (obj8) {
6988 {
6989 arg9 = wxString_in_helper(obj8);
6990 if (arg9 == NULL) SWIG_fail;
6991 temp9 = true;
6992 }
6993 }
6994 {
6995 PyThreadState* __tstate = wxPyBeginAllowThreads();
6996 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6997 wxPyEndAllowThreads(__tstate);
6998 if (PyErr_Occurred()) SWIG_fail;
6999 }
7000 {
7001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7002 }
7003 {
7004 if (temp9)
7005 delete arg9;
7006 }
7007 return resultobj;
7008 fail:
7009 {
7010 if (temp9)
7011 delete arg9;
7012 }
7013 return NULL;
7014 }
7015
7016
7017 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7018 PyObject *resultobj = 0;
7019 wxGauge *arg1 = (wxGauge *) 0 ;
7020 int arg2 ;
7021 void *argp1 = 0 ;
7022 int res1 = 0 ;
7023 int val2 ;
7024 int ecode2 = 0 ;
7025 PyObject * obj0 = 0 ;
7026 PyObject * obj1 = 0 ;
7027 char * kwnames[] = {
7028 (char *) "self",(char *) "range", NULL
7029 };
7030
7031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7033 if (!SWIG_IsOK(res1)) {
7034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7035 }
7036 arg1 = reinterpret_cast< wxGauge * >(argp1);
7037 ecode2 = SWIG_AsVal_int(obj1, &val2);
7038 if (!SWIG_IsOK(ecode2)) {
7039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7040 }
7041 arg2 = static_cast< int >(val2);
7042 {
7043 PyThreadState* __tstate = wxPyBeginAllowThreads();
7044 (arg1)->SetRange(arg2);
7045 wxPyEndAllowThreads(__tstate);
7046 if (PyErr_Occurred()) SWIG_fail;
7047 }
7048 resultobj = SWIG_Py_Void();
7049 return resultobj;
7050 fail:
7051 return NULL;
7052 }
7053
7054
7055 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7056 PyObject *resultobj = 0;
7057 wxGauge *arg1 = (wxGauge *) 0 ;
7058 int result;
7059 void *argp1 = 0 ;
7060 int res1 = 0 ;
7061 PyObject *swig_obj[1] ;
7062
7063 if (!args) SWIG_fail;
7064 swig_obj[0] = args;
7065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7066 if (!SWIG_IsOK(res1)) {
7067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7068 }
7069 arg1 = reinterpret_cast< wxGauge * >(argp1);
7070 {
7071 PyThreadState* __tstate = wxPyBeginAllowThreads();
7072 result = (int)((wxGauge const *)arg1)->GetRange();
7073 wxPyEndAllowThreads(__tstate);
7074 if (PyErr_Occurred()) SWIG_fail;
7075 }
7076 resultobj = SWIG_From_int(static_cast< int >(result));
7077 return resultobj;
7078 fail:
7079 return NULL;
7080 }
7081
7082
7083 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7084 PyObject *resultobj = 0;
7085 wxGauge *arg1 = (wxGauge *) 0 ;
7086 int arg2 ;
7087 void *argp1 = 0 ;
7088 int res1 = 0 ;
7089 int val2 ;
7090 int ecode2 = 0 ;
7091 PyObject * obj0 = 0 ;
7092 PyObject * obj1 = 0 ;
7093 char * kwnames[] = {
7094 (char *) "self",(char *) "pos", NULL
7095 };
7096
7097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7099 if (!SWIG_IsOK(res1)) {
7100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7101 }
7102 arg1 = reinterpret_cast< wxGauge * >(argp1);
7103 ecode2 = SWIG_AsVal_int(obj1, &val2);
7104 if (!SWIG_IsOK(ecode2)) {
7105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7106 }
7107 arg2 = static_cast< int >(val2);
7108 {
7109 PyThreadState* __tstate = wxPyBeginAllowThreads();
7110 (arg1)->SetValue(arg2);
7111 wxPyEndAllowThreads(__tstate);
7112 if (PyErr_Occurred()) SWIG_fail;
7113 }
7114 resultobj = SWIG_Py_Void();
7115 return resultobj;
7116 fail:
7117 return NULL;
7118 }
7119
7120
7121 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7122 PyObject *resultobj = 0;
7123 wxGauge *arg1 = (wxGauge *) 0 ;
7124 int result;
7125 void *argp1 = 0 ;
7126 int res1 = 0 ;
7127 PyObject *swig_obj[1] ;
7128
7129 if (!args) SWIG_fail;
7130 swig_obj[0] = args;
7131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7132 if (!SWIG_IsOK(res1)) {
7133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7134 }
7135 arg1 = reinterpret_cast< wxGauge * >(argp1);
7136 {
7137 PyThreadState* __tstate = wxPyBeginAllowThreads();
7138 result = (int)((wxGauge const *)arg1)->GetValue();
7139 wxPyEndAllowThreads(__tstate);
7140 if (PyErr_Occurred()) SWIG_fail;
7141 }
7142 resultobj = SWIG_From_int(static_cast< int >(result));
7143 return resultobj;
7144 fail:
7145 return NULL;
7146 }
7147
7148
7149 SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7150 PyObject *resultobj = 0;
7151 wxGauge *arg1 = (wxGauge *) 0 ;
7152 void *argp1 = 0 ;
7153 int res1 = 0 ;
7154 PyObject *swig_obj[1] ;
7155
7156 if (!args) SWIG_fail;
7157 swig_obj[0] = args;
7158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7159 if (!SWIG_IsOK(res1)) {
7160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7161 }
7162 arg1 = reinterpret_cast< wxGauge * >(argp1);
7163 {
7164 PyThreadState* __tstate = wxPyBeginAllowThreads();
7165 (arg1)->Pulse();
7166 wxPyEndAllowThreads(__tstate);
7167 if (PyErr_Occurred()) SWIG_fail;
7168 }
7169 resultobj = SWIG_Py_Void();
7170 return resultobj;
7171 fail:
7172 return NULL;
7173 }
7174
7175
7176 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7177 PyObject *resultobj = 0;
7178 wxGauge *arg1 = (wxGauge *) 0 ;
7179 bool result;
7180 void *argp1 = 0 ;
7181 int res1 = 0 ;
7182 PyObject *swig_obj[1] ;
7183
7184 if (!args) SWIG_fail;
7185 swig_obj[0] = args;
7186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7187 if (!SWIG_IsOK(res1)) {
7188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7189 }
7190 arg1 = reinterpret_cast< wxGauge * >(argp1);
7191 {
7192 PyThreadState* __tstate = wxPyBeginAllowThreads();
7193 result = (bool)((wxGauge const *)arg1)->IsVertical();
7194 wxPyEndAllowThreads(__tstate);
7195 if (PyErr_Occurred()) SWIG_fail;
7196 }
7197 {
7198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7199 }
7200 return resultobj;
7201 fail:
7202 return NULL;
7203 }
7204
7205
7206 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7207 PyObject *resultobj = 0;
7208 wxGauge *arg1 = (wxGauge *) 0 ;
7209 int arg2 ;
7210 void *argp1 = 0 ;
7211 int res1 = 0 ;
7212 int val2 ;
7213 int ecode2 = 0 ;
7214 PyObject * obj0 = 0 ;
7215 PyObject * obj1 = 0 ;
7216 char * kwnames[] = {
7217 (char *) "self",(char *) "w", NULL
7218 };
7219
7220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7222 if (!SWIG_IsOK(res1)) {
7223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7224 }
7225 arg1 = reinterpret_cast< wxGauge * >(argp1);
7226 ecode2 = SWIG_AsVal_int(obj1, &val2);
7227 if (!SWIG_IsOK(ecode2)) {
7228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7229 }
7230 arg2 = static_cast< int >(val2);
7231 {
7232 PyThreadState* __tstate = wxPyBeginAllowThreads();
7233 (arg1)->SetShadowWidth(arg2);
7234 wxPyEndAllowThreads(__tstate);
7235 if (PyErr_Occurred()) SWIG_fail;
7236 }
7237 resultobj = SWIG_Py_Void();
7238 return resultobj;
7239 fail:
7240 return NULL;
7241 }
7242
7243
7244 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7245 PyObject *resultobj = 0;
7246 wxGauge *arg1 = (wxGauge *) 0 ;
7247 int result;
7248 void *argp1 = 0 ;
7249 int res1 = 0 ;
7250 PyObject *swig_obj[1] ;
7251
7252 if (!args) SWIG_fail;
7253 swig_obj[0] = args;
7254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7255 if (!SWIG_IsOK(res1)) {
7256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7257 }
7258 arg1 = reinterpret_cast< wxGauge * >(argp1);
7259 {
7260 PyThreadState* __tstate = wxPyBeginAllowThreads();
7261 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7262 wxPyEndAllowThreads(__tstate);
7263 if (PyErr_Occurred()) SWIG_fail;
7264 }
7265 resultobj = SWIG_From_int(static_cast< int >(result));
7266 return resultobj;
7267 fail:
7268 return NULL;
7269 }
7270
7271
7272 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7273 PyObject *resultobj = 0;
7274 wxGauge *arg1 = (wxGauge *) 0 ;
7275 int arg2 ;
7276 void *argp1 = 0 ;
7277 int res1 = 0 ;
7278 int val2 ;
7279 int ecode2 = 0 ;
7280 PyObject * obj0 = 0 ;
7281 PyObject * obj1 = 0 ;
7282 char * kwnames[] = {
7283 (char *) "self",(char *) "w", NULL
7284 };
7285
7286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7288 if (!SWIG_IsOK(res1)) {
7289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7290 }
7291 arg1 = reinterpret_cast< wxGauge * >(argp1);
7292 ecode2 = SWIG_AsVal_int(obj1, &val2);
7293 if (!SWIG_IsOK(ecode2)) {
7294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7295 }
7296 arg2 = static_cast< int >(val2);
7297 {
7298 PyThreadState* __tstate = wxPyBeginAllowThreads();
7299 (arg1)->SetBezelFace(arg2);
7300 wxPyEndAllowThreads(__tstate);
7301 if (PyErr_Occurred()) SWIG_fail;
7302 }
7303 resultobj = SWIG_Py_Void();
7304 return resultobj;
7305 fail:
7306 return NULL;
7307 }
7308
7309
7310 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7311 PyObject *resultobj = 0;
7312 wxGauge *arg1 = (wxGauge *) 0 ;
7313 int result;
7314 void *argp1 = 0 ;
7315 int res1 = 0 ;
7316 PyObject *swig_obj[1] ;
7317
7318 if (!args) SWIG_fail;
7319 swig_obj[0] = args;
7320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7321 if (!SWIG_IsOK(res1)) {
7322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7323 }
7324 arg1 = reinterpret_cast< wxGauge * >(argp1);
7325 {
7326 PyThreadState* __tstate = wxPyBeginAllowThreads();
7327 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7328 wxPyEndAllowThreads(__tstate);
7329 if (PyErr_Occurred()) SWIG_fail;
7330 }
7331 resultobj = SWIG_From_int(static_cast< int >(result));
7332 return resultobj;
7333 fail:
7334 return NULL;
7335 }
7336
7337
7338 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7339 PyObject *resultobj = 0;
7340 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7341 SwigValueWrapper<wxVisualAttributes > result;
7342 int val1 ;
7343 int ecode1 = 0 ;
7344 PyObject * obj0 = 0 ;
7345 char * kwnames[] = {
7346 (char *) "variant", NULL
7347 };
7348
7349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7350 if (obj0) {
7351 ecode1 = SWIG_AsVal_int(obj0, &val1);
7352 if (!SWIG_IsOK(ecode1)) {
7353 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7354 }
7355 arg1 = static_cast< wxWindowVariant >(val1);
7356 }
7357 {
7358 if (!wxPyCheckForApp()) SWIG_fail;
7359 PyThreadState* __tstate = wxPyBeginAllowThreads();
7360 result = wxGauge::GetClassDefaultAttributes(arg1);
7361 wxPyEndAllowThreads(__tstate);
7362 if (PyErr_Occurred()) SWIG_fail;
7363 }
7364 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7365 return resultobj;
7366 fail:
7367 return NULL;
7368 }
7369
7370
7371 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7372 PyObject *obj;
7373 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7374 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7375 return SWIG_Py_Void();
7376 }
7377
7378 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7379 return SWIG_Python_InitShadowInstance(args);
7380 }
7381
7382 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7383 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7384 return 1;
7385 }
7386
7387
7388 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7389 PyObject *pyobj = 0;
7390
7391 {
7392 #if wxUSE_UNICODE
7393 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7394 #else
7395 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7396 #endif
7397 }
7398 return pyobj;
7399 }
7400
7401
7402 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7403 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7404 return 1;
7405 }
7406
7407
7408 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7409 PyObject *pyobj = 0;
7410
7411 {
7412 #if wxUSE_UNICODE
7413 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7414 #else
7415 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7416 #endif
7417 }
7418 return pyobj;
7419 }
7420
7421
7422 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7423 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7424 return 1;
7425 }
7426
7427
7428 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7429 PyObject *pyobj = 0;
7430
7431 {
7432 #if wxUSE_UNICODE
7433 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7434 #else
7435 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7436 #endif
7437 }
7438 return pyobj;
7439 }
7440
7441
7442 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7443 PyObject *resultobj = 0;
7444 wxWindow *arg1 = (wxWindow *) 0 ;
7445 int arg2 = (int) -1 ;
7446 wxString const &arg3_defvalue = wxPyEmptyString ;
7447 wxString *arg3 = (wxString *) &arg3_defvalue ;
7448 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7449 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7450 wxSize const &arg5_defvalue = wxDefaultSize ;
7451 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7452 long arg6 = (long) 0 ;
7453 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7454 wxString *arg7 = (wxString *) &arg7_defvalue ;
7455 wxStaticBox *result = 0 ;
7456 void *argp1 = 0 ;
7457 int res1 = 0 ;
7458 int val2 ;
7459 int ecode2 = 0 ;
7460 bool temp3 = false ;
7461 wxPoint temp4 ;
7462 wxSize temp5 ;
7463 long val6 ;
7464 int ecode6 = 0 ;
7465 bool temp7 = false ;
7466 PyObject * obj0 = 0 ;
7467 PyObject * obj1 = 0 ;
7468 PyObject * obj2 = 0 ;
7469 PyObject * obj3 = 0 ;
7470 PyObject * obj4 = 0 ;
7471 PyObject * obj5 = 0 ;
7472 PyObject * obj6 = 0 ;
7473 char * kwnames[] = {
7474 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7475 };
7476
7477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7479 if (!SWIG_IsOK(res1)) {
7480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7481 }
7482 arg1 = reinterpret_cast< wxWindow * >(argp1);
7483 if (obj1) {
7484 ecode2 = SWIG_AsVal_int(obj1, &val2);
7485 if (!SWIG_IsOK(ecode2)) {
7486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7487 }
7488 arg2 = static_cast< int >(val2);
7489 }
7490 if (obj2) {
7491 {
7492 arg3 = wxString_in_helper(obj2);
7493 if (arg3 == NULL) SWIG_fail;
7494 temp3 = true;
7495 }
7496 }
7497 if (obj3) {
7498 {
7499 arg4 = &temp4;
7500 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7501 }
7502 }
7503 if (obj4) {
7504 {
7505 arg5 = &temp5;
7506 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7507 }
7508 }
7509 if (obj5) {
7510 ecode6 = SWIG_AsVal_long(obj5, &val6);
7511 if (!SWIG_IsOK(ecode6)) {
7512 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7513 }
7514 arg6 = static_cast< long >(val6);
7515 }
7516 if (obj6) {
7517 {
7518 arg7 = wxString_in_helper(obj6);
7519 if (arg7 == NULL) SWIG_fail;
7520 temp7 = true;
7521 }
7522 }
7523 {
7524 if (!wxPyCheckForApp()) SWIG_fail;
7525 PyThreadState* __tstate = wxPyBeginAllowThreads();
7526 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7527 wxPyEndAllowThreads(__tstate);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7531 {
7532 if (temp3)
7533 delete arg3;
7534 }
7535 {
7536 if (temp7)
7537 delete arg7;
7538 }
7539 return resultobj;
7540 fail:
7541 {
7542 if (temp3)
7543 delete arg3;
7544 }
7545 {
7546 if (temp7)
7547 delete arg7;
7548 }
7549 return NULL;
7550 }
7551
7552
7553 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7554 PyObject *resultobj = 0;
7555 wxStaticBox *result = 0 ;
7556
7557 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7558 {
7559 if (!wxPyCheckForApp()) SWIG_fail;
7560 PyThreadState* __tstate = wxPyBeginAllowThreads();
7561 result = (wxStaticBox *)new wxStaticBox();
7562 wxPyEndAllowThreads(__tstate);
7563 if (PyErr_Occurred()) SWIG_fail;
7564 }
7565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7566 return resultobj;
7567 fail:
7568 return NULL;
7569 }
7570
7571
7572 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7573 PyObject *resultobj = 0;
7574 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7575 wxWindow *arg2 = (wxWindow *) 0 ;
7576 int arg3 = (int) -1 ;
7577 wxString const &arg4_defvalue = wxPyEmptyString ;
7578 wxString *arg4 = (wxString *) &arg4_defvalue ;
7579 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7580 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7581 wxSize const &arg6_defvalue = wxDefaultSize ;
7582 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7583 long arg7 = (long) 0 ;
7584 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7585 wxString *arg8 = (wxString *) &arg8_defvalue ;
7586 bool result;
7587 void *argp1 = 0 ;
7588 int res1 = 0 ;
7589 void *argp2 = 0 ;
7590 int res2 = 0 ;
7591 int val3 ;
7592 int ecode3 = 0 ;
7593 bool temp4 = false ;
7594 wxPoint temp5 ;
7595 wxSize temp6 ;
7596 long val7 ;
7597 int ecode7 = 0 ;
7598 bool temp8 = false ;
7599 PyObject * obj0 = 0 ;
7600 PyObject * obj1 = 0 ;
7601 PyObject * obj2 = 0 ;
7602 PyObject * obj3 = 0 ;
7603 PyObject * obj4 = 0 ;
7604 PyObject * obj5 = 0 ;
7605 PyObject * obj6 = 0 ;
7606 PyObject * obj7 = 0 ;
7607 char * kwnames[] = {
7608 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7609 };
7610
7611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7613 if (!SWIG_IsOK(res1)) {
7614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7615 }
7616 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7617 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7618 if (!SWIG_IsOK(res2)) {
7619 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7620 }
7621 arg2 = reinterpret_cast< wxWindow * >(argp2);
7622 if (obj2) {
7623 ecode3 = SWIG_AsVal_int(obj2, &val3);
7624 if (!SWIG_IsOK(ecode3)) {
7625 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7626 }
7627 arg3 = static_cast< int >(val3);
7628 }
7629 if (obj3) {
7630 {
7631 arg4 = wxString_in_helper(obj3);
7632 if (arg4 == NULL) SWIG_fail;
7633 temp4 = true;
7634 }
7635 }
7636 if (obj4) {
7637 {
7638 arg5 = &temp5;
7639 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7640 }
7641 }
7642 if (obj5) {
7643 {
7644 arg6 = &temp6;
7645 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7646 }
7647 }
7648 if (obj6) {
7649 ecode7 = SWIG_AsVal_long(obj6, &val7);
7650 if (!SWIG_IsOK(ecode7)) {
7651 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7652 }
7653 arg7 = static_cast< long >(val7);
7654 }
7655 if (obj7) {
7656 {
7657 arg8 = wxString_in_helper(obj7);
7658 if (arg8 == NULL) SWIG_fail;
7659 temp8 = true;
7660 }
7661 }
7662 {
7663 PyThreadState* __tstate = wxPyBeginAllowThreads();
7664 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7665 wxPyEndAllowThreads(__tstate);
7666 if (PyErr_Occurred()) SWIG_fail;
7667 }
7668 {
7669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7670 }
7671 {
7672 if (temp4)
7673 delete arg4;
7674 }
7675 {
7676 if (temp8)
7677 delete arg8;
7678 }
7679 return resultobj;
7680 fail:
7681 {
7682 if (temp4)
7683 delete arg4;
7684 }
7685 {
7686 if (temp8)
7687 delete arg8;
7688 }
7689 return NULL;
7690 }
7691
7692
7693 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7694 PyObject *resultobj = 0;
7695 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7696 SwigValueWrapper<wxVisualAttributes > result;
7697 int val1 ;
7698 int ecode1 = 0 ;
7699 PyObject * obj0 = 0 ;
7700 char * kwnames[] = {
7701 (char *) "variant", NULL
7702 };
7703
7704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7705 if (obj0) {
7706 ecode1 = SWIG_AsVal_int(obj0, &val1);
7707 if (!SWIG_IsOK(ecode1)) {
7708 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7709 }
7710 arg1 = static_cast< wxWindowVariant >(val1);
7711 }
7712 {
7713 if (!wxPyCheckForApp()) SWIG_fail;
7714 PyThreadState* __tstate = wxPyBeginAllowThreads();
7715 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7716 wxPyEndAllowThreads(__tstate);
7717 if (PyErr_Occurred()) SWIG_fail;
7718 }
7719 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7720 return resultobj;
7721 fail:
7722 return NULL;
7723 }
7724
7725
7726 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7727 PyObject *obj;
7728 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7729 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7730 return SWIG_Py_Void();
7731 }
7732
7733 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7734 return SWIG_Python_InitShadowInstance(args);
7735 }
7736
7737 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7738 PyObject *resultobj = 0;
7739 wxWindow *arg1 = (wxWindow *) 0 ;
7740 int arg2 = (int) -1 ;
7741 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7742 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7743 wxSize const &arg4_defvalue = wxDefaultSize ;
7744 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7745 long arg5 = (long) wxLI_HORIZONTAL ;
7746 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7747 wxString *arg6 = (wxString *) &arg6_defvalue ;
7748 wxStaticLine *result = 0 ;
7749 void *argp1 = 0 ;
7750 int res1 = 0 ;
7751 int val2 ;
7752 int ecode2 = 0 ;
7753 wxPoint temp3 ;
7754 wxSize temp4 ;
7755 long val5 ;
7756 int ecode5 = 0 ;
7757 bool temp6 = false ;
7758 PyObject * obj0 = 0 ;
7759 PyObject * obj1 = 0 ;
7760 PyObject * obj2 = 0 ;
7761 PyObject * obj3 = 0 ;
7762 PyObject * obj4 = 0 ;
7763 PyObject * obj5 = 0 ;
7764 char * kwnames[] = {
7765 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7766 };
7767
7768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7770 if (!SWIG_IsOK(res1)) {
7771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7772 }
7773 arg1 = reinterpret_cast< wxWindow * >(argp1);
7774 if (obj1) {
7775 ecode2 = SWIG_AsVal_int(obj1, &val2);
7776 if (!SWIG_IsOK(ecode2)) {
7777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7778 }
7779 arg2 = static_cast< int >(val2);
7780 }
7781 if (obj2) {
7782 {
7783 arg3 = &temp3;
7784 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7785 }
7786 }
7787 if (obj3) {
7788 {
7789 arg4 = &temp4;
7790 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7791 }
7792 }
7793 if (obj4) {
7794 ecode5 = SWIG_AsVal_long(obj4, &val5);
7795 if (!SWIG_IsOK(ecode5)) {
7796 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7797 }
7798 arg5 = static_cast< long >(val5);
7799 }
7800 if (obj5) {
7801 {
7802 arg6 = wxString_in_helper(obj5);
7803 if (arg6 == NULL) SWIG_fail;
7804 temp6 = true;
7805 }
7806 }
7807 {
7808 if (!wxPyCheckForApp()) SWIG_fail;
7809 PyThreadState* __tstate = wxPyBeginAllowThreads();
7810 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7811 wxPyEndAllowThreads(__tstate);
7812 if (PyErr_Occurred()) SWIG_fail;
7813 }
7814 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7815 {
7816 if (temp6)
7817 delete arg6;
7818 }
7819 return resultobj;
7820 fail:
7821 {
7822 if (temp6)
7823 delete arg6;
7824 }
7825 return NULL;
7826 }
7827
7828
7829 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7830 PyObject *resultobj = 0;
7831 wxStaticLine *result = 0 ;
7832
7833 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7834 {
7835 if (!wxPyCheckForApp()) SWIG_fail;
7836 PyThreadState* __tstate = wxPyBeginAllowThreads();
7837 result = (wxStaticLine *)new wxStaticLine();
7838 wxPyEndAllowThreads(__tstate);
7839 if (PyErr_Occurred()) SWIG_fail;
7840 }
7841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7842 return resultobj;
7843 fail:
7844 return NULL;
7845 }
7846
7847
7848 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7849 PyObject *resultobj = 0;
7850 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7851 wxWindow *arg2 = (wxWindow *) 0 ;
7852 int arg3 = (int) -1 ;
7853 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7854 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7855 wxSize const &arg5_defvalue = wxDefaultSize ;
7856 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7857 long arg6 = (long) wxLI_HORIZONTAL ;
7858 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7859 wxString *arg7 = (wxString *) &arg7_defvalue ;
7860 bool result;
7861 void *argp1 = 0 ;
7862 int res1 = 0 ;
7863 void *argp2 = 0 ;
7864 int res2 = 0 ;
7865 int val3 ;
7866 int ecode3 = 0 ;
7867 wxPoint temp4 ;
7868 wxSize temp5 ;
7869 long val6 ;
7870 int ecode6 = 0 ;
7871 bool temp7 = false ;
7872 PyObject * obj0 = 0 ;
7873 PyObject * obj1 = 0 ;
7874 PyObject * obj2 = 0 ;
7875 PyObject * obj3 = 0 ;
7876 PyObject * obj4 = 0 ;
7877 PyObject * obj5 = 0 ;
7878 PyObject * obj6 = 0 ;
7879 char * kwnames[] = {
7880 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7881 };
7882
7883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7885 if (!SWIG_IsOK(res1)) {
7886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7887 }
7888 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7889 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7890 if (!SWIG_IsOK(res2)) {
7891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7892 }
7893 arg2 = reinterpret_cast< wxWindow * >(argp2);
7894 if (obj2) {
7895 ecode3 = SWIG_AsVal_int(obj2, &val3);
7896 if (!SWIG_IsOK(ecode3)) {
7897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7898 }
7899 arg3 = static_cast< int >(val3);
7900 }
7901 if (obj3) {
7902 {
7903 arg4 = &temp4;
7904 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7905 }
7906 }
7907 if (obj4) {
7908 {
7909 arg5 = &temp5;
7910 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7911 }
7912 }
7913 if (obj5) {
7914 ecode6 = SWIG_AsVal_long(obj5, &val6);
7915 if (!SWIG_IsOK(ecode6)) {
7916 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7917 }
7918 arg6 = static_cast< long >(val6);
7919 }
7920 if (obj6) {
7921 {
7922 arg7 = wxString_in_helper(obj6);
7923 if (arg7 == NULL) SWIG_fail;
7924 temp7 = true;
7925 }
7926 }
7927 {
7928 PyThreadState* __tstate = wxPyBeginAllowThreads();
7929 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7930 wxPyEndAllowThreads(__tstate);
7931 if (PyErr_Occurred()) SWIG_fail;
7932 }
7933 {
7934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7935 }
7936 {
7937 if (temp7)
7938 delete arg7;
7939 }
7940 return resultobj;
7941 fail:
7942 {
7943 if (temp7)
7944 delete arg7;
7945 }
7946 return NULL;
7947 }
7948
7949
7950 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7951 PyObject *resultobj = 0;
7952 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7953 bool result;
7954 void *argp1 = 0 ;
7955 int res1 = 0 ;
7956 PyObject *swig_obj[1] ;
7957
7958 if (!args) SWIG_fail;
7959 swig_obj[0] = args;
7960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7961 if (!SWIG_IsOK(res1)) {
7962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7963 }
7964 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7965 {
7966 PyThreadState* __tstate = wxPyBeginAllowThreads();
7967 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7968 wxPyEndAllowThreads(__tstate);
7969 if (PyErr_Occurred()) SWIG_fail;
7970 }
7971 {
7972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7973 }
7974 return resultobj;
7975 fail:
7976 return NULL;
7977 }
7978
7979
7980 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7981 PyObject *resultobj = 0;
7982 int result;
7983
7984 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7985 {
7986 PyThreadState* __tstate = wxPyBeginAllowThreads();
7987 result = (int)wxStaticLine::GetDefaultSize();
7988 wxPyEndAllowThreads(__tstate);
7989 if (PyErr_Occurred()) SWIG_fail;
7990 }
7991 resultobj = SWIG_From_int(static_cast< int >(result));
7992 return resultobj;
7993 fail:
7994 return NULL;
7995 }
7996
7997
7998 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7999 PyObject *resultobj = 0;
8000 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8001 SwigValueWrapper<wxVisualAttributes > result;
8002 int val1 ;
8003 int ecode1 = 0 ;
8004 PyObject * obj0 = 0 ;
8005 char * kwnames[] = {
8006 (char *) "variant", NULL
8007 };
8008
8009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8010 if (obj0) {
8011 ecode1 = SWIG_AsVal_int(obj0, &val1);
8012 if (!SWIG_IsOK(ecode1)) {
8013 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8014 }
8015 arg1 = static_cast< wxWindowVariant >(val1);
8016 }
8017 {
8018 if (!wxPyCheckForApp()) SWIG_fail;
8019 PyThreadState* __tstate = wxPyBeginAllowThreads();
8020 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8021 wxPyEndAllowThreads(__tstate);
8022 if (PyErr_Occurred()) SWIG_fail;
8023 }
8024 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8025 return resultobj;
8026 fail:
8027 return NULL;
8028 }
8029
8030
8031 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8032 PyObject *obj;
8033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8034 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8035 return SWIG_Py_Void();
8036 }
8037
8038 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8039 return SWIG_Python_InitShadowInstance(args);
8040 }
8041
8042 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8043 PyObject *resultobj = 0;
8044 wxWindow *arg1 = (wxWindow *) 0 ;
8045 int arg2 = (int) -1 ;
8046 wxString const &arg3_defvalue = wxPyEmptyString ;
8047 wxString *arg3 = (wxString *) &arg3_defvalue ;
8048 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8049 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8050 wxSize const &arg5_defvalue = wxDefaultSize ;
8051 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8052 long arg6 = (long) 0 ;
8053 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8054 wxString *arg7 = (wxString *) &arg7_defvalue ;
8055 wxStaticText *result = 0 ;
8056 void *argp1 = 0 ;
8057 int res1 = 0 ;
8058 int val2 ;
8059 int ecode2 = 0 ;
8060 bool temp3 = false ;
8061 wxPoint temp4 ;
8062 wxSize temp5 ;
8063 long val6 ;
8064 int ecode6 = 0 ;
8065 bool temp7 = false ;
8066 PyObject * obj0 = 0 ;
8067 PyObject * obj1 = 0 ;
8068 PyObject * obj2 = 0 ;
8069 PyObject * obj3 = 0 ;
8070 PyObject * obj4 = 0 ;
8071 PyObject * obj5 = 0 ;
8072 PyObject * obj6 = 0 ;
8073 char * kwnames[] = {
8074 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8075 };
8076
8077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8079 if (!SWIG_IsOK(res1)) {
8080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8081 }
8082 arg1 = reinterpret_cast< wxWindow * >(argp1);
8083 if (obj1) {
8084 ecode2 = SWIG_AsVal_int(obj1, &val2);
8085 if (!SWIG_IsOK(ecode2)) {
8086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8087 }
8088 arg2 = static_cast< int >(val2);
8089 }
8090 if (obj2) {
8091 {
8092 arg3 = wxString_in_helper(obj2);
8093 if (arg3 == NULL) SWIG_fail;
8094 temp3 = true;
8095 }
8096 }
8097 if (obj3) {
8098 {
8099 arg4 = &temp4;
8100 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8101 }
8102 }
8103 if (obj4) {
8104 {
8105 arg5 = &temp5;
8106 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8107 }
8108 }
8109 if (obj5) {
8110 ecode6 = SWIG_AsVal_long(obj5, &val6);
8111 if (!SWIG_IsOK(ecode6)) {
8112 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8113 }
8114 arg6 = static_cast< long >(val6);
8115 }
8116 if (obj6) {
8117 {
8118 arg7 = wxString_in_helper(obj6);
8119 if (arg7 == NULL) SWIG_fail;
8120 temp7 = true;
8121 }
8122 }
8123 {
8124 if (!wxPyCheckForApp()) SWIG_fail;
8125 PyThreadState* __tstate = wxPyBeginAllowThreads();
8126 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8127 wxPyEndAllowThreads(__tstate);
8128 if (PyErr_Occurred()) SWIG_fail;
8129 }
8130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8131 {
8132 if (temp3)
8133 delete arg3;
8134 }
8135 {
8136 if (temp7)
8137 delete arg7;
8138 }
8139 return resultobj;
8140 fail:
8141 {
8142 if (temp3)
8143 delete arg3;
8144 }
8145 {
8146 if (temp7)
8147 delete arg7;
8148 }
8149 return NULL;
8150 }
8151
8152
8153 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8154 PyObject *resultobj = 0;
8155 wxStaticText *result = 0 ;
8156
8157 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8158 {
8159 if (!wxPyCheckForApp()) SWIG_fail;
8160 PyThreadState* __tstate = wxPyBeginAllowThreads();
8161 result = (wxStaticText *)new wxStaticText();
8162 wxPyEndAllowThreads(__tstate);
8163 if (PyErr_Occurred()) SWIG_fail;
8164 }
8165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8166 return resultobj;
8167 fail:
8168 return NULL;
8169 }
8170
8171
8172 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8173 PyObject *resultobj = 0;
8174 wxStaticText *arg1 = (wxStaticText *) 0 ;
8175 wxWindow *arg2 = (wxWindow *) 0 ;
8176 int arg3 = (int) -1 ;
8177 wxString const &arg4_defvalue = wxPyEmptyString ;
8178 wxString *arg4 = (wxString *) &arg4_defvalue ;
8179 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8180 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8181 wxSize const &arg6_defvalue = wxDefaultSize ;
8182 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8183 long arg7 = (long) 0 ;
8184 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8185 wxString *arg8 = (wxString *) &arg8_defvalue ;
8186 bool result;
8187 void *argp1 = 0 ;
8188 int res1 = 0 ;
8189 void *argp2 = 0 ;
8190 int res2 = 0 ;
8191 int val3 ;
8192 int ecode3 = 0 ;
8193 bool temp4 = false ;
8194 wxPoint temp5 ;
8195 wxSize temp6 ;
8196 long val7 ;
8197 int ecode7 = 0 ;
8198 bool temp8 = false ;
8199 PyObject * obj0 = 0 ;
8200 PyObject * obj1 = 0 ;
8201 PyObject * obj2 = 0 ;
8202 PyObject * obj3 = 0 ;
8203 PyObject * obj4 = 0 ;
8204 PyObject * obj5 = 0 ;
8205 PyObject * obj6 = 0 ;
8206 PyObject * obj7 = 0 ;
8207 char * kwnames[] = {
8208 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8209 };
8210
8211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8213 if (!SWIG_IsOK(res1)) {
8214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8215 }
8216 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8217 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8218 if (!SWIG_IsOK(res2)) {
8219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8220 }
8221 arg2 = reinterpret_cast< wxWindow * >(argp2);
8222 if (obj2) {
8223 ecode3 = SWIG_AsVal_int(obj2, &val3);
8224 if (!SWIG_IsOK(ecode3)) {
8225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8226 }
8227 arg3 = static_cast< int >(val3);
8228 }
8229 if (obj3) {
8230 {
8231 arg4 = wxString_in_helper(obj3);
8232 if (arg4 == NULL) SWIG_fail;
8233 temp4 = true;
8234 }
8235 }
8236 if (obj4) {
8237 {
8238 arg5 = &temp5;
8239 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8240 }
8241 }
8242 if (obj5) {
8243 {
8244 arg6 = &temp6;
8245 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8246 }
8247 }
8248 if (obj6) {
8249 ecode7 = SWIG_AsVal_long(obj6, &val7);
8250 if (!SWIG_IsOK(ecode7)) {
8251 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8252 }
8253 arg7 = static_cast< long >(val7);
8254 }
8255 if (obj7) {
8256 {
8257 arg8 = wxString_in_helper(obj7);
8258 if (arg8 == NULL) SWIG_fail;
8259 temp8 = true;
8260 }
8261 }
8262 {
8263 PyThreadState* __tstate = wxPyBeginAllowThreads();
8264 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8265 wxPyEndAllowThreads(__tstate);
8266 if (PyErr_Occurred()) SWIG_fail;
8267 }
8268 {
8269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8270 }
8271 {
8272 if (temp4)
8273 delete arg4;
8274 }
8275 {
8276 if (temp8)
8277 delete arg8;
8278 }
8279 return resultobj;
8280 fail:
8281 {
8282 if (temp4)
8283 delete arg4;
8284 }
8285 {
8286 if (temp8)
8287 delete arg8;
8288 }
8289 return NULL;
8290 }
8291
8292
8293 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8294 PyObject *resultobj = 0;
8295 wxStaticText *arg1 = (wxStaticText *) 0 ;
8296 int arg2 ;
8297 void *argp1 = 0 ;
8298 int res1 = 0 ;
8299 int val2 ;
8300 int ecode2 = 0 ;
8301 PyObject * obj0 = 0 ;
8302 PyObject * obj1 = 0 ;
8303 char * kwnames[] = {
8304 (char *) "self",(char *) "width", NULL
8305 };
8306
8307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8309 if (!SWIG_IsOK(res1)) {
8310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8311 }
8312 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8313 ecode2 = SWIG_AsVal_int(obj1, &val2);
8314 if (!SWIG_IsOK(ecode2)) {
8315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8316 }
8317 arg2 = static_cast< int >(val2);
8318 {
8319 PyThreadState* __tstate = wxPyBeginAllowThreads();
8320 (arg1)->Wrap(arg2);
8321 wxPyEndAllowThreads(__tstate);
8322 if (PyErr_Occurred()) SWIG_fail;
8323 }
8324 resultobj = SWIG_Py_Void();
8325 return resultobj;
8326 fail:
8327 return NULL;
8328 }
8329
8330
8331 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8332 PyObject *resultobj = 0;
8333 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8334 SwigValueWrapper<wxVisualAttributes > result;
8335 int val1 ;
8336 int ecode1 = 0 ;
8337 PyObject * obj0 = 0 ;
8338 char * kwnames[] = {
8339 (char *) "variant", NULL
8340 };
8341
8342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8343 if (obj0) {
8344 ecode1 = SWIG_AsVal_int(obj0, &val1);
8345 if (!SWIG_IsOK(ecode1)) {
8346 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8347 }
8348 arg1 = static_cast< wxWindowVariant >(val1);
8349 }
8350 {
8351 if (!wxPyCheckForApp()) SWIG_fail;
8352 PyThreadState* __tstate = wxPyBeginAllowThreads();
8353 result = wxStaticText::GetClassDefaultAttributes(arg1);
8354 wxPyEndAllowThreads(__tstate);
8355 if (PyErr_Occurred()) SWIG_fail;
8356 }
8357 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8358 return resultobj;
8359 fail:
8360 return NULL;
8361 }
8362
8363
8364 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8365 PyObject *obj;
8366 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8367 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8368 return SWIG_Py_Void();
8369 }
8370
8371 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8372 return SWIG_Python_InitShadowInstance(args);
8373 }
8374
8375 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8376 PyObject *resultobj = 0;
8377 wxWindow *arg1 = (wxWindow *) 0 ;
8378 int arg2 = (int) -1 ;
8379 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8380 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8381 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8382 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8383 wxSize const &arg5_defvalue = wxDefaultSize ;
8384 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8385 long arg6 = (long) 0 ;
8386 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8387 wxString *arg7 = (wxString *) &arg7_defvalue ;
8388 wxStaticBitmap *result = 0 ;
8389 void *argp1 = 0 ;
8390 int res1 = 0 ;
8391 int val2 ;
8392 int ecode2 = 0 ;
8393 void *argp3 = 0 ;
8394 int res3 = 0 ;
8395 wxPoint temp4 ;
8396 wxSize temp5 ;
8397 long val6 ;
8398 int ecode6 = 0 ;
8399 bool temp7 = false ;
8400 PyObject * obj0 = 0 ;
8401 PyObject * obj1 = 0 ;
8402 PyObject * obj2 = 0 ;
8403 PyObject * obj3 = 0 ;
8404 PyObject * obj4 = 0 ;
8405 PyObject * obj5 = 0 ;
8406 PyObject * obj6 = 0 ;
8407 char * kwnames[] = {
8408 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8409 };
8410
8411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8413 if (!SWIG_IsOK(res1)) {
8414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8415 }
8416 arg1 = reinterpret_cast< wxWindow * >(argp1);
8417 if (obj1) {
8418 ecode2 = SWIG_AsVal_int(obj1, &val2);
8419 if (!SWIG_IsOK(ecode2)) {
8420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8421 }
8422 arg2 = static_cast< int >(val2);
8423 }
8424 if (obj2) {
8425 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8426 if (!SWIG_IsOK(res3)) {
8427 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8428 }
8429 if (!argp3) {
8430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8431 }
8432 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8433 }
8434 if (obj3) {
8435 {
8436 arg4 = &temp4;
8437 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8438 }
8439 }
8440 if (obj4) {
8441 {
8442 arg5 = &temp5;
8443 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8444 }
8445 }
8446 if (obj5) {
8447 ecode6 = SWIG_AsVal_long(obj5, &val6);
8448 if (!SWIG_IsOK(ecode6)) {
8449 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8450 }
8451 arg6 = static_cast< long >(val6);
8452 }
8453 if (obj6) {
8454 {
8455 arg7 = wxString_in_helper(obj6);
8456 if (arg7 == NULL) SWIG_fail;
8457 temp7 = true;
8458 }
8459 }
8460 {
8461 if (!wxPyCheckForApp()) SWIG_fail;
8462 PyThreadState* __tstate = wxPyBeginAllowThreads();
8463 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8464 wxPyEndAllowThreads(__tstate);
8465 if (PyErr_Occurred()) SWIG_fail;
8466 }
8467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8468 {
8469 if (temp7)
8470 delete arg7;
8471 }
8472 return resultobj;
8473 fail:
8474 {
8475 if (temp7)
8476 delete arg7;
8477 }
8478 return NULL;
8479 }
8480
8481
8482 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8483 PyObject *resultobj = 0;
8484 wxStaticBitmap *result = 0 ;
8485
8486 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8487 {
8488 if (!wxPyCheckForApp()) SWIG_fail;
8489 PyThreadState* __tstate = wxPyBeginAllowThreads();
8490 result = (wxStaticBitmap *)new wxStaticBitmap();
8491 wxPyEndAllowThreads(__tstate);
8492 if (PyErr_Occurred()) SWIG_fail;
8493 }
8494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8495 return resultobj;
8496 fail:
8497 return NULL;
8498 }
8499
8500
8501 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8502 PyObject *resultobj = 0;
8503 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8504 wxWindow *arg2 = (wxWindow *) 0 ;
8505 int arg3 = (int) -1 ;
8506 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8507 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8508 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8509 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8510 wxSize const &arg6_defvalue = wxDefaultSize ;
8511 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8512 long arg7 = (long) 0 ;
8513 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8514 wxString *arg8 = (wxString *) &arg8_defvalue ;
8515 bool result;
8516 void *argp1 = 0 ;
8517 int res1 = 0 ;
8518 void *argp2 = 0 ;
8519 int res2 = 0 ;
8520 int val3 ;
8521 int ecode3 = 0 ;
8522 void *argp4 = 0 ;
8523 int res4 = 0 ;
8524 wxPoint temp5 ;
8525 wxSize temp6 ;
8526 long val7 ;
8527 int ecode7 = 0 ;
8528 bool temp8 = false ;
8529 PyObject * obj0 = 0 ;
8530 PyObject * obj1 = 0 ;
8531 PyObject * obj2 = 0 ;
8532 PyObject * obj3 = 0 ;
8533 PyObject * obj4 = 0 ;
8534 PyObject * obj5 = 0 ;
8535 PyObject * obj6 = 0 ;
8536 PyObject * obj7 = 0 ;
8537 char * kwnames[] = {
8538 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8539 };
8540
8541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8543 if (!SWIG_IsOK(res1)) {
8544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8545 }
8546 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8547 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8548 if (!SWIG_IsOK(res2)) {
8549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8550 }
8551 arg2 = reinterpret_cast< wxWindow * >(argp2);
8552 if (obj2) {
8553 ecode3 = SWIG_AsVal_int(obj2, &val3);
8554 if (!SWIG_IsOK(ecode3)) {
8555 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8556 }
8557 arg3 = static_cast< int >(val3);
8558 }
8559 if (obj3) {
8560 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8561 if (!SWIG_IsOK(res4)) {
8562 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8563 }
8564 if (!argp4) {
8565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8566 }
8567 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8568 }
8569 if (obj4) {
8570 {
8571 arg5 = &temp5;
8572 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8573 }
8574 }
8575 if (obj5) {
8576 {
8577 arg6 = &temp6;
8578 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8579 }
8580 }
8581 if (obj6) {
8582 ecode7 = SWIG_AsVal_long(obj6, &val7);
8583 if (!SWIG_IsOK(ecode7)) {
8584 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8585 }
8586 arg7 = static_cast< long >(val7);
8587 }
8588 if (obj7) {
8589 {
8590 arg8 = wxString_in_helper(obj7);
8591 if (arg8 == NULL) SWIG_fail;
8592 temp8 = true;
8593 }
8594 }
8595 {
8596 PyThreadState* __tstate = wxPyBeginAllowThreads();
8597 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8598 wxPyEndAllowThreads(__tstate);
8599 if (PyErr_Occurred()) SWIG_fail;
8600 }
8601 {
8602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8603 }
8604 {
8605 if (temp8)
8606 delete arg8;
8607 }
8608 return resultobj;
8609 fail:
8610 {
8611 if (temp8)
8612 delete arg8;
8613 }
8614 return NULL;
8615 }
8616
8617
8618 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8619 PyObject *resultobj = 0;
8620 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8621 wxBitmap result;
8622 void *argp1 = 0 ;
8623 int res1 = 0 ;
8624 PyObject *swig_obj[1] ;
8625
8626 if (!args) SWIG_fail;
8627 swig_obj[0] = args;
8628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8629 if (!SWIG_IsOK(res1)) {
8630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8631 }
8632 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8633 {
8634 PyThreadState* __tstate = wxPyBeginAllowThreads();
8635 result = (arg1)->GetBitmap();
8636 wxPyEndAllowThreads(__tstate);
8637 if (PyErr_Occurred()) SWIG_fail;
8638 }
8639 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8640 return resultobj;
8641 fail:
8642 return NULL;
8643 }
8644
8645
8646 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8647 PyObject *resultobj = 0;
8648 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8649 wxBitmap *arg2 = 0 ;
8650 void *argp1 = 0 ;
8651 int res1 = 0 ;
8652 void *argp2 = 0 ;
8653 int res2 = 0 ;
8654 PyObject * obj0 = 0 ;
8655 PyObject * obj1 = 0 ;
8656 char * kwnames[] = {
8657 (char *) "self",(char *) "bitmap", NULL
8658 };
8659
8660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8662 if (!SWIG_IsOK(res1)) {
8663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8664 }
8665 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8667 if (!SWIG_IsOK(res2)) {
8668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8669 }
8670 if (!argp2) {
8671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8672 }
8673 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8674 {
8675 PyThreadState* __tstate = wxPyBeginAllowThreads();
8676 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8677 wxPyEndAllowThreads(__tstate);
8678 if (PyErr_Occurred()) SWIG_fail;
8679 }
8680 resultobj = SWIG_Py_Void();
8681 return resultobj;
8682 fail:
8683 return NULL;
8684 }
8685
8686
8687 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8688 PyObject *resultobj = 0;
8689 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8690 wxIcon *arg2 = 0 ;
8691 void *argp1 = 0 ;
8692 int res1 = 0 ;
8693 void *argp2 = 0 ;
8694 int res2 = 0 ;
8695 PyObject * obj0 = 0 ;
8696 PyObject * obj1 = 0 ;
8697 char * kwnames[] = {
8698 (char *) "self",(char *) "icon", NULL
8699 };
8700
8701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8703 if (!SWIG_IsOK(res1)) {
8704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8705 }
8706 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8707 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8708 if (!SWIG_IsOK(res2)) {
8709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8710 }
8711 if (!argp2) {
8712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8713 }
8714 arg2 = reinterpret_cast< wxIcon * >(argp2);
8715 {
8716 PyThreadState* __tstate = wxPyBeginAllowThreads();
8717 (arg1)->SetIcon((wxIcon const &)*arg2);
8718 wxPyEndAllowThreads(__tstate);
8719 if (PyErr_Occurred()) SWIG_fail;
8720 }
8721 resultobj = SWIG_Py_Void();
8722 return resultobj;
8723 fail:
8724 return NULL;
8725 }
8726
8727
8728 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8729 PyObject *resultobj = 0;
8730 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8731 SwigValueWrapper<wxVisualAttributes > result;
8732 int val1 ;
8733 int ecode1 = 0 ;
8734 PyObject * obj0 = 0 ;
8735 char * kwnames[] = {
8736 (char *) "variant", NULL
8737 };
8738
8739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8740 if (obj0) {
8741 ecode1 = SWIG_AsVal_int(obj0, &val1);
8742 if (!SWIG_IsOK(ecode1)) {
8743 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8744 }
8745 arg1 = static_cast< wxWindowVariant >(val1);
8746 }
8747 {
8748 if (!wxPyCheckForApp()) SWIG_fail;
8749 PyThreadState* __tstate = wxPyBeginAllowThreads();
8750 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8751 wxPyEndAllowThreads(__tstate);
8752 if (PyErr_Occurred()) SWIG_fail;
8753 }
8754 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8755 return resultobj;
8756 fail:
8757 return NULL;
8758 }
8759
8760
8761 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8762 PyObject *obj;
8763 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8764 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8765 return SWIG_Py_Void();
8766 }
8767
8768 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8769 return SWIG_Python_InitShadowInstance(args);
8770 }
8771
8772 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8773 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8774 return 1;
8775 }
8776
8777
8778 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8779 PyObject *pyobj = 0;
8780
8781 {
8782 #if wxUSE_UNICODE
8783 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8784 #else
8785 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8786 #endif
8787 }
8788 return pyobj;
8789 }
8790
8791
8792 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8793 PyObject *resultobj = 0;
8794 wxWindow *arg1 = (wxWindow *) 0 ;
8795 int arg2 = (int) -1 ;
8796 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8797 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8798 wxSize const &arg4_defvalue = wxDefaultSize ;
8799 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8800 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8801 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8802 long arg6 = (long) 0 ;
8803 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8804 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8805 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8806 wxString *arg8 = (wxString *) &arg8_defvalue ;
8807 wxListBox *result = 0 ;
8808 void *argp1 = 0 ;
8809 int res1 = 0 ;
8810 int val2 ;
8811 int ecode2 = 0 ;
8812 wxPoint temp3 ;
8813 wxSize temp4 ;
8814 bool temp5 = false ;
8815 long val6 ;
8816 int ecode6 = 0 ;
8817 void *argp7 = 0 ;
8818 int res7 = 0 ;
8819 bool temp8 = false ;
8820 PyObject * obj0 = 0 ;
8821 PyObject * obj1 = 0 ;
8822 PyObject * obj2 = 0 ;
8823 PyObject * obj3 = 0 ;
8824 PyObject * obj4 = 0 ;
8825 PyObject * obj5 = 0 ;
8826 PyObject * obj6 = 0 ;
8827 PyObject * obj7 = 0 ;
8828 char * kwnames[] = {
8829 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8830 };
8831
8832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8834 if (!SWIG_IsOK(res1)) {
8835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8836 }
8837 arg1 = reinterpret_cast< wxWindow * >(argp1);
8838 if (obj1) {
8839 ecode2 = SWIG_AsVal_int(obj1, &val2);
8840 if (!SWIG_IsOK(ecode2)) {
8841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8842 }
8843 arg2 = static_cast< int >(val2);
8844 }
8845 if (obj2) {
8846 {
8847 arg3 = &temp3;
8848 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8849 }
8850 }
8851 if (obj3) {
8852 {
8853 arg4 = &temp4;
8854 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8855 }
8856 }
8857 if (obj4) {
8858 {
8859 if (! PySequence_Check(obj4)) {
8860 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8861 SWIG_fail;
8862 }
8863 arg5 = new wxArrayString;
8864 temp5 = true;
8865 int i, len=PySequence_Length(obj4);
8866 for (i=0; i<len; i++) {
8867 PyObject* item = PySequence_GetItem(obj4, i);
8868 wxString* s = wxString_in_helper(item);
8869 if (PyErr_Occurred()) SWIG_fail;
8870 arg5->Add(*s);
8871 delete s;
8872 Py_DECREF(item);
8873 }
8874 }
8875 }
8876 if (obj5) {
8877 ecode6 = SWIG_AsVal_long(obj5, &val6);
8878 if (!SWIG_IsOK(ecode6)) {
8879 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8880 }
8881 arg6 = static_cast< long >(val6);
8882 }
8883 if (obj6) {
8884 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8885 if (!SWIG_IsOK(res7)) {
8886 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8887 }
8888 if (!argp7) {
8889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8890 }
8891 arg7 = reinterpret_cast< wxValidator * >(argp7);
8892 }
8893 if (obj7) {
8894 {
8895 arg8 = wxString_in_helper(obj7);
8896 if (arg8 == NULL) SWIG_fail;
8897 temp8 = true;
8898 }
8899 }
8900 {
8901 if (!wxPyCheckForApp()) SWIG_fail;
8902 PyThreadState* __tstate = wxPyBeginAllowThreads();
8903 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8904 wxPyEndAllowThreads(__tstate);
8905 if (PyErr_Occurred()) SWIG_fail;
8906 }
8907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8908 {
8909 if (temp5) delete arg5;
8910 }
8911 {
8912 if (temp8)
8913 delete arg8;
8914 }
8915 return resultobj;
8916 fail:
8917 {
8918 if (temp5) delete arg5;
8919 }
8920 {
8921 if (temp8)
8922 delete arg8;
8923 }
8924 return NULL;
8925 }
8926
8927
8928 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8929 PyObject *resultobj = 0;
8930 wxListBox *result = 0 ;
8931
8932 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8933 {
8934 if (!wxPyCheckForApp()) SWIG_fail;
8935 PyThreadState* __tstate = wxPyBeginAllowThreads();
8936 result = (wxListBox *)new wxListBox();
8937 wxPyEndAllowThreads(__tstate);
8938 if (PyErr_Occurred()) SWIG_fail;
8939 }
8940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8941 return resultobj;
8942 fail:
8943 return NULL;
8944 }
8945
8946
8947 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8948 PyObject *resultobj = 0;
8949 wxListBox *arg1 = (wxListBox *) 0 ;
8950 wxWindow *arg2 = (wxWindow *) 0 ;
8951 int arg3 = (int) -1 ;
8952 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8953 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8954 wxSize const &arg5_defvalue = wxDefaultSize ;
8955 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8956 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8957 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8958 long arg7 = (long) 0 ;
8959 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8960 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8961 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8962 wxString *arg9 = (wxString *) &arg9_defvalue ;
8963 bool result;
8964 void *argp1 = 0 ;
8965 int res1 = 0 ;
8966 void *argp2 = 0 ;
8967 int res2 = 0 ;
8968 int val3 ;
8969 int ecode3 = 0 ;
8970 wxPoint temp4 ;
8971 wxSize temp5 ;
8972 bool temp6 = false ;
8973 long val7 ;
8974 int ecode7 = 0 ;
8975 void *argp8 = 0 ;
8976 int res8 = 0 ;
8977 bool temp9 = false ;
8978 PyObject * obj0 = 0 ;
8979 PyObject * obj1 = 0 ;
8980 PyObject * obj2 = 0 ;
8981 PyObject * obj3 = 0 ;
8982 PyObject * obj4 = 0 ;
8983 PyObject * obj5 = 0 ;
8984 PyObject * obj6 = 0 ;
8985 PyObject * obj7 = 0 ;
8986 PyObject * obj8 = 0 ;
8987 char * kwnames[] = {
8988 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8989 };
8990
8991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8993 if (!SWIG_IsOK(res1)) {
8994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8995 }
8996 arg1 = reinterpret_cast< wxListBox * >(argp1);
8997 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8998 if (!SWIG_IsOK(res2)) {
8999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9000 }
9001 arg2 = reinterpret_cast< wxWindow * >(argp2);
9002 if (obj2) {
9003 ecode3 = SWIG_AsVal_int(obj2, &val3);
9004 if (!SWIG_IsOK(ecode3)) {
9005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9006 }
9007 arg3 = static_cast< int >(val3);
9008 }
9009 if (obj3) {
9010 {
9011 arg4 = &temp4;
9012 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9013 }
9014 }
9015 if (obj4) {
9016 {
9017 arg5 = &temp5;
9018 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9019 }
9020 }
9021 if (obj5) {
9022 {
9023 if (! PySequence_Check(obj5)) {
9024 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9025 SWIG_fail;
9026 }
9027 arg6 = new wxArrayString;
9028 temp6 = true;
9029 int i, len=PySequence_Length(obj5);
9030 for (i=0; i<len; i++) {
9031 PyObject* item = PySequence_GetItem(obj5, i);
9032 wxString* s = wxString_in_helper(item);
9033 if (PyErr_Occurred()) SWIG_fail;
9034 arg6->Add(*s);
9035 delete s;
9036 Py_DECREF(item);
9037 }
9038 }
9039 }
9040 if (obj6) {
9041 ecode7 = SWIG_AsVal_long(obj6, &val7);
9042 if (!SWIG_IsOK(ecode7)) {
9043 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9044 }
9045 arg7 = static_cast< long >(val7);
9046 }
9047 if (obj7) {
9048 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9049 if (!SWIG_IsOK(res8)) {
9050 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9051 }
9052 if (!argp8) {
9053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9054 }
9055 arg8 = reinterpret_cast< wxValidator * >(argp8);
9056 }
9057 if (obj8) {
9058 {
9059 arg9 = wxString_in_helper(obj8);
9060 if (arg9 == NULL) SWIG_fail;
9061 temp9 = true;
9062 }
9063 }
9064 {
9065 PyThreadState* __tstate = wxPyBeginAllowThreads();
9066 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9067 wxPyEndAllowThreads(__tstate);
9068 if (PyErr_Occurred()) SWIG_fail;
9069 }
9070 {
9071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9072 }
9073 {
9074 if (temp6) delete arg6;
9075 }
9076 {
9077 if (temp9)
9078 delete arg9;
9079 }
9080 return resultobj;
9081 fail:
9082 {
9083 if (temp6) delete arg6;
9084 }
9085 {
9086 if (temp9)
9087 delete arg9;
9088 }
9089 return NULL;
9090 }
9091
9092
9093 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9094 PyObject *resultobj = 0;
9095 wxListBox *arg1 = (wxListBox *) 0 ;
9096 wxString *arg2 = 0 ;
9097 int arg3 ;
9098 PyObject *arg4 = (PyObject *) NULL ;
9099 void *argp1 = 0 ;
9100 int res1 = 0 ;
9101 bool temp2 = false ;
9102 int val3 ;
9103 int ecode3 = 0 ;
9104 PyObject * obj0 = 0 ;
9105 PyObject * obj1 = 0 ;
9106 PyObject * obj2 = 0 ;
9107 PyObject * obj3 = 0 ;
9108 char * kwnames[] = {
9109 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9110 };
9111
9112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9114 if (!SWIG_IsOK(res1)) {
9115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9116 }
9117 arg1 = reinterpret_cast< wxListBox * >(argp1);
9118 {
9119 arg2 = wxString_in_helper(obj1);
9120 if (arg2 == NULL) SWIG_fail;
9121 temp2 = true;
9122 }
9123 ecode3 = SWIG_AsVal_int(obj2, &val3);
9124 if (!SWIG_IsOK(ecode3)) {
9125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9126 }
9127 arg3 = static_cast< int >(val3);
9128 if (obj3) {
9129 arg4 = obj3;
9130 }
9131 {
9132 PyThreadState* __tstate = wxPyBeginAllowThreads();
9133 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9134 wxPyEndAllowThreads(__tstate);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 }
9137 resultobj = SWIG_Py_Void();
9138 {
9139 if (temp2)
9140 delete arg2;
9141 }
9142 return resultobj;
9143 fail:
9144 {
9145 if (temp2)
9146 delete arg2;
9147 }
9148 return NULL;
9149 }
9150
9151
9152 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9153 PyObject *resultobj = 0;
9154 wxListBox *arg1 = (wxListBox *) 0 ;
9155 wxArrayString *arg2 = 0 ;
9156 unsigned int arg3 ;
9157 void *argp1 = 0 ;
9158 int res1 = 0 ;
9159 bool temp2 = false ;
9160 unsigned int val3 ;
9161 int ecode3 = 0 ;
9162 PyObject * obj0 = 0 ;
9163 PyObject * obj1 = 0 ;
9164 PyObject * obj2 = 0 ;
9165 char * kwnames[] = {
9166 (char *) "self",(char *) "items",(char *) "pos", NULL
9167 };
9168
9169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9171 if (!SWIG_IsOK(res1)) {
9172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9173 }
9174 arg1 = reinterpret_cast< wxListBox * >(argp1);
9175 {
9176 if (! PySequence_Check(obj1)) {
9177 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9178 SWIG_fail;
9179 }
9180 arg2 = new wxArrayString;
9181 temp2 = true;
9182 int i, len=PySequence_Length(obj1);
9183 for (i=0; i<len; i++) {
9184 PyObject* item = PySequence_GetItem(obj1, i);
9185 wxString* s = wxString_in_helper(item);
9186 if (PyErr_Occurred()) SWIG_fail;
9187 arg2->Add(*s);
9188 delete s;
9189 Py_DECREF(item);
9190 }
9191 }
9192 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9193 if (!SWIG_IsOK(ecode3)) {
9194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9195 }
9196 arg3 = static_cast< unsigned int >(val3);
9197 {
9198 PyThreadState* __tstate = wxPyBeginAllowThreads();
9199 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9200 wxPyEndAllowThreads(__tstate);
9201 if (PyErr_Occurred()) SWIG_fail;
9202 }
9203 resultobj = SWIG_Py_Void();
9204 {
9205 if (temp2) delete arg2;
9206 }
9207 return resultobj;
9208 fail:
9209 {
9210 if (temp2) delete arg2;
9211 }
9212 return NULL;
9213 }
9214
9215
9216 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9217 PyObject *resultobj = 0;
9218 wxListBox *arg1 = (wxListBox *) 0 ;
9219 wxArrayString *arg2 = 0 ;
9220 void *argp1 = 0 ;
9221 int res1 = 0 ;
9222 bool temp2 = false ;
9223 PyObject * obj0 = 0 ;
9224 PyObject * obj1 = 0 ;
9225 char * kwnames[] = {
9226 (char *) "self",(char *) "items", NULL
9227 };
9228
9229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9231 if (!SWIG_IsOK(res1)) {
9232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9233 }
9234 arg1 = reinterpret_cast< wxListBox * >(argp1);
9235 {
9236 if (! PySequence_Check(obj1)) {
9237 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9238 SWIG_fail;
9239 }
9240 arg2 = new wxArrayString;
9241 temp2 = true;
9242 int i, len=PySequence_Length(obj1);
9243 for (i=0; i<len; i++) {
9244 PyObject* item = PySequence_GetItem(obj1, i);
9245 wxString* s = wxString_in_helper(item);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 arg2->Add(*s);
9248 delete s;
9249 Py_DECREF(item);
9250 }
9251 }
9252 {
9253 PyThreadState* __tstate = wxPyBeginAllowThreads();
9254 (arg1)->Set((wxArrayString const &)*arg2);
9255 wxPyEndAllowThreads(__tstate);
9256 if (PyErr_Occurred()) SWIG_fail;
9257 }
9258 resultobj = SWIG_Py_Void();
9259 {
9260 if (temp2) delete arg2;
9261 }
9262 return resultobj;
9263 fail:
9264 {
9265 if (temp2) delete arg2;
9266 }
9267 return NULL;
9268 }
9269
9270
9271 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9272 PyObject *resultobj = 0;
9273 wxListBox *arg1 = (wxListBox *) 0 ;
9274 int arg2 ;
9275 bool result;
9276 void *argp1 = 0 ;
9277 int res1 = 0 ;
9278 int val2 ;
9279 int ecode2 = 0 ;
9280 PyObject * obj0 = 0 ;
9281 PyObject * obj1 = 0 ;
9282 char * kwnames[] = {
9283 (char *) "self",(char *) "n", NULL
9284 };
9285
9286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9288 if (!SWIG_IsOK(res1)) {
9289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9290 }
9291 arg1 = reinterpret_cast< wxListBox * >(argp1);
9292 ecode2 = SWIG_AsVal_int(obj1, &val2);
9293 if (!SWIG_IsOK(ecode2)) {
9294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9295 }
9296 arg2 = static_cast< int >(val2);
9297 {
9298 PyThreadState* __tstate = wxPyBeginAllowThreads();
9299 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9300 wxPyEndAllowThreads(__tstate);
9301 if (PyErr_Occurred()) SWIG_fail;
9302 }
9303 {
9304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9305 }
9306 return resultobj;
9307 fail:
9308 return NULL;
9309 }
9310
9311
9312 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9313 PyObject *resultobj = 0;
9314 wxListBox *arg1 = (wxListBox *) 0 ;
9315 int arg2 ;
9316 bool arg3 = (bool) true ;
9317 void *argp1 = 0 ;
9318 int res1 = 0 ;
9319 int val2 ;
9320 int ecode2 = 0 ;
9321 bool val3 ;
9322 int ecode3 = 0 ;
9323 PyObject * obj0 = 0 ;
9324 PyObject * obj1 = 0 ;
9325 PyObject * obj2 = 0 ;
9326 char * kwnames[] = {
9327 (char *) "self",(char *) "n",(char *) "select", NULL
9328 };
9329
9330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9332 if (!SWIG_IsOK(res1)) {
9333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9334 }
9335 arg1 = reinterpret_cast< wxListBox * >(argp1);
9336 ecode2 = SWIG_AsVal_int(obj1, &val2);
9337 if (!SWIG_IsOK(ecode2)) {
9338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9339 }
9340 arg2 = static_cast< int >(val2);
9341 if (obj2) {
9342 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9343 if (!SWIG_IsOK(ecode3)) {
9344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9345 }
9346 arg3 = static_cast< bool >(val3);
9347 }
9348 {
9349 PyThreadState* __tstate = wxPyBeginAllowThreads();
9350 (arg1)->SetSelection(arg2,arg3);
9351 wxPyEndAllowThreads(__tstate);
9352 if (PyErr_Occurred()) SWIG_fail;
9353 }
9354 resultobj = SWIG_Py_Void();
9355 return resultobj;
9356 fail:
9357 return NULL;
9358 }
9359
9360
9361 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9362 PyObject *resultobj = 0;
9363 wxListBox *arg1 = (wxListBox *) 0 ;
9364 int arg2 ;
9365 void *argp1 = 0 ;
9366 int res1 = 0 ;
9367 int val2 ;
9368 int ecode2 = 0 ;
9369 PyObject * obj0 = 0 ;
9370 PyObject * obj1 = 0 ;
9371 char * kwnames[] = {
9372 (char *) "self",(char *) "n", NULL
9373 };
9374
9375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9377 if (!SWIG_IsOK(res1)) {
9378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9379 }
9380 arg1 = reinterpret_cast< wxListBox * >(argp1);
9381 ecode2 = SWIG_AsVal_int(obj1, &val2);
9382 if (!SWIG_IsOK(ecode2)) {
9383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9384 }
9385 arg2 = static_cast< int >(val2);
9386 {
9387 PyThreadState* __tstate = wxPyBeginAllowThreads();
9388 (arg1)->Select(arg2);
9389 wxPyEndAllowThreads(__tstate);
9390 if (PyErr_Occurred()) SWIG_fail;
9391 }
9392 resultobj = SWIG_Py_Void();
9393 return resultobj;
9394 fail:
9395 return NULL;
9396 }
9397
9398
9399 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9400 PyObject *resultobj = 0;
9401 wxListBox *arg1 = (wxListBox *) 0 ;
9402 int arg2 ;
9403 void *argp1 = 0 ;
9404 int res1 = 0 ;
9405 int val2 ;
9406 int ecode2 = 0 ;
9407 PyObject * obj0 = 0 ;
9408 PyObject * obj1 = 0 ;
9409 char * kwnames[] = {
9410 (char *) "self",(char *) "n", NULL
9411 };
9412
9413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9415 if (!SWIG_IsOK(res1)) {
9416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9417 }
9418 arg1 = reinterpret_cast< wxListBox * >(argp1);
9419 ecode2 = SWIG_AsVal_int(obj1, &val2);
9420 if (!SWIG_IsOK(ecode2)) {
9421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9422 }
9423 arg2 = static_cast< int >(val2);
9424 {
9425 PyThreadState* __tstate = wxPyBeginAllowThreads();
9426 (arg1)->Deselect(arg2);
9427 wxPyEndAllowThreads(__tstate);
9428 if (PyErr_Occurred()) SWIG_fail;
9429 }
9430 resultobj = SWIG_Py_Void();
9431 return resultobj;
9432 fail:
9433 return NULL;
9434 }
9435
9436
9437 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9438 PyObject *resultobj = 0;
9439 wxListBox *arg1 = (wxListBox *) 0 ;
9440 int arg2 = (int) -1 ;
9441 void *argp1 = 0 ;
9442 int res1 = 0 ;
9443 int val2 ;
9444 int ecode2 = 0 ;
9445 PyObject * obj0 = 0 ;
9446 PyObject * obj1 = 0 ;
9447 char * kwnames[] = {
9448 (char *) "self",(char *) "itemToLeaveSelected", NULL
9449 };
9450
9451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9453 if (!SWIG_IsOK(res1)) {
9454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9455 }
9456 arg1 = reinterpret_cast< wxListBox * >(argp1);
9457 if (obj1) {
9458 ecode2 = SWIG_AsVal_int(obj1, &val2);
9459 if (!SWIG_IsOK(ecode2)) {
9460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9461 }
9462 arg2 = static_cast< int >(val2);
9463 }
9464 {
9465 PyThreadState* __tstate = wxPyBeginAllowThreads();
9466 (arg1)->DeselectAll(arg2);
9467 wxPyEndAllowThreads(__tstate);
9468 if (PyErr_Occurred()) SWIG_fail;
9469 }
9470 resultobj = SWIG_Py_Void();
9471 return resultobj;
9472 fail:
9473 return NULL;
9474 }
9475
9476
9477 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9478 PyObject *resultobj = 0;
9479 wxListBox *arg1 = (wxListBox *) 0 ;
9480 wxString *arg2 = 0 ;
9481 bool arg3 = (bool) true ;
9482 bool result;
9483 void *argp1 = 0 ;
9484 int res1 = 0 ;
9485 bool temp2 = false ;
9486 bool val3 ;
9487 int ecode3 = 0 ;
9488 PyObject * obj0 = 0 ;
9489 PyObject * obj1 = 0 ;
9490 PyObject * obj2 = 0 ;
9491 char * kwnames[] = {
9492 (char *) "self",(char *) "s",(char *) "select", NULL
9493 };
9494
9495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9497 if (!SWIG_IsOK(res1)) {
9498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9499 }
9500 arg1 = reinterpret_cast< wxListBox * >(argp1);
9501 {
9502 arg2 = wxString_in_helper(obj1);
9503 if (arg2 == NULL) SWIG_fail;
9504 temp2 = true;
9505 }
9506 if (obj2) {
9507 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9508 if (!SWIG_IsOK(ecode3)) {
9509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9510 }
9511 arg3 = static_cast< bool >(val3);
9512 }
9513 {
9514 PyThreadState* __tstate = wxPyBeginAllowThreads();
9515 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9516 wxPyEndAllowThreads(__tstate);
9517 if (PyErr_Occurred()) SWIG_fail;
9518 }
9519 {
9520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9521 }
9522 {
9523 if (temp2)
9524 delete arg2;
9525 }
9526 return resultobj;
9527 fail:
9528 {
9529 if (temp2)
9530 delete arg2;
9531 }
9532 return NULL;
9533 }
9534
9535
9536 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9537 PyObject *resultobj = 0;
9538 wxListBox *arg1 = (wxListBox *) 0 ;
9539 PyObject *result = 0 ;
9540 void *argp1 = 0 ;
9541 int res1 = 0 ;
9542 PyObject *swig_obj[1] ;
9543
9544 if (!args) SWIG_fail;
9545 swig_obj[0] = args;
9546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9547 if (!SWIG_IsOK(res1)) {
9548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9549 }
9550 arg1 = reinterpret_cast< wxListBox * >(argp1);
9551 {
9552 PyThreadState* __tstate = wxPyBeginAllowThreads();
9553 result = (PyObject *)wxListBox_GetSelections(arg1);
9554 wxPyEndAllowThreads(__tstate);
9555 if (PyErr_Occurred()) SWIG_fail;
9556 }
9557 resultobj = result;
9558 return resultobj;
9559 fail:
9560 return NULL;
9561 }
9562
9563
9564 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9565 PyObject *resultobj = 0;
9566 wxListBox *arg1 = (wxListBox *) 0 ;
9567 int arg2 ;
9568 void *argp1 = 0 ;
9569 int res1 = 0 ;
9570 int val2 ;
9571 int ecode2 = 0 ;
9572 PyObject * obj0 = 0 ;
9573 PyObject * obj1 = 0 ;
9574 char * kwnames[] = {
9575 (char *) "self",(char *) "n", NULL
9576 };
9577
9578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9580 if (!SWIG_IsOK(res1)) {
9581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9582 }
9583 arg1 = reinterpret_cast< wxListBox * >(argp1);
9584 ecode2 = SWIG_AsVal_int(obj1, &val2);
9585 if (!SWIG_IsOK(ecode2)) {
9586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9587 }
9588 arg2 = static_cast< int >(val2);
9589 {
9590 PyThreadState* __tstate = wxPyBeginAllowThreads();
9591 (arg1)->SetFirstItem(arg2);
9592 wxPyEndAllowThreads(__tstate);
9593 if (PyErr_Occurred()) SWIG_fail;
9594 }
9595 resultobj = SWIG_Py_Void();
9596 return resultobj;
9597 fail:
9598 return NULL;
9599 }
9600
9601
9602 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9603 PyObject *resultobj = 0;
9604 wxListBox *arg1 = (wxListBox *) 0 ;
9605 wxString *arg2 = 0 ;
9606 void *argp1 = 0 ;
9607 int res1 = 0 ;
9608 bool temp2 = false ;
9609 PyObject * obj0 = 0 ;
9610 PyObject * obj1 = 0 ;
9611 char * kwnames[] = {
9612 (char *) "self",(char *) "s", NULL
9613 };
9614
9615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9617 if (!SWIG_IsOK(res1)) {
9618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9619 }
9620 arg1 = reinterpret_cast< wxListBox * >(argp1);
9621 {
9622 arg2 = wxString_in_helper(obj1);
9623 if (arg2 == NULL) SWIG_fail;
9624 temp2 = true;
9625 }
9626 {
9627 PyThreadState* __tstate = wxPyBeginAllowThreads();
9628 (arg1)->SetFirstItem((wxString const &)*arg2);
9629 wxPyEndAllowThreads(__tstate);
9630 if (PyErr_Occurred()) SWIG_fail;
9631 }
9632 resultobj = SWIG_Py_Void();
9633 {
9634 if (temp2)
9635 delete arg2;
9636 }
9637 return resultobj;
9638 fail:
9639 {
9640 if (temp2)
9641 delete arg2;
9642 }
9643 return NULL;
9644 }
9645
9646
9647 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9648 PyObject *resultobj = 0;
9649 wxListBox *arg1 = (wxListBox *) 0 ;
9650 int arg2 ;
9651 void *argp1 = 0 ;
9652 int res1 = 0 ;
9653 int val2 ;
9654 int ecode2 = 0 ;
9655 PyObject * obj0 = 0 ;
9656 PyObject * obj1 = 0 ;
9657 char * kwnames[] = {
9658 (char *) "self",(char *) "n", NULL
9659 };
9660
9661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9663 if (!SWIG_IsOK(res1)) {
9664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9665 }
9666 arg1 = reinterpret_cast< wxListBox * >(argp1);
9667 ecode2 = SWIG_AsVal_int(obj1, &val2);
9668 if (!SWIG_IsOK(ecode2)) {
9669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9670 }
9671 arg2 = static_cast< int >(val2);
9672 {
9673 PyThreadState* __tstate = wxPyBeginAllowThreads();
9674 (arg1)->EnsureVisible(arg2);
9675 wxPyEndAllowThreads(__tstate);
9676 if (PyErr_Occurred()) SWIG_fail;
9677 }
9678 resultobj = SWIG_Py_Void();
9679 return resultobj;
9680 fail:
9681 return NULL;
9682 }
9683
9684
9685 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9686 PyObject *resultobj = 0;
9687 wxListBox *arg1 = (wxListBox *) 0 ;
9688 wxString *arg2 = 0 ;
9689 void *argp1 = 0 ;
9690 int res1 = 0 ;
9691 bool temp2 = false ;
9692 PyObject * obj0 = 0 ;
9693 PyObject * obj1 = 0 ;
9694 char * kwnames[] = {
9695 (char *) "self",(char *) "s", NULL
9696 };
9697
9698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9700 if (!SWIG_IsOK(res1)) {
9701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9702 }
9703 arg1 = reinterpret_cast< wxListBox * >(argp1);
9704 {
9705 arg2 = wxString_in_helper(obj1);
9706 if (arg2 == NULL) SWIG_fail;
9707 temp2 = true;
9708 }
9709 {
9710 PyThreadState* __tstate = wxPyBeginAllowThreads();
9711 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9712 wxPyEndAllowThreads(__tstate);
9713 if (PyErr_Occurred()) SWIG_fail;
9714 }
9715 resultobj = SWIG_Py_Void();
9716 {
9717 if (temp2)
9718 delete arg2;
9719 }
9720 return resultobj;
9721 fail:
9722 {
9723 if (temp2)
9724 delete arg2;
9725 }
9726 return NULL;
9727 }
9728
9729
9730 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9731 PyObject *resultobj = 0;
9732 wxListBox *arg1 = (wxListBox *) 0 ;
9733 bool result;
9734 void *argp1 = 0 ;
9735 int res1 = 0 ;
9736 PyObject *swig_obj[1] ;
9737
9738 if (!args) SWIG_fail;
9739 swig_obj[0] = args;
9740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9741 if (!SWIG_IsOK(res1)) {
9742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9743 }
9744 arg1 = reinterpret_cast< wxListBox * >(argp1);
9745 {
9746 PyThreadState* __tstate = wxPyBeginAllowThreads();
9747 result = (bool)((wxListBox const *)arg1)->IsSorted();
9748 wxPyEndAllowThreads(__tstate);
9749 if (PyErr_Occurred()) SWIG_fail;
9750 }
9751 {
9752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9753 }
9754 return resultobj;
9755 fail:
9756 return NULL;
9757 }
9758
9759
9760 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9761 PyObject *resultobj = 0;
9762 wxListBox *arg1 = (wxListBox *) 0 ;
9763 wxPoint *arg2 = 0 ;
9764 int result;
9765 void *argp1 = 0 ;
9766 int res1 = 0 ;
9767 wxPoint temp2 ;
9768 PyObject * obj0 = 0 ;
9769 PyObject * obj1 = 0 ;
9770 char * kwnames[] = {
9771 (char *) "self",(char *) "pt", NULL
9772 };
9773
9774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9776 if (!SWIG_IsOK(res1)) {
9777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9778 }
9779 arg1 = reinterpret_cast< wxListBox * >(argp1);
9780 {
9781 arg2 = &temp2;
9782 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9783 }
9784 {
9785 PyThreadState* __tstate = wxPyBeginAllowThreads();
9786 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9787 wxPyEndAllowThreads(__tstate);
9788 if (PyErr_Occurred()) SWIG_fail;
9789 }
9790 resultobj = SWIG_From_int(static_cast< int >(result));
9791 return resultobj;
9792 fail:
9793 return NULL;
9794 }
9795
9796
9797 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9798 PyObject *resultobj = 0;
9799 wxListBox *arg1 = (wxListBox *) 0 ;
9800 int arg2 ;
9801 wxColour *arg3 = 0 ;
9802 void *argp1 = 0 ;
9803 int res1 = 0 ;
9804 int val2 ;
9805 int ecode2 = 0 ;
9806 wxColour temp3 ;
9807 PyObject * obj0 = 0 ;
9808 PyObject * obj1 = 0 ;
9809 PyObject * obj2 = 0 ;
9810 char * kwnames[] = {
9811 (char *) "self",(char *) "item",(char *) "c", NULL
9812 };
9813
9814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9816 if (!SWIG_IsOK(res1)) {
9817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9818 }
9819 arg1 = reinterpret_cast< wxListBox * >(argp1);
9820 ecode2 = SWIG_AsVal_int(obj1, &val2);
9821 if (!SWIG_IsOK(ecode2)) {
9822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9823 }
9824 arg2 = static_cast< int >(val2);
9825 {
9826 arg3 = &temp3;
9827 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9828 }
9829 {
9830 PyThreadState* __tstate = wxPyBeginAllowThreads();
9831 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9832 wxPyEndAllowThreads(__tstate);
9833 if (PyErr_Occurred()) SWIG_fail;
9834 }
9835 resultobj = SWIG_Py_Void();
9836 return resultobj;
9837 fail:
9838 return NULL;
9839 }
9840
9841
9842 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9843 PyObject *resultobj = 0;
9844 wxListBox *arg1 = (wxListBox *) 0 ;
9845 int arg2 ;
9846 wxColour *arg3 = 0 ;
9847 void *argp1 = 0 ;
9848 int res1 = 0 ;
9849 int val2 ;
9850 int ecode2 = 0 ;
9851 wxColour temp3 ;
9852 PyObject * obj0 = 0 ;
9853 PyObject * obj1 = 0 ;
9854 PyObject * obj2 = 0 ;
9855 char * kwnames[] = {
9856 (char *) "self",(char *) "item",(char *) "c", NULL
9857 };
9858
9859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9861 if (!SWIG_IsOK(res1)) {
9862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9863 }
9864 arg1 = reinterpret_cast< wxListBox * >(argp1);
9865 ecode2 = SWIG_AsVal_int(obj1, &val2);
9866 if (!SWIG_IsOK(ecode2)) {
9867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9868 }
9869 arg2 = static_cast< int >(val2);
9870 {
9871 arg3 = &temp3;
9872 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9873 }
9874 {
9875 PyThreadState* __tstate = wxPyBeginAllowThreads();
9876 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9877 wxPyEndAllowThreads(__tstate);
9878 if (PyErr_Occurred()) SWIG_fail;
9879 }
9880 resultobj = SWIG_Py_Void();
9881 return resultobj;
9882 fail:
9883 return NULL;
9884 }
9885
9886
9887 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9888 PyObject *resultobj = 0;
9889 wxListBox *arg1 = (wxListBox *) 0 ;
9890 int arg2 ;
9891 wxFont *arg3 = 0 ;
9892 void *argp1 = 0 ;
9893 int res1 = 0 ;
9894 int val2 ;
9895 int ecode2 = 0 ;
9896 void *argp3 = 0 ;
9897 int res3 = 0 ;
9898 PyObject * obj0 = 0 ;
9899 PyObject * obj1 = 0 ;
9900 PyObject * obj2 = 0 ;
9901 char * kwnames[] = {
9902 (char *) "self",(char *) "item",(char *) "f", NULL
9903 };
9904
9905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9907 if (!SWIG_IsOK(res1)) {
9908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9909 }
9910 arg1 = reinterpret_cast< wxListBox * >(argp1);
9911 ecode2 = SWIG_AsVal_int(obj1, &val2);
9912 if (!SWIG_IsOK(ecode2)) {
9913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9914 }
9915 arg2 = static_cast< int >(val2);
9916 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9917 if (!SWIG_IsOK(res3)) {
9918 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9919 }
9920 if (!argp3) {
9921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9922 }
9923 arg3 = reinterpret_cast< wxFont * >(argp3);
9924 {
9925 PyThreadState* __tstate = wxPyBeginAllowThreads();
9926 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9927 wxPyEndAllowThreads(__tstate);
9928 if (PyErr_Occurred()) SWIG_fail;
9929 }
9930 resultobj = SWIG_Py_Void();
9931 return resultobj;
9932 fail:
9933 return NULL;
9934 }
9935
9936
9937 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9938 PyObject *resultobj = 0;
9939 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9940 SwigValueWrapper<wxVisualAttributes > result;
9941 int val1 ;
9942 int ecode1 = 0 ;
9943 PyObject * obj0 = 0 ;
9944 char * kwnames[] = {
9945 (char *) "variant", NULL
9946 };
9947
9948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9949 if (obj0) {
9950 ecode1 = SWIG_AsVal_int(obj0, &val1);
9951 if (!SWIG_IsOK(ecode1)) {
9952 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9953 }
9954 arg1 = static_cast< wxWindowVariant >(val1);
9955 }
9956 {
9957 if (!wxPyCheckForApp()) SWIG_fail;
9958 PyThreadState* __tstate = wxPyBeginAllowThreads();
9959 result = wxListBox::GetClassDefaultAttributes(arg1);
9960 wxPyEndAllowThreads(__tstate);
9961 if (PyErr_Occurred()) SWIG_fail;
9962 }
9963 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9964 return resultobj;
9965 fail:
9966 return NULL;
9967 }
9968
9969
9970 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9971 PyObject *obj;
9972 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9973 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9974 return SWIG_Py_Void();
9975 }
9976
9977 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9978 return SWIG_Python_InitShadowInstance(args);
9979 }
9980
9981 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9982 PyObject *resultobj = 0;
9983 wxWindow *arg1 = (wxWindow *) 0 ;
9984 int arg2 = (int) -1 ;
9985 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9986 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9987 wxSize const &arg4_defvalue = wxDefaultSize ;
9988 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9989 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9990 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9991 long arg6 = (long) 0 ;
9992 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9993 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9994 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9995 wxString *arg8 = (wxString *) &arg8_defvalue ;
9996 wxCheckListBox *result = 0 ;
9997 void *argp1 = 0 ;
9998 int res1 = 0 ;
9999 int val2 ;
10000 int ecode2 = 0 ;
10001 wxPoint temp3 ;
10002 wxSize temp4 ;
10003 bool temp5 = false ;
10004 long val6 ;
10005 int ecode6 = 0 ;
10006 void *argp7 = 0 ;
10007 int res7 = 0 ;
10008 bool temp8 = false ;
10009 PyObject * obj0 = 0 ;
10010 PyObject * obj1 = 0 ;
10011 PyObject * obj2 = 0 ;
10012 PyObject * obj3 = 0 ;
10013 PyObject * obj4 = 0 ;
10014 PyObject * obj5 = 0 ;
10015 PyObject * obj6 = 0 ;
10016 PyObject * obj7 = 0 ;
10017 char * kwnames[] = {
10018 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10019 };
10020
10021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10023 if (!SWIG_IsOK(res1)) {
10024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10025 }
10026 arg1 = reinterpret_cast< wxWindow * >(argp1);
10027 if (obj1) {
10028 ecode2 = SWIG_AsVal_int(obj1, &val2);
10029 if (!SWIG_IsOK(ecode2)) {
10030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10031 }
10032 arg2 = static_cast< int >(val2);
10033 }
10034 if (obj2) {
10035 {
10036 arg3 = &temp3;
10037 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10038 }
10039 }
10040 if (obj3) {
10041 {
10042 arg4 = &temp4;
10043 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10044 }
10045 }
10046 if (obj4) {
10047 {
10048 if (! PySequence_Check(obj4)) {
10049 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10050 SWIG_fail;
10051 }
10052 arg5 = new wxArrayString;
10053 temp5 = true;
10054 int i, len=PySequence_Length(obj4);
10055 for (i=0; i<len; i++) {
10056 PyObject* item = PySequence_GetItem(obj4, i);
10057 wxString* s = wxString_in_helper(item);
10058 if (PyErr_Occurred()) SWIG_fail;
10059 arg5->Add(*s);
10060 delete s;
10061 Py_DECREF(item);
10062 }
10063 }
10064 }
10065 if (obj5) {
10066 ecode6 = SWIG_AsVal_long(obj5, &val6);
10067 if (!SWIG_IsOK(ecode6)) {
10068 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10069 }
10070 arg6 = static_cast< long >(val6);
10071 }
10072 if (obj6) {
10073 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10074 if (!SWIG_IsOK(res7)) {
10075 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10076 }
10077 if (!argp7) {
10078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10079 }
10080 arg7 = reinterpret_cast< wxValidator * >(argp7);
10081 }
10082 if (obj7) {
10083 {
10084 arg8 = wxString_in_helper(obj7);
10085 if (arg8 == NULL) SWIG_fail;
10086 temp8 = true;
10087 }
10088 }
10089 {
10090 if (!wxPyCheckForApp()) SWIG_fail;
10091 PyThreadState* __tstate = wxPyBeginAllowThreads();
10092 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10093 wxPyEndAllowThreads(__tstate);
10094 if (PyErr_Occurred()) SWIG_fail;
10095 }
10096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10097 {
10098 if (temp5) delete arg5;
10099 }
10100 {
10101 if (temp8)
10102 delete arg8;
10103 }
10104 return resultobj;
10105 fail:
10106 {
10107 if (temp5) delete arg5;
10108 }
10109 {
10110 if (temp8)
10111 delete arg8;
10112 }
10113 return NULL;
10114 }
10115
10116
10117 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10118 PyObject *resultobj = 0;
10119 wxCheckListBox *result = 0 ;
10120
10121 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10122 {
10123 if (!wxPyCheckForApp()) SWIG_fail;
10124 PyThreadState* __tstate = wxPyBeginAllowThreads();
10125 result = (wxCheckListBox *)new wxCheckListBox();
10126 wxPyEndAllowThreads(__tstate);
10127 if (PyErr_Occurred()) SWIG_fail;
10128 }
10129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10130 return resultobj;
10131 fail:
10132 return NULL;
10133 }
10134
10135
10136 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10137 PyObject *resultobj = 0;
10138 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10139 wxWindow *arg2 = (wxWindow *) 0 ;
10140 int arg3 = (int) -1 ;
10141 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10142 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10143 wxSize const &arg5_defvalue = wxDefaultSize ;
10144 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10145 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10146 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10147 long arg7 = (long) 0 ;
10148 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10149 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10150 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10151 wxString *arg9 = (wxString *) &arg9_defvalue ;
10152 bool result;
10153 void *argp1 = 0 ;
10154 int res1 = 0 ;
10155 void *argp2 = 0 ;
10156 int res2 = 0 ;
10157 int val3 ;
10158 int ecode3 = 0 ;
10159 wxPoint temp4 ;
10160 wxSize temp5 ;
10161 bool temp6 = false ;
10162 long val7 ;
10163 int ecode7 = 0 ;
10164 void *argp8 = 0 ;
10165 int res8 = 0 ;
10166 bool temp9 = false ;
10167 PyObject * obj0 = 0 ;
10168 PyObject * obj1 = 0 ;
10169 PyObject * obj2 = 0 ;
10170 PyObject * obj3 = 0 ;
10171 PyObject * obj4 = 0 ;
10172 PyObject * obj5 = 0 ;
10173 PyObject * obj6 = 0 ;
10174 PyObject * obj7 = 0 ;
10175 PyObject * obj8 = 0 ;
10176 char * kwnames[] = {
10177 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10178 };
10179
10180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10182 if (!SWIG_IsOK(res1)) {
10183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10184 }
10185 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10186 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10187 if (!SWIG_IsOK(res2)) {
10188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10189 }
10190 arg2 = reinterpret_cast< wxWindow * >(argp2);
10191 if (obj2) {
10192 ecode3 = SWIG_AsVal_int(obj2, &val3);
10193 if (!SWIG_IsOK(ecode3)) {
10194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10195 }
10196 arg3 = static_cast< int >(val3);
10197 }
10198 if (obj3) {
10199 {
10200 arg4 = &temp4;
10201 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10202 }
10203 }
10204 if (obj4) {
10205 {
10206 arg5 = &temp5;
10207 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10208 }
10209 }
10210 if (obj5) {
10211 {
10212 if (! PySequence_Check(obj5)) {
10213 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10214 SWIG_fail;
10215 }
10216 arg6 = new wxArrayString;
10217 temp6 = true;
10218 int i, len=PySequence_Length(obj5);
10219 for (i=0; i<len; i++) {
10220 PyObject* item = PySequence_GetItem(obj5, i);
10221 wxString* s = wxString_in_helper(item);
10222 if (PyErr_Occurred()) SWIG_fail;
10223 arg6->Add(*s);
10224 delete s;
10225 Py_DECREF(item);
10226 }
10227 }
10228 }
10229 if (obj6) {
10230 ecode7 = SWIG_AsVal_long(obj6, &val7);
10231 if (!SWIG_IsOK(ecode7)) {
10232 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10233 }
10234 arg7 = static_cast< long >(val7);
10235 }
10236 if (obj7) {
10237 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10238 if (!SWIG_IsOK(res8)) {
10239 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10240 }
10241 if (!argp8) {
10242 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10243 }
10244 arg8 = reinterpret_cast< wxValidator * >(argp8);
10245 }
10246 if (obj8) {
10247 {
10248 arg9 = wxString_in_helper(obj8);
10249 if (arg9 == NULL) SWIG_fail;
10250 temp9 = true;
10251 }
10252 }
10253 {
10254 PyThreadState* __tstate = wxPyBeginAllowThreads();
10255 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10256 wxPyEndAllowThreads(__tstate);
10257 if (PyErr_Occurred()) SWIG_fail;
10258 }
10259 {
10260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10261 }
10262 {
10263 if (temp6) delete arg6;
10264 }
10265 {
10266 if (temp9)
10267 delete arg9;
10268 }
10269 return resultobj;
10270 fail:
10271 {
10272 if (temp6) delete arg6;
10273 }
10274 {
10275 if (temp9)
10276 delete arg9;
10277 }
10278 return NULL;
10279 }
10280
10281
10282 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10283 PyObject *resultobj = 0;
10284 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10285 unsigned int arg2 ;
10286 bool result;
10287 void *argp1 = 0 ;
10288 int res1 = 0 ;
10289 unsigned int val2 ;
10290 int ecode2 = 0 ;
10291 PyObject * obj0 = 0 ;
10292 PyObject * obj1 = 0 ;
10293 char * kwnames[] = {
10294 (char *) "self",(char *) "index", NULL
10295 };
10296
10297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10299 if (!SWIG_IsOK(res1)) {
10300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10301 }
10302 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10303 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10304 if (!SWIG_IsOK(ecode2)) {
10305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10306 }
10307 arg2 = static_cast< unsigned int >(val2);
10308 {
10309 PyThreadState* __tstate = wxPyBeginAllowThreads();
10310 result = (bool)(arg1)->IsChecked(arg2);
10311 wxPyEndAllowThreads(__tstate);
10312 if (PyErr_Occurred()) SWIG_fail;
10313 }
10314 {
10315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10316 }
10317 return resultobj;
10318 fail:
10319 return NULL;
10320 }
10321
10322
10323 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10324 PyObject *resultobj = 0;
10325 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10326 unsigned int arg2 ;
10327 int arg3 = (int) true ;
10328 void *argp1 = 0 ;
10329 int res1 = 0 ;
10330 unsigned int val2 ;
10331 int ecode2 = 0 ;
10332 int val3 ;
10333 int ecode3 = 0 ;
10334 PyObject * obj0 = 0 ;
10335 PyObject * obj1 = 0 ;
10336 PyObject * obj2 = 0 ;
10337 char * kwnames[] = {
10338 (char *) "self",(char *) "index",(char *) "check", NULL
10339 };
10340
10341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10343 if (!SWIG_IsOK(res1)) {
10344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10345 }
10346 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10347 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10348 if (!SWIG_IsOK(ecode2)) {
10349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10350 }
10351 arg2 = static_cast< unsigned int >(val2);
10352 if (obj2) {
10353 ecode3 = SWIG_AsVal_int(obj2, &val3);
10354 if (!SWIG_IsOK(ecode3)) {
10355 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10356 }
10357 arg3 = static_cast< int >(val3);
10358 }
10359 {
10360 PyThreadState* __tstate = wxPyBeginAllowThreads();
10361 (arg1)->Check(arg2,arg3);
10362 wxPyEndAllowThreads(__tstate);
10363 if (PyErr_Occurred()) SWIG_fail;
10364 }
10365 resultobj = SWIG_Py_Void();
10366 return resultobj;
10367 fail:
10368 return NULL;
10369 }
10370
10371
10372 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10373 PyObject *obj;
10374 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10375 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10376 return SWIG_Py_Void();
10377 }
10378
10379 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10380 return SWIG_Python_InitShadowInstance(args);
10381 }
10382
10383 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10384 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10385 return 1;
10386 }
10387
10388
10389 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10390 PyObject *pyobj = 0;
10391
10392 {
10393 #if wxUSE_UNICODE
10394 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10395 #else
10396 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10397 #endif
10398 }
10399 return pyobj;
10400 }
10401
10402
10403 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10404 PyObject *resultobj = 0;
10405 wxColour const &arg1_defvalue = wxNullColour ;
10406 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10407 wxColour const &arg2_defvalue = wxNullColour ;
10408 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10409 wxFont const &arg3_defvalue = wxNullFont ;
10410 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10411 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10412 wxTextAttr *result = 0 ;
10413 wxColour temp1 ;
10414 wxColour temp2 ;
10415 void *argp3 = 0 ;
10416 int res3 = 0 ;
10417 int val4 ;
10418 int ecode4 = 0 ;
10419 PyObject * obj0 = 0 ;
10420 PyObject * obj1 = 0 ;
10421 PyObject * obj2 = 0 ;
10422 PyObject * obj3 = 0 ;
10423 char * kwnames[] = {
10424 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10425 };
10426
10427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10428 if (obj0) {
10429 {
10430 arg1 = &temp1;
10431 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10432 }
10433 }
10434 if (obj1) {
10435 {
10436 arg2 = &temp2;
10437 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10438 }
10439 }
10440 if (obj2) {
10441 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10442 if (!SWIG_IsOK(res3)) {
10443 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10444 }
10445 if (!argp3) {
10446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10447 }
10448 arg3 = reinterpret_cast< wxFont * >(argp3);
10449 }
10450 if (obj3) {
10451 ecode4 = SWIG_AsVal_int(obj3, &val4);
10452 if (!SWIG_IsOK(ecode4)) {
10453 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10454 }
10455 arg4 = static_cast< wxTextAttrAlignment >(val4);
10456 }
10457 {
10458 PyThreadState* __tstate = wxPyBeginAllowThreads();
10459 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10460 wxPyEndAllowThreads(__tstate);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 }
10463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10464 return resultobj;
10465 fail:
10466 return NULL;
10467 }
10468
10469
10470 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10471 PyObject *resultobj = 0;
10472 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10473 void *argp1 = 0 ;
10474 int res1 = 0 ;
10475 PyObject *swig_obj[1] ;
10476
10477 if (!args) SWIG_fail;
10478 swig_obj[0] = args;
10479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10480 if (!SWIG_IsOK(res1)) {
10481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10482 }
10483 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10484 {
10485 PyThreadState* __tstate = wxPyBeginAllowThreads();
10486 delete arg1;
10487
10488 wxPyEndAllowThreads(__tstate);
10489 if (PyErr_Occurred()) SWIG_fail;
10490 }
10491 resultobj = SWIG_Py_Void();
10492 return resultobj;
10493 fail:
10494 return NULL;
10495 }
10496
10497
10498 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10499 PyObject *resultobj = 0;
10500 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10501 void *argp1 = 0 ;
10502 int res1 = 0 ;
10503 PyObject *swig_obj[1] ;
10504
10505 if (!args) SWIG_fail;
10506 swig_obj[0] = args;
10507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10508 if (!SWIG_IsOK(res1)) {
10509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10510 }
10511 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10512 {
10513 PyThreadState* __tstate = wxPyBeginAllowThreads();
10514 (arg1)->Init();
10515 wxPyEndAllowThreads(__tstate);
10516 if (PyErr_Occurred()) SWIG_fail;
10517 }
10518 resultobj = SWIG_Py_Void();
10519 return resultobj;
10520 fail:
10521 return NULL;
10522 }
10523
10524
10525 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10526 PyObject *resultobj = 0;
10527 wxTextAttr *arg1 = 0 ;
10528 wxTextAttr *arg2 = 0 ;
10529 wxTextAttr result;
10530 void *argp1 = 0 ;
10531 int res1 = 0 ;
10532 void *argp2 = 0 ;
10533 int res2 = 0 ;
10534 PyObject * obj0 = 0 ;
10535 PyObject * obj1 = 0 ;
10536 char * kwnames[] = {
10537 (char *) "base",(char *) "overlay", NULL
10538 };
10539
10540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10541 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10542 if (!SWIG_IsOK(res1)) {
10543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10544 }
10545 if (!argp1) {
10546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10547 }
10548 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10549 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10550 if (!SWIG_IsOK(res2)) {
10551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10552 }
10553 if (!argp2) {
10554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10555 }
10556 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10557 {
10558 PyThreadState* __tstate = wxPyBeginAllowThreads();
10559 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10560 wxPyEndAllowThreads(__tstate);
10561 if (PyErr_Occurred()) SWIG_fail;
10562 }
10563 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10564 return resultobj;
10565 fail:
10566 return NULL;
10567 }
10568
10569
10570 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10571 PyObject *resultobj = 0;
10572 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10573 wxColour *arg2 = 0 ;
10574 void *argp1 = 0 ;
10575 int res1 = 0 ;
10576 wxColour temp2 ;
10577 PyObject * obj0 = 0 ;
10578 PyObject * obj1 = 0 ;
10579 char * kwnames[] = {
10580 (char *) "self",(char *) "colText", NULL
10581 };
10582
10583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10585 if (!SWIG_IsOK(res1)) {
10586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10587 }
10588 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10589 {
10590 arg2 = &temp2;
10591 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10592 }
10593 {
10594 PyThreadState* __tstate = wxPyBeginAllowThreads();
10595 (arg1)->SetTextColour((wxColour const &)*arg2);
10596 wxPyEndAllowThreads(__tstate);
10597 if (PyErr_Occurred()) SWIG_fail;
10598 }
10599 resultobj = SWIG_Py_Void();
10600 return resultobj;
10601 fail:
10602 return NULL;
10603 }
10604
10605
10606 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10607 PyObject *resultobj = 0;
10608 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10609 wxColour *arg2 = 0 ;
10610 void *argp1 = 0 ;
10611 int res1 = 0 ;
10612 wxColour temp2 ;
10613 PyObject * obj0 = 0 ;
10614 PyObject * obj1 = 0 ;
10615 char * kwnames[] = {
10616 (char *) "self",(char *) "colBack", NULL
10617 };
10618
10619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10621 if (!SWIG_IsOK(res1)) {
10622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10623 }
10624 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10625 {
10626 arg2 = &temp2;
10627 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10628 }
10629 {
10630 PyThreadState* __tstate = wxPyBeginAllowThreads();
10631 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10632 wxPyEndAllowThreads(__tstate);
10633 if (PyErr_Occurred()) SWIG_fail;
10634 }
10635 resultobj = SWIG_Py_Void();
10636 return resultobj;
10637 fail:
10638 return NULL;
10639 }
10640
10641
10642 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10643 PyObject *resultobj = 0;
10644 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10645 wxFont *arg2 = 0 ;
10646 long arg3 = (long) wxTEXT_ATTR_FONT ;
10647 void *argp1 = 0 ;
10648 int res1 = 0 ;
10649 void *argp2 = 0 ;
10650 int res2 = 0 ;
10651 long val3 ;
10652 int ecode3 = 0 ;
10653 PyObject * obj0 = 0 ;
10654 PyObject * obj1 = 0 ;
10655 PyObject * obj2 = 0 ;
10656 char * kwnames[] = {
10657 (char *) "self",(char *) "font",(char *) "flags", NULL
10658 };
10659
10660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10662 if (!SWIG_IsOK(res1)) {
10663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10664 }
10665 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10667 if (!SWIG_IsOK(res2)) {
10668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10669 }
10670 if (!argp2) {
10671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10672 }
10673 arg2 = reinterpret_cast< wxFont * >(argp2);
10674 if (obj2) {
10675 ecode3 = SWIG_AsVal_long(obj2, &val3);
10676 if (!SWIG_IsOK(ecode3)) {
10677 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10678 }
10679 arg3 = static_cast< long >(val3);
10680 }
10681 {
10682 PyThreadState* __tstate = wxPyBeginAllowThreads();
10683 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10684 wxPyEndAllowThreads(__tstate);
10685 if (PyErr_Occurred()) SWIG_fail;
10686 }
10687 resultobj = SWIG_Py_Void();
10688 return resultobj;
10689 fail:
10690 return NULL;
10691 }
10692
10693
10694 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10695 PyObject *resultobj = 0;
10696 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10697 wxTextAttrAlignment arg2 ;
10698 void *argp1 = 0 ;
10699 int res1 = 0 ;
10700 int val2 ;
10701 int ecode2 = 0 ;
10702 PyObject * obj0 = 0 ;
10703 PyObject * obj1 = 0 ;
10704 char * kwnames[] = {
10705 (char *) "self",(char *) "alignment", NULL
10706 };
10707
10708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10710 if (!SWIG_IsOK(res1)) {
10711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10712 }
10713 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10714 ecode2 = SWIG_AsVal_int(obj1, &val2);
10715 if (!SWIG_IsOK(ecode2)) {
10716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10717 }
10718 arg2 = static_cast< wxTextAttrAlignment >(val2);
10719 {
10720 PyThreadState* __tstate = wxPyBeginAllowThreads();
10721 (arg1)->SetAlignment(arg2);
10722 wxPyEndAllowThreads(__tstate);
10723 if (PyErr_Occurred()) SWIG_fail;
10724 }
10725 resultobj = SWIG_Py_Void();
10726 return resultobj;
10727 fail:
10728 return NULL;
10729 }
10730
10731
10732 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10733 PyObject *resultobj = 0;
10734 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10735 wxArrayInt *arg2 = 0 ;
10736 void *argp1 = 0 ;
10737 int res1 = 0 ;
10738 bool temp2 = false ;
10739 PyObject * obj0 = 0 ;
10740 PyObject * obj1 = 0 ;
10741 char * kwnames[] = {
10742 (char *) "self",(char *) "tabs", NULL
10743 };
10744
10745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10747 if (!SWIG_IsOK(res1)) {
10748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10749 }
10750 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10751 {
10752 if (! PySequence_Check(obj1)) {
10753 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10754 SWIG_fail;
10755 }
10756 arg2 = new wxArrayInt;
10757 temp2 = true;
10758 int i, len=PySequence_Length(obj1);
10759 for (i=0; i<len; i++) {
10760 PyObject* item = PySequence_GetItem(obj1, i);
10761 PyObject* number = PyNumber_Int(item);
10762 arg2->Add(PyInt_AS_LONG(number));
10763 Py_DECREF(item);
10764 Py_DECREF(number);
10765 }
10766 }
10767 {
10768 PyThreadState* __tstate = wxPyBeginAllowThreads();
10769 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10770 wxPyEndAllowThreads(__tstate);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 }
10773 resultobj = SWIG_Py_Void();
10774 {
10775 if (temp2) delete arg2;
10776 }
10777 return resultobj;
10778 fail:
10779 {
10780 if (temp2) delete arg2;
10781 }
10782 return NULL;
10783 }
10784
10785
10786 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10787 PyObject *resultobj = 0;
10788 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10789 int arg2 ;
10790 int arg3 = (int) 0 ;
10791 void *argp1 = 0 ;
10792 int res1 = 0 ;
10793 int val2 ;
10794 int ecode2 = 0 ;
10795 int val3 ;
10796 int ecode3 = 0 ;
10797 PyObject * obj0 = 0 ;
10798 PyObject * obj1 = 0 ;
10799 PyObject * obj2 = 0 ;
10800 char * kwnames[] = {
10801 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10802 };
10803
10804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10806 if (!SWIG_IsOK(res1)) {
10807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10808 }
10809 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10810 ecode2 = SWIG_AsVal_int(obj1, &val2);
10811 if (!SWIG_IsOK(ecode2)) {
10812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10813 }
10814 arg2 = static_cast< int >(val2);
10815 if (obj2) {
10816 ecode3 = SWIG_AsVal_int(obj2, &val3);
10817 if (!SWIG_IsOK(ecode3)) {
10818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10819 }
10820 arg3 = static_cast< int >(val3);
10821 }
10822 {
10823 PyThreadState* __tstate = wxPyBeginAllowThreads();
10824 (arg1)->SetLeftIndent(arg2,arg3);
10825 wxPyEndAllowThreads(__tstate);
10826 if (PyErr_Occurred()) SWIG_fail;
10827 }
10828 resultobj = SWIG_Py_Void();
10829 return resultobj;
10830 fail:
10831 return NULL;
10832 }
10833
10834
10835 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10836 PyObject *resultobj = 0;
10837 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10838 int arg2 ;
10839 void *argp1 = 0 ;
10840 int res1 = 0 ;
10841 int val2 ;
10842 int ecode2 = 0 ;
10843 PyObject * obj0 = 0 ;
10844 PyObject * obj1 = 0 ;
10845 char * kwnames[] = {
10846 (char *) "self",(char *) "indent", NULL
10847 };
10848
10849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10851 if (!SWIG_IsOK(res1)) {
10852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10853 }
10854 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10855 ecode2 = SWIG_AsVal_int(obj1, &val2);
10856 if (!SWIG_IsOK(ecode2)) {
10857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10858 }
10859 arg2 = static_cast< int >(val2);
10860 {
10861 PyThreadState* __tstate = wxPyBeginAllowThreads();
10862 (arg1)->SetRightIndent(arg2);
10863 wxPyEndAllowThreads(__tstate);
10864 if (PyErr_Occurred()) SWIG_fail;
10865 }
10866 resultobj = SWIG_Py_Void();
10867 return resultobj;
10868 fail:
10869 return NULL;
10870 }
10871
10872
10873 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10874 PyObject *resultobj = 0;
10875 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10876 long arg2 ;
10877 void *argp1 = 0 ;
10878 int res1 = 0 ;
10879 long val2 ;
10880 int ecode2 = 0 ;
10881 PyObject * obj0 = 0 ;
10882 PyObject * obj1 = 0 ;
10883 char * kwnames[] = {
10884 (char *) "self",(char *) "flags", NULL
10885 };
10886
10887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10889 if (!SWIG_IsOK(res1)) {
10890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10891 }
10892 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10893 ecode2 = SWIG_AsVal_long(obj1, &val2);
10894 if (!SWIG_IsOK(ecode2)) {
10895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10896 }
10897 arg2 = static_cast< long >(val2);
10898 {
10899 PyThreadState* __tstate = wxPyBeginAllowThreads();
10900 (arg1)->SetFlags(arg2);
10901 wxPyEndAllowThreads(__tstate);
10902 if (PyErr_Occurred()) SWIG_fail;
10903 }
10904 resultobj = SWIG_Py_Void();
10905 return resultobj;
10906 fail:
10907 return NULL;
10908 }
10909
10910
10911 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10912 PyObject *resultobj = 0;
10913 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10914 bool result;
10915 void *argp1 = 0 ;
10916 int res1 = 0 ;
10917 PyObject *swig_obj[1] ;
10918
10919 if (!args) SWIG_fail;
10920 swig_obj[0] = args;
10921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10922 if (!SWIG_IsOK(res1)) {
10923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10924 }
10925 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10926 {
10927 PyThreadState* __tstate = wxPyBeginAllowThreads();
10928 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10929 wxPyEndAllowThreads(__tstate);
10930 if (PyErr_Occurred()) SWIG_fail;
10931 }
10932 {
10933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10934 }
10935 return resultobj;
10936 fail:
10937 return NULL;
10938 }
10939
10940
10941 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10942 PyObject *resultobj = 0;
10943 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10944 bool result;
10945 void *argp1 = 0 ;
10946 int res1 = 0 ;
10947 PyObject *swig_obj[1] ;
10948
10949 if (!args) SWIG_fail;
10950 swig_obj[0] = args;
10951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10952 if (!SWIG_IsOK(res1)) {
10953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10954 }
10955 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10956 {
10957 PyThreadState* __tstate = wxPyBeginAllowThreads();
10958 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10959 wxPyEndAllowThreads(__tstate);
10960 if (PyErr_Occurred()) SWIG_fail;
10961 }
10962 {
10963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10964 }
10965 return resultobj;
10966 fail:
10967 return NULL;
10968 }
10969
10970
10971 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10972 PyObject *resultobj = 0;
10973 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10974 bool result;
10975 void *argp1 = 0 ;
10976 int res1 = 0 ;
10977 PyObject *swig_obj[1] ;
10978
10979 if (!args) SWIG_fail;
10980 swig_obj[0] = args;
10981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10982 if (!SWIG_IsOK(res1)) {
10983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10984 }
10985 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10986 {
10987 PyThreadState* __tstate = wxPyBeginAllowThreads();
10988 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10989 wxPyEndAllowThreads(__tstate);
10990 if (PyErr_Occurred()) SWIG_fail;
10991 }
10992 {
10993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10994 }
10995 return resultobj;
10996 fail:
10997 return NULL;
10998 }
10999
11000
11001 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11002 PyObject *resultobj = 0;
11003 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11004 bool result;
11005 void *argp1 = 0 ;
11006 int res1 = 0 ;
11007 PyObject *swig_obj[1] ;
11008
11009 if (!args) SWIG_fail;
11010 swig_obj[0] = args;
11011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11012 if (!SWIG_IsOK(res1)) {
11013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11014 }
11015 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11016 {
11017 PyThreadState* __tstate = wxPyBeginAllowThreads();
11018 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11019 wxPyEndAllowThreads(__tstate);
11020 if (PyErr_Occurred()) SWIG_fail;
11021 }
11022 {
11023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11024 }
11025 return resultobj;
11026 fail:
11027 return NULL;
11028 }
11029
11030
11031 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11032 PyObject *resultobj = 0;
11033 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11034 bool result;
11035 void *argp1 = 0 ;
11036 int res1 = 0 ;
11037 PyObject *swig_obj[1] ;
11038
11039 if (!args) SWIG_fail;
11040 swig_obj[0] = args;
11041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11042 if (!SWIG_IsOK(res1)) {
11043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11044 }
11045 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11046 {
11047 PyThreadState* __tstate = wxPyBeginAllowThreads();
11048 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11049 wxPyEndAllowThreads(__tstate);
11050 if (PyErr_Occurred()) SWIG_fail;
11051 }
11052 {
11053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11054 }
11055 return resultobj;
11056 fail:
11057 return NULL;
11058 }
11059
11060
11061 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11062 PyObject *resultobj = 0;
11063 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11064 bool result;
11065 void *argp1 = 0 ;
11066 int res1 = 0 ;
11067 PyObject *swig_obj[1] ;
11068
11069 if (!args) SWIG_fail;
11070 swig_obj[0] = args;
11071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11072 if (!SWIG_IsOK(res1)) {
11073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11074 }
11075 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11076 {
11077 PyThreadState* __tstate = wxPyBeginAllowThreads();
11078 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11079 wxPyEndAllowThreads(__tstate);
11080 if (PyErr_Occurred()) SWIG_fail;
11081 }
11082 {
11083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11084 }
11085 return resultobj;
11086 fail:
11087 return NULL;
11088 }
11089
11090
11091 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11092 PyObject *resultobj = 0;
11093 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11094 bool result;
11095 void *argp1 = 0 ;
11096 int res1 = 0 ;
11097 PyObject *swig_obj[1] ;
11098
11099 if (!args) SWIG_fail;
11100 swig_obj[0] = args;
11101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11102 if (!SWIG_IsOK(res1)) {
11103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11104 }
11105 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11106 {
11107 PyThreadState* __tstate = wxPyBeginAllowThreads();
11108 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11109 wxPyEndAllowThreads(__tstate);
11110 if (PyErr_Occurred()) SWIG_fail;
11111 }
11112 {
11113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11114 }
11115 return resultobj;
11116 fail:
11117 return NULL;
11118 }
11119
11120
11121 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11122 PyObject *resultobj = 0;
11123 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11124 long arg2 ;
11125 bool result;
11126 void *argp1 = 0 ;
11127 int res1 = 0 ;
11128 long val2 ;
11129 int ecode2 = 0 ;
11130 PyObject * obj0 = 0 ;
11131 PyObject * obj1 = 0 ;
11132 char * kwnames[] = {
11133 (char *) "self",(char *) "flag", NULL
11134 };
11135
11136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11138 if (!SWIG_IsOK(res1)) {
11139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11140 }
11141 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11142 ecode2 = SWIG_AsVal_long(obj1, &val2);
11143 if (!SWIG_IsOK(ecode2)) {
11144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11145 }
11146 arg2 = static_cast< long >(val2);
11147 {
11148 PyThreadState* __tstate = wxPyBeginAllowThreads();
11149 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11150 wxPyEndAllowThreads(__tstate);
11151 if (PyErr_Occurred()) SWIG_fail;
11152 }
11153 {
11154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11155 }
11156 return resultobj;
11157 fail:
11158 return NULL;
11159 }
11160
11161
11162 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11163 PyObject *resultobj = 0;
11164 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11165 wxColour *result = 0 ;
11166 void *argp1 = 0 ;
11167 int res1 = 0 ;
11168 PyObject *swig_obj[1] ;
11169
11170 if (!args) SWIG_fail;
11171 swig_obj[0] = args;
11172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11173 if (!SWIG_IsOK(res1)) {
11174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11175 }
11176 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11177 {
11178 PyThreadState* __tstate = wxPyBeginAllowThreads();
11179 {
11180 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11181 result = (wxColour *) &_result_ref;
11182 }
11183 wxPyEndAllowThreads(__tstate);
11184 if (PyErr_Occurred()) SWIG_fail;
11185 }
11186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11187 return resultobj;
11188 fail:
11189 return NULL;
11190 }
11191
11192
11193 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11194 PyObject *resultobj = 0;
11195 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11196 wxColour *result = 0 ;
11197 void *argp1 = 0 ;
11198 int res1 = 0 ;
11199 PyObject *swig_obj[1] ;
11200
11201 if (!args) SWIG_fail;
11202 swig_obj[0] = args;
11203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11204 if (!SWIG_IsOK(res1)) {
11205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11206 }
11207 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11208 {
11209 PyThreadState* __tstate = wxPyBeginAllowThreads();
11210 {
11211 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11212 result = (wxColour *) &_result_ref;
11213 }
11214 wxPyEndAllowThreads(__tstate);
11215 if (PyErr_Occurred()) SWIG_fail;
11216 }
11217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11218 return resultobj;
11219 fail:
11220 return NULL;
11221 }
11222
11223
11224 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11225 PyObject *resultobj = 0;
11226 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11227 wxFont *result = 0 ;
11228 void *argp1 = 0 ;
11229 int res1 = 0 ;
11230 PyObject *swig_obj[1] ;
11231
11232 if (!args) SWIG_fail;
11233 swig_obj[0] = args;
11234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11235 if (!SWIG_IsOK(res1)) {
11236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11237 }
11238 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11239 {
11240 PyThreadState* __tstate = wxPyBeginAllowThreads();
11241 {
11242 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11243 result = (wxFont *) &_result_ref;
11244 }
11245 wxPyEndAllowThreads(__tstate);
11246 if (PyErr_Occurred()) SWIG_fail;
11247 }
11248 {
11249 wxFont* resultptr = new wxFont(*result);
11250 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11251 }
11252 return resultobj;
11253 fail:
11254 return NULL;
11255 }
11256
11257
11258 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11259 PyObject *resultobj = 0;
11260 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11261 wxTextAttrAlignment result;
11262 void *argp1 = 0 ;
11263 int res1 = 0 ;
11264 PyObject *swig_obj[1] ;
11265
11266 if (!args) SWIG_fail;
11267 swig_obj[0] = args;
11268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11269 if (!SWIG_IsOK(res1)) {
11270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11271 }
11272 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11273 {
11274 PyThreadState* __tstate = wxPyBeginAllowThreads();
11275 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11276 wxPyEndAllowThreads(__tstate);
11277 if (PyErr_Occurred()) SWIG_fail;
11278 }
11279 resultobj = SWIG_From_int(static_cast< int >(result));
11280 return resultobj;
11281 fail:
11282 return NULL;
11283 }
11284
11285
11286 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11287 PyObject *resultobj = 0;
11288 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11289 wxArrayInt *result = 0 ;
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_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11299 }
11300 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11301 {
11302 PyThreadState* __tstate = wxPyBeginAllowThreads();
11303 {
11304 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11305 result = (wxArrayInt *) &_result_ref;
11306 }
11307 wxPyEndAllowThreads(__tstate);
11308 if (PyErr_Occurred()) SWIG_fail;
11309 }
11310 {
11311 resultobj = PyList_New(0);
11312 size_t idx;
11313 for (idx = 0; idx < result->GetCount(); idx += 1) {
11314 PyObject* val = PyInt_FromLong( result->Item(idx) );
11315 PyList_Append(resultobj, val);
11316 Py_DECREF(val);
11317 }
11318 }
11319 return resultobj;
11320 fail:
11321 return NULL;
11322 }
11323
11324
11325 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11326 PyObject *resultobj = 0;
11327 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11328 long result;
11329 void *argp1 = 0 ;
11330 int res1 = 0 ;
11331 PyObject *swig_obj[1] ;
11332
11333 if (!args) SWIG_fail;
11334 swig_obj[0] = args;
11335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11336 if (!SWIG_IsOK(res1)) {
11337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11338 }
11339 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11340 {
11341 PyThreadState* __tstate = wxPyBeginAllowThreads();
11342 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11343 wxPyEndAllowThreads(__tstate);
11344 if (PyErr_Occurred()) SWIG_fail;
11345 }
11346 resultobj = SWIG_From_long(static_cast< long >(result));
11347 return resultobj;
11348 fail:
11349 return NULL;
11350 }
11351
11352
11353 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11354 PyObject *resultobj = 0;
11355 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11356 long result;
11357 void *argp1 = 0 ;
11358 int res1 = 0 ;
11359 PyObject *swig_obj[1] ;
11360
11361 if (!args) SWIG_fail;
11362 swig_obj[0] = args;
11363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11364 if (!SWIG_IsOK(res1)) {
11365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11366 }
11367 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11368 {
11369 PyThreadState* __tstate = wxPyBeginAllowThreads();
11370 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11371 wxPyEndAllowThreads(__tstate);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 resultobj = SWIG_From_long(static_cast< long >(result));
11375 return resultobj;
11376 fail:
11377 return NULL;
11378 }
11379
11380
11381 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11382 PyObject *resultobj = 0;
11383 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11384 long result;
11385 void *argp1 = 0 ;
11386 int res1 = 0 ;
11387 PyObject *swig_obj[1] ;
11388
11389 if (!args) SWIG_fail;
11390 swig_obj[0] = args;
11391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11392 if (!SWIG_IsOK(res1)) {
11393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11394 }
11395 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11396 {
11397 PyThreadState* __tstate = wxPyBeginAllowThreads();
11398 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11399 wxPyEndAllowThreads(__tstate);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 }
11402 resultobj = SWIG_From_long(static_cast< long >(result));
11403 return resultobj;
11404 fail:
11405 return NULL;
11406 }
11407
11408
11409 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11410 PyObject *resultobj = 0;
11411 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11412 long result;
11413 void *argp1 = 0 ;
11414 int res1 = 0 ;
11415 PyObject *swig_obj[1] ;
11416
11417 if (!args) SWIG_fail;
11418 swig_obj[0] = args;
11419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11420 if (!SWIG_IsOK(res1)) {
11421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11422 }
11423 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11424 {
11425 PyThreadState* __tstate = wxPyBeginAllowThreads();
11426 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11427 wxPyEndAllowThreads(__tstate);
11428 if (PyErr_Occurred()) SWIG_fail;
11429 }
11430 resultobj = SWIG_From_long(static_cast< long >(result));
11431 return resultobj;
11432 fail:
11433 return NULL;
11434 }
11435
11436
11437 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11438 PyObject *resultobj = 0;
11439 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11440 bool result;
11441 void *argp1 = 0 ;
11442 int res1 = 0 ;
11443 PyObject *swig_obj[1] ;
11444
11445 if (!args) SWIG_fail;
11446 swig_obj[0] = args;
11447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11448 if (!SWIG_IsOK(res1)) {
11449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11450 }
11451 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11452 {
11453 PyThreadState* __tstate = wxPyBeginAllowThreads();
11454 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11455 wxPyEndAllowThreads(__tstate);
11456 if (PyErr_Occurred()) SWIG_fail;
11457 }
11458 {
11459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11460 }
11461 return resultobj;
11462 fail:
11463 return NULL;
11464 }
11465
11466
11467 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11468 PyObject *resultobj = 0;
11469 wxTextAttr *arg1 = 0 ;
11470 wxTextAttr *arg2 = 0 ;
11471 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11472 wxTextAttr result;
11473 void *argp1 = 0 ;
11474 int res1 = 0 ;
11475 void *argp2 = 0 ;
11476 int res2 = 0 ;
11477 void *argp3 = 0 ;
11478 int res3 = 0 ;
11479 PyObject * obj0 = 0 ;
11480 PyObject * obj1 = 0 ;
11481 PyObject * obj2 = 0 ;
11482 char * kwnames[] = {
11483 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11484 };
11485
11486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11487 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11488 if (!SWIG_IsOK(res1)) {
11489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11490 }
11491 if (!argp1) {
11492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11493 }
11494 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11495 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11496 if (!SWIG_IsOK(res2)) {
11497 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11498 }
11499 if (!argp2) {
11500 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11501 }
11502 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11503 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11504 if (!SWIG_IsOK(res3)) {
11505 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11506 }
11507 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11508 {
11509 PyThreadState* __tstate = wxPyBeginAllowThreads();
11510 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11511 wxPyEndAllowThreads(__tstate);
11512 if (PyErr_Occurred()) SWIG_fail;
11513 }
11514 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11515 return resultobj;
11516 fail:
11517 return NULL;
11518 }
11519
11520
11521 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11522 PyObject *obj;
11523 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11524 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11525 return SWIG_Py_Void();
11526 }
11527
11528 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11529 return SWIG_Python_InitShadowInstance(args);
11530 }
11531
11532 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11533 PyObject *resultobj = 0;
11534 wxWindow *arg1 = (wxWindow *) 0 ;
11535 int arg2 = (int) -1 ;
11536 wxString const &arg3_defvalue = wxPyEmptyString ;
11537 wxString *arg3 = (wxString *) &arg3_defvalue ;
11538 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11539 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11540 wxSize const &arg5_defvalue = wxDefaultSize ;
11541 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11542 long arg6 = (long) 0 ;
11543 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11544 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11545 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11546 wxString *arg8 = (wxString *) &arg8_defvalue ;
11547 wxTextCtrl *result = 0 ;
11548 void *argp1 = 0 ;
11549 int res1 = 0 ;
11550 int val2 ;
11551 int ecode2 = 0 ;
11552 bool temp3 = false ;
11553 wxPoint temp4 ;
11554 wxSize temp5 ;
11555 long val6 ;
11556 int ecode6 = 0 ;
11557 void *argp7 = 0 ;
11558 int res7 = 0 ;
11559 bool temp8 = false ;
11560 PyObject * obj0 = 0 ;
11561 PyObject * obj1 = 0 ;
11562 PyObject * obj2 = 0 ;
11563 PyObject * obj3 = 0 ;
11564 PyObject * obj4 = 0 ;
11565 PyObject * obj5 = 0 ;
11566 PyObject * obj6 = 0 ;
11567 PyObject * obj7 = 0 ;
11568 char * kwnames[] = {
11569 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11570 };
11571
11572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11574 if (!SWIG_IsOK(res1)) {
11575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11576 }
11577 arg1 = reinterpret_cast< wxWindow * >(argp1);
11578 if (obj1) {
11579 ecode2 = SWIG_AsVal_int(obj1, &val2);
11580 if (!SWIG_IsOK(ecode2)) {
11581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11582 }
11583 arg2 = static_cast< int >(val2);
11584 }
11585 if (obj2) {
11586 {
11587 arg3 = wxString_in_helper(obj2);
11588 if (arg3 == NULL) SWIG_fail;
11589 temp3 = true;
11590 }
11591 }
11592 if (obj3) {
11593 {
11594 arg4 = &temp4;
11595 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11596 }
11597 }
11598 if (obj4) {
11599 {
11600 arg5 = &temp5;
11601 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11602 }
11603 }
11604 if (obj5) {
11605 ecode6 = SWIG_AsVal_long(obj5, &val6);
11606 if (!SWIG_IsOK(ecode6)) {
11607 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11608 }
11609 arg6 = static_cast< long >(val6);
11610 }
11611 if (obj6) {
11612 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11613 if (!SWIG_IsOK(res7)) {
11614 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11615 }
11616 if (!argp7) {
11617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11618 }
11619 arg7 = reinterpret_cast< wxValidator * >(argp7);
11620 }
11621 if (obj7) {
11622 {
11623 arg8 = wxString_in_helper(obj7);
11624 if (arg8 == NULL) SWIG_fail;
11625 temp8 = true;
11626 }
11627 }
11628 {
11629 if (!wxPyCheckForApp()) SWIG_fail;
11630 PyThreadState* __tstate = wxPyBeginAllowThreads();
11631 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11632 wxPyEndAllowThreads(__tstate);
11633 if (PyErr_Occurred()) SWIG_fail;
11634 }
11635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11636 {
11637 if (temp3)
11638 delete arg3;
11639 }
11640 {
11641 if (temp8)
11642 delete arg8;
11643 }
11644 return resultobj;
11645 fail:
11646 {
11647 if (temp3)
11648 delete arg3;
11649 }
11650 {
11651 if (temp8)
11652 delete arg8;
11653 }
11654 return NULL;
11655 }
11656
11657
11658 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11659 PyObject *resultobj = 0;
11660 wxTextCtrl *result = 0 ;
11661
11662 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11663 {
11664 if (!wxPyCheckForApp()) SWIG_fail;
11665 PyThreadState* __tstate = wxPyBeginAllowThreads();
11666 result = (wxTextCtrl *)new wxTextCtrl();
11667 wxPyEndAllowThreads(__tstate);
11668 if (PyErr_Occurred()) SWIG_fail;
11669 }
11670 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11671 return resultobj;
11672 fail:
11673 return NULL;
11674 }
11675
11676
11677 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11678 PyObject *resultobj = 0;
11679 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11680 wxWindow *arg2 = (wxWindow *) 0 ;
11681 int arg3 = (int) -1 ;
11682 wxString const &arg4_defvalue = wxPyEmptyString ;
11683 wxString *arg4 = (wxString *) &arg4_defvalue ;
11684 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11685 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11686 wxSize const &arg6_defvalue = wxDefaultSize ;
11687 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11688 long arg7 = (long) 0 ;
11689 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11690 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11691 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11692 wxString *arg9 = (wxString *) &arg9_defvalue ;
11693 bool result;
11694 void *argp1 = 0 ;
11695 int res1 = 0 ;
11696 void *argp2 = 0 ;
11697 int res2 = 0 ;
11698 int val3 ;
11699 int ecode3 = 0 ;
11700 bool temp4 = false ;
11701 wxPoint temp5 ;
11702 wxSize temp6 ;
11703 long val7 ;
11704 int ecode7 = 0 ;
11705 void *argp8 = 0 ;
11706 int res8 = 0 ;
11707 bool temp9 = false ;
11708 PyObject * obj0 = 0 ;
11709 PyObject * obj1 = 0 ;
11710 PyObject * obj2 = 0 ;
11711 PyObject * obj3 = 0 ;
11712 PyObject * obj4 = 0 ;
11713 PyObject * obj5 = 0 ;
11714 PyObject * obj6 = 0 ;
11715 PyObject * obj7 = 0 ;
11716 PyObject * obj8 = 0 ;
11717 char * kwnames[] = {
11718 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11719 };
11720
11721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11723 if (!SWIG_IsOK(res1)) {
11724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11725 }
11726 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11727 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11728 if (!SWIG_IsOK(res2)) {
11729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11730 }
11731 arg2 = reinterpret_cast< wxWindow * >(argp2);
11732 if (obj2) {
11733 ecode3 = SWIG_AsVal_int(obj2, &val3);
11734 if (!SWIG_IsOK(ecode3)) {
11735 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11736 }
11737 arg3 = static_cast< int >(val3);
11738 }
11739 if (obj3) {
11740 {
11741 arg4 = wxString_in_helper(obj3);
11742 if (arg4 == NULL) SWIG_fail;
11743 temp4 = true;
11744 }
11745 }
11746 if (obj4) {
11747 {
11748 arg5 = &temp5;
11749 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11750 }
11751 }
11752 if (obj5) {
11753 {
11754 arg6 = &temp6;
11755 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11756 }
11757 }
11758 if (obj6) {
11759 ecode7 = SWIG_AsVal_long(obj6, &val7);
11760 if (!SWIG_IsOK(ecode7)) {
11761 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11762 }
11763 arg7 = static_cast< long >(val7);
11764 }
11765 if (obj7) {
11766 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11767 if (!SWIG_IsOK(res8)) {
11768 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11769 }
11770 if (!argp8) {
11771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11772 }
11773 arg8 = reinterpret_cast< wxValidator * >(argp8);
11774 }
11775 if (obj8) {
11776 {
11777 arg9 = wxString_in_helper(obj8);
11778 if (arg9 == NULL) SWIG_fail;
11779 temp9 = true;
11780 }
11781 }
11782 {
11783 PyThreadState* __tstate = wxPyBeginAllowThreads();
11784 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11785 wxPyEndAllowThreads(__tstate);
11786 if (PyErr_Occurred()) SWIG_fail;
11787 }
11788 {
11789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11790 }
11791 {
11792 if (temp4)
11793 delete arg4;
11794 }
11795 {
11796 if (temp9)
11797 delete arg9;
11798 }
11799 return resultobj;
11800 fail:
11801 {
11802 if (temp4)
11803 delete arg4;
11804 }
11805 {
11806 if (temp9)
11807 delete arg9;
11808 }
11809 return NULL;
11810 }
11811
11812
11813 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11814 PyObject *resultobj = 0;
11815 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11816 wxString result;
11817 void *argp1 = 0 ;
11818 int res1 = 0 ;
11819 PyObject *swig_obj[1] ;
11820
11821 if (!args) SWIG_fail;
11822 swig_obj[0] = args;
11823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11824 if (!SWIG_IsOK(res1)) {
11825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11826 }
11827 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11828 {
11829 PyThreadState* __tstate = wxPyBeginAllowThreads();
11830 result = ((wxTextCtrl const *)arg1)->GetValue();
11831 wxPyEndAllowThreads(__tstate);
11832 if (PyErr_Occurred()) SWIG_fail;
11833 }
11834 {
11835 #if wxUSE_UNICODE
11836 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11837 #else
11838 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11839 #endif
11840 }
11841 return resultobj;
11842 fail:
11843 return NULL;
11844 }
11845
11846
11847 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11848 PyObject *resultobj = 0;
11849 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11850 wxString *arg2 = 0 ;
11851 void *argp1 = 0 ;
11852 int res1 = 0 ;
11853 bool temp2 = false ;
11854 PyObject * obj0 = 0 ;
11855 PyObject * obj1 = 0 ;
11856 char * kwnames[] = {
11857 (char *) "self",(char *) "value", NULL
11858 };
11859
11860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11862 if (!SWIG_IsOK(res1)) {
11863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11864 }
11865 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11866 {
11867 arg2 = wxString_in_helper(obj1);
11868 if (arg2 == NULL) SWIG_fail;
11869 temp2 = true;
11870 }
11871 {
11872 PyThreadState* __tstate = wxPyBeginAllowThreads();
11873 (arg1)->SetValue((wxString const &)*arg2);
11874 wxPyEndAllowThreads(__tstate);
11875 if (PyErr_Occurred()) SWIG_fail;
11876 }
11877 resultobj = SWIG_Py_Void();
11878 {
11879 if (temp2)
11880 delete arg2;
11881 }
11882 return resultobj;
11883 fail:
11884 {
11885 if (temp2)
11886 delete arg2;
11887 }
11888 return NULL;
11889 }
11890
11891
11892 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11893 PyObject *resultobj = 0;
11894 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11895 long arg2 ;
11896 long arg3 ;
11897 wxString result;
11898 void *argp1 = 0 ;
11899 int res1 = 0 ;
11900 long val2 ;
11901 int ecode2 = 0 ;
11902 long val3 ;
11903 int ecode3 = 0 ;
11904 PyObject * obj0 = 0 ;
11905 PyObject * obj1 = 0 ;
11906 PyObject * obj2 = 0 ;
11907 char * kwnames[] = {
11908 (char *) "self",(char *) "from",(char *) "to", NULL
11909 };
11910
11911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11913 if (!SWIG_IsOK(res1)) {
11914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11915 }
11916 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11917 ecode2 = SWIG_AsVal_long(obj1, &val2);
11918 if (!SWIG_IsOK(ecode2)) {
11919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11920 }
11921 arg2 = static_cast< long >(val2);
11922 ecode3 = SWIG_AsVal_long(obj2, &val3);
11923 if (!SWIG_IsOK(ecode3)) {
11924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11925 }
11926 arg3 = static_cast< long >(val3);
11927 {
11928 PyThreadState* __tstate = wxPyBeginAllowThreads();
11929 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11930 wxPyEndAllowThreads(__tstate);
11931 if (PyErr_Occurred()) SWIG_fail;
11932 }
11933 {
11934 #if wxUSE_UNICODE
11935 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11936 #else
11937 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11938 #endif
11939 }
11940 return resultobj;
11941 fail:
11942 return NULL;
11943 }
11944
11945
11946 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11947 PyObject *resultobj = 0;
11948 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11949 long arg2 ;
11950 int result;
11951 void *argp1 = 0 ;
11952 int res1 = 0 ;
11953 long val2 ;
11954 int ecode2 = 0 ;
11955 PyObject * obj0 = 0 ;
11956 PyObject * obj1 = 0 ;
11957 char * kwnames[] = {
11958 (char *) "self",(char *) "lineNo", NULL
11959 };
11960
11961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11963 if (!SWIG_IsOK(res1)) {
11964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11965 }
11966 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11967 ecode2 = SWIG_AsVal_long(obj1, &val2);
11968 if (!SWIG_IsOK(ecode2)) {
11969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11970 }
11971 arg2 = static_cast< long >(val2);
11972 {
11973 PyThreadState* __tstate = wxPyBeginAllowThreads();
11974 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11975 wxPyEndAllowThreads(__tstate);
11976 if (PyErr_Occurred()) SWIG_fail;
11977 }
11978 resultobj = SWIG_From_int(static_cast< int >(result));
11979 return resultobj;
11980 fail:
11981 return NULL;
11982 }
11983
11984
11985 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11986 PyObject *resultobj = 0;
11987 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11988 long arg2 ;
11989 wxString result;
11990 void *argp1 = 0 ;
11991 int res1 = 0 ;
11992 long val2 ;
11993 int ecode2 = 0 ;
11994 PyObject * obj0 = 0 ;
11995 PyObject * obj1 = 0 ;
11996 char * kwnames[] = {
11997 (char *) "self",(char *) "lineNo", NULL
11998 };
11999
12000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12002 if (!SWIG_IsOK(res1)) {
12003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12004 }
12005 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12006 ecode2 = SWIG_AsVal_long(obj1, &val2);
12007 if (!SWIG_IsOK(ecode2)) {
12008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12009 }
12010 arg2 = static_cast< long >(val2);
12011 {
12012 PyThreadState* __tstate = wxPyBeginAllowThreads();
12013 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12014 wxPyEndAllowThreads(__tstate);
12015 if (PyErr_Occurred()) SWIG_fail;
12016 }
12017 {
12018 #if wxUSE_UNICODE
12019 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12020 #else
12021 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12022 #endif
12023 }
12024 return resultobj;
12025 fail:
12026 return NULL;
12027 }
12028
12029
12030 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12031 PyObject *resultobj = 0;
12032 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12033 int result;
12034 void *argp1 = 0 ;
12035 int res1 = 0 ;
12036 PyObject *swig_obj[1] ;
12037
12038 if (!args) SWIG_fail;
12039 swig_obj[0] = args;
12040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12041 if (!SWIG_IsOK(res1)) {
12042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12043 }
12044 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12045 {
12046 PyThreadState* __tstate = wxPyBeginAllowThreads();
12047 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12048 wxPyEndAllowThreads(__tstate);
12049 if (PyErr_Occurred()) SWIG_fail;
12050 }
12051 resultobj = SWIG_From_int(static_cast< int >(result));
12052 return resultobj;
12053 fail:
12054 return NULL;
12055 }
12056
12057
12058 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12059 PyObject *resultobj = 0;
12060 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12061 bool result;
12062 void *argp1 = 0 ;
12063 int res1 = 0 ;
12064 PyObject *swig_obj[1] ;
12065
12066 if (!args) SWIG_fail;
12067 swig_obj[0] = args;
12068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12069 if (!SWIG_IsOK(res1)) {
12070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12071 }
12072 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12073 {
12074 PyThreadState* __tstate = wxPyBeginAllowThreads();
12075 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12076 wxPyEndAllowThreads(__tstate);
12077 if (PyErr_Occurred()) SWIG_fail;
12078 }
12079 {
12080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12081 }
12082 return resultobj;
12083 fail:
12084 return NULL;
12085 }
12086
12087
12088 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12089 PyObject *resultobj = 0;
12090 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12091 bool result;
12092 void *argp1 = 0 ;
12093 int res1 = 0 ;
12094 PyObject *swig_obj[1] ;
12095
12096 if (!args) SWIG_fail;
12097 swig_obj[0] = args;
12098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12099 if (!SWIG_IsOK(res1)) {
12100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12101 }
12102 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12103 {
12104 PyThreadState* __tstate = wxPyBeginAllowThreads();
12105 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12106 wxPyEndAllowThreads(__tstate);
12107 if (PyErr_Occurred()) SWIG_fail;
12108 }
12109 {
12110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12111 }
12112 return resultobj;
12113 fail:
12114 return NULL;
12115 }
12116
12117
12118 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12119 PyObject *resultobj = 0;
12120 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12121 bool result;
12122 void *argp1 = 0 ;
12123 int res1 = 0 ;
12124 PyObject *swig_obj[1] ;
12125
12126 if (!args) SWIG_fail;
12127 swig_obj[0] = args;
12128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12129 if (!SWIG_IsOK(res1)) {
12130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12131 }
12132 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12133 {
12134 PyThreadState* __tstate = wxPyBeginAllowThreads();
12135 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12136 wxPyEndAllowThreads(__tstate);
12137 if (PyErr_Occurred()) SWIG_fail;
12138 }
12139 {
12140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12141 }
12142 return resultobj;
12143 fail:
12144 return NULL;
12145 }
12146
12147
12148 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12149 PyObject *resultobj = 0;
12150 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12151 bool result;
12152 void *argp1 = 0 ;
12153 int res1 = 0 ;
12154 PyObject *swig_obj[1] ;
12155
12156 if (!args) SWIG_fail;
12157 swig_obj[0] = args;
12158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12159 if (!SWIG_IsOK(res1)) {
12160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12161 }
12162 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12163 {
12164 PyThreadState* __tstate = wxPyBeginAllowThreads();
12165 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12166 wxPyEndAllowThreads(__tstate);
12167 if (PyErr_Occurred()) SWIG_fail;
12168 }
12169 {
12170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12171 }
12172 return resultobj;
12173 fail:
12174 return NULL;
12175 }
12176
12177
12178 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12179 PyObject *resultobj = 0;
12180 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12181 long *arg2 = (long *) 0 ;
12182 long *arg3 = (long *) 0 ;
12183 void *argp1 = 0 ;
12184 int res1 = 0 ;
12185 long temp2 ;
12186 int res2 = SWIG_TMPOBJ ;
12187 long temp3 ;
12188 int res3 = SWIG_TMPOBJ ;
12189 PyObject *swig_obj[1] ;
12190
12191 arg2 = &temp2;
12192 arg3 = &temp3;
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_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12198 }
12199 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12200 {
12201 PyThreadState* __tstate = wxPyBeginAllowThreads();
12202 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12203 wxPyEndAllowThreads(__tstate);
12204 if (PyErr_Occurred()) SWIG_fail;
12205 }
12206 resultobj = SWIG_Py_Void();
12207 if (SWIG_IsTmpObj(res2)) {
12208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12209 } else {
12210 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12212 }
12213 if (SWIG_IsTmpObj(res3)) {
12214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12215 } else {
12216 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12218 }
12219 return resultobj;
12220 fail:
12221 return NULL;
12222 }
12223
12224
12225 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12226 PyObject *resultobj = 0;
12227 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12228 wxString result;
12229 void *argp1 = 0 ;
12230 int res1 = 0 ;
12231 PyObject *swig_obj[1] ;
12232
12233 if (!args) SWIG_fail;
12234 swig_obj[0] = args;
12235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12236 if (!SWIG_IsOK(res1)) {
12237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12238 }
12239 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12240 {
12241 PyThreadState* __tstate = wxPyBeginAllowThreads();
12242 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12243 wxPyEndAllowThreads(__tstate);
12244 if (PyErr_Occurred()) SWIG_fail;
12245 }
12246 {
12247 #if wxUSE_UNICODE
12248 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12249 #else
12250 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12251 #endif
12252 }
12253 return resultobj;
12254 fail:
12255 return NULL;
12256 }
12257
12258
12259 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12260 PyObject *resultobj = 0;
12261 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12262 void *argp1 = 0 ;
12263 int res1 = 0 ;
12264 PyObject *swig_obj[1] ;
12265
12266 if (!args) SWIG_fail;
12267 swig_obj[0] = args;
12268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12269 if (!SWIG_IsOK(res1)) {
12270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12271 }
12272 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12273 {
12274 PyThreadState* __tstate = wxPyBeginAllowThreads();
12275 (arg1)->Clear();
12276 wxPyEndAllowThreads(__tstate);
12277 if (PyErr_Occurred()) SWIG_fail;
12278 }
12279 resultobj = SWIG_Py_Void();
12280 return resultobj;
12281 fail:
12282 return NULL;
12283 }
12284
12285
12286 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12287 PyObject *resultobj = 0;
12288 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12289 long arg2 ;
12290 long arg3 ;
12291 wxString *arg4 = 0 ;
12292 void *argp1 = 0 ;
12293 int res1 = 0 ;
12294 long val2 ;
12295 int ecode2 = 0 ;
12296 long val3 ;
12297 int ecode3 = 0 ;
12298 bool temp4 = false ;
12299 PyObject * obj0 = 0 ;
12300 PyObject * obj1 = 0 ;
12301 PyObject * obj2 = 0 ;
12302 PyObject * obj3 = 0 ;
12303 char * kwnames[] = {
12304 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12305 };
12306
12307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12309 if (!SWIG_IsOK(res1)) {
12310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12311 }
12312 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12313 ecode2 = SWIG_AsVal_long(obj1, &val2);
12314 if (!SWIG_IsOK(ecode2)) {
12315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12316 }
12317 arg2 = static_cast< long >(val2);
12318 ecode3 = SWIG_AsVal_long(obj2, &val3);
12319 if (!SWIG_IsOK(ecode3)) {
12320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12321 }
12322 arg3 = static_cast< long >(val3);
12323 {
12324 arg4 = wxString_in_helper(obj3);
12325 if (arg4 == NULL) SWIG_fail;
12326 temp4 = true;
12327 }
12328 {
12329 PyThreadState* __tstate = wxPyBeginAllowThreads();
12330 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12331 wxPyEndAllowThreads(__tstate);
12332 if (PyErr_Occurred()) SWIG_fail;
12333 }
12334 resultobj = SWIG_Py_Void();
12335 {
12336 if (temp4)
12337 delete arg4;
12338 }
12339 return resultobj;
12340 fail:
12341 {
12342 if (temp4)
12343 delete arg4;
12344 }
12345 return NULL;
12346 }
12347
12348
12349 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12350 PyObject *resultobj = 0;
12351 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12352 long arg2 ;
12353 long arg3 ;
12354 void *argp1 = 0 ;
12355 int res1 = 0 ;
12356 long val2 ;
12357 int ecode2 = 0 ;
12358 long val3 ;
12359 int ecode3 = 0 ;
12360 PyObject * obj0 = 0 ;
12361 PyObject * obj1 = 0 ;
12362 PyObject * obj2 = 0 ;
12363 char * kwnames[] = {
12364 (char *) "self",(char *) "from",(char *) "to", NULL
12365 };
12366
12367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12369 if (!SWIG_IsOK(res1)) {
12370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12371 }
12372 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12373 ecode2 = SWIG_AsVal_long(obj1, &val2);
12374 if (!SWIG_IsOK(ecode2)) {
12375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12376 }
12377 arg2 = static_cast< long >(val2);
12378 ecode3 = SWIG_AsVal_long(obj2, &val3);
12379 if (!SWIG_IsOK(ecode3)) {
12380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12381 }
12382 arg3 = static_cast< long >(val3);
12383 {
12384 PyThreadState* __tstate = wxPyBeginAllowThreads();
12385 (arg1)->Remove(arg2,arg3);
12386 wxPyEndAllowThreads(__tstate);
12387 if (PyErr_Occurred()) SWIG_fail;
12388 }
12389 resultobj = SWIG_Py_Void();
12390 return resultobj;
12391 fail:
12392 return NULL;
12393 }
12394
12395
12396 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12397 PyObject *resultobj = 0;
12398 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12399 wxString *arg2 = 0 ;
12400 int arg3 = (int) wxTEXT_TYPE_ANY ;
12401 bool result;
12402 void *argp1 = 0 ;
12403 int res1 = 0 ;
12404 bool temp2 = false ;
12405 int val3 ;
12406 int ecode3 = 0 ;
12407 PyObject * obj0 = 0 ;
12408 PyObject * obj1 = 0 ;
12409 PyObject * obj2 = 0 ;
12410 char * kwnames[] = {
12411 (char *) "self",(char *) "file",(char *) "fileType", NULL
12412 };
12413
12414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12416 if (!SWIG_IsOK(res1)) {
12417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12418 }
12419 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12420 {
12421 arg2 = wxString_in_helper(obj1);
12422 if (arg2 == NULL) SWIG_fail;
12423 temp2 = true;
12424 }
12425 if (obj2) {
12426 ecode3 = SWIG_AsVal_int(obj2, &val3);
12427 if (!SWIG_IsOK(ecode3)) {
12428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12429 }
12430 arg3 = static_cast< int >(val3);
12431 }
12432 {
12433 PyThreadState* __tstate = wxPyBeginAllowThreads();
12434 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
12435 wxPyEndAllowThreads(__tstate);
12436 if (PyErr_Occurred()) SWIG_fail;
12437 }
12438 {
12439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12440 }
12441 {
12442 if (temp2)
12443 delete arg2;
12444 }
12445 return resultobj;
12446 fail:
12447 {
12448 if (temp2)
12449 delete arg2;
12450 }
12451 return NULL;
12452 }
12453
12454
12455 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12456 PyObject *resultobj = 0;
12457 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12458 wxString const &arg2_defvalue = wxPyEmptyString ;
12459 wxString *arg2 = (wxString *) &arg2_defvalue ;
12460 int arg3 = (int) wxTEXT_TYPE_ANY ;
12461 bool result;
12462 void *argp1 = 0 ;
12463 int res1 = 0 ;
12464 bool temp2 = false ;
12465 int val3 ;
12466 int ecode3 = 0 ;
12467 PyObject * obj0 = 0 ;
12468 PyObject * obj1 = 0 ;
12469 PyObject * obj2 = 0 ;
12470 char * kwnames[] = {
12471 (char *) "self",(char *) "file",(char *) "fileType", NULL
12472 };
12473
12474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12476 if (!SWIG_IsOK(res1)) {
12477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12478 }
12479 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12480 if (obj1) {
12481 {
12482 arg2 = wxString_in_helper(obj1);
12483 if (arg2 == NULL) SWIG_fail;
12484 temp2 = true;
12485 }
12486 }
12487 if (obj2) {
12488 ecode3 = SWIG_AsVal_int(obj2, &val3);
12489 if (!SWIG_IsOK(ecode3)) {
12490 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12491 }
12492 arg3 = static_cast< int >(val3);
12493 }
12494 {
12495 PyThreadState* __tstate = wxPyBeginAllowThreads();
12496 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
12497 wxPyEndAllowThreads(__tstate);
12498 if (PyErr_Occurred()) SWIG_fail;
12499 }
12500 {
12501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12502 }
12503 {
12504 if (temp2)
12505 delete arg2;
12506 }
12507 return resultobj;
12508 fail:
12509 {
12510 if (temp2)
12511 delete arg2;
12512 }
12513 return NULL;
12514 }
12515
12516
12517 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12518 PyObject *resultobj = 0;
12519 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12520 void *argp1 = 0 ;
12521 int res1 = 0 ;
12522 PyObject *swig_obj[1] ;
12523
12524 if (!args) SWIG_fail;
12525 swig_obj[0] = args;
12526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12527 if (!SWIG_IsOK(res1)) {
12528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12529 }
12530 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12531 {
12532 PyThreadState* __tstate = wxPyBeginAllowThreads();
12533 (arg1)->MarkDirty();
12534 wxPyEndAllowThreads(__tstate);
12535 if (PyErr_Occurred()) SWIG_fail;
12536 }
12537 resultobj = SWIG_Py_Void();
12538 return resultobj;
12539 fail:
12540 return NULL;
12541 }
12542
12543
12544 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12545 PyObject *resultobj = 0;
12546 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12547 void *argp1 = 0 ;
12548 int res1 = 0 ;
12549 PyObject *swig_obj[1] ;
12550
12551 if (!args) SWIG_fail;
12552 swig_obj[0] = args;
12553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12554 if (!SWIG_IsOK(res1)) {
12555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12556 }
12557 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12558 {
12559 PyThreadState* __tstate = wxPyBeginAllowThreads();
12560 (arg1)->DiscardEdits();
12561 wxPyEndAllowThreads(__tstate);
12562 if (PyErr_Occurred()) SWIG_fail;
12563 }
12564 resultobj = SWIG_Py_Void();
12565 return resultobj;
12566 fail:
12567 return NULL;
12568 }
12569
12570
12571 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12572 PyObject *resultobj = 0;
12573 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12574 bool arg2 ;
12575 void *argp1 = 0 ;
12576 int res1 = 0 ;
12577 bool val2 ;
12578 int ecode2 = 0 ;
12579 PyObject * obj0 = 0 ;
12580 PyObject * obj1 = 0 ;
12581 char * kwnames[] = {
12582 (char *) "self",(char *) "modified", NULL
12583 };
12584
12585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12587 if (!SWIG_IsOK(res1)) {
12588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12589 }
12590 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12591 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12592 if (!SWIG_IsOK(ecode2)) {
12593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12594 }
12595 arg2 = static_cast< bool >(val2);
12596 {
12597 PyThreadState* __tstate = wxPyBeginAllowThreads();
12598 (arg1)->SetModified(arg2);
12599 wxPyEndAllowThreads(__tstate);
12600 if (PyErr_Occurred()) SWIG_fail;
12601 }
12602 resultobj = SWIG_Py_Void();
12603 return resultobj;
12604 fail:
12605 return NULL;
12606 }
12607
12608
12609 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12610 PyObject *resultobj = 0;
12611 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12612 unsigned long arg2 ;
12613 void *argp1 = 0 ;
12614 int res1 = 0 ;
12615 unsigned long val2 ;
12616 int ecode2 = 0 ;
12617 PyObject * obj0 = 0 ;
12618 PyObject * obj1 = 0 ;
12619 char * kwnames[] = {
12620 (char *) "self",(char *) "len", NULL
12621 };
12622
12623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12625 if (!SWIG_IsOK(res1)) {
12626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12627 }
12628 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12629 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12630 if (!SWIG_IsOK(ecode2)) {
12631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12632 }
12633 arg2 = static_cast< unsigned long >(val2);
12634 {
12635 PyThreadState* __tstate = wxPyBeginAllowThreads();
12636 (arg1)->SetMaxLength(arg2);
12637 wxPyEndAllowThreads(__tstate);
12638 if (PyErr_Occurred()) SWIG_fail;
12639 }
12640 resultobj = SWIG_Py_Void();
12641 return resultobj;
12642 fail:
12643 return NULL;
12644 }
12645
12646
12647 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12648 PyObject *resultobj = 0;
12649 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12650 wxString *arg2 = 0 ;
12651 void *argp1 = 0 ;
12652 int res1 = 0 ;
12653 bool temp2 = false ;
12654 PyObject * obj0 = 0 ;
12655 PyObject * obj1 = 0 ;
12656 char * kwnames[] = {
12657 (char *) "self",(char *) "text", NULL
12658 };
12659
12660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12662 if (!SWIG_IsOK(res1)) {
12663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12664 }
12665 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12666 {
12667 arg2 = wxString_in_helper(obj1);
12668 if (arg2 == NULL) SWIG_fail;
12669 temp2 = true;
12670 }
12671 {
12672 PyThreadState* __tstate = wxPyBeginAllowThreads();
12673 (arg1)->WriteText((wxString const &)*arg2);
12674 wxPyEndAllowThreads(__tstate);
12675 if (PyErr_Occurred()) SWIG_fail;
12676 }
12677 resultobj = SWIG_Py_Void();
12678 {
12679 if (temp2)
12680 delete arg2;
12681 }
12682 return resultobj;
12683 fail:
12684 {
12685 if (temp2)
12686 delete arg2;
12687 }
12688 return NULL;
12689 }
12690
12691
12692 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12693 PyObject *resultobj = 0;
12694 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12695 wxString *arg2 = 0 ;
12696 void *argp1 = 0 ;
12697 int res1 = 0 ;
12698 bool temp2 = false ;
12699 PyObject * obj0 = 0 ;
12700 PyObject * obj1 = 0 ;
12701 char * kwnames[] = {
12702 (char *) "self",(char *) "text", NULL
12703 };
12704
12705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12707 if (!SWIG_IsOK(res1)) {
12708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12709 }
12710 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12711 {
12712 arg2 = wxString_in_helper(obj1);
12713 if (arg2 == NULL) SWIG_fail;
12714 temp2 = true;
12715 }
12716 {
12717 PyThreadState* __tstate = wxPyBeginAllowThreads();
12718 (arg1)->AppendText((wxString const &)*arg2);
12719 wxPyEndAllowThreads(__tstate);
12720 if (PyErr_Occurred()) SWIG_fail;
12721 }
12722 resultobj = SWIG_Py_Void();
12723 {
12724 if (temp2)
12725 delete arg2;
12726 }
12727 return resultobj;
12728 fail:
12729 {
12730 if (temp2)
12731 delete arg2;
12732 }
12733 return NULL;
12734 }
12735
12736
12737 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12738 PyObject *resultobj = 0;
12739 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12740 wxKeyEvent *arg2 = 0 ;
12741 bool result;
12742 void *argp1 = 0 ;
12743 int res1 = 0 ;
12744 void *argp2 = 0 ;
12745 int res2 = 0 ;
12746 PyObject * obj0 = 0 ;
12747 PyObject * obj1 = 0 ;
12748 char * kwnames[] = {
12749 (char *) "self",(char *) "event", NULL
12750 };
12751
12752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12754 if (!SWIG_IsOK(res1)) {
12755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12756 }
12757 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12758 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12759 if (!SWIG_IsOK(res2)) {
12760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12761 }
12762 if (!argp2) {
12763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12764 }
12765 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12766 {
12767 PyThreadState* __tstate = wxPyBeginAllowThreads();
12768 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12769 wxPyEndAllowThreads(__tstate);
12770 if (PyErr_Occurred()) SWIG_fail;
12771 }
12772 {
12773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12774 }
12775 return resultobj;
12776 fail:
12777 return NULL;
12778 }
12779
12780
12781 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12782 PyObject *resultobj = 0;
12783 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12784 long arg2 ;
12785 long arg3 ;
12786 wxTextAttr *arg4 = 0 ;
12787 bool result;
12788 void *argp1 = 0 ;
12789 int res1 = 0 ;
12790 long val2 ;
12791 int ecode2 = 0 ;
12792 long val3 ;
12793 int ecode3 = 0 ;
12794 void *argp4 = 0 ;
12795 int res4 = 0 ;
12796 PyObject * obj0 = 0 ;
12797 PyObject * obj1 = 0 ;
12798 PyObject * obj2 = 0 ;
12799 PyObject * obj3 = 0 ;
12800 char * kwnames[] = {
12801 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12802 };
12803
12804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12806 if (!SWIG_IsOK(res1)) {
12807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12808 }
12809 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12810 ecode2 = SWIG_AsVal_long(obj1, &val2);
12811 if (!SWIG_IsOK(ecode2)) {
12812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12813 }
12814 arg2 = static_cast< long >(val2);
12815 ecode3 = SWIG_AsVal_long(obj2, &val3);
12816 if (!SWIG_IsOK(ecode3)) {
12817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12818 }
12819 arg3 = static_cast< long >(val3);
12820 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12821 if (!SWIG_IsOK(res4)) {
12822 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12823 }
12824 if (!argp4) {
12825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12826 }
12827 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12828 {
12829 PyThreadState* __tstate = wxPyBeginAllowThreads();
12830 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12831 wxPyEndAllowThreads(__tstate);
12832 if (PyErr_Occurred()) SWIG_fail;
12833 }
12834 {
12835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12836 }
12837 return resultobj;
12838 fail:
12839 return NULL;
12840 }
12841
12842
12843 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12844 PyObject *resultobj = 0;
12845 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12846 long arg2 ;
12847 wxTextAttr *arg3 = 0 ;
12848 bool result;
12849 void *argp1 = 0 ;
12850 int res1 = 0 ;
12851 long val2 ;
12852 int ecode2 = 0 ;
12853 void *argp3 = 0 ;
12854 int res3 = 0 ;
12855 PyObject * obj0 = 0 ;
12856 PyObject * obj1 = 0 ;
12857 PyObject * obj2 = 0 ;
12858 char * kwnames[] = {
12859 (char *) "self",(char *) "position",(char *) "style", NULL
12860 };
12861
12862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12864 if (!SWIG_IsOK(res1)) {
12865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12866 }
12867 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12868 ecode2 = SWIG_AsVal_long(obj1, &val2);
12869 if (!SWIG_IsOK(ecode2)) {
12870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12871 }
12872 arg2 = static_cast< long >(val2);
12873 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12874 if (!SWIG_IsOK(res3)) {
12875 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12876 }
12877 if (!argp3) {
12878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12879 }
12880 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12881 {
12882 PyThreadState* __tstate = wxPyBeginAllowThreads();
12883 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12884 wxPyEndAllowThreads(__tstate);
12885 if (PyErr_Occurred()) SWIG_fail;
12886 }
12887 {
12888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12889 }
12890 return resultobj;
12891 fail:
12892 return NULL;
12893 }
12894
12895
12896 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12897 PyObject *resultobj = 0;
12898 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12899 wxTextAttr *arg2 = 0 ;
12900 bool result;
12901 void *argp1 = 0 ;
12902 int res1 = 0 ;
12903 void *argp2 = 0 ;
12904 int res2 = 0 ;
12905 PyObject * obj0 = 0 ;
12906 PyObject * obj1 = 0 ;
12907 char * kwnames[] = {
12908 (char *) "self",(char *) "style", NULL
12909 };
12910
12911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12913 if (!SWIG_IsOK(res1)) {
12914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12915 }
12916 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12917 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12918 if (!SWIG_IsOK(res2)) {
12919 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12920 }
12921 if (!argp2) {
12922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12923 }
12924 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12925 {
12926 PyThreadState* __tstate = wxPyBeginAllowThreads();
12927 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
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_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12941 PyObject *resultobj = 0;
12942 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12943 wxTextAttr *result = 0 ;
12944 void *argp1 = 0 ;
12945 int res1 = 0 ;
12946 PyObject *swig_obj[1] ;
12947
12948 if (!args) SWIG_fail;
12949 swig_obj[0] = args;
12950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12951 if (!SWIG_IsOK(res1)) {
12952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12953 }
12954 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12955 {
12956 PyThreadState* __tstate = wxPyBeginAllowThreads();
12957 {
12958 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12959 result = (wxTextAttr *) &_result_ref;
12960 }
12961 wxPyEndAllowThreads(__tstate);
12962 if (PyErr_Occurred()) SWIG_fail;
12963 }
12964 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12965 return resultobj;
12966 fail:
12967 return NULL;
12968 }
12969
12970
12971 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12972 PyObject *resultobj = 0;
12973 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12974 long arg2 ;
12975 long arg3 ;
12976 long result;
12977 void *argp1 = 0 ;
12978 int res1 = 0 ;
12979 long val2 ;
12980 int ecode2 = 0 ;
12981 long val3 ;
12982 int ecode3 = 0 ;
12983 PyObject * obj0 = 0 ;
12984 PyObject * obj1 = 0 ;
12985 PyObject * obj2 = 0 ;
12986 char * kwnames[] = {
12987 (char *) "self",(char *) "x",(char *) "y", NULL
12988 };
12989
12990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12992 if (!SWIG_IsOK(res1)) {
12993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12994 }
12995 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12996 ecode2 = SWIG_AsVal_long(obj1, &val2);
12997 if (!SWIG_IsOK(ecode2)) {
12998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12999 }
13000 arg2 = static_cast< long >(val2);
13001 ecode3 = SWIG_AsVal_long(obj2, &val3);
13002 if (!SWIG_IsOK(ecode3)) {
13003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13004 }
13005 arg3 = static_cast< long >(val3);
13006 {
13007 PyThreadState* __tstate = wxPyBeginAllowThreads();
13008 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13009 wxPyEndAllowThreads(__tstate);
13010 if (PyErr_Occurred()) SWIG_fail;
13011 }
13012 resultobj = SWIG_From_long(static_cast< long >(result));
13013 return resultobj;
13014 fail:
13015 return NULL;
13016 }
13017
13018
13019 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13020 PyObject *resultobj = 0;
13021 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13022 long arg2 ;
13023 long *arg3 = (long *) 0 ;
13024 long *arg4 = (long *) 0 ;
13025 void *argp1 = 0 ;
13026 int res1 = 0 ;
13027 long val2 ;
13028 int ecode2 = 0 ;
13029 long temp3 ;
13030 int res3 = SWIG_TMPOBJ ;
13031 long temp4 ;
13032 int res4 = SWIG_TMPOBJ ;
13033 PyObject * obj0 = 0 ;
13034 PyObject * obj1 = 0 ;
13035 char * kwnames[] = {
13036 (char *) "self",(char *) "pos", NULL
13037 };
13038
13039 arg3 = &temp3;
13040 arg4 = &temp4;
13041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13043 if (!SWIG_IsOK(res1)) {
13044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13045 }
13046 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13047 ecode2 = SWIG_AsVal_long(obj1, &val2);
13048 if (!SWIG_IsOK(ecode2)) {
13049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13050 }
13051 arg2 = static_cast< long >(val2);
13052 {
13053 PyThreadState* __tstate = wxPyBeginAllowThreads();
13054 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13055 wxPyEndAllowThreads(__tstate);
13056 if (PyErr_Occurred()) SWIG_fail;
13057 }
13058 resultobj = SWIG_Py_Void();
13059 if (SWIG_IsTmpObj(res3)) {
13060 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13061 } else {
13062 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13063 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13064 }
13065 if (SWIG_IsTmpObj(res4)) {
13066 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13067 } else {
13068 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13069 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13070 }
13071 return resultobj;
13072 fail:
13073 return NULL;
13074 }
13075
13076
13077 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13078 PyObject *resultobj = 0;
13079 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13080 long arg2 ;
13081 void *argp1 = 0 ;
13082 int res1 = 0 ;
13083 long val2 ;
13084 int ecode2 = 0 ;
13085 PyObject * obj0 = 0 ;
13086 PyObject * obj1 = 0 ;
13087 char * kwnames[] = {
13088 (char *) "self",(char *) "pos", NULL
13089 };
13090
13091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13093 if (!SWIG_IsOK(res1)) {
13094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13095 }
13096 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13097 ecode2 = SWIG_AsVal_long(obj1, &val2);
13098 if (!SWIG_IsOK(ecode2)) {
13099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13100 }
13101 arg2 = static_cast< long >(val2);
13102 {
13103 PyThreadState* __tstate = wxPyBeginAllowThreads();
13104 (arg1)->ShowPosition(arg2);
13105 wxPyEndAllowThreads(__tstate);
13106 if (PyErr_Occurred()) SWIG_fail;
13107 }
13108 resultobj = SWIG_Py_Void();
13109 return resultobj;
13110 fail:
13111 return NULL;
13112 }
13113
13114
13115 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13116 PyObject *resultobj = 0;
13117 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13118 wxPoint *arg2 = 0 ;
13119 long *arg3 = (long *) 0 ;
13120 long *arg4 = (long *) 0 ;
13121 wxTextCtrlHitTestResult result;
13122 void *argp1 = 0 ;
13123 int res1 = 0 ;
13124 wxPoint temp2 ;
13125 long temp3 ;
13126 int res3 = SWIG_TMPOBJ ;
13127 long temp4 ;
13128 int res4 = SWIG_TMPOBJ ;
13129 PyObject * obj0 = 0 ;
13130 PyObject * obj1 = 0 ;
13131 char * kwnames[] = {
13132 (char *) "self",(char *) "pt", NULL
13133 };
13134
13135 arg3 = &temp3;
13136 arg4 = &temp4;
13137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13139 if (!SWIG_IsOK(res1)) {
13140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13141 }
13142 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13143 {
13144 arg2 = &temp2;
13145 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13146 }
13147 {
13148 PyThreadState* __tstate = wxPyBeginAllowThreads();
13149 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13150 wxPyEndAllowThreads(__tstate);
13151 if (PyErr_Occurred()) SWIG_fail;
13152 }
13153 resultobj = SWIG_From_int(static_cast< int >(result));
13154 if (SWIG_IsTmpObj(res3)) {
13155 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13156 } else {
13157 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13159 }
13160 if (SWIG_IsTmpObj(res4)) {
13161 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13162 } else {
13163 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13164 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13165 }
13166 return resultobj;
13167 fail:
13168 return NULL;
13169 }
13170
13171
13172 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13173 PyObject *resultobj = 0;
13174 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13175 wxPoint *arg2 = 0 ;
13176 long *arg3 = (long *) 0 ;
13177 wxTextCtrlHitTestResult result;
13178 void *argp1 = 0 ;
13179 int res1 = 0 ;
13180 wxPoint temp2 ;
13181 long temp3 ;
13182 int res3 = SWIG_TMPOBJ ;
13183 PyObject * obj0 = 0 ;
13184 PyObject * obj1 = 0 ;
13185 char * kwnames[] = {
13186 (char *) "self",(char *) "pt", NULL
13187 };
13188
13189 arg3 = &temp3;
13190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13192 if (!SWIG_IsOK(res1)) {
13193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13194 }
13195 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13196 {
13197 arg2 = &temp2;
13198 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13199 }
13200 {
13201 PyThreadState* __tstate = wxPyBeginAllowThreads();
13202 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13203 wxPyEndAllowThreads(__tstate);
13204 if (PyErr_Occurred()) SWIG_fail;
13205 }
13206 resultobj = SWIG_From_int(static_cast< int >(result));
13207 if (SWIG_IsTmpObj(res3)) {
13208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13209 } else {
13210 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13212 }
13213 return resultobj;
13214 fail:
13215 return NULL;
13216 }
13217
13218
13219 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13220 PyObject *resultobj = 0;
13221 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13222 void *argp1 = 0 ;
13223 int res1 = 0 ;
13224 PyObject *swig_obj[1] ;
13225
13226 if (!args) SWIG_fail;
13227 swig_obj[0] = args;
13228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13229 if (!SWIG_IsOK(res1)) {
13230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13231 }
13232 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13233 {
13234 PyThreadState* __tstate = wxPyBeginAllowThreads();
13235 (arg1)->Copy();
13236 wxPyEndAllowThreads(__tstate);
13237 if (PyErr_Occurred()) SWIG_fail;
13238 }
13239 resultobj = SWIG_Py_Void();
13240 return resultobj;
13241 fail:
13242 return NULL;
13243 }
13244
13245
13246 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13247 PyObject *resultobj = 0;
13248 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13249 void *argp1 = 0 ;
13250 int res1 = 0 ;
13251 PyObject *swig_obj[1] ;
13252
13253 if (!args) SWIG_fail;
13254 swig_obj[0] = args;
13255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13256 if (!SWIG_IsOK(res1)) {
13257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13258 }
13259 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13260 {
13261 PyThreadState* __tstate = wxPyBeginAllowThreads();
13262 (arg1)->Cut();
13263 wxPyEndAllowThreads(__tstate);
13264 if (PyErr_Occurred()) SWIG_fail;
13265 }
13266 resultobj = SWIG_Py_Void();
13267 return resultobj;
13268 fail:
13269 return NULL;
13270 }
13271
13272
13273 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13274 PyObject *resultobj = 0;
13275 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13276 void *argp1 = 0 ;
13277 int res1 = 0 ;
13278 PyObject *swig_obj[1] ;
13279
13280 if (!args) SWIG_fail;
13281 swig_obj[0] = args;
13282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13283 if (!SWIG_IsOK(res1)) {
13284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13285 }
13286 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13287 {
13288 PyThreadState* __tstate = wxPyBeginAllowThreads();
13289 (arg1)->Paste();
13290 wxPyEndAllowThreads(__tstate);
13291 if (PyErr_Occurred()) SWIG_fail;
13292 }
13293 resultobj = SWIG_Py_Void();
13294 return resultobj;
13295 fail:
13296 return NULL;
13297 }
13298
13299
13300 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13301 PyObject *resultobj = 0;
13302 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13303 bool result;
13304 void *argp1 = 0 ;
13305 int res1 = 0 ;
13306 PyObject *swig_obj[1] ;
13307
13308 if (!args) SWIG_fail;
13309 swig_obj[0] = args;
13310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13311 if (!SWIG_IsOK(res1)) {
13312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13313 }
13314 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13315 {
13316 PyThreadState* __tstate = wxPyBeginAllowThreads();
13317 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13318 wxPyEndAllowThreads(__tstate);
13319 if (PyErr_Occurred()) SWIG_fail;
13320 }
13321 {
13322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13323 }
13324 return resultobj;
13325 fail:
13326 return NULL;
13327 }
13328
13329
13330 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13331 PyObject *resultobj = 0;
13332 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13333 bool result;
13334 void *argp1 = 0 ;
13335 int res1 = 0 ;
13336 PyObject *swig_obj[1] ;
13337
13338 if (!args) SWIG_fail;
13339 swig_obj[0] = args;
13340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13341 if (!SWIG_IsOK(res1)) {
13342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13343 }
13344 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13345 {
13346 PyThreadState* __tstate = wxPyBeginAllowThreads();
13347 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13348 wxPyEndAllowThreads(__tstate);
13349 if (PyErr_Occurred()) SWIG_fail;
13350 }
13351 {
13352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13353 }
13354 return resultobj;
13355 fail:
13356 return NULL;
13357 }
13358
13359
13360 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13361 PyObject *resultobj = 0;
13362 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13363 bool result;
13364 void *argp1 = 0 ;
13365 int res1 = 0 ;
13366 PyObject *swig_obj[1] ;
13367
13368 if (!args) SWIG_fail;
13369 swig_obj[0] = args;
13370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13371 if (!SWIG_IsOK(res1)) {
13372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13373 }
13374 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13375 {
13376 PyThreadState* __tstate = wxPyBeginAllowThreads();
13377 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13378 wxPyEndAllowThreads(__tstate);
13379 if (PyErr_Occurred()) SWIG_fail;
13380 }
13381 {
13382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13383 }
13384 return resultobj;
13385 fail:
13386 return NULL;
13387 }
13388
13389
13390 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13391 PyObject *resultobj = 0;
13392 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13393 void *argp1 = 0 ;
13394 int res1 = 0 ;
13395 PyObject *swig_obj[1] ;
13396
13397 if (!args) SWIG_fail;
13398 swig_obj[0] = args;
13399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13400 if (!SWIG_IsOK(res1)) {
13401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13402 }
13403 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13404 {
13405 PyThreadState* __tstate = wxPyBeginAllowThreads();
13406 (arg1)->Undo();
13407 wxPyEndAllowThreads(__tstate);
13408 if (PyErr_Occurred()) SWIG_fail;
13409 }
13410 resultobj = SWIG_Py_Void();
13411 return resultobj;
13412 fail:
13413 return NULL;
13414 }
13415
13416
13417 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13418 PyObject *resultobj = 0;
13419 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13420 void *argp1 = 0 ;
13421 int res1 = 0 ;
13422 PyObject *swig_obj[1] ;
13423
13424 if (!args) SWIG_fail;
13425 swig_obj[0] = args;
13426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13427 if (!SWIG_IsOK(res1)) {
13428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13429 }
13430 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13431 {
13432 PyThreadState* __tstate = wxPyBeginAllowThreads();
13433 (arg1)->Redo();
13434 wxPyEndAllowThreads(__tstate);
13435 if (PyErr_Occurred()) SWIG_fail;
13436 }
13437 resultobj = SWIG_Py_Void();
13438 return resultobj;
13439 fail:
13440 return NULL;
13441 }
13442
13443
13444 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13445 PyObject *resultobj = 0;
13446 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13447 bool result;
13448 void *argp1 = 0 ;
13449 int res1 = 0 ;
13450 PyObject *swig_obj[1] ;
13451
13452 if (!args) SWIG_fail;
13453 swig_obj[0] = args;
13454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13455 if (!SWIG_IsOK(res1)) {
13456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13457 }
13458 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13459 {
13460 PyThreadState* __tstate = wxPyBeginAllowThreads();
13461 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13462 wxPyEndAllowThreads(__tstate);
13463 if (PyErr_Occurred()) SWIG_fail;
13464 }
13465 {
13466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13467 }
13468 return resultobj;
13469 fail:
13470 return NULL;
13471 }
13472
13473
13474 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13475 PyObject *resultobj = 0;
13476 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13477 bool result;
13478 void *argp1 = 0 ;
13479 int res1 = 0 ;
13480 PyObject *swig_obj[1] ;
13481
13482 if (!args) SWIG_fail;
13483 swig_obj[0] = args;
13484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13485 if (!SWIG_IsOK(res1)) {
13486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13487 }
13488 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13489 {
13490 PyThreadState* __tstate = wxPyBeginAllowThreads();
13491 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13492 wxPyEndAllowThreads(__tstate);
13493 if (PyErr_Occurred()) SWIG_fail;
13494 }
13495 {
13496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13497 }
13498 return resultobj;
13499 fail:
13500 return NULL;
13501 }
13502
13503
13504 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13505 PyObject *resultobj = 0;
13506 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13507 long arg2 ;
13508 void *argp1 = 0 ;
13509 int res1 = 0 ;
13510 long val2 ;
13511 int ecode2 = 0 ;
13512 PyObject * obj0 = 0 ;
13513 PyObject * obj1 = 0 ;
13514 char * kwnames[] = {
13515 (char *) "self",(char *) "pos", NULL
13516 };
13517
13518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13520 if (!SWIG_IsOK(res1)) {
13521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13522 }
13523 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13524 ecode2 = SWIG_AsVal_long(obj1, &val2);
13525 if (!SWIG_IsOK(ecode2)) {
13526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13527 }
13528 arg2 = static_cast< long >(val2);
13529 {
13530 PyThreadState* __tstate = wxPyBeginAllowThreads();
13531 (arg1)->SetInsertionPoint(arg2);
13532 wxPyEndAllowThreads(__tstate);
13533 if (PyErr_Occurred()) SWIG_fail;
13534 }
13535 resultobj = SWIG_Py_Void();
13536 return resultobj;
13537 fail:
13538 return NULL;
13539 }
13540
13541
13542 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13543 PyObject *resultobj = 0;
13544 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
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_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13554 }
13555 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13556 {
13557 PyThreadState* __tstate = wxPyBeginAllowThreads();
13558 (arg1)->SetInsertionPointEnd();
13559 wxPyEndAllowThreads(__tstate);
13560 if (PyErr_Occurred()) SWIG_fail;
13561 }
13562 resultobj = SWIG_Py_Void();
13563 return resultobj;
13564 fail:
13565 return NULL;
13566 }
13567
13568
13569 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13570 PyObject *resultobj = 0;
13571 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13572 long result;
13573 void *argp1 = 0 ;
13574 int res1 = 0 ;
13575 PyObject *swig_obj[1] ;
13576
13577 if (!args) SWIG_fail;
13578 swig_obj[0] = args;
13579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13580 if (!SWIG_IsOK(res1)) {
13581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13582 }
13583 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13584 {
13585 PyThreadState* __tstate = wxPyBeginAllowThreads();
13586 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13587 wxPyEndAllowThreads(__tstate);
13588 if (PyErr_Occurred()) SWIG_fail;
13589 }
13590 resultobj = SWIG_From_long(static_cast< long >(result));
13591 return resultobj;
13592 fail:
13593 return NULL;
13594 }
13595
13596
13597 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13598 PyObject *resultobj = 0;
13599 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13600 long result;
13601 void *argp1 = 0 ;
13602 int res1 = 0 ;
13603 PyObject *swig_obj[1] ;
13604
13605 if (!args) SWIG_fail;
13606 swig_obj[0] = args;
13607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13608 if (!SWIG_IsOK(res1)) {
13609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13610 }
13611 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13612 {
13613 PyThreadState* __tstate = wxPyBeginAllowThreads();
13614 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13615 wxPyEndAllowThreads(__tstate);
13616 if (PyErr_Occurred()) SWIG_fail;
13617 }
13618 resultobj = SWIG_From_long(static_cast< long >(result));
13619 return resultobj;
13620 fail:
13621 return NULL;
13622 }
13623
13624
13625 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13626 PyObject *resultobj = 0;
13627 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13628 long arg2 ;
13629 long arg3 ;
13630 void *argp1 = 0 ;
13631 int res1 = 0 ;
13632 long val2 ;
13633 int ecode2 = 0 ;
13634 long val3 ;
13635 int ecode3 = 0 ;
13636 PyObject * obj0 = 0 ;
13637 PyObject * obj1 = 0 ;
13638 PyObject * obj2 = 0 ;
13639 char * kwnames[] = {
13640 (char *) "self",(char *) "from",(char *) "to", NULL
13641 };
13642
13643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13645 if (!SWIG_IsOK(res1)) {
13646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13647 }
13648 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13649 ecode2 = SWIG_AsVal_long(obj1, &val2);
13650 if (!SWIG_IsOK(ecode2)) {
13651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13652 }
13653 arg2 = static_cast< long >(val2);
13654 ecode3 = SWIG_AsVal_long(obj2, &val3);
13655 if (!SWIG_IsOK(ecode3)) {
13656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13657 }
13658 arg3 = static_cast< long >(val3);
13659 {
13660 PyThreadState* __tstate = wxPyBeginAllowThreads();
13661 (arg1)->SetSelection(arg2,arg3);
13662 wxPyEndAllowThreads(__tstate);
13663 if (PyErr_Occurred()) SWIG_fail;
13664 }
13665 resultobj = SWIG_Py_Void();
13666 return resultobj;
13667 fail:
13668 return NULL;
13669 }
13670
13671
13672 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13673 PyObject *resultobj = 0;
13674 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13675 void *argp1 = 0 ;
13676 int res1 = 0 ;
13677 PyObject *swig_obj[1] ;
13678
13679 if (!args) SWIG_fail;
13680 swig_obj[0] = args;
13681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13682 if (!SWIG_IsOK(res1)) {
13683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13684 }
13685 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13686 {
13687 PyThreadState* __tstate = wxPyBeginAllowThreads();
13688 (arg1)->SelectAll();
13689 wxPyEndAllowThreads(__tstate);
13690 if (PyErr_Occurred()) SWIG_fail;
13691 }
13692 resultobj = SWIG_Py_Void();
13693 return resultobj;
13694 fail:
13695 return NULL;
13696 }
13697
13698
13699 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13700 PyObject *resultobj = 0;
13701 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13702 bool arg2 ;
13703 void *argp1 = 0 ;
13704 int res1 = 0 ;
13705 bool val2 ;
13706 int ecode2 = 0 ;
13707 PyObject * obj0 = 0 ;
13708 PyObject * obj1 = 0 ;
13709 char * kwnames[] = {
13710 (char *) "self",(char *) "editable", NULL
13711 };
13712
13713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13715 if (!SWIG_IsOK(res1)) {
13716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13717 }
13718 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13719 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13720 if (!SWIG_IsOK(ecode2)) {
13721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13722 }
13723 arg2 = static_cast< bool >(val2);
13724 {
13725 PyThreadState* __tstate = wxPyBeginAllowThreads();
13726 (arg1)->SetEditable(arg2);
13727 wxPyEndAllowThreads(__tstate);
13728 if (PyErr_Occurred()) SWIG_fail;
13729 }
13730 resultobj = SWIG_Py_Void();
13731 return resultobj;
13732 fail:
13733 return NULL;
13734 }
13735
13736
13737 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13738 PyObject *resultobj = 0;
13739 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13740 wxString *arg2 = 0 ;
13741 void *argp1 = 0 ;
13742 int res1 = 0 ;
13743 bool temp2 = false ;
13744 PyObject * obj0 = 0 ;
13745 PyObject * obj1 = 0 ;
13746 char * kwnames[] = {
13747 (char *) "self",(char *) "text", NULL
13748 };
13749
13750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13752 if (!SWIG_IsOK(res1)) {
13753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13754 }
13755 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13756 {
13757 arg2 = wxString_in_helper(obj1);
13758 if (arg2 == NULL) SWIG_fail;
13759 temp2 = true;
13760 }
13761 {
13762 PyThreadState* __tstate = wxPyBeginAllowThreads();
13763 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13764 wxPyEndAllowThreads(__tstate);
13765 if (PyErr_Occurred()) SWIG_fail;
13766 }
13767 resultobj = SWIG_Py_Void();
13768 {
13769 if (temp2)
13770 delete arg2;
13771 }
13772 return resultobj;
13773 fail:
13774 {
13775 if (temp2)
13776 delete arg2;
13777 }
13778 return NULL;
13779 }
13780
13781
13782 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13783 PyObject *resultobj = 0;
13784 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13785 long arg2 ;
13786 long arg3 ;
13787 wxString result;
13788 void *argp1 = 0 ;
13789 int res1 = 0 ;
13790 long val2 ;
13791 int ecode2 = 0 ;
13792 long val3 ;
13793 int ecode3 = 0 ;
13794 PyObject * obj0 = 0 ;
13795 PyObject * obj1 = 0 ;
13796 PyObject * obj2 = 0 ;
13797 char * kwnames[] = {
13798 (char *) "self",(char *) "from",(char *) "to", NULL
13799 };
13800
13801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13803 if (!SWIG_IsOK(res1)) {
13804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13805 }
13806 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13807 ecode2 = SWIG_AsVal_long(obj1, &val2);
13808 if (!SWIG_IsOK(ecode2)) {
13809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13810 }
13811 arg2 = static_cast< long >(val2);
13812 ecode3 = SWIG_AsVal_long(obj2, &val3);
13813 if (!SWIG_IsOK(ecode3)) {
13814 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13815 }
13816 arg3 = static_cast< long >(val3);
13817 {
13818 PyThreadState* __tstate = wxPyBeginAllowThreads();
13819 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13820 wxPyEndAllowThreads(__tstate);
13821 if (PyErr_Occurred()) SWIG_fail;
13822 }
13823 {
13824 #if wxUSE_UNICODE
13825 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13826 #else
13827 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13828 #endif
13829 }
13830 return resultobj;
13831 fail:
13832 return NULL;
13833 }
13834
13835
13836 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13837 PyObject *resultobj = 0;
13838 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13839 SwigValueWrapper<wxVisualAttributes > result;
13840 int val1 ;
13841 int ecode1 = 0 ;
13842 PyObject * obj0 = 0 ;
13843 char * kwnames[] = {
13844 (char *) "variant", NULL
13845 };
13846
13847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13848 if (obj0) {
13849 ecode1 = SWIG_AsVal_int(obj0, &val1);
13850 if (!SWIG_IsOK(ecode1)) {
13851 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13852 }
13853 arg1 = static_cast< wxWindowVariant >(val1);
13854 }
13855 {
13856 if (!wxPyCheckForApp()) SWIG_fail;
13857 PyThreadState* __tstate = wxPyBeginAllowThreads();
13858 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13859 wxPyEndAllowThreads(__tstate);
13860 if (PyErr_Occurred()) SWIG_fail;
13861 }
13862 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13863 return resultobj;
13864 fail:
13865 return NULL;
13866 }
13867
13868
13869 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13870 PyObject *obj;
13871 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13872 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13873 return SWIG_Py_Void();
13874 }
13875
13876 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13877 return SWIG_Python_InitShadowInstance(args);
13878 }
13879
13880 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13881 PyObject *resultobj = 0;
13882 int arg1 ;
13883 wxMouseEvent *arg2 = 0 ;
13884 long arg3 ;
13885 long arg4 ;
13886 wxTextUrlEvent *result = 0 ;
13887 int val1 ;
13888 int ecode1 = 0 ;
13889 void *argp2 = 0 ;
13890 int res2 = 0 ;
13891 long val3 ;
13892 int ecode3 = 0 ;
13893 long val4 ;
13894 int ecode4 = 0 ;
13895 PyObject * obj0 = 0 ;
13896 PyObject * obj1 = 0 ;
13897 PyObject * obj2 = 0 ;
13898 PyObject * obj3 = 0 ;
13899 char * kwnames[] = {
13900 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13901 };
13902
13903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13904 ecode1 = SWIG_AsVal_int(obj0, &val1);
13905 if (!SWIG_IsOK(ecode1)) {
13906 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13907 }
13908 arg1 = static_cast< int >(val1);
13909 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13910 if (!SWIG_IsOK(res2)) {
13911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13912 }
13913 if (!argp2) {
13914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13915 }
13916 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13917 ecode3 = SWIG_AsVal_long(obj2, &val3);
13918 if (!SWIG_IsOK(ecode3)) {
13919 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13920 }
13921 arg3 = static_cast< long >(val3);
13922 ecode4 = SWIG_AsVal_long(obj3, &val4);
13923 if (!SWIG_IsOK(ecode4)) {
13924 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13925 }
13926 arg4 = static_cast< long >(val4);
13927 {
13928 PyThreadState* __tstate = wxPyBeginAllowThreads();
13929 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13930 wxPyEndAllowThreads(__tstate);
13931 if (PyErr_Occurred()) SWIG_fail;
13932 }
13933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13934 return resultobj;
13935 fail:
13936 return NULL;
13937 }
13938
13939
13940 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13941 PyObject *resultobj = 0;
13942 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13943 wxMouseEvent *result = 0 ;
13944 void *argp1 = 0 ;
13945 int res1 = 0 ;
13946 PyObject *swig_obj[1] ;
13947
13948 if (!args) SWIG_fail;
13949 swig_obj[0] = args;
13950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13951 if (!SWIG_IsOK(res1)) {
13952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13953 }
13954 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13955 {
13956 PyThreadState* __tstate = wxPyBeginAllowThreads();
13957 {
13958 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13959 result = (wxMouseEvent *) &_result_ref;
13960 }
13961 wxPyEndAllowThreads(__tstate);
13962 if (PyErr_Occurred()) SWIG_fail;
13963 }
13964 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13965 return resultobj;
13966 fail:
13967 return NULL;
13968 }
13969
13970
13971 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13972 PyObject *resultobj = 0;
13973 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13974 long result;
13975 void *argp1 = 0 ;
13976 int res1 = 0 ;
13977 PyObject *swig_obj[1] ;
13978
13979 if (!args) SWIG_fail;
13980 swig_obj[0] = args;
13981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13982 if (!SWIG_IsOK(res1)) {
13983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13984 }
13985 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13986 {
13987 PyThreadState* __tstate = wxPyBeginAllowThreads();
13988 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13989 wxPyEndAllowThreads(__tstate);
13990 if (PyErr_Occurred()) SWIG_fail;
13991 }
13992 resultobj = SWIG_From_long(static_cast< long >(result));
13993 return resultobj;
13994 fail:
13995 return NULL;
13996 }
13997
13998
13999 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14000 PyObject *resultobj = 0;
14001 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14002 long result;
14003 void *argp1 = 0 ;
14004 int res1 = 0 ;
14005 PyObject *swig_obj[1] ;
14006
14007 if (!args) SWIG_fail;
14008 swig_obj[0] = args;
14009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14010 if (!SWIG_IsOK(res1)) {
14011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14012 }
14013 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14014 {
14015 PyThreadState* __tstate = wxPyBeginAllowThreads();
14016 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14017 wxPyEndAllowThreads(__tstate);
14018 if (PyErr_Occurred()) SWIG_fail;
14019 }
14020 resultobj = SWIG_From_long(static_cast< long >(result));
14021 return resultobj;
14022 fail:
14023 return NULL;
14024 }
14025
14026
14027 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14028 PyObject *obj;
14029 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14030 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14031 return SWIG_Py_Void();
14032 }
14033
14034 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14035 return SWIG_Python_InitShadowInstance(args);
14036 }
14037
14038 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14039 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14040 return 1;
14041 }
14042
14043
14044 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14045 PyObject *pyobj = 0;
14046
14047 {
14048 #if wxUSE_UNICODE
14049 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14050 #else
14051 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14052 #endif
14053 }
14054 return pyobj;
14055 }
14056
14057
14058 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14059 PyObject *resultobj = 0;
14060 wxWindow *arg1 = (wxWindow *) 0 ;
14061 int arg2 = (int) -1 ;
14062 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14063 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14064 wxSize const &arg4_defvalue = wxDefaultSize ;
14065 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14066 long arg5 = (long) wxSB_HORIZONTAL ;
14067 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14068 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14069 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14070 wxString *arg7 = (wxString *) &arg7_defvalue ;
14071 wxScrollBar *result = 0 ;
14072 void *argp1 = 0 ;
14073 int res1 = 0 ;
14074 int val2 ;
14075 int ecode2 = 0 ;
14076 wxPoint temp3 ;
14077 wxSize temp4 ;
14078 long val5 ;
14079 int ecode5 = 0 ;
14080 void *argp6 = 0 ;
14081 int res6 = 0 ;
14082 bool temp7 = false ;
14083 PyObject * obj0 = 0 ;
14084 PyObject * obj1 = 0 ;
14085 PyObject * obj2 = 0 ;
14086 PyObject * obj3 = 0 ;
14087 PyObject * obj4 = 0 ;
14088 PyObject * obj5 = 0 ;
14089 PyObject * obj6 = 0 ;
14090 char * kwnames[] = {
14091 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14092 };
14093
14094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14096 if (!SWIG_IsOK(res1)) {
14097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14098 }
14099 arg1 = reinterpret_cast< wxWindow * >(argp1);
14100 if (obj1) {
14101 ecode2 = SWIG_AsVal_int(obj1, &val2);
14102 if (!SWIG_IsOK(ecode2)) {
14103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14104 }
14105 arg2 = static_cast< int >(val2);
14106 }
14107 if (obj2) {
14108 {
14109 arg3 = &temp3;
14110 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14111 }
14112 }
14113 if (obj3) {
14114 {
14115 arg4 = &temp4;
14116 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14117 }
14118 }
14119 if (obj4) {
14120 ecode5 = SWIG_AsVal_long(obj4, &val5);
14121 if (!SWIG_IsOK(ecode5)) {
14122 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14123 }
14124 arg5 = static_cast< long >(val5);
14125 }
14126 if (obj5) {
14127 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14128 if (!SWIG_IsOK(res6)) {
14129 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14130 }
14131 if (!argp6) {
14132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14133 }
14134 arg6 = reinterpret_cast< wxValidator * >(argp6);
14135 }
14136 if (obj6) {
14137 {
14138 arg7 = wxString_in_helper(obj6);
14139 if (arg7 == NULL) SWIG_fail;
14140 temp7 = true;
14141 }
14142 }
14143 {
14144 if (!wxPyCheckForApp()) SWIG_fail;
14145 PyThreadState* __tstate = wxPyBeginAllowThreads();
14146 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14147 wxPyEndAllowThreads(__tstate);
14148 if (PyErr_Occurred()) SWIG_fail;
14149 }
14150 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14151 {
14152 if (temp7)
14153 delete arg7;
14154 }
14155 return resultobj;
14156 fail:
14157 {
14158 if (temp7)
14159 delete arg7;
14160 }
14161 return NULL;
14162 }
14163
14164
14165 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14166 PyObject *resultobj = 0;
14167 wxScrollBar *result = 0 ;
14168
14169 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14170 {
14171 if (!wxPyCheckForApp()) SWIG_fail;
14172 PyThreadState* __tstate = wxPyBeginAllowThreads();
14173 result = (wxScrollBar *)new wxScrollBar();
14174 wxPyEndAllowThreads(__tstate);
14175 if (PyErr_Occurred()) SWIG_fail;
14176 }
14177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14178 return resultobj;
14179 fail:
14180 return NULL;
14181 }
14182
14183
14184 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14185 PyObject *resultobj = 0;
14186 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14187 wxWindow *arg2 = (wxWindow *) 0 ;
14188 int arg3 = (int) -1 ;
14189 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14190 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14191 wxSize const &arg5_defvalue = wxDefaultSize ;
14192 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14193 long arg6 = (long) wxSB_HORIZONTAL ;
14194 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14195 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14196 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14197 wxString *arg8 = (wxString *) &arg8_defvalue ;
14198 bool result;
14199 void *argp1 = 0 ;
14200 int res1 = 0 ;
14201 void *argp2 = 0 ;
14202 int res2 = 0 ;
14203 int val3 ;
14204 int ecode3 = 0 ;
14205 wxPoint temp4 ;
14206 wxSize temp5 ;
14207 long val6 ;
14208 int ecode6 = 0 ;
14209 void *argp7 = 0 ;
14210 int res7 = 0 ;
14211 bool temp8 = false ;
14212 PyObject * obj0 = 0 ;
14213 PyObject * obj1 = 0 ;
14214 PyObject * obj2 = 0 ;
14215 PyObject * obj3 = 0 ;
14216 PyObject * obj4 = 0 ;
14217 PyObject * obj5 = 0 ;
14218 PyObject * obj6 = 0 ;
14219 PyObject * obj7 = 0 ;
14220 char * kwnames[] = {
14221 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14222 };
14223
14224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14226 if (!SWIG_IsOK(res1)) {
14227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14228 }
14229 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14230 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14231 if (!SWIG_IsOK(res2)) {
14232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14233 }
14234 arg2 = reinterpret_cast< wxWindow * >(argp2);
14235 if (obj2) {
14236 ecode3 = SWIG_AsVal_int(obj2, &val3);
14237 if (!SWIG_IsOK(ecode3)) {
14238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14239 }
14240 arg3 = static_cast< int >(val3);
14241 }
14242 if (obj3) {
14243 {
14244 arg4 = &temp4;
14245 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14246 }
14247 }
14248 if (obj4) {
14249 {
14250 arg5 = &temp5;
14251 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14252 }
14253 }
14254 if (obj5) {
14255 ecode6 = SWIG_AsVal_long(obj5, &val6);
14256 if (!SWIG_IsOK(ecode6)) {
14257 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14258 }
14259 arg6 = static_cast< long >(val6);
14260 }
14261 if (obj6) {
14262 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14263 if (!SWIG_IsOK(res7)) {
14264 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14265 }
14266 if (!argp7) {
14267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14268 }
14269 arg7 = reinterpret_cast< wxValidator * >(argp7);
14270 }
14271 if (obj7) {
14272 {
14273 arg8 = wxString_in_helper(obj7);
14274 if (arg8 == NULL) SWIG_fail;
14275 temp8 = true;
14276 }
14277 }
14278 {
14279 PyThreadState* __tstate = wxPyBeginAllowThreads();
14280 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14281 wxPyEndAllowThreads(__tstate);
14282 if (PyErr_Occurred()) SWIG_fail;
14283 }
14284 {
14285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14286 }
14287 {
14288 if (temp8)
14289 delete arg8;
14290 }
14291 return resultobj;
14292 fail:
14293 {
14294 if (temp8)
14295 delete arg8;
14296 }
14297 return NULL;
14298 }
14299
14300
14301 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14302 PyObject *resultobj = 0;
14303 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14304 int result;
14305 void *argp1 = 0 ;
14306 int res1 = 0 ;
14307 PyObject *swig_obj[1] ;
14308
14309 if (!args) SWIG_fail;
14310 swig_obj[0] = args;
14311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14312 if (!SWIG_IsOK(res1)) {
14313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14314 }
14315 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14316 {
14317 PyThreadState* __tstate = wxPyBeginAllowThreads();
14318 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14319 wxPyEndAllowThreads(__tstate);
14320 if (PyErr_Occurred()) SWIG_fail;
14321 }
14322 resultobj = SWIG_From_int(static_cast< int >(result));
14323 return resultobj;
14324 fail:
14325 return NULL;
14326 }
14327
14328
14329 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14330 PyObject *resultobj = 0;
14331 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14332 int result;
14333 void *argp1 = 0 ;
14334 int res1 = 0 ;
14335 PyObject *swig_obj[1] ;
14336
14337 if (!args) SWIG_fail;
14338 swig_obj[0] = args;
14339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14340 if (!SWIG_IsOK(res1)) {
14341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14342 }
14343 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14344 {
14345 PyThreadState* __tstate = wxPyBeginAllowThreads();
14346 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14347 wxPyEndAllowThreads(__tstate);
14348 if (PyErr_Occurred()) SWIG_fail;
14349 }
14350 resultobj = SWIG_From_int(static_cast< int >(result));
14351 return resultobj;
14352 fail:
14353 return NULL;
14354 }
14355
14356
14357 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14358 PyObject *resultobj = 0;
14359 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14360 int result;
14361 void *argp1 = 0 ;
14362 int res1 = 0 ;
14363 PyObject *swig_obj[1] ;
14364
14365 if (!args) SWIG_fail;
14366 swig_obj[0] = args;
14367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14368 if (!SWIG_IsOK(res1)) {
14369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14370 }
14371 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14372 {
14373 PyThreadState* __tstate = wxPyBeginAllowThreads();
14374 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14375 wxPyEndAllowThreads(__tstate);
14376 if (PyErr_Occurred()) SWIG_fail;
14377 }
14378 resultobj = SWIG_From_int(static_cast< int >(result));
14379 return resultobj;
14380 fail:
14381 return NULL;
14382 }
14383
14384
14385 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14386 PyObject *resultobj = 0;
14387 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14388 int result;
14389 void *argp1 = 0 ;
14390 int res1 = 0 ;
14391 PyObject *swig_obj[1] ;
14392
14393 if (!args) SWIG_fail;
14394 swig_obj[0] = args;
14395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14396 if (!SWIG_IsOK(res1)) {
14397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14398 }
14399 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14400 {
14401 PyThreadState* __tstate = wxPyBeginAllowThreads();
14402 result = (int)((wxScrollBar const *)arg1)->GetRange();
14403 wxPyEndAllowThreads(__tstate);
14404 if (PyErr_Occurred()) SWIG_fail;
14405 }
14406 resultobj = SWIG_From_int(static_cast< int >(result));
14407 return resultobj;
14408 fail:
14409 return NULL;
14410 }
14411
14412
14413 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14414 PyObject *resultobj = 0;
14415 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14416 bool result;
14417 void *argp1 = 0 ;
14418 int res1 = 0 ;
14419 PyObject *swig_obj[1] ;
14420
14421 if (!args) SWIG_fail;
14422 swig_obj[0] = args;
14423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14424 if (!SWIG_IsOK(res1)) {
14425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14426 }
14427 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14428 {
14429 PyThreadState* __tstate = wxPyBeginAllowThreads();
14430 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14431 wxPyEndAllowThreads(__tstate);
14432 if (PyErr_Occurred()) SWIG_fail;
14433 }
14434 {
14435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14436 }
14437 return resultobj;
14438 fail:
14439 return NULL;
14440 }
14441
14442
14443 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14444 PyObject *resultobj = 0;
14445 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14446 int arg2 ;
14447 void *argp1 = 0 ;
14448 int res1 = 0 ;
14449 int val2 ;
14450 int ecode2 = 0 ;
14451 PyObject * obj0 = 0 ;
14452 PyObject * obj1 = 0 ;
14453 char * kwnames[] = {
14454 (char *) "self",(char *) "viewStart", NULL
14455 };
14456
14457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14459 if (!SWIG_IsOK(res1)) {
14460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14461 }
14462 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14463 ecode2 = SWIG_AsVal_int(obj1, &val2);
14464 if (!SWIG_IsOK(ecode2)) {
14465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14466 }
14467 arg2 = static_cast< int >(val2);
14468 {
14469 PyThreadState* __tstate = wxPyBeginAllowThreads();
14470 (arg1)->SetThumbPosition(arg2);
14471 wxPyEndAllowThreads(__tstate);
14472 if (PyErr_Occurred()) SWIG_fail;
14473 }
14474 resultobj = SWIG_Py_Void();
14475 return resultobj;
14476 fail:
14477 return NULL;
14478 }
14479
14480
14481 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14482 PyObject *resultobj = 0;
14483 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14484 SwigValueWrapper<wxVisualAttributes > result;
14485 int val1 ;
14486 int ecode1 = 0 ;
14487 PyObject * obj0 = 0 ;
14488 char * kwnames[] = {
14489 (char *) "variant", NULL
14490 };
14491
14492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14493 if (obj0) {
14494 ecode1 = SWIG_AsVal_int(obj0, &val1);
14495 if (!SWIG_IsOK(ecode1)) {
14496 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14497 }
14498 arg1 = static_cast< wxWindowVariant >(val1);
14499 }
14500 {
14501 if (!wxPyCheckForApp()) SWIG_fail;
14502 PyThreadState* __tstate = wxPyBeginAllowThreads();
14503 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14504 wxPyEndAllowThreads(__tstate);
14505 if (PyErr_Occurred()) SWIG_fail;
14506 }
14507 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14508 return resultobj;
14509 fail:
14510 return NULL;
14511 }
14512
14513
14514 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14515 PyObject *obj;
14516 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14517 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14518 return SWIG_Py_Void();
14519 }
14520
14521 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14522 return SWIG_Python_InitShadowInstance(args);
14523 }
14524
14525 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14526 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14527 return 1;
14528 }
14529
14530
14531 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14532 PyObject *pyobj = 0;
14533
14534 {
14535 #if wxUSE_UNICODE
14536 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14537 #else
14538 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14539 #endif
14540 }
14541 return pyobj;
14542 }
14543
14544
14545 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14546 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14547 return 1;
14548 }
14549
14550
14551 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14552 PyObject *pyobj = 0;
14553
14554 {
14555 #if wxUSE_UNICODE
14556 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14557 #else
14558 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14559 #endif
14560 }
14561 return pyobj;
14562 }
14563
14564
14565 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14566 PyObject *resultobj = 0;
14567 wxWindow *arg1 = (wxWindow *) 0 ;
14568 int arg2 = (int) -1 ;
14569 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14570 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14571 wxSize const &arg4_defvalue = wxDefaultSize ;
14572 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14573 long arg5 = (long) wxSP_HORIZONTAL ;
14574 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14575 wxString *arg6 = (wxString *) &arg6_defvalue ;
14576 wxSpinButton *result = 0 ;
14577 void *argp1 = 0 ;
14578 int res1 = 0 ;
14579 int val2 ;
14580 int ecode2 = 0 ;
14581 wxPoint temp3 ;
14582 wxSize temp4 ;
14583 long val5 ;
14584 int ecode5 = 0 ;
14585 bool temp6 = false ;
14586 PyObject * obj0 = 0 ;
14587 PyObject * obj1 = 0 ;
14588 PyObject * obj2 = 0 ;
14589 PyObject * obj3 = 0 ;
14590 PyObject * obj4 = 0 ;
14591 PyObject * obj5 = 0 ;
14592 char * kwnames[] = {
14593 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14594 };
14595
14596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14598 if (!SWIG_IsOK(res1)) {
14599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14600 }
14601 arg1 = reinterpret_cast< wxWindow * >(argp1);
14602 if (obj1) {
14603 ecode2 = SWIG_AsVal_int(obj1, &val2);
14604 if (!SWIG_IsOK(ecode2)) {
14605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14606 }
14607 arg2 = static_cast< int >(val2);
14608 }
14609 if (obj2) {
14610 {
14611 arg3 = &temp3;
14612 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14613 }
14614 }
14615 if (obj3) {
14616 {
14617 arg4 = &temp4;
14618 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14619 }
14620 }
14621 if (obj4) {
14622 ecode5 = SWIG_AsVal_long(obj4, &val5);
14623 if (!SWIG_IsOK(ecode5)) {
14624 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14625 }
14626 arg5 = static_cast< long >(val5);
14627 }
14628 if (obj5) {
14629 {
14630 arg6 = wxString_in_helper(obj5);
14631 if (arg6 == NULL) SWIG_fail;
14632 temp6 = true;
14633 }
14634 }
14635 {
14636 if (!wxPyCheckForApp()) SWIG_fail;
14637 PyThreadState* __tstate = wxPyBeginAllowThreads();
14638 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14639 wxPyEndAllowThreads(__tstate);
14640 if (PyErr_Occurred()) SWIG_fail;
14641 }
14642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14643 {
14644 if (temp6)
14645 delete arg6;
14646 }
14647 return resultobj;
14648 fail:
14649 {
14650 if (temp6)
14651 delete arg6;
14652 }
14653 return NULL;
14654 }
14655
14656
14657 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14658 PyObject *resultobj = 0;
14659 wxSpinButton *result = 0 ;
14660
14661 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14662 {
14663 if (!wxPyCheckForApp()) SWIG_fail;
14664 PyThreadState* __tstate = wxPyBeginAllowThreads();
14665 result = (wxSpinButton *)new wxSpinButton();
14666 wxPyEndAllowThreads(__tstate);
14667 if (PyErr_Occurred()) SWIG_fail;
14668 }
14669 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14670 return resultobj;
14671 fail:
14672 return NULL;
14673 }
14674
14675
14676 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14677 PyObject *resultobj = 0;
14678 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14679 wxWindow *arg2 = (wxWindow *) 0 ;
14680 int arg3 = (int) -1 ;
14681 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14682 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14683 wxSize const &arg5_defvalue = wxDefaultSize ;
14684 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14685 long arg6 = (long) wxSP_HORIZONTAL ;
14686 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14687 wxString *arg7 = (wxString *) &arg7_defvalue ;
14688 bool result;
14689 void *argp1 = 0 ;
14690 int res1 = 0 ;
14691 void *argp2 = 0 ;
14692 int res2 = 0 ;
14693 int val3 ;
14694 int ecode3 = 0 ;
14695 wxPoint temp4 ;
14696 wxSize temp5 ;
14697 long val6 ;
14698 int ecode6 = 0 ;
14699 bool temp7 = false ;
14700 PyObject * obj0 = 0 ;
14701 PyObject * obj1 = 0 ;
14702 PyObject * obj2 = 0 ;
14703 PyObject * obj3 = 0 ;
14704 PyObject * obj4 = 0 ;
14705 PyObject * obj5 = 0 ;
14706 PyObject * obj6 = 0 ;
14707 char * kwnames[] = {
14708 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14709 };
14710
14711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14713 if (!SWIG_IsOK(res1)) {
14714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14715 }
14716 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14717 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14718 if (!SWIG_IsOK(res2)) {
14719 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14720 }
14721 arg2 = reinterpret_cast< wxWindow * >(argp2);
14722 if (obj2) {
14723 ecode3 = SWIG_AsVal_int(obj2, &val3);
14724 if (!SWIG_IsOK(ecode3)) {
14725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14726 }
14727 arg3 = static_cast< int >(val3);
14728 }
14729 if (obj3) {
14730 {
14731 arg4 = &temp4;
14732 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14733 }
14734 }
14735 if (obj4) {
14736 {
14737 arg5 = &temp5;
14738 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14739 }
14740 }
14741 if (obj5) {
14742 ecode6 = SWIG_AsVal_long(obj5, &val6);
14743 if (!SWIG_IsOK(ecode6)) {
14744 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14745 }
14746 arg6 = static_cast< long >(val6);
14747 }
14748 if (obj6) {
14749 {
14750 arg7 = wxString_in_helper(obj6);
14751 if (arg7 == NULL) SWIG_fail;
14752 temp7 = true;
14753 }
14754 }
14755 {
14756 PyThreadState* __tstate = wxPyBeginAllowThreads();
14757 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14758 wxPyEndAllowThreads(__tstate);
14759 if (PyErr_Occurred()) SWIG_fail;
14760 }
14761 {
14762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14763 }
14764 {
14765 if (temp7)
14766 delete arg7;
14767 }
14768 return resultobj;
14769 fail:
14770 {
14771 if (temp7)
14772 delete arg7;
14773 }
14774 return NULL;
14775 }
14776
14777
14778 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14779 PyObject *resultobj = 0;
14780 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14781 int result;
14782 void *argp1 = 0 ;
14783 int res1 = 0 ;
14784 PyObject *swig_obj[1] ;
14785
14786 if (!args) SWIG_fail;
14787 swig_obj[0] = args;
14788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14789 if (!SWIG_IsOK(res1)) {
14790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14791 }
14792 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14793 {
14794 PyThreadState* __tstate = wxPyBeginAllowThreads();
14795 result = (int)((wxSpinButton const *)arg1)->GetValue();
14796 wxPyEndAllowThreads(__tstate);
14797 if (PyErr_Occurred()) SWIG_fail;
14798 }
14799 resultobj = SWIG_From_int(static_cast< int >(result));
14800 return resultobj;
14801 fail:
14802 return NULL;
14803 }
14804
14805
14806 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14807 PyObject *resultobj = 0;
14808 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14809 int result;
14810 void *argp1 = 0 ;
14811 int res1 = 0 ;
14812 PyObject *swig_obj[1] ;
14813
14814 if (!args) SWIG_fail;
14815 swig_obj[0] = args;
14816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14817 if (!SWIG_IsOK(res1)) {
14818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14819 }
14820 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14821 {
14822 PyThreadState* __tstate = wxPyBeginAllowThreads();
14823 result = (int)((wxSpinButton const *)arg1)->GetMin();
14824 wxPyEndAllowThreads(__tstate);
14825 if (PyErr_Occurred()) SWIG_fail;
14826 }
14827 resultobj = SWIG_From_int(static_cast< int >(result));
14828 return resultobj;
14829 fail:
14830 return NULL;
14831 }
14832
14833
14834 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14835 PyObject *resultobj = 0;
14836 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14837 int result;
14838 void *argp1 = 0 ;
14839 int res1 = 0 ;
14840 PyObject *swig_obj[1] ;
14841
14842 if (!args) SWIG_fail;
14843 swig_obj[0] = args;
14844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14845 if (!SWIG_IsOK(res1)) {
14846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14847 }
14848 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14849 {
14850 PyThreadState* __tstate = wxPyBeginAllowThreads();
14851 result = (int)((wxSpinButton const *)arg1)->GetMax();
14852 wxPyEndAllowThreads(__tstate);
14853 if (PyErr_Occurred()) SWIG_fail;
14854 }
14855 resultobj = SWIG_From_int(static_cast< int >(result));
14856 return resultobj;
14857 fail:
14858 return NULL;
14859 }
14860
14861
14862 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14863 PyObject *resultobj = 0;
14864 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14865 int arg2 ;
14866 void *argp1 = 0 ;
14867 int res1 = 0 ;
14868 int val2 ;
14869 int ecode2 = 0 ;
14870 PyObject * obj0 = 0 ;
14871 PyObject * obj1 = 0 ;
14872 char * kwnames[] = {
14873 (char *) "self",(char *) "val", NULL
14874 };
14875
14876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14878 if (!SWIG_IsOK(res1)) {
14879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14880 }
14881 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14882 ecode2 = SWIG_AsVal_int(obj1, &val2);
14883 if (!SWIG_IsOK(ecode2)) {
14884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14885 }
14886 arg2 = static_cast< int >(val2);
14887 {
14888 PyThreadState* __tstate = wxPyBeginAllowThreads();
14889 (arg1)->SetValue(arg2);
14890 wxPyEndAllowThreads(__tstate);
14891 if (PyErr_Occurred()) SWIG_fail;
14892 }
14893 resultobj = SWIG_Py_Void();
14894 return resultobj;
14895 fail:
14896 return NULL;
14897 }
14898
14899
14900 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14901 PyObject *resultobj = 0;
14902 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14903 int arg2 ;
14904 void *argp1 = 0 ;
14905 int res1 = 0 ;
14906 int val2 ;
14907 int ecode2 = 0 ;
14908 PyObject * obj0 = 0 ;
14909 PyObject * obj1 = 0 ;
14910 char * kwnames[] = {
14911 (char *) "self",(char *) "minVal", NULL
14912 };
14913
14914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14916 if (!SWIG_IsOK(res1)) {
14917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14918 }
14919 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14920 ecode2 = SWIG_AsVal_int(obj1, &val2);
14921 if (!SWIG_IsOK(ecode2)) {
14922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14923 }
14924 arg2 = static_cast< int >(val2);
14925 {
14926 PyThreadState* __tstate = wxPyBeginAllowThreads();
14927 (arg1)->SetMin(arg2);
14928 wxPyEndAllowThreads(__tstate);
14929 if (PyErr_Occurred()) SWIG_fail;
14930 }
14931 resultobj = SWIG_Py_Void();
14932 return resultobj;
14933 fail:
14934 return NULL;
14935 }
14936
14937
14938 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14939 PyObject *resultobj = 0;
14940 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14941 int arg2 ;
14942 void *argp1 = 0 ;
14943 int res1 = 0 ;
14944 int val2 ;
14945 int ecode2 = 0 ;
14946 PyObject * obj0 = 0 ;
14947 PyObject * obj1 = 0 ;
14948 char * kwnames[] = {
14949 (char *) "self",(char *) "maxVal", NULL
14950 };
14951
14952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14954 if (!SWIG_IsOK(res1)) {
14955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14956 }
14957 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14958 ecode2 = SWIG_AsVal_int(obj1, &val2);
14959 if (!SWIG_IsOK(ecode2)) {
14960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14961 }
14962 arg2 = static_cast< int >(val2);
14963 {
14964 PyThreadState* __tstate = wxPyBeginAllowThreads();
14965 (arg1)->SetMax(arg2);
14966 wxPyEndAllowThreads(__tstate);
14967 if (PyErr_Occurred()) SWIG_fail;
14968 }
14969 resultobj = SWIG_Py_Void();
14970 return resultobj;
14971 fail:
14972 return NULL;
14973 }
14974
14975
14976 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14977 PyObject *resultobj = 0;
14978 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14979 int arg2 ;
14980 int arg3 ;
14981 void *argp1 = 0 ;
14982 int res1 = 0 ;
14983 int val2 ;
14984 int ecode2 = 0 ;
14985 int val3 ;
14986 int ecode3 = 0 ;
14987 PyObject * obj0 = 0 ;
14988 PyObject * obj1 = 0 ;
14989 PyObject * obj2 = 0 ;
14990 char * kwnames[] = {
14991 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14992 };
14993
14994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14996 if (!SWIG_IsOK(res1)) {
14997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14998 }
14999 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15000 ecode2 = SWIG_AsVal_int(obj1, &val2);
15001 if (!SWIG_IsOK(ecode2)) {
15002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15003 }
15004 arg2 = static_cast< int >(val2);
15005 ecode3 = SWIG_AsVal_int(obj2, &val3);
15006 if (!SWIG_IsOK(ecode3)) {
15007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15008 }
15009 arg3 = static_cast< int >(val3);
15010 {
15011 PyThreadState* __tstate = wxPyBeginAllowThreads();
15012 (arg1)->SetRange(arg2,arg3);
15013 wxPyEndAllowThreads(__tstate);
15014 if (PyErr_Occurred()) SWIG_fail;
15015 }
15016 resultobj = SWIG_Py_Void();
15017 return resultobj;
15018 fail:
15019 return NULL;
15020 }
15021
15022
15023 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15024 PyObject *resultobj = 0;
15025 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15026 bool result;
15027 void *argp1 = 0 ;
15028 int res1 = 0 ;
15029 PyObject *swig_obj[1] ;
15030
15031 if (!args) SWIG_fail;
15032 swig_obj[0] = args;
15033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15034 if (!SWIG_IsOK(res1)) {
15035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15036 }
15037 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15038 {
15039 PyThreadState* __tstate = wxPyBeginAllowThreads();
15040 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15041 wxPyEndAllowThreads(__tstate);
15042 if (PyErr_Occurred()) SWIG_fail;
15043 }
15044 {
15045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15046 }
15047 return resultobj;
15048 fail:
15049 return NULL;
15050 }
15051
15052
15053 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15054 PyObject *resultobj = 0;
15055 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15056 SwigValueWrapper<wxVisualAttributes > result;
15057 int val1 ;
15058 int ecode1 = 0 ;
15059 PyObject * obj0 = 0 ;
15060 char * kwnames[] = {
15061 (char *) "variant", NULL
15062 };
15063
15064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15065 if (obj0) {
15066 ecode1 = SWIG_AsVal_int(obj0, &val1);
15067 if (!SWIG_IsOK(ecode1)) {
15068 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15069 }
15070 arg1 = static_cast< wxWindowVariant >(val1);
15071 }
15072 {
15073 if (!wxPyCheckForApp()) SWIG_fail;
15074 PyThreadState* __tstate = wxPyBeginAllowThreads();
15075 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15076 wxPyEndAllowThreads(__tstate);
15077 if (PyErr_Occurred()) SWIG_fail;
15078 }
15079 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15080 return resultobj;
15081 fail:
15082 return NULL;
15083 }
15084
15085
15086 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15087 PyObject *obj;
15088 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15089 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15090 return SWIG_Py_Void();
15091 }
15092
15093 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15094 return SWIG_Python_InitShadowInstance(args);
15095 }
15096
15097 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15098 PyObject *resultobj = 0;
15099 wxWindow *arg1 = (wxWindow *) 0 ;
15100 int arg2 = (int) -1 ;
15101 wxString const &arg3_defvalue = wxPyEmptyString ;
15102 wxString *arg3 = (wxString *) &arg3_defvalue ;
15103 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15104 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15105 wxSize const &arg5_defvalue = wxDefaultSize ;
15106 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15107 long arg6 = (long) wxSP_ARROW_KEYS ;
15108 int arg7 = (int) 0 ;
15109 int arg8 = (int) 100 ;
15110 int arg9 = (int) 0 ;
15111 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15112 wxString *arg10 = (wxString *) &arg10_defvalue ;
15113 wxSpinCtrl *result = 0 ;
15114 void *argp1 = 0 ;
15115 int res1 = 0 ;
15116 int val2 ;
15117 int ecode2 = 0 ;
15118 bool temp3 = false ;
15119 wxPoint temp4 ;
15120 wxSize temp5 ;
15121 long val6 ;
15122 int ecode6 = 0 ;
15123 int val7 ;
15124 int ecode7 = 0 ;
15125 int val8 ;
15126 int ecode8 = 0 ;
15127 int val9 ;
15128 int ecode9 = 0 ;
15129 bool temp10 = false ;
15130 PyObject * obj0 = 0 ;
15131 PyObject * obj1 = 0 ;
15132 PyObject * obj2 = 0 ;
15133 PyObject * obj3 = 0 ;
15134 PyObject * obj4 = 0 ;
15135 PyObject * obj5 = 0 ;
15136 PyObject * obj6 = 0 ;
15137 PyObject * obj7 = 0 ;
15138 PyObject * obj8 = 0 ;
15139 PyObject * obj9 = 0 ;
15140 char * kwnames[] = {
15141 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15142 };
15143
15144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15146 if (!SWIG_IsOK(res1)) {
15147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15148 }
15149 arg1 = reinterpret_cast< wxWindow * >(argp1);
15150 if (obj1) {
15151 ecode2 = SWIG_AsVal_int(obj1, &val2);
15152 if (!SWIG_IsOK(ecode2)) {
15153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15154 }
15155 arg2 = static_cast< int >(val2);
15156 }
15157 if (obj2) {
15158 {
15159 arg3 = wxString_in_helper(obj2);
15160 if (arg3 == NULL) SWIG_fail;
15161 temp3 = true;
15162 }
15163 }
15164 if (obj3) {
15165 {
15166 arg4 = &temp4;
15167 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15168 }
15169 }
15170 if (obj4) {
15171 {
15172 arg5 = &temp5;
15173 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15174 }
15175 }
15176 if (obj5) {
15177 ecode6 = SWIG_AsVal_long(obj5, &val6);
15178 if (!SWIG_IsOK(ecode6)) {
15179 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15180 }
15181 arg6 = static_cast< long >(val6);
15182 }
15183 if (obj6) {
15184 ecode7 = SWIG_AsVal_int(obj6, &val7);
15185 if (!SWIG_IsOK(ecode7)) {
15186 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15187 }
15188 arg7 = static_cast< int >(val7);
15189 }
15190 if (obj7) {
15191 ecode8 = SWIG_AsVal_int(obj7, &val8);
15192 if (!SWIG_IsOK(ecode8)) {
15193 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15194 }
15195 arg8 = static_cast< int >(val8);
15196 }
15197 if (obj8) {
15198 ecode9 = SWIG_AsVal_int(obj8, &val9);
15199 if (!SWIG_IsOK(ecode9)) {
15200 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15201 }
15202 arg9 = static_cast< int >(val9);
15203 }
15204 if (obj9) {
15205 {
15206 arg10 = wxString_in_helper(obj9);
15207 if (arg10 == NULL) SWIG_fail;
15208 temp10 = true;
15209 }
15210 }
15211 {
15212 if (!wxPyCheckForApp()) SWIG_fail;
15213 PyThreadState* __tstate = wxPyBeginAllowThreads();
15214 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15215 wxPyEndAllowThreads(__tstate);
15216 if (PyErr_Occurred()) SWIG_fail;
15217 }
15218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15219 {
15220 if (temp3)
15221 delete arg3;
15222 }
15223 {
15224 if (temp10)
15225 delete arg10;
15226 }
15227 return resultobj;
15228 fail:
15229 {
15230 if (temp3)
15231 delete arg3;
15232 }
15233 {
15234 if (temp10)
15235 delete arg10;
15236 }
15237 return NULL;
15238 }
15239
15240
15241 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15242 PyObject *resultobj = 0;
15243 wxSpinCtrl *result = 0 ;
15244
15245 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15246 {
15247 if (!wxPyCheckForApp()) SWIG_fail;
15248 PyThreadState* __tstate = wxPyBeginAllowThreads();
15249 result = (wxSpinCtrl *)new wxSpinCtrl();
15250 wxPyEndAllowThreads(__tstate);
15251 if (PyErr_Occurred()) SWIG_fail;
15252 }
15253 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15254 return resultobj;
15255 fail:
15256 return NULL;
15257 }
15258
15259
15260 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15261 PyObject *resultobj = 0;
15262 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15263 wxWindow *arg2 = (wxWindow *) 0 ;
15264 int arg3 = (int) -1 ;
15265 wxString const &arg4_defvalue = wxPyEmptyString ;
15266 wxString *arg4 = (wxString *) &arg4_defvalue ;
15267 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15268 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15269 wxSize const &arg6_defvalue = wxDefaultSize ;
15270 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15271 long arg7 = (long) wxSP_ARROW_KEYS ;
15272 int arg8 = (int) 0 ;
15273 int arg9 = (int) 100 ;
15274 int arg10 = (int) 0 ;
15275 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15276 wxString *arg11 = (wxString *) &arg11_defvalue ;
15277 bool result;
15278 void *argp1 = 0 ;
15279 int res1 = 0 ;
15280 void *argp2 = 0 ;
15281 int res2 = 0 ;
15282 int val3 ;
15283 int ecode3 = 0 ;
15284 bool temp4 = false ;
15285 wxPoint temp5 ;
15286 wxSize temp6 ;
15287 long val7 ;
15288 int ecode7 = 0 ;
15289 int val8 ;
15290 int ecode8 = 0 ;
15291 int val9 ;
15292 int ecode9 = 0 ;
15293 int val10 ;
15294 int ecode10 = 0 ;
15295 bool temp11 = false ;
15296 PyObject * obj0 = 0 ;
15297 PyObject * obj1 = 0 ;
15298 PyObject * obj2 = 0 ;
15299 PyObject * obj3 = 0 ;
15300 PyObject * obj4 = 0 ;
15301 PyObject * obj5 = 0 ;
15302 PyObject * obj6 = 0 ;
15303 PyObject * obj7 = 0 ;
15304 PyObject * obj8 = 0 ;
15305 PyObject * obj9 = 0 ;
15306 PyObject * obj10 = 0 ;
15307 char * kwnames[] = {
15308 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15309 };
15310
15311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15313 if (!SWIG_IsOK(res1)) {
15314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15315 }
15316 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15317 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15318 if (!SWIG_IsOK(res2)) {
15319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15320 }
15321 arg2 = reinterpret_cast< wxWindow * >(argp2);
15322 if (obj2) {
15323 ecode3 = SWIG_AsVal_int(obj2, &val3);
15324 if (!SWIG_IsOK(ecode3)) {
15325 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15326 }
15327 arg3 = static_cast< int >(val3);
15328 }
15329 if (obj3) {
15330 {
15331 arg4 = wxString_in_helper(obj3);
15332 if (arg4 == NULL) SWIG_fail;
15333 temp4 = true;
15334 }
15335 }
15336 if (obj4) {
15337 {
15338 arg5 = &temp5;
15339 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15340 }
15341 }
15342 if (obj5) {
15343 {
15344 arg6 = &temp6;
15345 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15346 }
15347 }
15348 if (obj6) {
15349 ecode7 = SWIG_AsVal_long(obj6, &val7);
15350 if (!SWIG_IsOK(ecode7)) {
15351 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15352 }
15353 arg7 = static_cast< long >(val7);
15354 }
15355 if (obj7) {
15356 ecode8 = SWIG_AsVal_int(obj7, &val8);
15357 if (!SWIG_IsOK(ecode8)) {
15358 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15359 }
15360 arg8 = static_cast< int >(val8);
15361 }
15362 if (obj8) {
15363 ecode9 = SWIG_AsVal_int(obj8, &val9);
15364 if (!SWIG_IsOK(ecode9)) {
15365 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15366 }
15367 arg9 = static_cast< int >(val9);
15368 }
15369 if (obj9) {
15370 ecode10 = SWIG_AsVal_int(obj9, &val10);
15371 if (!SWIG_IsOK(ecode10)) {
15372 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15373 }
15374 arg10 = static_cast< int >(val10);
15375 }
15376 if (obj10) {
15377 {
15378 arg11 = wxString_in_helper(obj10);
15379 if (arg11 == NULL) SWIG_fail;
15380 temp11 = true;
15381 }
15382 }
15383 {
15384 PyThreadState* __tstate = wxPyBeginAllowThreads();
15385 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15386 wxPyEndAllowThreads(__tstate);
15387 if (PyErr_Occurred()) SWIG_fail;
15388 }
15389 {
15390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15391 }
15392 {
15393 if (temp4)
15394 delete arg4;
15395 }
15396 {
15397 if (temp11)
15398 delete arg11;
15399 }
15400 return resultobj;
15401 fail:
15402 {
15403 if (temp4)
15404 delete arg4;
15405 }
15406 {
15407 if (temp11)
15408 delete arg11;
15409 }
15410 return NULL;
15411 }
15412
15413
15414 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15415 PyObject *resultobj = 0;
15416 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15417 int result;
15418 void *argp1 = 0 ;
15419 int res1 = 0 ;
15420 PyObject *swig_obj[1] ;
15421
15422 if (!args) SWIG_fail;
15423 swig_obj[0] = args;
15424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15425 if (!SWIG_IsOK(res1)) {
15426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15427 }
15428 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15429 {
15430 PyThreadState* __tstate = wxPyBeginAllowThreads();
15431 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15432 wxPyEndAllowThreads(__tstate);
15433 if (PyErr_Occurred()) SWIG_fail;
15434 }
15435 resultobj = SWIG_From_int(static_cast< int >(result));
15436 return resultobj;
15437 fail:
15438 return NULL;
15439 }
15440
15441
15442 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15443 PyObject *resultobj = 0;
15444 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15445 int arg2 ;
15446 void *argp1 = 0 ;
15447 int res1 = 0 ;
15448 int val2 ;
15449 int ecode2 = 0 ;
15450 PyObject * obj0 = 0 ;
15451 PyObject * obj1 = 0 ;
15452 char * kwnames[] = {
15453 (char *) "self",(char *) "value", NULL
15454 };
15455
15456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15458 if (!SWIG_IsOK(res1)) {
15459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15460 }
15461 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15462 ecode2 = SWIG_AsVal_int(obj1, &val2);
15463 if (!SWIG_IsOK(ecode2)) {
15464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15465 }
15466 arg2 = static_cast< int >(val2);
15467 {
15468 PyThreadState* __tstate = wxPyBeginAllowThreads();
15469 (arg1)->SetValue(arg2);
15470 wxPyEndAllowThreads(__tstate);
15471 if (PyErr_Occurred()) SWIG_fail;
15472 }
15473 resultobj = SWIG_Py_Void();
15474 return resultobj;
15475 fail:
15476 return NULL;
15477 }
15478
15479
15480 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15481 PyObject *resultobj = 0;
15482 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15483 wxString *arg2 = 0 ;
15484 void *argp1 = 0 ;
15485 int res1 = 0 ;
15486 bool temp2 = false ;
15487 PyObject * obj0 = 0 ;
15488 PyObject * obj1 = 0 ;
15489 char * kwnames[] = {
15490 (char *) "self",(char *) "text", NULL
15491 };
15492
15493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15495 if (!SWIG_IsOK(res1)) {
15496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15497 }
15498 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15499 {
15500 arg2 = wxString_in_helper(obj1);
15501 if (arg2 == NULL) SWIG_fail;
15502 temp2 = true;
15503 }
15504 {
15505 PyThreadState* __tstate = wxPyBeginAllowThreads();
15506 (arg1)->SetValue((wxString const &)*arg2);
15507 wxPyEndAllowThreads(__tstate);
15508 if (PyErr_Occurred()) SWIG_fail;
15509 }
15510 resultobj = SWIG_Py_Void();
15511 {
15512 if (temp2)
15513 delete arg2;
15514 }
15515 return resultobj;
15516 fail:
15517 {
15518 if (temp2)
15519 delete arg2;
15520 }
15521 return NULL;
15522 }
15523
15524
15525 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15526 PyObject *resultobj = 0;
15527 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15528 int arg2 ;
15529 int arg3 ;
15530 void *argp1 = 0 ;
15531 int res1 = 0 ;
15532 int val2 ;
15533 int ecode2 = 0 ;
15534 int val3 ;
15535 int ecode3 = 0 ;
15536 PyObject * obj0 = 0 ;
15537 PyObject * obj1 = 0 ;
15538 PyObject * obj2 = 0 ;
15539 char * kwnames[] = {
15540 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15541 };
15542
15543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15545 if (!SWIG_IsOK(res1)) {
15546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15547 }
15548 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15549 ecode2 = SWIG_AsVal_int(obj1, &val2);
15550 if (!SWIG_IsOK(ecode2)) {
15551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15552 }
15553 arg2 = static_cast< int >(val2);
15554 ecode3 = SWIG_AsVal_int(obj2, &val3);
15555 if (!SWIG_IsOK(ecode3)) {
15556 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15557 }
15558 arg3 = static_cast< int >(val3);
15559 {
15560 PyThreadState* __tstate = wxPyBeginAllowThreads();
15561 (arg1)->SetRange(arg2,arg3);
15562 wxPyEndAllowThreads(__tstate);
15563 if (PyErr_Occurred()) SWIG_fail;
15564 }
15565 resultobj = SWIG_Py_Void();
15566 return resultobj;
15567 fail:
15568 return NULL;
15569 }
15570
15571
15572 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15573 PyObject *resultobj = 0;
15574 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15575 int result;
15576 void *argp1 = 0 ;
15577 int res1 = 0 ;
15578 PyObject *swig_obj[1] ;
15579
15580 if (!args) SWIG_fail;
15581 swig_obj[0] = args;
15582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15583 if (!SWIG_IsOK(res1)) {
15584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15585 }
15586 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15587 {
15588 PyThreadState* __tstate = wxPyBeginAllowThreads();
15589 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15590 wxPyEndAllowThreads(__tstate);
15591 if (PyErr_Occurred()) SWIG_fail;
15592 }
15593 resultobj = SWIG_From_int(static_cast< int >(result));
15594 return resultobj;
15595 fail:
15596 return NULL;
15597 }
15598
15599
15600 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15601 PyObject *resultobj = 0;
15602 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15603 int result;
15604 void *argp1 = 0 ;
15605 int res1 = 0 ;
15606 PyObject *swig_obj[1] ;
15607
15608 if (!args) SWIG_fail;
15609 swig_obj[0] = args;
15610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15611 if (!SWIG_IsOK(res1)) {
15612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15613 }
15614 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15615 {
15616 PyThreadState* __tstate = wxPyBeginAllowThreads();
15617 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15618 wxPyEndAllowThreads(__tstate);
15619 if (PyErr_Occurred()) SWIG_fail;
15620 }
15621 resultobj = SWIG_From_int(static_cast< int >(result));
15622 return resultobj;
15623 fail:
15624 return NULL;
15625 }
15626
15627
15628 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15629 PyObject *resultobj = 0;
15630 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15631 long arg2 ;
15632 long arg3 ;
15633 void *argp1 = 0 ;
15634 int res1 = 0 ;
15635 long val2 ;
15636 int ecode2 = 0 ;
15637 long val3 ;
15638 int ecode3 = 0 ;
15639 PyObject * obj0 = 0 ;
15640 PyObject * obj1 = 0 ;
15641 PyObject * obj2 = 0 ;
15642 char * kwnames[] = {
15643 (char *) "self",(char *) "from",(char *) "to", NULL
15644 };
15645
15646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15648 if (!SWIG_IsOK(res1)) {
15649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15650 }
15651 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15652 ecode2 = SWIG_AsVal_long(obj1, &val2);
15653 if (!SWIG_IsOK(ecode2)) {
15654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15655 }
15656 arg2 = static_cast< long >(val2);
15657 ecode3 = SWIG_AsVal_long(obj2, &val3);
15658 if (!SWIG_IsOK(ecode3)) {
15659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15660 }
15661 arg3 = static_cast< long >(val3);
15662 {
15663 PyThreadState* __tstate = wxPyBeginAllowThreads();
15664 (arg1)->SetSelection(arg2,arg3);
15665 wxPyEndAllowThreads(__tstate);
15666 if (PyErr_Occurred()) SWIG_fail;
15667 }
15668 resultobj = SWIG_Py_Void();
15669 return resultobj;
15670 fail:
15671 return NULL;
15672 }
15673
15674
15675 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15676 PyObject *resultobj = 0;
15677 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15678 SwigValueWrapper<wxVisualAttributes > result;
15679 int val1 ;
15680 int ecode1 = 0 ;
15681 PyObject * obj0 = 0 ;
15682 char * kwnames[] = {
15683 (char *) "variant", NULL
15684 };
15685
15686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15687 if (obj0) {
15688 ecode1 = SWIG_AsVal_int(obj0, &val1);
15689 if (!SWIG_IsOK(ecode1)) {
15690 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15691 }
15692 arg1 = static_cast< wxWindowVariant >(val1);
15693 }
15694 {
15695 if (!wxPyCheckForApp()) SWIG_fail;
15696 PyThreadState* __tstate = wxPyBeginAllowThreads();
15697 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15698 wxPyEndAllowThreads(__tstate);
15699 if (PyErr_Occurred()) SWIG_fail;
15700 }
15701 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15702 return resultobj;
15703 fail:
15704 return NULL;
15705 }
15706
15707
15708 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15709 PyObject *obj;
15710 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15711 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15712 return SWIG_Py_Void();
15713 }
15714
15715 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15716 return SWIG_Python_InitShadowInstance(args);
15717 }
15718
15719 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15720 PyObject *resultobj = 0;
15721 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15722 int arg2 = (int) 0 ;
15723 wxSpinEvent *result = 0 ;
15724 int val1 ;
15725 int ecode1 = 0 ;
15726 int val2 ;
15727 int ecode2 = 0 ;
15728 PyObject * obj0 = 0 ;
15729 PyObject * obj1 = 0 ;
15730 char * kwnames[] = {
15731 (char *) "commandType",(char *) "winid", NULL
15732 };
15733
15734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15735 if (obj0) {
15736 ecode1 = SWIG_AsVal_int(obj0, &val1);
15737 if (!SWIG_IsOK(ecode1)) {
15738 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15739 }
15740 arg1 = static_cast< wxEventType >(val1);
15741 }
15742 if (obj1) {
15743 ecode2 = SWIG_AsVal_int(obj1, &val2);
15744 if (!SWIG_IsOK(ecode2)) {
15745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15746 }
15747 arg2 = static_cast< int >(val2);
15748 }
15749 {
15750 PyThreadState* __tstate = wxPyBeginAllowThreads();
15751 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15752 wxPyEndAllowThreads(__tstate);
15753 if (PyErr_Occurred()) SWIG_fail;
15754 }
15755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15756 return resultobj;
15757 fail:
15758 return NULL;
15759 }
15760
15761
15762 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15763 PyObject *resultobj = 0;
15764 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15765 int result;
15766 void *argp1 = 0 ;
15767 int res1 = 0 ;
15768 PyObject *swig_obj[1] ;
15769
15770 if (!args) SWIG_fail;
15771 swig_obj[0] = args;
15772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15773 if (!SWIG_IsOK(res1)) {
15774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15775 }
15776 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15777 {
15778 PyThreadState* __tstate = wxPyBeginAllowThreads();
15779 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15780 wxPyEndAllowThreads(__tstate);
15781 if (PyErr_Occurred()) SWIG_fail;
15782 }
15783 resultobj = SWIG_From_int(static_cast< int >(result));
15784 return resultobj;
15785 fail:
15786 return NULL;
15787 }
15788
15789
15790 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15791 PyObject *resultobj = 0;
15792 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15793 int arg2 ;
15794 void *argp1 = 0 ;
15795 int res1 = 0 ;
15796 int val2 ;
15797 int ecode2 = 0 ;
15798 PyObject * obj0 = 0 ;
15799 PyObject * obj1 = 0 ;
15800 char * kwnames[] = {
15801 (char *) "self",(char *) "pos", NULL
15802 };
15803
15804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15806 if (!SWIG_IsOK(res1)) {
15807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15808 }
15809 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15810 ecode2 = SWIG_AsVal_int(obj1, &val2);
15811 if (!SWIG_IsOK(ecode2)) {
15812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15813 }
15814 arg2 = static_cast< int >(val2);
15815 {
15816 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817 (arg1)->SetPosition(arg2);
15818 wxPyEndAllowThreads(__tstate);
15819 if (PyErr_Occurred()) SWIG_fail;
15820 }
15821 resultobj = SWIG_Py_Void();
15822 return resultobj;
15823 fail:
15824 return NULL;
15825 }
15826
15827
15828 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15829 PyObject *obj;
15830 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15831 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15832 return SWIG_Py_Void();
15833 }
15834
15835 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15836 return SWIG_Python_InitShadowInstance(args);
15837 }
15838
15839 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15840 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15841 return 1;
15842 }
15843
15844
15845 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15846 PyObject *pyobj = 0;
15847
15848 {
15849 #if wxUSE_UNICODE
15850 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15851 #else
15852 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15853 #endif
15854 }
15855 return pyobj;
15856 }
15857
15858
15859 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15860 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15861 return 1;
15862 }
15863
15864
15865 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15866 PyObject *pyobj = 0;
15867
15868 {
15869 #if wxUSE_UNICODE
15870 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15871 #else
15872 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15873 #endif
15874 }
15875 return pyobj;
15876 }
15877
15878
15879 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15880 PyObject *resultobj = 0;
15881 wxWindow *arg1 = (wxWindow *) 0 ;
15882 int arg2 = (int) -1 ;
15883 wxString const &arg3_defvalue = wxPyEmptyString ;
15884 wxString *arg3 = (wxString *) &arg3_defvalue ;
15885 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15886 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15887 wxSize const &arg5_defvalue = wxDefaultSize ;
15888 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15889 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15890 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15891 int arg7 = (int) 0 ;
15892 long arg8 = (long) wxRA_HORIZONTAL ;
15893 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15894 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15895 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15896 wxString *arg10 = (wxString *) &arg10_defvalue ;
15897 wxRadioBox *result = 0 ;
15898 void *argp1 = 0 ;
15899 int res1 = 0 ;
15900 int val2 ;
15901 int ecode2 = 0 ;
15902 bool temp3 = false ;
15903 wxPoint temp4 ;
15904 wxSize temp5 ;
15905 bool temp6 = false ;
15906 int val7 ;
15907 int ecode7 = 0 ;
15908 long val8 ;
15909 int ecode8 = 0 ;
15910 void *argp9 = 0 ;
15911 int res9 = 0 ;
15912 bool temp10 = false ;
15913 PyObject * obj0 = 0 ;
15914 PyObject * obj1 = 0 ;
15915 PyObject * obj2 = 0 ;
15916 PyObject * obj3 = 0 ;
15917 PyObject * obj4 = 0 ;
15918 PyObject * obj5 = 0 ;
15919 PyObject * obj6 = 0 ;
15920 PyObject * obj7 = 0 ;
15921 PyObject * obj8 = 0 ;
15922 PyObject * obj9 = 0 ;
15923 char * kwnames[] = {
15924 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15925 };
15926
15927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15929 if (!SWIG_IsOK(res1)) {
15930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15931 }
15932 arg1 = reinterpret_cast< wxWindow * >(argp1);
15933 if (obj1) {
15934 ecode2 = SWIG_AsVal_int(obj1, &val2);
15935 if (!SWIG_IsOK(ecode2)) {
15936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15937 }
15938 arg2 = static_cast< int >(val2);
15939 }
15940 if (obj2) {
15941 {
15942 arg3 = wxString_in_helper(obj2);
15943 if (arg3 == NULL) SWIG_fail;
15944 temp3 = true;
15945 }
15946 }
15947 if (obj3) {
15948 {
15949 arg4 = &temp4;
15950 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15951 }
15952 }
15953 if (obj4) {
15954 {
15955 arg5 = &temp5;
15956 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15957 }
15958 }
15959 if (obj5) {
15960 {
15961 if (! PySequence_Check(obj5)) {
15962 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15963 SWIG_fail;
15964 }
15965 arg6 = new wxArrayString;
15966 temp6 = true;
15967 int i, len=PySequence_Length(obj5);
15968 for (i=0; i<len; i++) {
15969 PyObject* item = PySequence_GetItem(obj5, i);
15970 wxString* s = wxString_in_helper(item);
15971 if (PyErr_Occurred()) SWIG_fail;
15972 arg6->Add(*s);
15973 delete s;
15974 Py_DECREF(item);
15975 }
15976 }
15977 }
15978 if (obj6) {
15979 ecode7 = SWIG_AsVal_int(obj6, &val7);
15980 if (!SWIG_IsOK(ecode7)) {
15981 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15982 }
15983 arg7 = static_cast< int >(val7);
15984 }
15985 if (obj7) {
15986 ecode8 = SWIG_AsVal_long(obj7, &val8);
15987 if (!SWIG_IsOK(ecode8)) {
15988 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15989 }
15990 arg8 = static_cast< long >(val8);
15991 }
15992 if (obj8) {
15993 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15994 if (!SWIG_IsOK(res9)) {
15995 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15996 }
15997 if (!argp9) {
15998 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15999 }
16000 arg9 = reinterpret_cast< wxValidator * >(argp9);
16001 }
16002 if (obj9) {
16003 {
16004 arg10 = wxString_in_helper(obj9);
16005 if (arg10 == NULL) SWIG_fail;
16006 temp10 = true;
16007 }
16008 }
16009 {
16010 if (!wxPyCheckForApp()) SWIG_fail;
16011 PyThreadState* __tstate = wxPyBeginAllowThreads();
16012 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);
16013 wxPyEndAllowThreads(__tstate);
16014 if (PyErr_Occurred()) SWIG_fail;
16015 }
16016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16017 {
16018 if (temp3)
16019 delete arg3;
16020 }
16021 {
16022 if (temp6) delete arg6;
16023 }
16024 {
16025 if (temp10)
16026 delete arg10;
16027 }
16028 return resultobj;
16029 fail:
16030 {
16031 if (temp3)
16032 delete arg3;
16033 }
16034 {
16035 if (temp6) delete arg6;
16036 }
16037 {
16038 if (temp10)
16039 delete arg10;
16040 }
16041 return NULL;
16042 }
16043
16044
16045 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16046 PyObject *resultobj = 0;
16047 wxRadioBox *result = 0 ;
16048
16049 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16050 {
16051 if (!wxPyCheckForApp()) SWIG_fail;
16052 PyThreadState* __tstate = wxPyBeginAllowThreads();
16053 result = (wxRadioBox *)new wxRadioBox();
16054 wxPyEndAllowThreads(__tstate);
16055 if (PyErr_Occurred()) SWIG_fail;
16056 }
16057 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16058 return resultobj;
16059 fail:
16060 return NULL;
16061 }
16062
16063
16064 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16065 PyObject *resultobj = 0;
16066 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16067 wxWindow *arg2 = (wxWindow *) 0 ;
16068 int arg3 = (int) -1 ;
16069 wxString const &arg4_defvalue = wxPyEmptyString ;
16070 wxString *arg4 = (wxString *) &arg4_defvalue ;
16071 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16072 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16073 wxSize const &arg6_defvalue = wxDefaultSize ;
16074 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16075 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16076 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16077 int arg8 = (int) 0 ;
16078 long arg9 = (long) wxRA_HORIZONTAL ;
16079 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16080 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16081 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16082 wxString *arg11 = (wxString *) &arg11_defvalue ;
16083 bool result;
16084 void *argp1 = 0 ;
16085 int res1 = 0 ;
16086 void *argp2 = 0 ;
16087 int res2 = 0 ;
16088 int val3 ;
16089 int ecode3 = 0 ;
16090 bool temp4 = false ;
16091 wxPoint temp5 ;
16092 wxSize temp6 ;
16093 bool temp7 = false ;
16094 int val8 ;
16095 int ecode8 = 0 ;
16096 long val9 ;
16097 int ecode9 = 0 ;
16098 void *argp10 = 0 ;
16099 int res10 = 0 ;
16100 bool temp11 = false ;
16101 PyObject * obj0 = 0 ;
16102 PyObject * obj1 = 0 ;
16103 PyObject * obj2 = 0 ;
16104 PyObject * obj3 = 0 ;
16105 PyObject * obj4 = 0 ;
16106 PyObject * obj5 = 0 ;
16107 PyObject * obj6 = 0 ;
16108 PyObject * obj7 = 0 ;
16109 PyObject * obj8 = 0 ;
16110 PyObject * obj9 = 0 ;
16111 PyObject * obj10 = 0 ;
16112 char * kwnames[] = {
16113 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16114 };
16115
16116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16118 if (!SWIG_IsOK(res1)) {
16119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16120 }
16121 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16122 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16123 if (!SWIG_IsOK(res2)) {
16124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16125 }
16126 arg2 = reinterpret_cast< wxWindow * >(argp2);
16127 if (obj2) {
16128 ecode3 = SWIG_AsVal_int(obj2, &val3);
16129 if (!SWIG_IsOK(ecode3)) {
16130 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16131 }
16132 arg3 = static_cast< int >(val3);
16133 }
16134 if (obj3) {
16135 {
16136 arg4 = wxString_in_helper(obj3);
16137 if (arg4 == NULL) SWIG_fail;
16138 temp4 = true;
16139 }
16140 }
16141 if (obj4) {
16142 {
16143 arg5 = &temp5;
16144 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16145 }
16146 }
16147 if (obj5) {
16148 {
16149 arg6 = &temp6;
16150 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16151 }
16152 }
16153 if (obj6) {
16154 {
16155 if (! PySequence_Check(obj6)) {
16156 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16157 SWIG_fail;
16158 }
16159 arg7 = new wxArrayString;
16160 temp7 = true;
16161 int i, len=PySequence_Length(obj6);
16162 for (i=0; i<len; i++) {
16163 PyObject* item = PySequence_GetItem(obj6, i);
16164 wxString* s = wxString_in_helper(item);
16165 if (PyErr_Occurred()) SWIG_fail;
16166 arg7->Add(*s);
16167 delete s;
16168 Py_DECREF(item);
16169 }
16170 }
16171 }
16172 if (obj7) {
16173 ecode8 = SWIG_AsVal_int(obj7, &val8);
16174 if (!SWIG_IsOK(ecode8)) {
16175 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16176 }
16177 arg8 = static_cast< int >(val8);
16178 }
16179 if (obj8) {
16180 ecode9 = SWIG_AsVal_long(obj8, &val9);
16181 if (!SWIG_IsOK(ecode9)) {
16182 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16183 }
16184 arg9 = static_cast< long >(val9);
16185 }
16186 if (obj9) {
16187 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16188 if (!SWIG_IsOK(res10)) {
16189 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16190 }
16191 if (!argp10) {
16192 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16193 }
16194 arg10 = reinterpret_cast< wxValidator * >(argp10);
16195 }
16196 if (obj10) {
16197 {
16198 arg11 = wxString_in_helper(obj10);
16199 if (arg11 == NULL) SWIG_fail;
16200 temp11 = true;
16201 }
16202 }
16203 {
16204 PyThreadState* __tstate = wxPyBeginAllowThreads();
16205 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);
16206 wxPyEndAllowThreads(__tstate);
16207 if (PyErr_Occurred()) SWIG_fail;
16208 }
16209 {
16210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16211 }
16212 {
16213 if (temp4)
16214 delete arg4;
16215 }
16216 {
16217 if (temp7) delete arg7;
16218 }
16219 {
16220 if (temp11)
16221 delete arg11;
16222 }
16223 return resultobj;
16224 fail:
16225 {
16226 if (temp4)
16227 delete arg4;
16228 }
16229 {
16230 if (temp7) delete arg7;
16231 }
16232 {
16233 if (temp11)
16234 delete arg11;
16235 }
16236 return NULL;
16237 }
16238
16239
16240 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16241 PyObject *resultobj = 0;
16242 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16243 int arg2 ;
16244 void *argp1 = 0 ;
16245 int res1 = 0 ;
16246 int val2 ;
16247 int ecode2 = 0 ;
16248 PyObject * obj0 = 0 ;
16249 PyObject * obj1 = 0 ;
16250 char * kwnames[] = {
16251 (char *) "self",(char *) "n", NULL
16252 };
16253
16254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16256 if (!SWIG_IsOK(res1)) {
16257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16258 }
16259 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16260 ecode2 = SWIG_AsVal_int(obj1, &val2);
16261 if (!SWIG_IsOK(ecode2)) {
16262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16263 }
16264 arg2 = static_cast< int >(val2);
16265 {
16266 PyThreadState* __tstate = wxPyBeginAllowThreads();
16267 (arg1)->SetSelection(arg2);
16268 wxPyEndAllowThreads(__tstate);
16269 if (PyErr_Occurred()) SWIG_fail;
16270 }
16271 resultobj = SWIG_Py_Void();
16272 return resultobj;
16273 fail:
16274 return NULL;
16275 }
16276
16277
16278 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16279 PyObject *resultobj = 0;
16280 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16281 int result;
16282 void *argp1 = 0 ;
16283 int res1 = 0 ;
16284 PyObject *swig_obj[1] ;
16285
16286 if (!args) SWIG_fail;
16287 swig_obj[0] = args;
16288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16289 if (!SWIG_IsOK(res1)) {
16290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16291 }
16292 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16293 {
16294 PyThreadState* __tstate = wxPyBeginAllowThreads();
16295 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16296 wxPyEndAllowThreads(__tstate);
16297 if (PyErr_Occurred()) SWIG_fail;
16298 }
16299 resultobj = SWIG_From_int(static_cast< int >(result));
16300 return resultobj;
16301 fail:
16302 return NULL;
16303 }
16304
16305
16306 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16307 PyObject *resultobj = 0;
16308 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16309 wxString result;
16310 void *argp1 = 0 ;
16311 int res1 = 0 ;
16312 PyObject *swig_obj[1] ;
16313
16314 if (!args) SWIG_fail;
16315 swig_obj[0] = args;
16316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16317 if (!SWIG_IsOK(res1)) {
16318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16319 }
16320 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16321 {
16322 PyThreadState* __tstate = wxPyBeginAllowThreads();
16323 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16324 wxPyEndAllowThreads(__tstate);
16325 if (PyErr_Occurred()) SWIG_fail;
16326 }
16327 {
16328 #if wxUSE_UNICODE
16329 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16330 #else
16331 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16332 #endif
16333 }
16334 return resultobj;
16335 fail:
16336 return NULL;
16337 }
16338
16339
16340 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16341 PyObject *resultobj = 0;
16342 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16343 wxString *arg2 = 0 ;
16344 bool result;
16345 void *argp1 = 0 ;
16346 int res1 = 0 ;
16347 bool temp2 = false ;
16348 PyObject * obj0 = 0 ;
16349 PyObject * obj1 = 0 ;
16350 char * kwnames[] = {
16351 (char *) "self",(char *) "s", NULL
16352 };
16353
16354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16356 if (!SWIG_IsOK(res1)) {
16357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16358 }
16359 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16360 {
16361 arg2 = wxString_in_helper(obj1);
16362 if (arg2 == NULL) SWIG_fail;
16363 temp2 = true;
16364 }
16365 {
16366 PyThreadState* __tstate = wxPyBeginAllowThreads();
16367 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16368 wxPyEndAllowThreads(__tstate);
16369 if (PyErr_Occurred()) SWIG_fail;
16370 }
16371 {
16372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16373 }
16374 {
16375 if (temp2)
16376 delete arg2;
16377 }
16378 return resultobj;
16379 fail:
16380 {
16381 if (temp2)
16382 delete arg2;
16383 }
16384 return NULL;
16385 }
16386
16387
16388 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16389 PyObject *resultobj = 0;
16390 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16391 size_t result;
16392 void *argp1 = 0 ;
16393 int res1 = 0 ;
16394 PyObject *swig_obj[1] ;
16395
16396 if (!args) SWIG_fail;
16397 swig_obj[0] = args;
16398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16399 if (!SWIG_IsOK(res1)) {
16400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16401 }
16402 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16403 {
16404 PyThreadState* __tstate = wxPyBeginAllowThreads();
16405 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16406 wxPyEndAllowThreads(__tstate);
16407 if (PyErr_Occurred()) SWIG_fail;
16408 }
16409 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16410 return resultobj;
16411 fail:
16412 return NULL;
16413 }
16414
16415
16416 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16417 PyObject *resultobj = 0;
16418 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16419 wxString *arg2 = 0 ;
16420 int result;
16421 void *argp1 = 0 ;
16422 int res1 = 0 ;
16423 bool temp2 = false ;
16424 PyObject * obj0 = 0 ;
16425 PyObject * obj1 = 0 ;
16426 char * kwnames[] = {
16427 (char *) "self",(char *) "s", NULL
16428 };
16429
16430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16432 if (!SWIG_IsOK(res1)) {
16433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16434 }
16435 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16436 {
16437 arg2 = wxString_in_helper(obj1);
16438 if (arg2 == NULL) SWIG_fail;
16439 temp2 = true;
16440 }
16441 {
16442 PyThreadState* __tstate = wxPyBeginAllowThreads();
16443 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16444 wxPyEndAllowThreads(__tstate);
16445 if (PyErr_Occurred()) SWIG_fail;
16446 }
16447 resultobj = SWIG_From_int(static_cast< int >(result));
16448 {
16449 if (temp2)
16450 delete arg2;
16451 }
16452 return resultobj;
16453 fail:
16454 {
16455 if (temp2)
16456 delete arg2;
16457 }
16458 return NULL;
16459 }
16460
16461
16462 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16463 PyObject *resultobj = 0;
16464 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16465 int arg2 ;
16466 wxString result;
16467 void *argp1 = 0 ;
16468 int res1 = 0 ;
16469 int val2 ;
16470 int ecode2 = 0 ;
16471 PyObject * obj0 = 0 ;
16472 PyObject * obj1 = 0 ;
16473 char * kwnames[] = {
16474 (char *) "self",(char *) "n", NULL
16475 };
16476
16477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16479 if (!SWIG_IsOK(res1)) {
16480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16481 }
16482 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16483 ecode2 = SWIG_AsVal_int(obj1, &val2);
16484 if (!SWIG_IsOK(ecode2)) {
16485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16486 }
16487 arg2 = static_cast< int >(val2);
16488 {
16489 PyThreadState* __tstate = wxPyBeginAllowThreads();
16490 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16491 wxPyEndAllowThreads(__tstate);
16492 if (PyErr_Occurred()) SWIG_fail;
16493 }
16494 {
16495 #if wxUSE_UNICODE
16496 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16497 #else
16498 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16499 #endif
16500 }
16501 return resultobj;
16502 fail:
16503 return NULL;
16504 }
16505
16506
16507 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16508 PyObject *resultobj = 0;
16509 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16510 int arg2 ;
16511 wxString *arg3 = 0 ;
16512 void *argp1 = 0 ;
16513 int res1 = 0 ;
16514 int val2 ;
16515 int ecode2 = 0 ;
16516 bool temp3 = false ;
16517 PyObject * obj0 = 0 ;
16518 PyObject * obj1 = 0 ;
16519 PyObject * obj2 = 0 ;
16520 char * kwnames[] = {
16521 (char *) "self",(char *) "n",(char *) "label", NULL
16522 };
16523
16524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16526 if (!SWIG_IsOK(res1)) {
16527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16528 }
16529 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16530 ecode2 = SWIG_AsVal_int(obj1, &val2);
16531 if (!SWIG_IsOK(ecode2)) {
16532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16533 }
16534 arg2 = static_cast< int >(val2);
16535 {
16536 arg3 = wxString_in_helper(obj2);
16537 if (arg3 == NULL) SWIG_fail;
16538 temp3 = true;
16539 }
16540 {
16541 PyThreadState* __tstate = wxPyBeginAllowThreads();
16542 (arg1)->SetString(arg2,(wxString const &)*arg3);
16543 wxPyEndAllowThreads(__tstate);
16544 if (PyErr_Occurred()) SWIG_fail;
16545 }
16546 resultobj = SWIG_Py_Void();
16547 {
16548 if (temp3)
16549 delete arg3;
16550 }
16551 return resultobj;
16552 fail:
16553 {
16554 if (temp3)
16555 delete arg3;
16556 }
16557 return NULL;
16558 }
16559
16560
16561 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16562 PyObject *resultobj = 0;
16563 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16564 unsigned int arg2 ;
16565 bool arg3 = (bool) true ;
16566 void *argp1 = 0 ;
16567 int res1 = 0 ;
16568 unsigned int val2 ;
16569 int ecode2 = 0 ;
16570 bool val3 ;
16571 int ecode3 = 0 ;
16572 PyObject * obj0 = 0 ;
16573 PyObject * obj1 = 0 ;
16574 PyObject * obj2 = 0 ;
16575 char * kwnames[] = {
16576 (char *) "self",(char *) "n",(char *) "enable", NULL
16577 };
16578
16579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16581 if (!SWIG_IsOK(res1)) {
16582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16583 }
16584 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16585 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16586 if (!SWIG_IsOK(ecode2)) {
16587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16588 }
16589 arg2 = static_cast< unsigned int >(val2);
16590 if (obj2) {
16591 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16592 if (!SWIG_IsOK(ecode3)) {
16593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16594 }
16595 arg3 = static_cast< bool >(val3);
16596 }
16597 {
16598 PyThreadState* __tstate = wxPyBeginAllowThreads();
16599 (arg1)->Enable(arg2,arg3);
16600 wxPyEndAllowThreads(__tstate);
16601 if (PyErr_Occurred()) SWIG_fail;
16602 }
16603 resultobj = SWIG_Py_Void();
16604 return resultobj;
16605 fail:
16606 return NULL;
16607 }
16608
16609
16610 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16611 PyObject *resultobj = 0;
16612 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16613 unsigned int arg2 ;
16614 bool arg3 = (bool) true ;
16615 void *argp1 = 0 ;
16616 int res1 = 0 ;
16617 unsigned int val2 ;
16618 int ecode2 = 0 ;
16619 bool val3 ;
16620 int ecode3 = 0 ;
16621 PyObject * obj0 = 0 ;
16622 PyObject * obj1 = 0 ;
16623 PyObject * obj2 = 0 ;
16624 char * kwnames[] = {
16625 (char *) "self",(char *) "n",(char *) "show", NULL
16626 };
16627
16628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16630 if (!SWIG_IsOK(res1)) {
16631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16632 }
16633 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16634 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16635 if (!SWIG_IsOK(ecode2)) {
16636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16637 }
16638 arg2 = static_cast< unsigned int >(val2);
16639 if (obj2) {
16640 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16641 if (!SWIG_IsOK(ecode3)) {
16642 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16643 }
16644 arg3 = static_cast< bool >(val3);
16645 }
16646 {
16647 PyThreadState* __tstate = wxPyBeginAllowThreads();
16648 (arg1)->Show(arg2,arg3);
16649 wxPyEndAllowThreads(__tstate);
16650 if (PyErr_Occurred()) SWIG_fail;
16651 }
16652 resultobj = SWIG_Py_Void();
16653 return resultobj;
16654 fail:
16655 return NULL;
16656 }
16657
16658
16659 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16660 PyObject *resultobj = 0;
16661 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16662 unsigned int arg2 ;
16663 bool result;
16664 void *argp1 = 0 ;
16665 int res1 = 0 ;
16666 unsigned int val2 ;
16667 int ecode2 = 0 ;
16668 PyObject * obj0 = 0 ;
16669 PyObject * obj1 = 0 ;
16670 char * kwnames[] = {
16671 (char *) "self",(char *) "n", NULL
16672 };
16673
16674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16676 if (!SWIG_IsOK(res1)) {
16677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16678 }
16679 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16680 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16681 if (!SWIG_IsOK(ecode2)) {
16682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16683 }
16684 arg2 = static_cast< unsigned int >(val2);
16685 {
16686 PyThreadState* __tstate = wxPyBeginAllowThreads();
16687 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16688 wxPyEndAllowThreads(__tstate);
16689 if (PyErr_Occurred()) SWIG_fail;
16690 }
16691 {
16692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16693 }
16694 return resultobj;
16695 fail:
16696 return NULL;
16697 }
16698
16699
16700 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16701 PyObject *resultobj = 0;
16702 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16703 unsigned int arg2 ;
16704 bool result;
16705 void *argp1 = 0 ;
16706 int res1 = 0 ;
16707 unsigned int val2 ;
16708 int ecode2 = 0 ;
16709 PyObject * obj0 = 0 ;
16710 PyObject * obj1 = 0 ;
16711 char * kwnames[] = {
16712 (char *) "self",(char *) "n", NULL
16713 };
16714
16715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16717 if (!SWIG_IsOK(res1)) {
16718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16719 }
16720 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16721 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16722 if (!SWIG_IsOK(ecode2)) {
16723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16724 }
16725 arg2 = static_cast< unsigned int >(val2);
16726 {
16727 PyThreadState* __tstate = wxPyBeginAllowThreads();
16728 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16729 wxPyEndAllowThreads(__tstate);
16730 if (PyErr_Occurred()) SWIG_fail;
16731 }
16732 {
16733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16734 }
16735 return resultobj;
16736 fail:
16737 return NULL;
16738 }
16739
16740
16741 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16742 PyObject *resultobj = 0;
16743 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16744 unsigned int result;
16745 void *argp1 = 0 ;
16746 int res1 = 0 ;
16747 PyObject *swig_obj[1] ;
16748
16749 if (!args) SWIG_fail;
16750 swig_obj[0] = args;
16751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16752 if (!SWIG_IsOK(res1)) {
16753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16754 }
16755 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16756 {
16757 PyThreadState* __tstate = wxPyBeginAllowThreads();
16758 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16759 wxPyEndAllowThreads(__tstate);
16760 if (PyErr_Occurred()) SWIG_fail;
16761 }
16762 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16763 return resultobj;
16764 fail:
16765 return NULL;
16766 }
16767
16768
16769 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16770 PyObject *resultobj = 0;
16771 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16772 unsigned int result;
16773 void *argp1 = 0 ;
16774 int res1 = 0 ;
16775 PyObject *swig_obj[1] ;
16776
16777 if (!args) SWIG_fail;
16778 swig_obj[0] = args;
16779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16780 if (!SWIG_IsOK(res1)) {
16781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16782 }
16783 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16784 {
16785 PyThreadState* __tstate = wxPyBeginAllowThreads();
16786 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16787 wxPyEndAllowThreads(__tstate);
16788 if (PyErr_Occurred()) SWIG_fail;
16789 }
16790 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16791 return resultobj;
16792 fail:
16793 return NULL;
16794 }
16795
16796
16797 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16798 PyObject *resultobj = 0;
16799 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16800 int arg2 ;
16801 wxDirection arg3 ;
16802 long arg4 ;
16803 int result;
16804 void *argp1 = 0 ;
16805 int res1 = 0 ;
16806 int val2 ;
16807 int ecode2 = 0 ;
16808 int val3 ;
16809 int ecode3 = 0 ;
16810 long val4 ;
16811 int ecode4 = 0 ;
16812 PyObject * obj0 = 0 ;
16813 PyObject * obj1 = 0 ;
16814 PyObject * obj2 = 0 ;
16815 PyObject * obj3 = 0 ;
16816 char * kwnames[] = {
16817 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16818 };
16819
16820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16822 if (!SWIG_IsOK(res1)) {
16823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16824 }
16825 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16826 ecode2 = SWIG_AsVal_int(obj1, &val2);
16827 if (!SWIG_IsOK(ecode2)) {
16828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16829 }
16830 arg2 = static_cast< int >(val2);
16831 ecode3 = SWIG_AsVal_int(obj2, &val3);
16832 if (!SWIG_IsOK(ecode3)) {
16833 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16834 }
16835 arg3 = static_cast< wxDirection >(val3);
16836 ecode4 = SWIG_AsVal_long(obj3, &val4);
16837 if (!SWIG_IsOK(ecode4)) {
16838 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16839 }
16840 arg4 = static_cast< long >(val4);
16841 {
16842 PyThreadState* __tstate = wxPyBeginAllowThreads();
16843 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16844 wxPyEndAllowThreads(__tstate);
16845 if (PyErr_Occurred()) SWIG_fail;
16846 }
16847 resultobj = SWIG_From_int(static_cast< int >(result));
16848 return resultobj;
16849 fail:
16850 return NULL;
16851 }
16852
16853
16854 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16855 PyObject *resultobj = 0;
16856 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16857 unsigned int arg2 ;
16858 wxString *arg3 = 0 ;
16859 void *argp1 = 0 ;
16860 int res1 = 0 ;
16861 unsigned int val2 ;
16862 int ecode2 = 0 ;
16863 bool temp3 = false ;
16864 PyObject * obj0 = 0 ;
16865 PyObject * obj1 = 0 ;
16866 PyObject * obj2 = 0 ;
16867 char * kwnames[] = {
16868 (char *) "self",(char *) "item",(char *) "text", NULL
16869 };
16870
16871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16873 if (!SWIG_IsOK(res1)) {
16874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16875 }
16876 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16877 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16878 if (!SWIG_IsOK(ecode2)) {
16879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16880 }
16881 arg2 = static_cast< unsigned int >(val2);
16882 {
16883 arg3 = wxString_in_helper(obj2);
16884 if (arg3 == NULL) SWIG_fail;
16885 temp3 = true;
16886 }
16887 {
16888 PyThreadState* __tstate = wxPyBeginAllowThreads();
16889 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16890 wxPyEndAllowThreads(__tstate);
16891 if (PyErr_Occurred()) SWIG_fail;
16892 }
16893 resultobj = SWIG_Py_Void();
16894 {
16895 if (temp3)
16896 delete arg3;
16897 }
16898 return resultobj;
16899 fail:
16900 {
16901 if (temp3)
16902 delete arg3;
16903 }
16904 return NULL;
16905 }
16906
16907
16908 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16909 PyObject *resultobj = 0;
16910 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16911 unsigned int arg2 ;
16912 wxToolTip *result = 0 ;
16913 void *argp1 = 0 ;
16914 int res1 = 0 ;
16915 unsigned int val2 ;
16916 int ecode2 = 0 ;
16917 PyObject * obj0 = 0 ;
16918 PyObject * obj1 = 0 ;
16919 char * kwnames[] = {
16920 (char *) "self",(char *) "item", NULL
16921 };
16922
16923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16925 if (!SWIG_IsOK(res1)) {
16926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16927 }
16928 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16929 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16930 if (!SWIG_IsOK(ecode2)) {
16931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16932 }
16933 arg2 = static_cast< unsigned int >(val2);
16934 {
16935 PyThreadState* __tstate = wxPyBeginAllowThreads();
16936 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16937 wxPyEndAllowThreads(__tstate);
16938 if (PyErr_Occurred()) SWIG_fail;
16939 }
16940 {
16941 resultobj = wxPyMake_wxObject(result, (bool)0);
16942 }
16943 return resultobj;
16944 fail:
16945 return NULL;
16946 }
16947
16948
16949 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16950 PyObject *resultobj = 0;
16951 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16952 unsigned int arg2 ;
16953 wxString *arg3 = 0 ;
16954 void *argp1 = 0 ;
16955 int res1 = 0 ;
16956 unsigned int val2 ;
16957 int ecode2 = 0 ;
16958 bool temp3 = false ;
16959 PyObject * obj0 = 0 ;
16960 PyObject * obj1 = 0 ;
16961 PyObject * obj2 = 0 ;
16962 char * kwnames[] = {
16963 (char *) "self",(char *) "n",(char *) "helpText", NULL
16964 };
16965
16966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16968 if (!SWIG_IsOK(res1)) {
16969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16970 }
16971 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16972 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16973 if (!SWIG_IsOK(ecode2)) {
16974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
16975 }
16976 arg2 = static_cast< unsigned int >(val2);
16977 {
16978 arg3 = wxString_in_helper(obj2);
16979 if (arg3 == NULL) SWIG_fail;
16980 temp3 = true;
16981 }
16982 {
16983 PyThreadState* __tstate = wxPyBeginAllowThreads();
16984 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
16985 wxPyEndAllowThreads(__tstate);
16986 if (PyErr_Occurred()) SWIG_fail;
16987 }
16988 resultobj = SWIG_Py_Void();
16989 {
16990 if (temp3)
16991 delete arg3;
16992 }
16993 return resultobj;
16994 fail:
16995 {
16996 if (temp3)
16997 delete arg3;
16998 }
16999 return NULL;
17000 }
17001
17002
17003 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17004 PyObject *resultobj = 0;
17005 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17006 unsigned int arg2 ;
17007 wxString result;
17008 void *argp1 = 0 ;
17009 int res1 = 0 ;
17010 unsigned int val2 ;
17011 int ecode2 = 0 ;
17012 PyObject * obj0 = 0 ;
17013 PyObject * obj1 = 0 ;
17014 char * kwnames[] = {
17015 (char *) "self",(char *) "n", NULL
17016 };
17017
17018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17020 if (!SWIG_IsOK(res1)) {
17021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17022 }
17023 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17024 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17025 if (!SWIG_IsOK(ecode2)) {
17026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17027 }
17028 arg2 = static_cast< unsigned int >(val2);
17029 {
17030 PyThreadState* __tstate = wxPyBeginAllowThreads();
17031 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17032 wxPyEndAllowThreads(__tstate);
17033 if (PyErr_Occurred()) SWIG_fail;
17034 }
17035 {
17036 #if wxUSE_UNICODE
17037 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17038 #else
17039 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17040 #endif
17041 }
17042 return resultobj;
17043 fail:
17044 return NULL;
17045 }
17046
17047
17048 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17049 PyObject *resultobj = 0;
17050 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17051 SwigValueWrapper<wxVisualAttributes > result;
17052 int val1 ;
17053 int ecode1 = 0 ;
17054 PyObject * obj0 = 0 ;
17055 char * kwnames[] = {
17056 (char *) "variant", NULL
17057 };
17058
17059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17060 if (obj0) {
17061 ecode1 = SWIG_AsVal_int(obj0, &val1);
17062 if (!SWIG_IsOK(ecode1)) {
17063 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17064 }
17065 arg1 = static_cast< wxWindowVariant >(val1);
17066 }
17067 {
17068 if (!wxPyCheckForApp()) SWIG_fail;
17069 PyThreadState* __tstate = wxPyBeginAllowThreads();
17070 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17071 wxPyEndAllowThreads(__tstate);
17072 if (PyErr_Occurred()) SWIG_fail;
17073 }
17074 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17075 return resultobj;
17076 fail:
17077 return NULL;
17078 }
17079
17080
17081 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17082 PyObject *obj;
17083 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17084 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17085 return SWIG_Py_Void();
17086 }
17087
17088 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17089 return SWIG_Python_InitShadowInstance(args);
17090 }
17091
17092 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17093 PyObject *resultobj = 0;
17094 wxWindow *arg1 = (wxWindow *) 0 ;
17095 int arg2 = (int) -1 ;
17096 wxString const &arg3_defvalue = wxPyEmptyString ;
17097 wxString *arg3 = (wxString *) &arg3_defvalue ;
17098 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17099 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17100 wxSize const &arg5_defvalue = wxDefaultSize ;
17101 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17102 long arg6 = (long) 0 ;
17103 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17104 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17105 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17106 wxString *arg8 = (wxString *) &arg8_defvalue ;
17107 wxRadioButton *result = 0 ;
17108 void *argp1 = 0 ;
17109 int res1 = 0 ;
17110 int val2 ;
17111 int ecode2 = 0 ;
17112 bool temp3 = false ;
17113 wxPoint temp4 ;
17114 wxSize temp5 ;
17115 long val6 ;
17116 int ecode6 = 0 ;
17117 void *argp7 = 0 ;
17118 int res7 = 0 ;
17119 bool temp8 = false ;
17120 PyObject * obj0 = 0 ;
17121 PyObject * obj1 = 0 ;
17122 PyObject * obj2 = 0 ;
17123 PyObject * obj3 = 0 ;
17124 PyObject * obj4 = 0 ;
17125 PyObject * obj5 = 0 ;
17126 PyObject * obj6 = 0 ;
17127 PyObject * obj7 = 0 ;
17128 char * kwnames[] = {
17129 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17130 };
17131
17132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17134 if (!SWIG_IsOK(res1)) {
17135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17136 }
17137 arg1 = reinterpret_cast< wxWindow * >(argp1);
17138 if (obj1) {
17139 ecode2 = SWIG_AsVal_int(obj1, &val2);
17140 if (!SWIG_IsOK(ecode2)) {
17141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17142 }
17143 arg2 = static_cast< int >(val2);
17144 }
17145 if (obj2) {
17146 {
17147 arg3 = wxString_in_helper(obj2);
17148 if (arg3 == NULL) SWIG_fail;
17149 temp3 = true;
17150 }
17151 }
17152 if (obj3) {
17153 {
17154 arg4 = &temp4;
17155 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17156 }
17157 }
17158 if (obj4) {
17159 {
17160 arg5 = &temp5;
17161 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17162 }
17163 }
17164 if (obj5) {
17165 ecode6 = SWIG_AsVal_long(obj5, &val6);
17166 if (!SWIG_IsOK(ecode6)) {
17167 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17168 }
17169 arg6 = static_cast< long >(val6);
17170 }
17171 if (obj6) {
17172 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17173 if (!SWIG_IsOK(res7)) {
17174 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17175 }
17176 if (!argp7) {
17177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17178 }
17179 arg7 = reinterpret_cast< wxValidator * >(argp7);
17180 }
17181 if (obj7) {
17182 {
17183 arg8 = wxString_in_helper(obj7);
17184 if (arg8 == NULL) SWIG_fail;
17185 temp8 = true;
17186 }
17187 }
17188 {
17189 if (!wxPyCheckForApp()) SWIG_fail;
17190 PyThreadState* __tstate = wxPyBeginAllowThreads();
17191 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17192 wxPyEndAllowThreads(__tstate);
17193 if (PyErr_Occurred()) SWIG_fail;
17194 }
17195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17196 {
17197 if (temp3)
17198 delete arg3;
17199 }
17200 {
17201 if (temp8)
17202 delete arg8;
17203 }
17204 return resultobj;
17205 fail:
17206 {
17207 if (temp3)
17208 delete arg3;
17209 }
17210 {
17211 if (temp8)
17212 delete arg8;
17213 }
17214 return NULL;
17215 }
17216
17217
17218 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17219 PyObject *resultobj = 0;
17220 wxRadioButton *result = 0 ;
17221
17222 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17223 {
17224 if (!wxPyCheckForApp()) SWIG_fail;
17225 PyThreadState* __tstate = wxPyBeginAllowThreads();
17226 result = (wxRadioButton *)new wxRadioButton();
17227 wxPyEndAllowThreads(__tstate);
17228 if (PyErr_Occurred()) SWIG_fail;
17229 }
17230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17231 return resultobj;
17232 fail:
17233 return NULL;
17234 }
17235
17236
17237 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17238 PyObject *resultobj = 0;
17239 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17240 wxWindow *arg2 = (wxWindow *) 0 ;
17241 int arg3 = (int) -1 ;
17242 wxString const &arg4_defvalue = wxPyEmptyString ;
17243 wxString *arg4 = (wxString *) &arg4_defvalue ;
17244 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17245 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17246 wxSize const &arg6_defvalue = wxDefaultSize ;
17247 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17248 long arg7 = (long) 0 ;
17249 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17250 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17251 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17252 wxString *arg9 = (wxString *) &arg9_defvalue ;
17253 bool result;
17254 void *argp1 = 0 ;
17255 int res1 = 0 ;
17256 void *argp2 = 0 ;
17257 int res2 = 0 ;
17258 int val3 ;
17259 int ecode3 = 0 ;
17260 bool temp4 = false ;
17261 wxPoint temp5 ;
17262 wxSize temp6 ;
17263 long val7 ;
17264 int ecode7 = 0 ;
17265 void *argp8 = 0 ;
17266 int res8 = 0 ;
17267 bool temp9 = false ;
17268 PyObject * obj0 = 0 ;
17269 PyObject * obj1 = 0 ;
17270 PyObject * obj2 = 0 ;
17271 PyObject * obj3 = 0 ;
17272 PyObject * obj4 = 0 ;
17273 PyObject * obj5 = 0 ;
17274 PyObject * obj6 = 0 ;
17275 PyObject * obj7 = 0 ;
17276 PyObject * obj8 = 0 ;
17277 char * kwnames[] = {
17278 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17279 };
17280
17281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17283 if (!SWIG_IsOK(res1)) {
17284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17285 }
17286 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17287 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17288 if (!SWIG_IsOK(res2)) {
17289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17290 }
17291 arg2 = reinterpret_cast< wxWindow * >(argp2);
17292 if (obj2) {
17293 ecode3 = SWIG_AsVal_int(obj2, &val3);
17294 if (!SWIG_IsOK(ecode3)) {
17295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17296 }
17297 arg3 = static_cast< int >(val3);
17298 }
17299 if (obj3) {
17300 {
17301 arg4 = wxString_in_helper(obj3);
17302 if (arg4 == NULL) SWIG_fail;
17303 temp4 = true;
17304 }
17305 }
17306 if (obj4) {
17307 {
17308 arg5 = &temp5;
17309 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17310 }
17311 }
17312 if (obj5) {
17313 {
17314 arg6 = &temp6;
17315 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17316 }
17317 }
17318 if (obj6) {
17319 ecode7 = SWIG_AsVal_long(obj6, &val7);
17320 if (!SWIG_IsOK(ecode7)) {
17321 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17322 }
17323 arg7 = static_cast< long >(val7);
17324 }
17325 if (obj7) {
17326 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17327 if (!SWIG_IsOK(res8)) {
17328 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17329 }
17330 if (!argp8) {
17331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17332 }
17333 arg8 = reinterpret_cast< wxValidator * >(argp8);
17334 }
17335 if (obj8) {
17336 {
17337 arg9 = wxString_in_helper(obj8);
17338 if (arg9 == NULL) SWIG_fail;
17339 temp9 = true;
17340 }
17341 }
17342 {
17343 PyThreadState* __tstate = wxPyBeginAllowThreads();
17344 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17345 wxPyEndAllowThreads(__tstate);
17346 if (PyErr_Occurred()) SWIG_fail;
17347 }
17348 {
17349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17350 }
17351 {
17352 if (temp4)
17353 delete arg4;
17354 }
17355 {
17356 if (temp9)
17357 delete arg9;
17358 }
17359 return resultobj;
17360 fail:
17361 {
17362 if (temp4)
17363 delete arg4;
17364 }
17365 {
17366 if (temp9)
17367 delete arg9;
17368 }
17369 return NULL;
17370 }
17371
17372
17373 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17374 PyObject *resultobj = 0;
17375 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17376 bool result;
17377 void *argp1 = 0 ;
17378 int res1 = 0 ;
17379 PyObject *swig_obj[1] ;
17380
17381 if (!args) SWIG_fail;
17382 swig_obj[0] = args;
17383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17384 if (!SWIG_IsOK(res1)) {
17385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17386 }
17387 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17388 {
17389 PyThreadState* __tstate = wxPyBeginAllowThreads();
17390 result = (bool)(arg1)->GetValue();
17391 wxPyEndAllowThreads(__tstate);
17392 if (PyErr_Occurred()) SWIG_fail;
17393 }
17394 {
17395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17396 }
17397 return resultobj;
17398 fail:
17399 return NULL;
17400 }
17401
17402
17403 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17404 PyObject *resultobj = 0;
17405 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17406 bool arg2 ;
17407 void *argp1 = 0 ;
17408 int res1 = 0 ;
17409 bool val2 ;
17410 int ecode2 = 0 ;
17411 PyObject * obj0 = 0 ;
17412 PyObject * obj1 = 0 ;
17413 char * kwnames[] = {
17414 (char *) "self",(char *) "value", NULL
17415 };
17416
17417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17419 if (!SWIG_IsOK(res1)) {
17420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17421 }
17422 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17423 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17424 if (!SWIG_IsOK(ecode2)) {
17425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17426 }
17427 arg2 = static_cast< bool >(val2);
17428 {
17429 PyThreadState* __tstate = wxPyBeginAllowThreads();
17430 (arg1)->SetValue(arg2);
17431 wxPyEndAllowThreads(__tstate);
17432 if (PyErr_Occurred()) SWIG_fail;
17433 }
17434 resultobj = SWIG_Py_Void();
17435 return resultobj;
17436 fail:
17437 return NULL;
17438 }
17439
17440
17441 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17442 PyObject *resultobj = 0;
17443 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17444 SwigValueWrapper<wxVisualAttributes > result;
17445 int val1 ;
17446 int ecode1 = 0 ;
17447 PyObject * obj0 = 0 ;
17448 char * kwnames[] = {
17449 (char *) "variant", NULL
17450 };
17451
17452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17453 if (obj0) {
17454 ecode1 = SWIG_AsVal_int(obj0, &val1);
17455 if (!SWIG_IsOK(ecode1)) {
17456 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17457 }
17458 arg1 = static_cast< wxWindowVariant >(val1);
17459 }
17460 {
17461 if (!wxPyCheckForApp()) SWIG_fail;
17462 PyThreadState* __tstate = wxPyBeginAllowThreads();
17463 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17464 wxPyEndAllowThreads(__tstate);
17465 if (PyErr_Occurred()) SWIG_fail;
17466 }
17467 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17468 return resultobj;
17469 fail:
17470 return NULL;
17471 }
17472
17473
17474 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17475 PyObject *obj;
17476 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17477 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17478 return SWIG_Py_Void();
17479 }
17480
17481 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17482 return SWIG_Python_InitShadowInstance(args);
17483 }
17484
17485 SWIGINTERN int SliderNameStr_set(PyObject *) {
17486 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17487 return 1;
17488 }
17489
17490
17491 SWIGINTERN PyObject *SliderNameStr_get(void) {
17492 PyObject *pyobj = 0;
17493
17494 {
17495 #if wxUSE_UNICODE
17496 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17497 #else
17498 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17499 #endif
17500 }
17501 return pyobj;
17502 }
17503
17504
17505 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17506 PyObject *resultobj = 0;
17507 wxWindow *arg1 = (wxWindow *) 0 ;
17508 int arg2 = (int) -1 ;
17509 int arg3 = (int) 0 ;
17510 int arg4 = (int) 0 ;
17511 int arg5 = (int) 100 ;
17512 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17513 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17514 wxSize const &arg7_defvalue = wxDefaultSize ;
17515 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17516 long arg8 = (long) wxSL_HORIZONTAL ;
17517 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17518 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17519 wxString const &arg10_defvalue = wxPySliderNameStr ;
17520 wxString *arg10 = (wxString *) &arg10_defvalue ;
17521 wxSlider *result = 0 ;
17522 void *argp1 = 0 ;
17523 int res1 = 0 ;
17524 int val2 ;
17525 int ecode2 = 0 ;
17526 int val3 ;
17527 int ecode3 = 0 ;
17528 int val4 ;
17529 int ecode4 = 0 ;
17530 int val5 ;
17531 int ecode5 = 0 ;
17532 wxPoint temp6 ;
17533 wxSize temp7 ;
17534 long val8 ;
17535 int ecode8 = 0 ;
17536 void *argp9 = 0 ;
17537 int res9 = 0 ;
17538 bool temp10 = false ;
17539 PyObject * obj0 = 0 ;
17540 PyObject * obj1 = 0 ;
17541 PyObject * obj2 = 0 ;
17542 PyObject * obj3 = 0 ;
17543 PyObject * obj4 = 0 ;
17544 PyObject * obj5 = 0 ;
17545 PyObject * obj6 = 0 ;
17546 PyObject * obj7 = 0 ;
17547 PyObject * obj8 = 0 ;
17548 PyObject * obj9 = 0 ;
17549 char * kwnames[] = {
17550 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17551 };
17552
17553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17555 if (!SWIG_IsOK(res1)) {
17556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17557 }
17558 arg1 = reinterpret_cast< wxWindow * >(argp1);
17559 if (obj1) {
17560 ecode2 = SWIG_AsVal_int(obj1, &val2);
17561 if (!SWIG_IsOK(ecode2)) {
17562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17563 }
17564 arg2 = static_cast< int >(val2);
17565 }
17566 if (obj2) {
17567 ecode3 = SWIG_AsVal_int(obj2, &val3);
17568 if (!SWIG_IsOK(ecode3)) {
17569 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17570 }
17571 arg3 = static_cast< int >(val3);
17572 }
17573 if (obj3) {
17574 ecode4 = SWIG_AsVal_int(obj3, &val4);
17575 if (!SWIG_IsOK(ecode4)) {
17576 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17577 }
17578 arg4 = static_cast< int >(val4);
17579 }
17580 if (obj4) {
17581 ecode5 = SWIG_AsVal_int(obj4, &val5);
17582 if (!SWIG_IsOK(ecode5)) {
17583 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17584 }
17585 arg5 = static_cast< int >(val5);
17586 }
17587 if (obj5) {
17588 {
17589 arg6 = &temp6;
17590 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17591 }
17592 }
17593 if (obj6) {
17594 {
17595 arg7 = &temp7;
17596 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17597 }
17598 }
17599 if (obj7) {
17600 ecode8 = SWIG_AsVal_long(obj7, &val8);
17601 if (!SWIG_IsOK(ecode8)) {
17602 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17603 }
17604 arg8 = static_cast< long >(val8);
17605 }
17606 if (obj8) {
17607 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17608 if (!SWIG_IsOK(res9)) {
17609 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17610 }
17611 if (!argp9) {
17612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17613 }
17614 arg9 = reinterpret_cast< wxValidator * >(argp9);
17615 }
17616 if (obj9) {
17617 {
17618 arg10 = wxString_in_helper(obj9);
17619 if (arg10 == NULL) SWIG_fail;
17620 temp10 = true;
17621 }
17622 }
17623 {
17624 if (!wxPyCheckForApp()) SWIG_fail;
17625 PyThreadState* __tstate = wxPyBeginAllowThreads();
17626 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17627 wxPyEndAllowThreads(__tstate);
17628 if (PyErr_Occurred()) SWIG_fail;
17629 }
17630 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17631 {
17632 if (temp10)
17633 delete arg10;
17634 }
17635 return resultobj;
17636 fail:
17637 {
17638 if (temp10)
17639 delete arg10;
17640 }
17641 return NULL;
17642 }
17643
17644
17645 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17646 PyObject *resultobj = 0;
17647 wxSlider *result = 0 ;
17648
17649 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17650 {
17651 if (!wxPyCheckForApp()) SWIG_fail;
17652 PyThreadState* __tstate = wxPyBeginAllowThreads();
17653 result = (wxSlider *)new wxSlider();
17654 wxPyEndAllowThreads(__tstate);
17655 if (PyErr_Occurred()) SWIG_fail;
17656 }
17657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17658 return resultobj;
17659 fail:
17660 return NULL;
17661 }
17662
17663
17664 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17665 PyObject *resultobj = 0;
17666 wxSlider *arg1 = (wxSlider *) 0 ;
17667 wxWindow *arg2 = (wxWindow *) 0 ;
17668 int arg3 = (int) -1 ;
17669 int arg4 = (int) 0 ;
17670 int arg5 = (int) 0 ;
17671 int arg6 = (int) 100 ;
17672 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17673 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17674 wxSize const &arg8_defvalue = wxDefaultSize ;
17675 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17676 long arg9 = (long) wxSL_HORIZONTAL ;
17677 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17678 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17679 wxString const &arg11_defvalue = wxPySliderNameStr ;
17680 wxString *arg11 = (wxString *) &arg11_defvalue ;
17681 bool result;
17682 void *argp1 = 0 ;
17683 int res1 = 0 ;
17684 void *argp2 = 0 ;
17685 int res2 = 0 ;
17686 int val3 ;
17687 int ecode3 = 0 ;
17688 int val4 ;
17689 int ecode4 = 0 ;
17690 int val5 ;
17691 int ecode5 = 0 ;
17692 int val6 ;
17693 int ecode6 = 0 ;
17694 wxPoint temp7 ;
17695 wxSize temp8 ;
17696 long val9 ;
17697 int ecode9 = 0 ;
17698 void *argp10 = 0 ;
17699 int res10 = 0 ;
17700 bool temp11 = false ;
17701 PyObject * obj0 = 0 ;
17702 PyObject * obj1 = 0 ;
17703 PyObject * obj2 = 0 ;
17704 PyObject * obj3 = 0 ;
17705 PyObject * obj4 = 0 ;
17706 PyObject * obj5 = 0 ;
17707 PyObject * obj6 = 0 ;
17708 PyObject * obj7 = 0 ;
17709 PyObject * obj8 = 0 ;
17710 PyObject * obj9 = 0 ;
17711 PyObject * obj10 = 0 ;
17712 char * kwnames[] = {
17713 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17714 };
17715
17716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17718 if (!SWIG_IsOK(res1)) {
17719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17720 }
17721 arg1 = reinterpret_cast< wxSlider * >(argp1);
17722 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17723 if (!SWIG_IsOK(res2)) {
17724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17725 }
17726 arg2 = reinterpret_cast< wxWindow * >(argp2);
17727 if (obj2) {
17728 ecode3 = SWIG_AsVal_int(obj2, &val3);
17729 if (!SWIG_IsOK(ecode3)) {
17730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17731 }
17732 arg3 = static_cast< int >(val3);
17733 }
17734 if (obj3) {
17735 ecode4 = SWIG_AsVal_int(obj3, &val4);
17736 if (!SWIG_IsOK(ecode4)) {
17737 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17738 }
17739 arg4 = static_cast< int >(val4);
17740 }
17741 if (obj4) {
17742 ecode5 = SWIG_AsVal_int(obj4, &val5);
17743 if (!SWIG_IsOK(ecode5)) {
17744 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17745 }
17746 arg5 = static_cast< int >(val5);
17747 }
17748 if (obj5) {
17749 ecode6 = SWIG_AsVal_int(obj5, &val6);
17750 if (!SWIG_IsOK(ecode6)) {
17751 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17752 }
17753 arg6 = static_cast< int >(val6);
17754 }
17755 if (obj6) {
17756 {
17757 arg7 = &temp7;
17758 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17759 }
17760 }
17761 if (obj7) {
17762 {
17763 arg8 = &temp8;
17764 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17765 }
17766 }
17767 if (obj8) {
17768 ecode9 = SWIG_AsVal_long(obj8, &val9);
17769 if (!SWIG_IsOK(ecode9)) {
17770 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17771 }
17772 arg9 = static_cast< long >(val9);
17773 }
17774 if (obj9) {
17775 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17776 if (!SWIG_IsOK(res10)) {
17777 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17778 }
17779 if (!argp10) {
17780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17781 }
17782 arg10 = reinterpret_cast< wxValidator * >(argp10);
17783 }
17784 if (obj10) {
17785 {
17786 arg11 = wxString_in_helper(obj10);
17787 if (arg11 == NULL) SWIG_fail;
17788 temp11 = true;
17789 }
17790 }
17791 {
17792 PyThreadState* __tstate = wxPyBeginAllowThreads();
17793 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17794 wxPyEndAllowThreads(__tstate);
17795 if (PyErr_Occurred()) SWIG_fail;
17796 }
17797 {
17798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17799 }
17800 {
17801 if (temp11)
17802 delete arg11;
17803 }
17804 return resultobj;
17805 fail:
17806 {
17807 if (temp11)
17808 delete arg11;
17809 }
17810 return NULL;
17811 }
17812
17813
17814 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17815 PyObject *resultobj = 0;
17816 wxSlider *arg1 = (wxSlider *) 0 ;
17817 int result;
17818 void *argp1 = 0 ;
17819 int res1 = 0 ;
17820 PyObject *swig_obj[1] ;
17821
17822 if (!args) SWIG_fail;
17823 swig_obj[0] = args;
17824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17825 if (!SWIG_IsOK(res1)) {
17826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17827 }
17828 arg1 = reinterpret_cast< wxSlider * >(argp1);
17829 {
17830 PyThreadState* __tstate = wxPyBeginAllowThreads();
17831 result = (int)((wxSlider const *)arg1)->GetValue();
17832 wxPyEndAllowThreads(__tstate);
17833 if (PyErr_Occurred()) SWIG_fail;
17834 }
17835 resultobj = SWIG_From_int(static_cast< int >(result));
17836 return resultobj;
17837 fail:
17838 return NULL;
17839 }
17840
17841
17842 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17843 PyObject *resultobj = 0;
17844 wxSlider *arg1 = (wxSlider *) 0 ;
17845 int arg2 ;
17846 void *argp1 = 0 ;
17847 int res1 = 0 ;
17848 int val2 ;
17849 int ecode2 = 0 ;
17850 PyObject * obj0 = 0 ;
17851 PyObject * obj1 = 0 ;
17852 char * kwnames[] = {
17853 (char *) "self",(char *) "value", NULL
17854 };
17855
17856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17858 if (!SWIG_IsOK(res1)) {
17859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17860 }
17861 arg1 = reinterpret_cast< wxSlider * >(argp1);
17862 ecode2 = SWIG_AsVal_int(obj1, &val2);
17863 if (!SWIG_IsOK(ecode2)) {
17864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17865 }
17866 arg2 = static_cast< int >(val2);
17867 {
17868 PyThreadState* __tstate = wxPyBeginAllowThreads();
17869 (arg1)->SetValue(arg2);
17870 wxPyEndAllowThreads(__tstate);
17871 if (PyErr_Occurred()) SWIG_fail;
17872 }
17873 resultobj = SWIG_Py_Void();
17874 return resultobj;
17875 fail:
17876 return NULL;
17877 }
17878
17879
17880 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17881 PyObject *resultobj = 0;
17882 wxSlider *arg1 = (wxSlider *) 0 ;
17883 int arg2 ;
17884 int arg3 ;
17885 void *argp1 = 0 ;
17886 int res1 = 0 ;
17887 int val2 ;
17888 int ecode2 = 0 ;
17889 int val3 ;
17890 int ecode3 = 0 ;
17891 PyObject * obj0 = 0 ;
17892 PyObject * obj1 = 0 ;
17893 PyObject * obj2 = 0 ;
17894 char * kwnames[] = {
17895 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17896 };
17897
17898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17900 if (!SWIG_IsOK(res1)) {
17901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17902 }
17903 arg1 = reinterpret_cast< wxSlider * >(argp1);
17904 ecode2 = SWIG_AsVal_int(obj1, &val2);
17905 if (!SWIG_IsOK(ecode2)) {
17906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17907 }
17908 arg2 = static_cast< int >(val2);
17909 ecode3 = SWIG_AsVal_int(obj2, &val3);
17910 if (!SWIG_IsOK(ecode3)) {
17911 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17912 }
17913 arg3 = static_cast< int >(val3);
17914 {
17915 PyThreadState* __tstate = wxPyBeginAllowThreads();
17916 (arg1)->SetRange(arg2,arg3);
17917 wxPyEndAllowThreads(__tstate);
17918 if (PyErr_Occurred()) SWIG_fail;
17919 }
17920 resultobj = SWIG_Py_Void();
17921 return resultobj;
17922 fail:
17923 return NULL;
17924 }
17925
17926
17927 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17928 PyObject *resultobj = 0;
17929 wxSlider *arg1 = (wxSlider *) 0 ;
17930 int result;
17931 void *argp1 = 0 ;
17932 int res1 = 0 ;
17933 PyObject *swig_obj[1] ;
17934
17935 if (!args) SWIG_fail;
17936 swig_obj[0] = args;
17937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17938 if (!SWIG_IsOK(res1)) {
17939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17940 }
17941 arg1 = reinterpret_cast< wxSlider * >(argp1);
17942 {
17943 PyThreadState* __tstate = wxPyBeginAllowThreads();
17944 result = (int)((wxSlider const *)arg1)->GetMin();
17945 wxPyEndAllowThreads(__tstate);
17946 if (PyErr_Occurred()) SWIG_fail;
17947 }
17948 resultobj = SWIG_From_int(static_cast< int >(result));
17949 return resultobj;
17950 fail:
17951 return NULL;
17952 }
17953
17954
17955 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17956 PyObject *resultobj = 0;
17957 wxSlider *arg1 = (wxSlider *) 0 ;
17958 int result;
17959 void *argp1 = 0 ;
17960 int res1 = 0 ;
17961 PyObject *swig_obj[1] ;
17962
17963 if (!args) SWIG_fail;
17964 swig_obj[0] = args;
17965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17966 if (!SWIG_IsOK(res1)) {
17967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17968 }
17969 arg1 = reinterpret_cast< wxSlider * >(argp1);
17970 {
17971 PyThreadState* __tstate = wxPyBeginAllowThreads();
17972 result = (int)((wxSlider const *)arg1)->GetMax();
17973 wxPyEndAllowThreads(__tstate);
17974 if (PyErr_Occurred()) SWIG_fail;
17975 }
17976 resultobj = SWIG_From_int(static_cast< int >(result));
17977 return resultobj;
17978 fail:
17979 return NULL;
17980 }
17981
17982
17983 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17984 PyObject *resultobj = 0;
17985 wxSlider *arg1 = (wxSlider *) 0 ;
17986 int arg2 ;
17987 void *argp1 = 0 ;
17988 int res1 = 0 ;
17989 int val2 ;
17990 int ecode2 = 0 ;
17991 PyObject * obj0 = 0 ;
17992 PyObject * obj1 = 0 ;
17993 char * kwnames[] = {
17994 (char *) "self",(char *) "minValue", NULL
17995 };
17996
17997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17999 if (!SWIG_IsOK(res1)) {
18000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18001 }
18002 arg1 = reinterpret_cast< wxSlider * >(argp1);
18003 ecode2 = SWIG_AsVal_int(obj1, &val2);
18004 if (!SWIG_IsOK(ecode2)) {
18005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18006 }
18007 arg2 = static_cast< int >(val2);
18008 {
18009 PyThreadState* __tstate = wxPyBeginAllowThreads();
18010 (arg1)->SetMin(arg2);
18011 wxPyEndAllowThreads(__tstate);
18012 if (PyErr_Occurred()) SWIG_fail;
18013 }
18014 resultobj = SWIG_Py_Void();
18015 return resultobj;
18016 fail:
18017 return NULL;
18018 }
18019
18020
18021 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18022 PyObject *resultobj = 0;
18023 wxSlider *arg1 = (wxSlider *) 0 ;
18024 int arg2 ;
18025 void *argp1 = 0 ;
18026 int res1 = 0 ;
18027 int val2 ;
18028 int ecode2 = 0 ;
18029 PyObject * obj0 = 0 ;
18030 PyObject * obj1 = 0 ;
18031 char * kwnames[] = {
18032 (char *) "self",(char *) "maxValue", NULL
18033 };
18034
18035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18037 if (!SWIG_IsOK(res1)) {
18038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18039 }
18040 arg1 = reinterpret_cast< wxSlider * >(argp1);
18041 ecode2 = SWIG_AsVal_int(obj1, &val2);
18042 if (!SWIG_IsOK(ecode2)) {
18043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18044 }
18045 arg2 = static_cast< int >(val2);
18046 {
18047 PyThreadState* __tstate = wxPyBeginAllowThreads();
18048 (arg1)->SetMax(arg2);
18049 wxPyEndAllowThreads(__tstate);
18050 if (PyErr_Occurred()) SWIG_fail;
18051 }
18052 resultobj = SWIG_Py_Void();
18053 return resultobj;
18054 fail:
18055 return NULL;
18056 }
18057
18058
18059 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18060 PyObject *resultobj = 0;
18061 wxSlider *arg1 = (wxSlider *) 0 ;
18062 int arg2 ;
18063 void *argp1 = 0 ;
18064 int res1 = 0 ;
18065 int val2 ;
18066 int ecode2 = 0 ;
18067 PyObject * obj0 = 0 ;
18068 PyObject * obj1 = 0 ;
18069 char * kwnames[] = {
18070 (char *) "self",(char *) "lineSize", NULL
18071 };
18072
18073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18075 if (!SWIG_IsOK(res1)) {
18076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18077 }
18078 arg1 = reinterpret_cast< wxSlider * >(argp1);
18079 ecode2 = SWIG_AsVal_int(obj1, &val2);
18080 if (!SWIG_IsOK(ecode2)) {
18081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18082 }
18083 arg2 = static_cast< int >(val2);
18084 {
18085 PyThreadState* __tstate = wxPyBeginAllowThreads();
18086 (arg1)->SetLineSize(arg2);
18087 wxPyEndAllowThreads(__tstate);
18088 if (PyErr_Occurred()) SWIG_fail;
18089 }
18090 resultobj = SWIG_Py_Void();
18091 return resultobj;
18092 fail:
18093 return NULL;
18094 }
18095
18096
18097 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18098 PyObject *resultobj = 0;
18099 wxSlider *arg1 = (wxSlider *) 0 ;
18100 int arg2 ;
18101 void *argp1 = 0 ;
18102 int res1 = 0 ;
18103 int val2 ;
18104 int ecode2 = 0 ;
18105 PyObject * obj0 = 0 ;
18106 PyObject * obj1 = 0 ;
18107 char * kwnames[] = {
18108 (char *) "self",(char *) "pageSize", NULL
18109 };
18110
18111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18113 if (!SWIG_IsOK(res1)) {
18114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18115 }
18116 arg1 = reinterpret_cast< wxSlider * >(argp1);
18117 ecode2 = SWIG_AsVal_int(obj1, &val2);
18118 if (!SWIG_IsOK(ecode2)) {
18119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18120 }
18121 arg2 = static_cast< int >(val2);
18122 {
18123 PyThreadState* __tstate = wxPyBeginAllowThreads();
18124 (arg1)->SetPageSize(arg2);
18125 wxPyEndAllowThreads(__tstate);
18126 if (PyErr_Occurred()) SWIG_fail;
18127 }
18128 resultobj = SWIG_Py_Void();
18129 return resultobj;
18130 fail:
18131 return NULL;
18132 }
18133
18134
18135 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18136 PyObject *resultobj = 0;
18137 wxSlider *arg1 = (wxSlider *) 0 ;
18138 int result;
18139 void *argp1 = 0 ;
18140 int res1 = 0 ;
18141 PyObject *swig_obj[1] ;
18142
18143 if (!args) SWIG_fail;
18144 swig_obj[0] = args;
18145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18146 if (!SWIG_IsOK(res1)) {
18147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18148 }
18149 arg1 = reinterpret_cast< wxSlider * >(argp1);
18150 {
18151 PyThreadState* __tstate = wxPyBeginAllowThreads();
18152 result = (int)((wxSlider const *)arg1)->GetLineSize();
18153 wxPyEndAllowThreads(__tstate);
18154 if (PyErr_Occurred()) SWIG_fail;
18155 }
18156 resultobj = SWIG_From_int(static_cast< int >(result));
18157 return resultobj;
18158 fail:
18159 return NULL;
18160 }
18161
18162
18163 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18164 PyObject *resultobj = 0;
18165 wxSlider *arg1 = (wxSlider *) 0 ;
18166 int result;
18167 void *argp1 = 0 ;
18168 int res1 = 0 ;
18169 PyObject *swig_obj[1] ;
18170
18171 if (!args) SWIG_fail;
18172 swig_obj[0] = args;
18173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18174 if (!SWIG_IsOK(res1)) {
18175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18176 }
18177 arg1 = reinterpret_cast< wxSlider * >(argp1);
18178 {
18179 PyThreadState* __tstate = wxPyBeginAllowThreads();
18180 result = (int)((wxSlider const *)arg1)->GetPageSize();
18181 wxPyEndAllowThreads(__tstate);
18182 if (PyErr_Occurred()) SWIG_fail;
18183 }
18184 resultobj = SWIG_From_int(static_cast< int >(result));
18185 return resultobj;
18186 fail:
18187 return NULL;
18188 }
18189
18190
18191 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18192 PyObject *resultobj = 0;
18193 wxSlider *arg1 = (wxSlider *) 0 ;
18194 int arg2 ;
18195 void *argp1 = 0 ;
18196 int res1 = 0 ;
18197 int val2 ;
18198 int ecode2 = 0 ;
18199 PyObject * obj0 = 0 ;
18200 PyObject * obj1 = 0 ;
18201 char * kwnames[] = {
18202 (char *) "self",(char *) "lenPixels", NULL
18203 };
18204
18205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18207 if (!SWIG_IsOK(res1)) {
18208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18209 }
18210 arg1 = reinterpret_cast< wxSlider * >(argp1);
18211 ecode2 = SWIG_AsVal_int(obj1, &val2);
18212 if (!SWIG_IsOK(ecode2)) {
18213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18214 }
18215 arg2 = static_cast< int >(val2);
18216 {
18217 PyThreadState* __tstate = wxPyBeginAllowThreads();
18218 (arg1)->SetThumbLength(arg2);
18219 wxPyEndAllowThreads(__tstate);
18220 if (PyErr_Occurred()) SWIG_fail;
18221 }
18222 resultobj = SWIG_Py_Void();
18223 return resultobj;
18224 fail:
18225 return NULL;
18226 }
18227
18228
18229 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18230 PyObject *resultobj = 0;
18231 wxSlider *arg1 = (wxSlider *) 0 ;
18232 int result;
18233 void *argp1 = 0 ;
18234 int res1 = 0 ;
18235 PyObject *swig_obj[1] ;
18236
18237 if (!args) SWIG_fail;
18238 swig_obj[0] = args;
18239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18240 if (!SWIG_IsOK(res1)) {
18241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18242 }
18243 arg1 = reinterpret_cast< wxSlider * >(argp1);
18244 {
18245 PyThreadState* __tstate = wxPyBeginAllowThreads();
18246 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18247 wxPyEndAllowThreads(__tstate);
18248 if (PyErr_Occurred()) SWIG_fail;
18249 }
18250 resultobj = SWIG_From_int(static_cast< int >(result));
18251 return resultobj;
18252 fail:
18253 return NULL;
18254 }
18255
18256
18257 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18258 PyObject *resultobj = 0;
18259 wxSlider *arg1 = (wxSlider *) 0 ;
18260 int arg2 ;
18261 int arg3 = (int) 1 ;
18262 void *argp1 = 0 ;
18263 int res1 = 0 ;
18264 int val2 ;
18265 int ecode2 = 0 ;
18266 int val3 ;
18267 int ecode3 = 0 ;
18268 PyObject * obj0 = 0 ;
18269 PyObject * obj1 = 0 ;
18270 PyObject * obj2 = 0 ;
18271 char * kwnames[] = {
18272 (char *) "self",(char *) "n",(char *) "pos", NULL
18273 };
18274
18275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18277 if (!SWIG_IsOK(res1)) {
18278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18279 }
18280 arg1 = reinterpret_cast< wxSlider * >(argp1);
18281 ecode2 = SWIG_AsVal_int(obj1, &val2);
18282 if (!SWIG_IsOK(ecode2)) {
18283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18284 }
18285 arg2 = static_cast< int >(val2);
18286 if (obj2) {
18287 ecode3 = SWIG_AsVal_int(obj2, &val3);
18288 if (!SWIG_IsOK(ecode3)) {
18289 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18290 }
18291 arg3 = static_cast< int >(val3);
18292 }
18293 {
18294 PyThreadState* __tstate = wxPyBeginAllowThreads();
18295 (arg1)->SetTickFreq(arg2,arg3);
18296 wxPyEndAllowThreads(__tstate);
18297 if (PyErr_Occurred()) SWIG_fail;
18298 }
18299 resultobj = SWIG_Py_Void();
18300 return resultobj;
18301 fail:
18302 return NULL;
18303 }
18304
18305
18306 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18307 PyObject *resultobj = 0;
18308 wxSlider *arg1 = (wxSlider *) 0 ;
18309 int result;
18310 void *argp1 = 0 ;
18311 int res1 = 0 ;
18312 PyObject *swig_obj[1] ;
18313
18314 if (!args) SWIG_fail;
18315 swig_obj[0] = args;
18316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18317 if (!SWIG_IsOK(res1)) {
18318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18319 }
18320 arg1 = reinterpret_cast< wxSlider * >(argp1);
18321 {
18322 PyThreadState* __tstate = wxPyBeginAllowThreads();
18323 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18324 wxPyEndAllowThreads(__tstate);
18325 if (PyErr_Occurred()) SWIG_fail;
18326 }
18327 resultobj = SWIG_From_int(static_cast< int >(result));
18328 return resultobj;
18329 fail:
18330 return NULL;
18331 }
18332
18333
18334 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18335 PyObject *resultobj = 0;
18336 wxSlider *arg1 = (wxSlider *) 0 ;
18337 void *argp1 = 0 ;
18338 int res1 = 0 ;
18339 PyObject *swig_obj[1] ;
18340
18341 if (!args) SWIG_fail;
18342 swig_obj[0] = args;
18343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18344 if (!SWIG_IsOK(res1)) {
18345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18346 }
18347 arg1 = reinterpret_cast< wxSlider * >(argp1);
18348 {
18349 PyThreadState* __tstate = wxPyBeginAllowThreads();
18350 (arg1)->ClearTicks();
18351 wxPyEndAllowThreads(__tstate);
18352 if (PyErr_Occurred()) SWIG_fail;
18353 }
18354 resultobj = SWIG_Py_Void();
18355 return resultobj;
18356 fail:
18357 return NULL;
18358 }
18359
18360
18361 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18362 PyObject *resultobj = 0;
18363 wxSlider *arg1 = (wxSlider *) 0 ;
18364 int arg2 ;
18365 void *argp1 = 0 ;
18366 int res1 = 0 ;
18367 int val2 ;
18368 int ecode2 = 0 ;
18369 PyObject * obj0 = 0 ;
18370 PyObject * obj1 = 0 ;
18371 char * kwnames[] = {
18372 (char *) "self",(char *) "tickPos", NULL
18373 };
18374
18375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18377 if (!SWIG_IsOK(res1)) {
18378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18379 }
18380 arg1 = reinterpret_cast< wxSlider * >(argp1);
18381 ecode2 = SWIG_AsVal_int(obj1, &val2);
18382 if (!SWIG_IsOK(ecode2)) {
18383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18384 }
18385 arg2 = static_cast< int >(val2);
18386 {
18387 PyThreadState* __tstate = wxPyBeginAllowThreads();
18388 (arg1)->SetTick(arg2);
18389 wxPyEndAllowThreads(__tstate);
18390 if (PyErr_Occurred()) SWIG_fail;
18391 }
18392 resultobj = SWIG_Py_Void();
18393 return resultobj;
18394 fail:
18395 return NULL;
18396 }
18397
18398
18399 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18400 PyObject *resultobj = 0;
18401 wxSlider *arg1 = (wxSlider *) 0 ;
18402 void *argp1 = 0 ;
18403 int res1 = 0 ;
18404 PyObject *swig_obj[1] ;
18405
18406 if (!args) SWIG_fail;
18407 swig_obj[0] = args;
18408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18409 if (!SWIG_IsOK(res1)) {
18410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18411 }
18412 arg1 = reinterpret_cast< wxSlider * >(argp1);
18413 {
18414 PyThreadState* __tstate = wxPyBeginAllowThreads();
18415 (arg1)->ClearSel();
18416 wxPyEndAllowThreads(__tstate);
18417 if (PyErr_Occurred()) SWIG_fail;
18418 }
18419 resultobj = SWIG_Py_Void();
18420 return resultobj;
18421 fail:
18422 return NULL;
18423 }
18424
18425
18426 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18427 PyObject *resultobj = 0;
18428 wxSlider *arg1 = (wxSlider *) 0 ;
18429 int result;
18430 void *argp1 = 0 ;
18431 int res1 = 0 ;
18432 PyObject *swig_obj[1] ;
18433
18434 if (!args) SWIG_fail;
18435 swig_obj[0] = args;
18436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18437 if (!SWIG_IsOK(res1)) {
18438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18439 }
18440 arg1 = reinterpret_cast< wxSlider * >(argp1);
18441 {
18442 PyThreadState* __tstate = wxPyBeginAllowThreads();
18443 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18444 wxPyEndAllowThreads(__tstate);
18445 if (PyErr_Occurred()) SWIG_fail;
18446 }
18447 resultobj = SWIG_From_int(static_cast< int >(result));
18448 return resultobj;
18449 fail:
18450 return NULL;
18451 }
18452
18453
18454 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18455 PyObject *resultobj = 0;
18456 wxSlider *arg1 = (wxSlider *) 0 ;
18457 int result;
18458 void *argp1 = 0 ;
18459 int res1 = 0 ;
18460 PyObject *swig_obj[1] ;
18461
18462 if (!args) SWIG_fail;
18463 swig_obj[0] = args;
18464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18465 if (!SWIG_IsOK(res1)) {
18466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18467 }
18468 arg1 = reinterpret_cast< wxSlider * >(argp1);
18469 {
18470 PyThreadState* __tstate = wxPyBeginAllowThreads();
18471 result = (int)((wxSlider const *)arg1)->GetSelStart();
18472 wxPyEndAllowThreads(__tstate);
18473 if (PyErr_Occurred()) SWIG_fail;
18474 }
18475 resultobj = SWIG_From_int(static_cast< int >(result));
18476 return resultobj;
18477 fail:
18478 return NULL;
18479 }
18480
18481
18482 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18483 PyObject *resultobj = 0;
18484 wxSlider *arg1 = (wxSlider *) 0 ;
18485 int arg2 ;
18486 int arg3 ;
18487 void *argp1 = 0 ;
18488 int res1 = 0 ;
18489 int val2 ;
18490 int ecode2 = 0 ;
18491 int val3 ;
18492 int ecode3 = 0 ;
18493 PyObject * obj0 = 0 ;
18494 PyObject * obj1 = 0 ;
18495 PyObject * obj2 = 0 ;
18496 char * kwnames[] = {
18497 (char *) "self",(char *) "min",(char *) "max", NULL
18498 };
18499
18500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18502 if (!SWIG_IsOK(res1)) {
18503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18504 }
18505 arg1 = reinterpret_cast< wxSlider * >(argp1);
18506 ecode2 = SWIG_AsVal_int(obj1, &val2);
18507 if (!SWIG_IsOK(ecode2)) {
18508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18509 }
18510 arg2 = static_cast< int >(val2);
18511 ecode3 = SWIG_AsVal_int(obj2, &val3);
18512 if (!SWIG_IsOK(ecode3)) {
18513 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18514 }
18515 arg3 = static_cast< int >(val3);
18516 {
18517 PyThreadState* __tstate = wxPyBeginAllowThreads();
18518 (arg1)->SetSelection(arg2,arg3);
18519 wxPyEndAllowThreads(__tstate);
18520 if (PyErr_Occurred()) SWIG_fail;
18521 }
18522 resultobj = SWIG_Py_Void();
18523 return resultobj;
18524 fail:
18525 return NULL;
18526 }
18527
18528
18529 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18530 PyObject *resultobj = 0;
18531 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18532 SwigValueWrapper<wxVisualAttributes > result;
18533 int val1 ;
18534 int ecode1 = 0 ;
18535 PyObject * obj0 = 0 ;
18536 char * kwnames[] = {
18537 (char *) "variant", NULL
18538 };
18539
18540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18541 if (obj0) {
18542 ecode1 = SWIG_AsVal_int(obj0, &val1);
18543 if (!SWIG_IsOK(ecode1)) {
18544 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18545 }
18546 arg1 = static_cast< wxWindowVariant >(val1);
18547 }
18548 {
18549 if (!wxPyCheckForApp()) SWIG_fail;
18550 PyThreadState* __tstate = wxPyBeginAllowThreads();
18551 result = wxSlider::GetClassDefaultAttributes(arg1);
18552 wxPyEndAllowThreads(__tstate);
18553 if (PyErr_Occurred()) SWIG_fail;
18554 }
18555 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18556 return resultobj;
18557 fail:
18558 return NULL;
18559 }
18560
18561
18562 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18563 PyObject *obj;
18564 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18565 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18566 return SWIG_Py_Void();
18567 }
18568
18569 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18570 return SWIG_Python_InitShadowInstance(args);
18571 }
18572
18573 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18574 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18575 return 1;
18576 }
18577
18578
18579 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18580 PyObject *pyobj = 0;
18581
18582 {
18583 #if wxUSE_UNICODE
18584 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18585 #else
18586 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18587 #endif
18588 }
18589 return pyobj;
18590 }
18591
18592
18593 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18594 PyObject *resultobj = 0;
18595 wxWindow *arg1 = (wxWindow *) 0 ;
18596 int arg2 = (int) -1 ;
18597 wxString const &arg3_defvalue = wxPyEmptyString ;
18598 wxString *arg3 = (wxString *) &arg3_defvalue ;
18599 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18600 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18601 wxSize const &arg5_defvalue = wxDefaultSize ;
18602 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18603 long arg6 = (long) 0 ;
18604 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18605 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18606 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18607 wxString *arg8 = (wxString *) &arg8_defvalue ;
18608 wxToggleButton *result = 0 ;
18609 void *argp1 = 0 ;
18610 int res1 = 0 ;
18611 int val2 ;
18612 int ecode2 = 0 ;
18613 bool temp3 = false ;
18614 wxPoint temp4 ;
18615 wxSize temp5 ;
18616 long val6 ;
18617 int ecode6 = 0 ;
18618 void *argp7 = 0 ;
18619 int res7 = 0 ;
18620 bool temp8 = false ;
18621 PyObject * obj0 = 0 ;
18622 PyObject * obj1 = 0 ;
18623 PyObject * obj2 = 0 ;
18624 PyObject * obj3 = 0 ;
18625 PyObject * obj4 = 0 ;
18626 PyObject * obj5 = 0 ;
18627 PyObject * obj6 = 0 ;
18628 PyObject * obj7 = 0 ;
18629 char * kwnames[] = {
18630 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18631 };
18632
18633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18635 if (!SWIG_IsOK(res1)) {
18636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18637 }
18638 arg1 = reinterpret_cast< wxWindow * >(argp1);
18639 if (obj1) {
18640 ecode2 = SWIG_AsVal_int(obj1, &val2);
18641 if (!SWIG_IsOK(ecode2)) {
18642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18643 }
18644 arg2 = static_cast< int >(val2);
18645 }
18646 if (obj2) {
18647 {
18648 arg3 = wxString_in_helper(obj2);
18649 if (arg3 == NULL) SWIG_fail;
18650 temp3 = true;
18651 }
18652 }
18653 if (obj3) {
18654 {
18655 arg4 = &temp4;
18656 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18657 }
18658 }
18659 if (obj4) {
18660 {
18661 arg5 = &temp5;
18662 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18663 }
18664 }
18665 if (obj5) {
18666 ecode6 = SWIG_AsVal_long(obj5, &val6);
18667 if (!SWIG_IsOK(ecode6)) {
18668 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18669 }
18670 arg6 = static_cast< long >(val6);
18671 }
18672 if (obj6) {
18673 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18674 if (!SWIG_IsOK(res7)) {
18675 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18676 }
18677 if (!argp7) {
18678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18679 }
18680 arg7 = reinterpret_cast< wxValidator * >(argp7);
18681 }
18682 if (obj7) {
18683 {
18684 arg8 = wxString_in_helper(obj7);
18685 if (arg8 == NULL) SWIG_fail;
18686 temp8 = true;
18687 }
18688 }
18689 {
18690 if (!wxPyCheckForApp()) SWIG_fail;
18691 PyThreadState* __tstate = wxPyBeginAllowThreads();
18692 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18693 wxPyEndAllowThreads(__tstate);
18694 if (PyErr_Occurred()) SWIG_fail;
18695 }
18696 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18697 {
18698 if (temp3)
18699 delete arg3;
18700 }
18701 {
18702 if (temp8)
18703 delete arg8;
18704 }
18705 return resultobj;
18706 fail:
18707 {
18708 if (temp3)
18709 delete arg3;
18710 }
18711 {
18712 if (temp8)
18713 delete arg8;
18714 }
18715 return NULL;
18716 }
18717
18718
18719 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18720 PyObject *resultobj = 0;
18721 wxToggleButton *result = 0 ;
18722
18723 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18724 {
18725 if (!wxPyCheckForApp()) SWIG_fail;
18726 PyThreadState* __tstate = wxPyBeginAllowThreads();
18727 result = (wxToggleButton *)new wxToggleButton();
18728 wxPyEndAllowThreads(__tstate);
18729 if (PyErr_Occurred()) SWIG_fail;
18730 }
18731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18732 return resultobj;
18733 fail:
18734 return NULL;
18735 }
18736
18737
18738 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18739 PyObject *resultobj = 0;
18740 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18741 wxWindow *arg2 = (wxWindow *) 0 ;
18742 int arg3 = (int) -1 ;
18743 wxString const &arg4_defvalue = wxPyEmptyString ;
18744 wxString *arg4 = (wxString *) &arg4_defvalue ;
18745 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18746 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18747 wxSize const &arg6_defvalue = wxDefaultSize ;
18748 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18749 long arg7 = (long) 0 ;
18750 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18751 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18752 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18753 wxString *arg9 = (wxString *) &arg9_defvalue ;
18754 bool result;
18755 void *argp1 = 0 ;
18756 int res1 = 0 ;
18757 void *argp2 = 0 ;
18758 int res2 = 0 ;
18759 int val3 ;
18760 int ecode3 = 0 ;
18761 bool temp4 = false ;
18762 wxPoint temp5 ;
18763 wxSize temp6 ;
18764 long val7 ;
18765 int ecode7 = 0 ;
18766 void *argp8 = 0 ;
18767 int res8 = 0 ;
18768 bool temp9 = false ;
18769 PyObject * obj0 = 0 ;
18770 PyObject * obj1 = 0 ;
18771 PyObject * obj2 = 0 ;
18772 PyObject * obj3 = 0 ;
18773 PyObject * obj4 = 0 ;
18774 PyObject * obj5 = 0 ;
18775 PyObject * obj6 = 0 ;
18776 PyObject * obj7 = 0 ;
18777 PyObject * obj8 = 0 ;
18778 char * kwnames[] = {
18779 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18780 };
18781
18782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18784 if (!SWIG_IsOK(res1)) {
18785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18786 }
18787 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18788 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18789 if (!SWIG_IsOK(res2)) {
18790 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18791 }
18792 arg2 = reinterpret_cast< wxWindow * >(argp2);
18793 if (obj2) {
18794 ecode3 = SWIG_AsVal_int(obj2, &val3);
18795 if (!SWIG_IsOK(ecode3)) {
18796 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18797 }
18798 arg3 = static_cast< int >(val3);
18799 }
18800 if (obj3) {
18801 {
18802 arg4 = wxString_in_helper(obj3);
18803 if (arg4 == NULL) SWIG_fail;
18804 temp4 = true;
18805 }
18806 }
18807 if (obj4) {
18808 {
18809 arg5 = &temp5;
18810 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18811 }
18812 }
18813 if (obj5) {
18814 {
18815 arg6 = &temp6;
18816 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18817 }
18818 }
18819 if (obj6) {
18820 ecode7 = SWIG_AsVal_long(obj6, &val7);
18821 if (!SWIG_IsOK(ecode7)) {
18822 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18823 }
18824 arg7 = static_cast< long >(val7);
18825 }
18826 if (obj7) {
18827 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18828 if (!SWIG_IsOK(res8)) {
18829 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18830 }
18831 if (!argp8) {
18832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18833 }
18834 arg8 = reinterpret_cast< wxValidator * >(argp8);
18835 }
18836 if (obj8) {
18837 {
18838 arg9 = wxString_in_helper(obj8);
18839 if (arg9 == NULL) SWIG_fail;
18840 temp9 = true;
18841 }
18842 }
18843 {
18844 PyThreadState* __tstate = wxPyBeginAllowThreads();
18845 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18846 wxPyEndAllowThreads(__tstate);
18847 if (PyErr_Occurred()) SWIG_fail;
18848 }
18849 {
18850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18851 }
18852 {
18853 if (temp4)
18854 delete arg4;
18855 }
18856 {
18857 if (temp9)
18858 delete arg9;
18859 }
18860 return resultobj;
18861 fail:
18862 {
18863 if (temp4)
18864 delete arg4;
18865 }
18866 {
18867 if (temp9)
18868 delete arg9;
18869 }
18870 return NULL;
18871 }
18872
18873
18874 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18875 PyObject *resultobj = 0;
18876 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18877 bool arg2 ;
18878 void *argp1 = 0 ;
18879 int res1 = 0 ;
18880 bool val2 ;
18881 int ecode2 = 0 ;
18882 PyObject * obj0 = 0 ;
18883 PyObject * obj1 = 0 ;
18884 char * kwnames[] = {
18885 (char *) "self",(char *) "value", NULL
18886 };
18887
18888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18890 if (!SWIG_IsOK(res1)) {
18891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18892 }
18893 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18894 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18895 if (!SWIG_IsOK(ecode2)) {
18896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18897 }
18898 arg2 = static_cast< bool >(val2);
18899 {
18900 PyThreadState* __tstate = wxPyBeginAllowThreads();
18901 (arg1)->SetValue(arg2);
18902 wxPyEndAllowThreads(__tstate);
18903 if (PyErr_Occurred()) SWIG_fail;
18904 }
18905 resultobj = SWIG_Py_Void();
18906 return resultobj;
18907 fail:
18908 return NULL;
18909 }
18910
18911
18912 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18913 PyObject *resultobj = 0;
18914 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18915 bool result;
18916 void *argp1 = 0 ;
18917 int res1 = 0 ;
18918 PyObject *swig_obj[1] ;
18919
18920 if (!args) SWIG_fail;
18921 swig_obj[0] = args;
18922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18923 if (!SWIG_IsOK(res1)) {
18924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18925 }
18926 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18927 {
18928 PyThreadState* __tstate = wxPyBeginAllowThreads();
18929 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18930 wxPyEndAllowThreads(__tstate);
18931 if (PyErr_Occurred()) SWIG_fail;
18932 }
18933 {
18934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18935 }
18936 return resultobj;
18937 fail:
18938 return NULL;
18939 }
18940
18941
18942 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18943 PyObject *resultobj = 0;
18944 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18945 SwigValueWrapper<wxVisualAttributes > result;
18946 int val1 ;
18947 int ecode1 = 0 ;
18948 PyObject * obj0 = 0 ;
18949 char * kwnames[] = {
18950 (char *) "variant", NULL
18951 };
18952
18953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18954 if (obj0) {
18955 ecode1 = SWIG_AsVal_int(obj0, &val1);
18956 if (!SWIG_IsOK(ecode1)) {
18957 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18958 }
18959 arg1 = static_cast< wxWindowVariant >(val1);
18960 }
18961 {
18962 if (!wxPyCheckForApp()) SWIG_fail;
18963 PyThreadState* __tstate = wxPyBeginAllowThreads();
18964 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18965 wxPyEndAllowThreads(__tstate);
18966 if (PyErr_Occurred()) SWIG_fail;
18967 }
18968 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18969 return resultobj;
18970 fail:
18971 return NULL;
18972 }
18973
18974
18975 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18976 PyObject *obj;
18977 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18978 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18979 return SWIG_Py_Void();
18980 }
18981
18982 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18983 return SWIG_Python_InitShadowInstance(args);
18984 }
18985
18986 SWIGINTERN int NotebookNameStr_set(PyObject *) {
18987 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18988 return 1;
18989 }
18990
18991
18992 SWIGINTERN PyObject *NotebookNameStr_get(void) {
18993 PyObject *pyobj = 0;
18994
18995 {
18996 #if wxUSE_UNICODE
18997 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18998 #else
18999 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19000 #endif
19001 }
19002 return pyobj;
19003 }
19004
19005
19006 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19007 PyObject *resultobj = 0;
19008 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19009 size_t result;
19010 void *argp1 = 0 ;
19011 int res1 = 0 ;
19012 PyObject *swig_obj[1] ;
19013
19014 if (!args) SWIG_fail;
19015 swig_obj[0] = args;
19016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19017 if (!SWIG_IsOK(res1)) {
19018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19019 }
19020 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19021 {
19022 PyThreadState* __tstate = wxPyBeginAllowThreads();
19023 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19024 wxPyEndAllowThreads(__tstate);
19025 if (PyErr_Occurred()) SWIG_fail;
19026 }
19027 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19028 return resultobj;
19029 fail:
19030 return NULL;
19031 }
19032
19033
19034 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19035 PyObject *resultobj = 0;
19036 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19037 size_t arg2 ;
19038 wxWindow *result = 0 ;
19039 void *argp1 = 0 ;
19040 int res1 = 0 ;
19041 size_t val2 ;
19042 int ecode2 = 0 ;
19043 PyObject * obj0 = 0 ;
19044 PyObject * obj1 = 0 ;
19045 char * kwnames[] = {
19046 (char *) "self",(char *) "n", NULL
19047 };
19048
19049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19051 if (!SWIG_IsOK(res1)) {
19052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19053 }
19054 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19055 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19056 if (!SWIG_IsOK(ecode2)) {
19057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19058 }
19059 arg2 = static_cast< size_t >(val2);
19060 {
19061 PyThreadState* __tstate = wxPyBeginAllowThreads();
19062 result = (wxWindow *)(arg1)->GetPage(arg2);
19063 wxPyEndAllowThreads(__tstate);
19064 if (PyErr_Occurred()) SWIG_fail;
19065 }
19066 {
19067 resultobj = wxPyMake_wxObject(result, 0);
19068 }
19069 return resultobj;
19070 fail:
19071 return NULL;
19072 }
19073
19074
19075 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19076 PyObject *resultobj = 0;
19077 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19078 wxWindow *result = 0 ;
19079 void *argp1 = 0 ;
19080 int res1 = 0 ;
19081 PyObject *swig_obj[1] ;
19082
19083 if (!args) SWIG_fail;
19084 swig_obj[0] = args;
19085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19086 if (!SWIG_IsOK(res1)) {
19087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19088 }
19089 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19090 {
19091 PyThreadState* __tstate = wxPyBeginAllowThreads();
19092 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19093 wxPyEndAllowThreads(__tstate);
19094 if (PyErr_Occurred()) SWIG_fail;
19095 }
19096 {
19097 resultobj = wxPyMake_wxObject(result, 0);
19098 }
19099 return resultobj;
19100 fail:
19101 return NULL;
19102 }
19103
19104
19105 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19106 PyObject *resultobj = 0;
19107 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19108 int result;
19109 void *argp1 = 0 ;
19110 int res1 = 0 ;
19111 PyObject *swig_obj[1] ;
19112
19113 if (!args) SWIG_fail;
19114 swig_obj[0] = args;
19115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19116 if (!SWIG_IsOK(res1)) {
19117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19118 }
19119 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19120 {
19121 PyThreadState* __tstate = wxPyBeginAllowThreads();
19122 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19123 wxPyEndAllowThreads(__tstate);
19124 if (PyErr_Occurred()) SWIG_fail;
19125 }
19126 resultobj = SWIG_From_int(static_cast< int >(result));
19127 return resultobj;
19128 fail:
19129 return NULL;
19130 }
19131
19132
19133 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19134 PyObject *resultobj = 0;
19135 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19136 size_t arg2 ;
19137 wxString *arg3 = 0 ;
19138 bool result;
19139 void *argp1 = 0 ;
19140 int res1 = 0 ;
19141 size_t val2 ;
19142 int ecode2 = 0 ;
19143 bool temp3 = false ;
19144 PyObject * obj0 = 0 ;
19145 PyObject * obj1 = 0 ;
19146 PyObject * obj2 = 0 ;
19147 char * kwnames[] = {
19148 (char *) "self",(char *) "n",(char *) "strText", NULL
19149 };
19150
19151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19153 if (!SWIG_IsOK(res1)) {
19154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19155 }
19156 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19157 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19158 if (!SWIG_IsOK(ecode2)) {
19159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19160 }
19161 arg2 = static_cast< size_t >(val2);
19162 {
19163 arg3 = wxString_in_helper(obj2);
19164 if (arg3 == NULL) SWIG_fail;
19165 temp3 = true;
19166 }
19167 {
19168 PyThreadState* __tstate = wxPyBeginAllowThreads();
19169 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19170 wxPyEndAllowThreads(__tstate);
19171 if (PyErr_Occurred()) SWIG_fail;
19172 }
19173 {
19174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19175 }
19176 {
19177 if (temp3)
19178 delete arg3;
19179 }
19180 return resultobj;
19181 fail:
19182 {
19183 if (temp3)
19184 delete arg3;
19185 }
19186 return NULL;
19187 }
19188
19189
19190 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19191 PyObject *resultobj = 0;
19192 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19193 size_t arg2 ;
19194 wxString result;
19195 void *argp1 = 0 ;
19196 int res1 = 0 ;
19197 size_t val2 ;
19198 int ecode2 = 0 ;
19199 PyObject * obj0 = 0 ;
19200 PyObject * obj1 = 0 ;
19201 char * kwnames[] = {
19202 (char *) "self",(char *) "n", NULL
19203 };
19204
19205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19207 if (!SWIG_IsOK(res1)) {
19208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19209 }
19210 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19211 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19212 if (!SWIG_IsOK(ecode2)) {
19213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19214 }
19215 arg2 = static_cast< size_t >(val2);
19216 {
19217 PyThreadState* __tstate = wxPyBeginAllowThreads();
19218 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19219 wxPyEndAllowThreads(__tstate);
19220 if (PyErr_Occurred()) SWIG_fail;
19221 }
19222 {
19223 #if wxUSE_UNICODE
19224 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19225 #else
19226 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19227 #endif
19228 }
19229 return resultobj;
19230 fail:
19231 return NULL;
19232 }
19233
19234
19235 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19236 PyObject *resultobj = 0;
19237 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19238 wxImageList *arg2 = (wxImageList *) 0 ;
19239 void *argp1 = 0 ;
19240 int res1 = 0 ;
19241 void *argp2 = 0 ;
19242 int res2 = 0 ;
19243 PyObject * obj0 = 0 ;
19244 PyObject * obj1 = 0 ;
19245 char * kwnames[] = {
19246 (char *) "self",(char *) "imageList", NULL
19247 };
19248
19249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19251 if (!SWIG_IsOK(res1)) {
19252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19253 }
19254 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19255 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19256 if (!SWIG_IsOK(res2)) {
19257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19258 }
19259 arg2 = reinterpret_cast< wxImageList * >(argp2);
19260 {
19261 PyThreadState* __tstate = wxPyBeginAllowThreads();
19262 (arg1)->SetImageList(arg2);
19263 wxPyEndAllowThreads(__tstate);
19264 if (PyErr_Occurred()) SWIG_fail;
19265 }
19266 resultobj = SWIG_Py_Void();
19267 return resultobj;
19268 fail:
19269 return NULL;
19270 }
19271
19272
19273 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19274 PyObject *resultobj = 0;
19275 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19276 wxImageList *arg2 = (wxImageList *) 0 ;
19277 void *argp1 = 0 ;
19278 int res1 = 0 ;
19279 int res2 = 0 ;
19280 PyObject * obj0 = 0 ;
19281 PyObject * obj1 = 0 ;
19282 char * kwnames[] = {
19283 (char *) "self",(char *) "imageList", NULL
19284 };
19285
19286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19288 if (!SWIG_IsOK(res1)) {
19289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19290 }
19291 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19292 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19293 if (!SWIG_IsOK(res2)) {
19294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19295 }
19296 {
19297 PyThreadState* __tstate = wxPyBeginAllowThreads();
19298 (arg1)->AssignImageList(arg2);
19299 wxPyEndAllowThreads(__tstate);
19300 if (PyErr_Occurred()) SWIG_fail;
19301 }
19302 resultobj = SWIG_Py_Void();
19303 return resultobj;
19304 fail:
19305 return NULL;
19306 }
19307
19308
19309 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19310 PyObject *resultobj = 0;
19311 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19312 wxImageList *result = 0 ;
19313 void *argp1 = 0 ;
19314 int res1 = 0 ;
19315 PyObject *swig_obj[1] ;
19316
19317 if (!args) SWIG_fail;
19318 swig_obj[0] = args;
19319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19320 if (!SWIG_IsOK(res1)) {
19321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19322 }
19323 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19324 {
19325 PyThreadState* __tstate = wxPyBeginAllowThreads();
19326 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19327 wxPyEndAllowThreads(__tstate);
19328 if (PyErr_Occurred()) SWIG_fail;
19329 }
19330 {
19331 resultobj = wxPyMake_wxObject(result, (bool)0);
19332 }
19333 return resultobj;
19334 fail:
19335 return NULL;
19336 }
19337
19338
19339 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19340 PyObject *resultobj = 0;
19341 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19342 size_t arg2 ;
19343 int result;
19344 void *argp1 = 0 ;
19345 int res1 = 0 ;
19346 size_t val2 ;
19347 int ecode2 = 0 ;
19348 PyObject * obj0 = 0 ;
19349 PyObject * obj1 = 0 ;
19350 char * kwnames[] = {
19351 (char *) "self",(char *) "n", NULL
19352 };
19353
19354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19356 if (!SWIG_IsOK(res1)) {
19357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19358 }
19359 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19360 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19361 if (!SWIG_IsOK(ecode2)) {
19362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19363 }
19364 arg2 = static_cast< size_t >(val2);
19365 {
19366 PyThreadState* __tstate = wxPyBeginAllowThreads();
19367 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19368 wxPyEndAllowThreads(__tstate);
19369 if (PyErr_Occurred()) SWIG_fail;
19370 }
19371 resultobj = SWIG_From_int(static_cast< int >(result));
19372 return resultobj;
19373 fail:
19374 return NULL;
19375 }
19376
19377
19378 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19379 PyObject *resultobj = 0;
19380 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19381 size_t arg2 ;
19382 int arg3 ;
19383 bool result;
19384 void *argp1 = 0 ;
19385 int res1 = 0 ;
19386 size_t val2 ;
19387 int ecode2 = 0 ;
19388 int val3 ;
19389 int ecode3 = 0 ;
19390 PyObject * obj0 = 0 ;
19391 PyObject * obj1 = 0 ;
19392 PyObject * obj2 = 0 ;
19393 char * kwnames[] = {
19394 (char *) "self",(char *) "n",(char *) "imageId", NULL
19395 };
19396
19397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19399 if (!SWIG_IsOK(res1)) {
19400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19401 }
19402 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19403 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19404 if (!SWIG_IsOK(ecode2)) {
19405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19406 }
19407 arg2 = static_cast< size_t >(val2);
19408 ecode3 = SWIG_AsVal_int(obj2, &val3);
19409 if (!SWIG_IsOK(ecode3)) {
19410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19411 }
19412 arg3 = static_cast< int >(val3);
19413 {
19414 PyThreadState* __tstate = wxPyBeginAllowThreads();
19415 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19416 wxPyEndAllowThreads(__tstate);
19417 if (PyErr_Occurred()) SWIG_fail;
19418 }
19419 {
19420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19421 }
19422 return resultobj;
19423 fail:
19424 return NULL;
19425 }
19426
19427
19428 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19429 PyObject *resultobj = 0;
19430 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19431 wxSize *arg2 = 0 ;
19432 void *argp1 = 0 ;
19433 int res1 = 0 ;
19434 wxSize temp2 ;
19435 PyObject * obj0 = 0 ;
19436 PyObject * obj1 = 0 ;
19437 char * kwnames[] = {
19438 (char *) "self",(char *) "size", NULL
19439 };
19440
19441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19443 if (!SWIG_IsOK(res1)) {
19444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19445 }
19446 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19447 {
19448 arg2 = &temp2;
19449 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19450 }
19451 {
19452 PyThreadState* __tstate = wxPyBeginAllowThreads();
19453 (arg1)->SetPageSize((wxSize const &)*arg2);
19454 wxPyEndAllowThreads(__tstate);
19455 if (PyErr_Occurred()) SWIG_fail;
19456 }
19457 resultobj = SWIG_Py_Void();
19458 return resultobj;
19459 fail:
19460 return NULL;
19461 }
19462
19463
19464 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19465 PyObject *resultobj = 0;
19466 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19467 wxSize *arg2 = 0 ;
19468 wxSize result;
19469 void *argp1 = 0 ;
19470 int res1 = 0 ;
19471 wxSize temp2 ;
19472 PyObject * obj0 = 0 ;
19473 PyObject * obj1 = 0 ;
19474 char * kwnames[] = {
19475 (char *) "self",(char *) "sizePage", NULL
19476 };
19477
19478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",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_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19482 }
19483 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19484 {
19485 arg2 = &temp2;
19486 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19487 }
19488 {
19489 PyThreadState* __tstate = wxPyBeginAllowThreads();
19490 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19491 wxPyEndAllowThreads(__tstate);
19492 if (PyErr_Occurred()) SWIG_fail;
19493 }
19494 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19495 return resultobj;
19496 fail:
19497 return NULL;
19498 }
19499
19500
19501 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19502 PyObject *resultobj = 0;
19503 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19504 unsigned int result;
19505 void *argp1 = 0 ;
19506 int res1 = 0 ;
19507 PyObject *swig_obj[1] ;
19508
19509 if (!args) SWIG_fail;
19510 swig_obj[0] = args;
19511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19512 if (!SWIG_IsOK(res1)) {
19513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19514 }
19515 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19516 {
19517 PyThreadState* __tstate = wxPyBeginAllowThreads();
19518 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19519 wxPyEndAllowThreads(__tstate);
19520 if (PyErr_Occurred()) SWIG_fail;
19521 }
19522 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19523 return resultobj;
19524 fail:
19525 return NULL;
19526 }
19527
19528
19529 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19530 PyObject *resultobj = 0;
19531 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19532 unsigned int arg2 ;
19533 void *argp1 = 0 ;
19534 int res1 = 0 ;
19535 unsigned int val2 ;
19536 int ecode2 = 0 ;
19537 PyObject * obj0 = 0 ;
19538 PyObject * obj1 = 0 ;
19539 char * kwnames[] = {
19540 (char *) "self",(char *) "internalBorder", NULL
19541 };
19542
19543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19545 if (!SWIG_IsOK(res1)) {
19546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19547 }
19548 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19549 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19550 if (!SWIG_IsOK(ecode2)) {
19551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19552 }
19553 arg2 = static_cast< unsigned int >(val2);
19554 {
19555 PyThreadState* __tstate = wxPyBeginAllowThreads();
19556 (arg1)->SetInternalBorder(arg2);
19557 wxPyEndAllowThreads(__tstate);
19558 if (PyErr_Occurred()) SWIG_fail;
19559 }
19560 resultobj = SWIG_Py_Void();
19561 return resultobj;
19562 fail:
19563 return NULL;
19564 }
19565
19566
19567 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19568 PyObject *resultobj = 0;
19569 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19570 bool result;
19571 void *argp1 = 0 ;
19572 int res1 = 0 ;
19573 PyObject *swig_obj[1] ;
19574
19575 if (!args) SWIG_fail;
19576 swig_obj[0] = args;
19577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19578 if (!SWIG_IsOK(res1)) {
19579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19580 }
19581 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19582 {
19583 PyThreadState* __tstate = wxPyBeginAllowThreads();
19584 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19585 wxPyEndAllowThreads(__tstate);
19586 if (PyErr_Occurred()) SWIG_fail;
19587 }
19588 {
19589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19590 }
19591 return resultobj;
19592 fail:
19593 return NULL;
19594 }
19595
19596
19597 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19598 PyObject *resultobj = 0;
19599 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19600 int arg2 ;
19601 void *argp1 = 0 ;
19602 int res1 = 0 ;
19603 int val2 ;
19604 int ecode2 = 0 ;
19605 PyObject * obj0 = 0 ;
19606 PyObject * obj1 = 0 ;
19607 char * kwnames[] = {
19608 (char *) "self",(char *) "margin", NULL
19609 };
19610
19611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19613 if (!SWIG_IsOK(res1)) {
19614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19615 }
19616 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19617 ecode2 = SWIG_AsVal_int(obj1, &val2);
19618 if (!SWIG_IsOK(ecode2)) {
19619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19620 }
19621 arg2 = static_cast< int >(val2);
19622 {
19623 PyThreadState* __tstate = wxPyBeginAllowThreads();
19624 (arg1)->SetControlMargin(arg2);
19625 wxPyEndAllowThreads(__tstate);
19626 if (PyErr_Occurred()) SWIG_fail;
19627 }
19628 resultobj = SWIG_Py_Void();
19629 return resultobj;
19630 fail:
19631 return NULL;
19632 }
19633
19634
19635 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19636 PyObject *resultobj = 0;
19637 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19638 int result;
19639 void *argp1 = 0 ;
19640 int res1 = 0 ;
19641 PyObject *swig_obj[1] ;
19642
19643 if (!args) SWIG_fail;
19644 swig_obj[0] = args;
19645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19646 if (!SWIG_IsOK(res1)) {
19647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19648 }
19649 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19650 {
19651 PyThreadState* __tstate = wxPyBeginAllowThreads();
19652 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19653 wxPyEndAllowThreads(__tstate);
19654 if (PyErr_Occurred()) SWIG_fail;
19655 }
19656 resultobj = SWIG_From_int(static_cast< int >(result));
19657 return resultobj;
19658 fail:
19659 return NULL;
19660 }
19661
19662
19663 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19664 PyObject *resultobj = 0;
19665 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19666 bool arg2 ;
19667 void *argp1 = 0 ;
19668 int res1 = 0 ;
19669 bool val2 ;
19670 int ecode2 = 0 ;
19671 PyObject * obj0 = 0 ;
19672 PyObject * obj1 = 0 ;
19673 char * kwnames[] = {
19674 (char *) "self",(char *) "fit", NULL
19675 };
19676
19677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19679 if (!SWIG_IsOK(res1)) {
19680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19681 }
19682 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19683 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19684 if (!SWIG_IsOK(ecode2)) {
19685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19686 }
19687 arg2 = static_cast< bool >(val2);
19688 {
19689 PyThreadState* __tstate = wxPyBeginAllowThreads();
19690 (arg1)->SetFitToCurrentPage(arg2);
19691 wxPyEndAllowThreads(__tstate);
19692 if (PyErr_Occurred()) SWIG_fail;
19693 }
19694 resultobj = SWIG_Py_Void();
19695 return resultobj;
19696 fail:
19697 return NULL;
19698 }
19699
19700
19701 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19702 PyObject *resultobj = 0;
19703 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19704 bool result;
19705 void *argp1 = 0 ;
19706 int res1 = 0 ;
19707 PyObject *swig_obj[1] ;
19708
19709 if (!args) SWIG_fail;
19710 swig_obj[0] = args;
19711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19712 if (!SWIG_IsOK(res1)) {
19713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19714 }
19715 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19716 {
19717 PyThreadState* __tstate = wxPyBeginAllowThreads();
19718 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19719 wxPyEndAllowThreads(__tstate);
19720 if (PyErr_Occurred()) SWIG_fail;
19721 }
19722 {
19723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19724 }
19725 return resultobj;
19726 fail:
19727 return NULL;
19728 }
19729
19730
19731 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19732 PyObject *resultobj = 0;
19733 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19734 wxSizer *result = 0 ;
19735 void *argp1 = 0 ;
19736 int res1 = 0 ;
19737 PyObject *swig_obj[1] ;
19738
19739 if (!args) SWIG_fail;
19740 swig_obj[0] = args;
19741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19742 if (!SWIG_IsOK(res1)) {
19743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19744 }
19745 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19746 {
19747 PyThreadState* __tstate = wxPyBeginAllowThreads();
19748 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19749 wxPyEndAllowThreads(__tstate);
19750 if (PyErr_Occurred()) SWIG_fail;
19751 }
19752 {
19753 resultobj = wxPyMake_wxObject(result, (bool)0);
19754 }
19755 return resultobj;
19756 fail:
19757 return NULL;
19758 }
19759
19760
19761 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19762 PyObject *resultobj = 0;
19763 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19764 size_t arg2 ;
19765 bool result;
19766 void *argp1 = 0 ;
19767 int res1 = 0 ;
19768 size_t val2 ;
19769 int ecode2 = 0 ;
19770 PyObject * obj0 = 0 ;
19771 PyObject * obj1 = 0 ;
19772 char * kwnames[] = {
19773 (char *) "self",(char *) "n", NULL
19774 };
19775
19776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19778 if (!SWIG_IsOK(res1)) {
19779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19780 }
19781 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19782 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19783 if (!SWIG_IsOK(ecode2)) {
19784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19785 }
19786 arg2 = static_cast< size_t >(val2);
19787 {
19788 PyThreadState* __tstate = wxPyBeginAllowThreads();
19789 result = (bool)(arg1)->DeletePage(arg2);
19790 wxPyEndAllowThreads(__tstate);
19791 if (PyErr_Occurred()) SWIG_fail;
19792 }
19793 {
19794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19795 }
19796 return resultobj;
19797 fail:
19798 return NULL;
19799 }
19800
19801
19802 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19803 PyObject *resultobj = 0;
19804 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19805 size_t arg2 ;
19806 bool result;
19807 void *argp1 = 0 ;
19808 int res1 = 0 ;
19809 size_t val2 ;
19810 int ecode2 = 0 ;
19811 PyObject * obj0 = 0 ;
19812 PyObject * obj1 = 0 ;
19813 char * kwnames[] = {
19814 (char *) "self",(char *) "n", NULL
19815 };
19816
19817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19819 if (!SWIG_IsOK(res1)) {
19820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19821 }
19822 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19823 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19824 if (!SWIG_IsOK(ecode2)) {
19825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19826 }
19827 arg2 = static_cast< size_t >(val2);
19828 {
19829 PyThreadState* __tstate = wxPyBeginAllowThreads();
19830 result = (bool)(arg1)->RemovePage(arg2);
19831 wxPyEndAllowThreads(__tstate);
19832 if (PyErr_Occurred()) SWIG_fail;
19833 }
19834 {
19835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19836 }
19837 return resultobj;
19838 fail:
19839 return NULL;
19840 }
19841
19842
19843 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19844 PyObject *resultobj = 0;
19845 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19846 bool result;
19847 void *argp1 = 0 ;
19848 int res1 = 0 ;
19849 PyObject *swig_obj[1] ;
19850
19851 if (!args) SWIG_fail;
19852 swig_obj[0] = args;
19853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19854 if (!SWIG_IsOK(res1)) {
19855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19856 }
19857 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19858 {
19859 PyThreadState* __tstate = wxPyBeginAllowThreads();
19860 result = (bool)(arg1)->DeleteAllPages();
19861 wxPyEndAllowThreads(__tstate);
19862 if (PyErr_Occurred()) SWIG_fail;
19863 }
19864 {
19865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19866 }
19867 return resultobj;
19868 fail:
19869 return NULL;
19870 }
19871
19872
19873 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19874 PyObject *resultobj = 0;
19875 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19876 wxWindow *arg2 = (wxWindow *) 0 ;
19877 wxString *arg3 = 0 ;
19878 bool arg4 = (bool) false ;
19879 int arg5 = (int) -1 ;
19880 bool result;
19881 void *argp1 = 0 ;
19882 int res1 = 0 ;
19883 void *argp2 = 0 ;
19884 int res2 = 0 ;
19885 bool temp3 = false ;
19886 bool val4 ;
19887 int ecode4 = 0 ;
19888 int val5 ;
19889 int ecode5 = 0 ;
19890 PyObject * obj0 = 0 ;
19891 PyObject * obj1 = 0 ;
19892 PyObject * obj2 = 0 ;
19893 PyObject * obj3 = 0 ;
19894 PyObject * obj4 = 0 ;
19895 char * kwnames[] = {
19896 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19897 };
19898
19899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19901 if (!SWIG_IsOK(res1)) {
19902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19903 }
19904 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19905 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19906 if (!SWIG_IsOK(res2)) {
19907 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19908 }
19909 arg2 = reinterpret_cast< wxWindow * >(argp2);
19910 {
19911 arg3 = wxString_in_helper(obj2);
19912 if (arg3 == NULL) SWIG_fail;
19913 temp3 = true;
19914 }
19915 if (obj3) {
19916 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19917 if (!SWIG_IsOK(ecode4)) {
19918 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19919 }
19920 arg4 = static_cast< bool >(val4);
19921 }
19922 if (obj4) {
19923 ecode5 = SWIG_AsVal_int(obj4, &val5);
19924 if (!SWIG_IsOK(ecode5)) {
19925 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19926 }
19927 arg5 = static_cast< int >(val5);
19928 }
19929 {
19930 PyThreadState* __tstate = wxPyBeginAllowThreads();
19931 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19932 wxPyEndAllowThreads(__tstate);
19933 if (PyErr_Occurred()) SWIG_fail;
19934 }
19935 {
19936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19937 }
19938 {
19939 if (temp3)
19940 delete arg3;
19941 }
19942 return resultobj;
19943 fail:
19944 {
19945 if (temp3)
19946 delete arg3;
19947 }
19948 return NULL;
19949 }
19950
19951
19952 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19953 PyObject *resultobj = 0;
19954 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19955 size_t arg2 ;
19956 wxWindow *arg3 = (wxWindow *) 0 ;
19957 wxString *arg4 = 0 ;
19958 bool arg5 = (bool) false ;
19959 int arg6 = (int) -1 ;
19960 bool result;
19961 void *argp1 = 0 ;
19962 int res1 = 0 ;
19963 size_t val2 ;
19964 int ecode2 = 0 ;
19965 void *argp3 = 0 ;
19966 int res3 = 0 ;
19967 bool temp4 = false ;
19968 bool val5 ;
19969 int ecode5 = 0 ;
19970 int val6 ;
19971 int ecode6 = 0 ;
19972 PyObject * obj0 = 0 ;
19973 PyObject * obj1 = 0 ;
19974 PyObject * obj2 = 0 ;
19975 PyObject * obj3 = 0 ;
19976 PyObject * obj4 = 0 ;
19977 PyObject * obj5 = 0 ;
19978 char * kwnames[] = {
19979 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19980 };
19981
19982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19984 if (!SWIG_IsOK(res1)) {
19985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19986 }
19987 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19988 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19989 if (!SWIG_IsOK(ecode2)) {
19990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19991 }
19992 arg2 = static_cast< size_t >(val2);
19993 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19994 if (!SWIG_IsOK(res3)) {
19995 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19996 }
19997 arg3 = reinterpret_cast< wxWindow * >(argp3);
19998 {
19999 arg4 = wxString_in_helper(obj3);
20000 if (arg4 == NULL) SWIG_fail;
20001 temp4 = true;
20002 }
20003 if (obj4) {
20004 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20005 if (!SWIG_IsOK(ecode5)) {
20006 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20007 }
20008 arg5 = static_cast< bool >(val5);
20009 }
20010 if (obj5) {
20011 ecode6 = SWIG_AsVal_int(obj5, &val6);
20012 if (!SWIG_IsOK(ecode6)) {
20013 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20014 }
20015 arg6 = static_cast< int >(val6);
20016 }
20017 {
20018 PyThreadState* __tstate = wxPyBeginAllowThreads();
20019 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20020 wxPyEndAllowThreads(__tstate);
20021 if (PyErr_Occurred()) SWIG_fail;
20022 }
20023 {
20024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20025 }
20026 {
20027 if (temp4)
20028 delete arg4;
20029 }
20030 return resultobj;
20031 fail:
20032 {
20033 if (temp4)
20034 delete arg4;
20035 }
20036 return NULL;
20037 }
20038
20039
20040 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20041 PyObject *resultobj = 0;
20042 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20043 size_t arg2 ;
20044 int result;
20045 void *argp1 = 0 ;
20046 int res1 = 0 ;
20047 size_t val2 ;
20048 int ecode2 = 0 ;
20049 PyObject * obj0 = 0 ;
20050 PyObject * obj1 = 0 ;
20051 char * kwnames[] = {
20052 (char *) "self",(char *) "n", NULL
20053 };
20054
20055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20057 if (!SWIG_IsOK(res1)) {
20058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20059 }
20060 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20061 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20062 if (!SWIG_IsOK(ecode2)) {
20063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20064 }
20065 arg2 = static_cast< size_t >(val2);
20066 {
20067 PyThreadState* __tstate = wxPyBeginAllowThreads();
20068 result = (int)(arg1)->SetSelection(arg2);
20069 wxPyEndAllowThreads(__tstate);
20070 if (PyErr_Occurred()) SWIG_fail;
20071 }
20072 resultobj = SWIG_From_int(static_cast< int >(result));
20073 return resultobj;
20074 fail:
20075 return NULL;
20076 }
20077
20078
20079 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20080 PyObject *resultobj = 0;
20081 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20082 bool arg2 = (bool) true ;
20083 void *argp1 = 0 ;
20084 int res1 = 0 ;
20085 bool val2 ;
20086 int ecode2 = 0 ;
20087 PyObject * obj0 = 0 ;
20088 PyObject * obj1 = 0 ;
20089 char * kwnames[] = {
20090 (char *) "self",(char *) "forward", NULL
20091 };
20092
20093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20095 if (!SWIG_IsOK(res1)) {
20096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20097 }
20098 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20099 if (obj1) {
20100 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20101 if (!SWIG_IsOK(ecode2)) {
20102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20103 }
20104 arg2 = static_cast< bool >(val2);
20105 }
20106 {
20107 PyThreadState* __tstate = wxPyBeginAllowThreads();
20108 (arg1)->AdvanceSelection(arg2);
20109 wxPyEndAllowThreads(__tstate);
20110 if (PyErr_Occurred()) SWIG_fail;
20111 }
20112 resultobj = SWIG_Py_Void();
20113 return resultobj;
20114 fail:
20115 return NULL;
20116 }
20117
20118
20119 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20120 PyObject *resultobj = 0;
20121 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20122 wxPoint *arg2 = 0 ;
20123 long *arg3 = (long *) 0 ;
20124 int result;
20125 void *argp1 = 0 ;
20126 int res1 = 0 ;
20127 wxPoint temp2 ;
20128 long temp3 ;
20129 int res3 = SWIG_TMPOBJ ;
20130 PyObject * obj0 = 0 ;
20131 PyObject * obj1 = 0 ;
20132 char * kwnames[] = {
20133 (char *) "self",(char *) "pt", NULL
20134 };
20135
20136 arg3 = &temp3;
20137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20139 if (!SWIG_IsOK(res1)) {
20140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20141 }
20142 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20143 {
20144 arg2 = &temp2;
20145 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20146 }
20147 {
20148 PyThreadState* __tstate = wxPyBeginAllowThreads();
20149 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20150 wxPyEndAllowThreads(__tstate);
20151 if (PyErr_Occurred()) SWIG_fail;
20152 }
20153 resultobj = SWIG_From_int(static_cast< int >(result));
20154 if (SWIG_IsTmpObj(res3)) {
20155 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20156 } else {
20157 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20159 }
20160 return resultobj;
20161 fail:
20162 return NULL;
20163 }
20164
20165
20166 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20167 PyObject *resultobj = 0;
20168 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20169 SwigValueWrapper<wxVisualAttributes > result;
20170 int val1 ;
20171 int ecode1 = 0 ;
20172 PyObject * obj0 = 0 ;
20173 char * kwnames[] = {
20174 (char *) "variant", NULL
20175 };
20176
20177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20178 if (obj0) {
20179 ecode1 = SWIG_AsVal_int(obj0, &val1);
20180 if (!SWIG_IsOK(ecode1)) {
20181 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20182 }
20183 arg1 = static_cast< wxWindowVariant >(val1);
20184 }
20185 {
20186 if (!wxPyCheckForApp()) SWIG_fail;
20187 PyThreadState* __tstate = wxPyBeginAllowThreads();
20188 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20189 wxPyEndAllowThreads(__tstate);
20190 if (PyErr_Occurred()) SWIG_fail;
20191 }
20192 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20193 return resultobj;
20194 fail:
20195 return NULL;
20196 }
20197
20198
20199 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20200 PyObject *obj;
20201 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20202 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20203 return SWIG_Py_Void();
20204 }
20205
20206 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20207 PyObject *resultobj = 0;
20208 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20209 int arg2 = (int) 0 ;
20210 int arg3 = (int) -1 ;
20211 int arg4 = (int) -1 ;
20212 wxBookCtrlBaseEvent *result = 0 ;
20213 int val1 ;
20214 int ecode1 = 0 ;
20215 int val2 ;
20216 int ecode2 = 0 ;
20217 int val3 ;
20218 int ecode3 = 0 ;
20219 int val4 ;
20220 int ecode4 = 0 ;
20221 PyObject * obj0 = 0 ;
20222 PyObject * obj1 = 0 ;
20223 PyObject * obj2 = 0 ;
20224 PyObject * obj3 = 0 ;
20225 char * kwnames[] = {
20226 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20227 };
20228
20229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20230 if (obj0) {
20231 ecode1 = SWIG_AsVal_int(obj0, &val1);
20232 if (!SWIG_IsOK(ecode1)) {
20233 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20234 }
20235 arg1 = static_cast< wxEventType >(val1);
20236 }
20237 if (obj1) {
20238 ecode2 = SWIG_AsVal_int(obj1, &val2);
20239 if (!SWIG_IsOK(ecode2)) {
20240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20241 }
20242 arg2 = static_cast< int >(val2);
20243 }
20244 if (obj2) {
20245 ecode3 = SWIG_AsVal_int(obj2, &val3);
20246 if (!SWIG_IsOK(ecode3)) {
20247 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20248 }
20249 arg3 = static_cast< int >(val3);
20250 }
20251 if (obj3) {
20252 ecode4 = SWIG_AsVal_int(obj3, &val4);
20253 if (!SWIG_IsOK(ecode4)) {
20254 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20255 }
20256 arg4 = static_cast< int >(val4);
20257 }
20258 {
20259 PyThreadState* __tstate = wxPyBeginAllowThreads();
20260 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20261 wxPyEndAllowThreads(__tstate);
20262 if (PyErr_Occurred()) SWIG_fail;
20263 }
20264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20265 return resultobj;
20266 fail:
20267 return NULL;
20268 }
20269
20270
20271 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20272 PyObject *resultobj = 0;
20273 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20274 int result;
20275 void *argp1 = 0 ;
20276 int res1 = 0 ;
20277 PyObject *swig_obj[1] ;
20278
20279 if (!args) SWIG_fail;
20280 swig_obj[0] = args;
20281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20282 if (!SWIG_IsOK(res1)) {
20283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20284 }
20285 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20286 {
20287 PyThreadState* __tstate = wxPyBeginAllowThreads();
20288 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20289 wxPyEndAllowThreads(__tstate);
20290 if (PyErr_Occurred()) SWIG_fail;
20291 }
20292 resultobj = SWIG_From_int(static_cast< int >(result));
20293 return resultobj;
20294 fail:
20295 return NULL;
20296 }
20297
20298
20299 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20300 PyObject *resultobj = 0;
20301 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20302 int arg2 ;
20303 void *argp1 = 0 ;
20304 int res1 = 0 ;
20305 int val2 ;
20306 int ecode2 = 0 ;
20307 PyObject * obj0 = 0 ;
20308 PyObject * obj1 = 0 ;
20309 char * kwnames[] = {
20310 (char *) "self",(char *) "nSel", NULL
20311 };
20312
20313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20315 if (!SWIG_IsOK(res1)) {
20316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20317 }
20318 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20319 ecode2 = SWIG_AsVal_int(obj1, &val2);
20320 if (!SWIG_IsOK(ecode2)) {
20321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20322 }
20323 arg2 = static_cast< int >(val2);
20324 {
20325 PyThreadState* __tstate = wxPyBeginAllowThreads();
20326 (arg1)->SetSelection(arg2);
20327 wxPyEndAllowThreads(__tstate);
20328 if (PyErr_Occurred()) SWIG_fail;
20329 }
20330 resultobj = SWIG_Py_Void();
20331 return resultobj;
20332 fail:
20333 return NULL;
20334 }
20335
20336
20337 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20338 PyObject *resultobj = 0;
20339 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20340 int result;
20341 void *argp1 = 0 ;
20342 int res1 = 0 ;
20343 PyObject *swig_obj[1] ;
20344
20345 if (!args) SWIG_fail;
20346 swig_obj[0] = args;
20347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20348 if (!SWIG_IsOK(res1)) {
20349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20350 }
20351 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20352 {
20353 PyThreadState* __tstate = wxPyBeginAllowThreads();
20354 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20355 wxPyEndAllowThreads(__tstate);
20356 if (PyErr_Occurred()) SWIG_fail;
20357 }
20358 resultobj = SWIG_From_int(static_cast< int >(result));
20359 return resultobj;
20360 fail:
20361 return NULL;
20362 }
20363
20364
20365 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20366 PyObject *resultobj = 0;
20367 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20368 int arg2 ;
20369 void *argp1 = 0 ;
20370 int res1 = 0 ;
20371 int val2 ;
20372 int ecode2 = 0 ;
20373 PyObject * obj0 = 0 ;
20374 PyObject * obj1 = 0 ;
20375 char * kwnames[] = {
20376 (char *) "self",(char *) "nOldSel", NULL
20377 };
20378
20379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20381 if (!SWIG_IsOK(res1)) {
20382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20383 }
20384 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20385 ecode2 = SWIG_AsVal_int(obj1, &val2);
20386 if (!SWIG_IsOK(ecode2)) {
20387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20388 }
20389 arg2 = static_cast< int >(val2);
20390 {
20391 PyThreadState* __tstate = wxPyBeginAllowThreads();
20392 (arg1)->SetOldSelection(arg2);
20393 wxPyEndAllowThreads(__tstate);
20394 if (PyErr_Occurred()) SWIG_fail;
20395 }
20396 resultobj = SWIG_Py_Void();
20397 return resultobj;
20398 fail:
20399 return NULL;
20400 }
20401
20402
20403 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20404 PyObject *obj;
20405 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20406 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20407 return SWIG_Py_Void();
20408 }
20409
20410 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20411 return SWIG_Python_InitShadowInstance(args);
20412 }
20413
20414 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20415 PyObject *resultobj = 0;
20416 wxWindow *arg1 = (wxWindow *) 0 ;
20417 int arg2 = (int) -1 ;
20418 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20419 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20420 wxSize const &arg4_defvalue = wxDefaultSize ;
20421 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20422 long arg5 = (long) 0 ;
20423 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20424 wxString *arg6 = (wxString *) &arg6_defvalue ;
20425 wxNotebook *result = 0 ;
20426 void *argp1 = 0 ;
20427 int res1 = 0 ;
20428 int val2 ;
20429 int ecode2 = 0 ;
20430 wxPoint temp3 ;
20431 wxSize temp4 ;
20432 long val5 ;
20433 int ecode5 = 0 ;
20434 bool temp6 = false ;
20435 PyObject * obj0 = 0 ;
20436 PyObject * obj1 = 0 ;
20437 PyObject * obj2 = 0 ;
20438 PyObject * obj3 = 0 ;
20439 PyObject * obj4 = 0 ;
20440 PyObject * obj5 = 0 ;
20441 char * kwnames[] = {
20442 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20443 };
20444
20445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20447 if (!SWIG_IsOK(res1)) {
20448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20449 }
20450 arg1 = reinterpret_cast< wxWindow * >(argp1);
20451 if (obj1) {
20452 ecode2 = SWIG_AsVal_int(obj1, &val2);
20453 if (!SWIG_IsOK(ecode2)) {
20454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20455 }
20456 arg2 = static_cast< int >(val2);
20457 }
20458 if (obj2) {
20459 {
20460 arg3 = &temp3;
20461 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20462 }
20463 }
20464 if (obj3) {
20465 {
20466 arg4 = &temp4;
20467 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20468 }
20469 }
20470 if (obj4) {
20471 ecode5 = SWIG_AsVal_long(obj4, &val5);
20472 if (!SWIG_IsOK(ecode5)) {
20473 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20474 }
20475 arg5 = static_cast< long >(val5);
20476 }
20477 if (obj5) {
20478 {
20479 arg6 = wxString_in_helper(obj5);
20480 if (arg6 == NULL) SWIG_fail;
20481 temp6 = true;
20482 }
20483 }
20484 {
20485 if (!wxPyCheckForApp()) SWIG_fail;
20486 PyThreadState* __tstate = wxPyBeginAllowThreads();
20487 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20488 wxPyEndAllowThreads(__tstate);
20489 if (PyErr_Occurred()) SWIG_fail;
20490 }
20491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20492 {
20493 if (temp6)
20494 delete arg6;
20495 }
20496 return resultobj;
20497 fail:
20498 {
20499 if (temp6)
20500 delete arg6;
20501 }
20502 return NULL;
20503 }
20504
20505
20506 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20507 PyObject *resultobj = 0;
20508 wxNotebook *result = 0 ;
20509
20510 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20511 {
20512 if (!wxPyCheckForApp()) SWIG_fail;
20513 PyThreadState* __tstate = wxPyBeginAllowThreads();
20514 result = (wxNotebook *)new wxNotebook();
20515 wxPyEndAllowThreads(__tstate);
20516 if (PyErr_Occurred()) SWIG_fail;
20517 }
20518 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20519 return resultobj;
20520 fail:
20521 return NULL;
20522 }
20523
20524
20525 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20526 PyObject *resultobj = 0;
20527 wxNotebook *arg1 = (wxNotebook *) 0 ;
20528 wxWindow *arg2 = (wxWindow *) 0 ;
20529 int arg3 = (int) -1 ;
20530 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20531 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20532 wxSize const &arg5_defvalue = wxDefaultSize ;
20533 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20534 long arg6 = (long) 0 ;
20535 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20536 wxString *arg7 = (wxString *) &arg7_defvalue ;
20537 bool result;
20538 void *argp1 = 0 ;
20539 int res1 = 0 ;
20540 void *argp2 = 0 ;
20541 int res2 = 0 ;
20542 int val3 ;
20543 int ecode3 = 0 ;
20544 wxPoint temp4 ;
20545 wxSize temp5 ;
20546 long val6 ;
20547 int ecode6 = 0 ;
20548 bool temp7 = false ;
20549 PyObject * obj0 = 0 ;
20550 PyObject * obj1 = 0 ;
20551 PyObject * obj2 = 0 ;
20552 PyObject * obj3 = 0 ;
20553 PyObject * obj4 = 0 ;
20554 PyObject * obj5 = 0 ;
20555 PyObject * obj6 = 0 ;
20556 char * kwnames[] = {
20557 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20558 };
20559
20560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20562 if (!SWIG_IsOK(res1)) {
20563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20564 }
20565 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20566 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20567 if (!SWIG_IsOK(res2)) {
20568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20569 }
20570 arg2 = reinterpret_cast< wxWindow * >(argp2);
20571 if (obj2) {
20572 ecode3 = SWIG_AsVal_int(obj2, &val3);
20573 if (!SWIG_IsOK(ecode3)) {
20574 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20575 }
20576 arg3 = static_cast< int >(val3);
20577 }
20578 if (obj3) {
20579 {
20580 arg4 = &temp4;
20581 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20582 }
20583 }
20584 if (obj4) {
20585 {
20586 arg5 = &temp5;
20587 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20588 }
20589 }
20590 if (obj5) {
20591 ecode6 = SWIG_AsVal_long(obj5, &val6);
20592 if (!SWIG_IsOK(ecode6)) {
20593 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20594 }
20595 arg6 = static_cast< long >(val6);
20596 }
20597 if (obj6) {
20598 {
20599 arg7 = wxString_in_helper(obj6);
20600 if (arg7 == NULL) SWIG_fail;
20601 temp7 = true;
20602 }
20603 }
20604 {
20605 PyThreadState* __tstate = wxPyBeginAllowThreads();
20606 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20607 wxPyEndAllowThreads(__tstate);
20608 if (PyErr_Occurred()) SWIG_fail;
20609 }
20610 {
20611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20612 }
20613 {
20614 if (temp7)
20615 delete arg7;
20616 }
20617 return resultobj;
20618 fail:
20619 {
20620 if (temp7)
20621 delete arg7;
20622 }
20623 return NULL;
20624 }
20625
20626
20627 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20628 PyObject *resultobj = 0;
20629 wxNotebook *arg1 = (wxNotebook *) 0 ;
20630 int result;
20631 void *argp1 = 0 ;
20632 int res1 = 0 ;
20633 PyObject *swig_obj[1] ;
20634
20635 if (!args) SWIG_fail;
20636 swig_obj[0] = args;
20637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20638 if (!SWIG_IsOK(res1)) {
20639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20640 }
20641 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20642 {
20643 PyThreadState* __tstate = wxPyBeginAllowThreads();
20644 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20645 wxPyEndAllowThreads(__tstate);
20646 if (PyErr_Occurred()) SWIG_fail;
20647 }
20648 resultobj = SWIG_From_int(static_cast< int >(result));
20649 return resultobj;
20650 fail:
20651 return NULL;
20652 }
20653
20654
20655 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20656 PyObject *resultobj = 0;
20657 wxNotebook *arg1 = (wxNotebook *) 0 ;
20658 wxSize *arg2 = 0 ;
20659 void *argp1 = 0 ;
20660 int res1 = 0 ;
20661 wxSize temp2 ;
20662 PyObject * obj0 = 0 ;
20663 PyObject * obj1 = 0 ;
20664 char * kwnames[] = {
20665 (char *) "self",(char *) "padding", NULL
20666 };
20667
20668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20670 if (!SWIG_IsOK(res1)) {
20671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20672 }
20673 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20674 {
20675 arg2 = &temp2;
20676 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20677 }
20678 {
20679 PyThreadState* __tstate = wxPyBeginAllowThreads();
20680 (arg1)->SetPadding((wxSize const &)*arg2);
20681 wxPyEndAllowThreads(__tstate);
20682 if (PyErr_Occurred()) SWIG_fail;
20683 }
20684 resultobj = SWIG_Py_Void();
20685 return resultobj;
20686 fail:
20687 return NULL;
20688 }
20689
20690
20691 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20692 PyObject *resultobj = 0;
20693 wxNotebook *arg1 = (wxNotebook *) 0 ;
20694 wxSize *arg2 = 0 ;
20695 void *argp1 = 0 ;
20696 int res1 = 0 ;
20697 wxSize temp2 ;
20698 PyObject * obj0 = 0 ;
20699 PyObject * obj1 = 0 ;
20700 char * kwnames[] = {
20701 (char *) "self",(char *) "sz", NULL
20702 };
20703
20704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20706 if (!SWIG_IsOK(res1)) {
20707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20708 }
20709 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20710 {
20711 arg2 = &temp2;
20712 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20713 }
20714 {
20715 PyThreadState* __tstate = wxPyBeginAllowThreads();
20716 (arg1)->SetTabSize((wxSize const &)*arg2);
20717 wxPyEndAllowThreads(__tstate);
20718 if (PyErr_Occurred()) SWIG_fail;
20719 }
20720 resultobj = SWIG_Py_Void();
20721 return resultobj;
20722 fail:
20723 return NULL;
20724 }
20725
20726
20727 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20728 PyObject *resultobj = 0;
20729 wxNotebook *arg1 = (wxNotebook *) 0 ;
20730 wxColour result;
20731 void *argp1 = 0 ;
20732 int res1 = 0 ;
20733 PyObject *swig_obj[1] ;
20734
20735 if (!args) SWIG_fail;
20736 swig_obj[0] = args;
20737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20738 if (!SWIG_IsOK(res1)) {
20739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20740 }
20741 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20742 {
20743 PyThreadState* __tstate = wxPyBeginAllowThreads();
20744 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20745 wxPyEndAllowThreads(__tstate);
20746 if (PyErr_Occurred()) SWIG_fail;
20747 }
20748 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20749 return resultobj;
20750 fail:
20751 return NULL;
20752 }
20753
20754
20755 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20756 PyObject *resultobj = 0;
20757 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20758 SwigValueWrapper<wxVisualAttributes > result;
20759 int val1 ;
20760 int ecode1 = 0 ;
20761 PyObject * obj0 = 0 ;
20762 char * kwnames[] = {
20763 (char *) "variant", NULL
20764 };
20765
20766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20767 if (obj0) {
20768 ecode1 = SWIG_AsVal_int(obj0, &val1);
20769 if (!SWIG_IsOK(ecode1)) {
20770 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20771 }
20772 arg1 = static_cast< wxWindowVariant >(val1);
20773 }
20774 {
20775 if (!wxPyCheckForApp()) SWIG_fail;
20776 PyThreadState* __tstate = wxPyBeginAllowThreads();
20777 result = wxNotebook::GetClassDefaultAttributes(arg1);
20778 wxPyEndAllowThreads(__tstate);
20779 if (PyErr_Occurred()) SWIG_fail;
20780 }
20781 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20782 return resultobj;
20783 fail:
20784 return NULL;
20785 }
20786
20787
20788 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20789 PyObject *obj;
20790 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20791 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20792 return SWIG_Py_Void();
20793 }
20794
20795 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20796 return SWIG_Python_InitShadowInstance(args);
20797 }
20798
20799 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20800 PyObject *resultobj = 0;
20801 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20802 int arg2 = (int) 0 ;
20803 int arg3 = (int) -1 ;
20804 int arg4 = (int) -1 ;
20805 wxNotebookEvent *result = 0 ;
20806 int val1 ;
20807 int ecode1 = 0 ;
20808 int val2 ;
20809 int ecode2 = 0 ;
20810 int val3 ;
20811 int ecode3 = 0 ;
20812 int val4 ;
20813 int ecode4 = 0 ;
20814 PyObject * obj0 = 0 ;
20815 PyObject * obj1 = 0 ;
20816 PyObject * obj2 = 0 ;
20817 PyObject * obj3 = 0 ;
20818 char * kwnames[] = {
20819 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20820 };
20821
20822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20823 if (obj0) {
20824 ecode1 = SWIG_AsVal_int(obj0, &val1);
20825 if (!SWIG_IsOK(ecode1)) {
20826 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20827 }
20828 arg1 = static_cast< wxEventType >(val1);
20829 }
20830 if (obj1) {
20831 ecode2 = SWIG_AsVal_int(obj1, &val2);
20832 if (!SWIG_IsOK(ecode2)) {
20833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20834 }
20835 arg2 = static_cast< int >(val2);
20836 }
20837 if (obj2) {
20838 ecode3 = SWIG_AsVal_int(obj2, &val3);
20839 if (!SWIG_IsOK(ecode3)) {
20840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20841 }
20842 arg3 = static_cast< int >(val3);
20843 }
20844 if (obj3) {
20845 ecode4 = SWIG_AsVal_int(obj3, &val4);
20846 if (!SWIG_IsOK(ecode4)) {
20847 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20848 }
20849 arg4 = static_cast< int >(val4);
20850 }
20851 {
20852 PyThreadState* __tstate = wxPyBeginAllowThreads();
20853 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20854 wxPyEndAllowThreads(__tstate);
20855 if (PyErr_Occurred()) SWIG_fail;
20856 }
20857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20858 return resultobj;
20859 fail:
20860 return NULL;
20861 }
20862
20863
20864 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20865 PyObject *obj;
20866 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20867 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20868 return SWIG_Py_Void();
20869 }
20870
20871 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20872 return SWIG_Python_InitShadowInstance(args);
20873 }
20874
20875 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20876 PyObject *resultobj = 0;
20877 wxWindow *arg1 = (wxWindow *) 0 ;
20878 int arg2 = (int) -1 ;
20879 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20880 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20881 wxSize const &arg4_defvalue = wxDefaultSize ;
20882 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20883 long arg5 = (long) 0 ;
20884 wxString const &arg6_defvalue = wxPyEmptyString ;
20885 wxString *arg6 = (wxString *) &arg6_defvalue ;
20886 wxListbook *result = 0 ;
20887 void *argp1 = 0 ;
20888 int res1 = 0 ;
20889 int val2 ;
20890 int ecode2 = 0 ;
20891 wxPoint temp3 ;
20892 wxSize temp4 ;
20893 long val5 ;
20894 int ecode5 = 0 ;
20895 bool temp6 = false ;
20896 PyObject * obj0 = 0 ;
20897 PyObject * obj1 = 0 ;
20898 PyObject * obj2 = 0 ;
20899 PyObject * obj3 = 0 ;
20900 PyObject * obj4 = 0 ;
20901 PyObject * obj5 = 0 ;
20902 char * kwnames[] = {
20903 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20904 };
20905
20906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20908 if (!SWIG_IsOK(res1)) {
20909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20910 }
20911 arg1 = reinterpret_cast< wxWindow * >(argp1);
20912 if (obj1) {
20913 ecode2 = SWIG_AsVal_int(obj1, &val2);
20914 if (!SWIG_IsOK(ecode2)) {
20915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20916 }
20917 arg2 = static_cast< int >(val2);
20918 }
20919 if (obj2) {
20920 {
20921 arg3 = &temp3;
20922 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20923 }
20924 }
20925 if (obj3) {
20926 {
20927 arg4 = &temp4;
20928 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20929 }
20930 }
20931 if (obj4) {
20932 ecode5 = SWIG_AsVal_long(obj4, &val5);
20933 if (!SWIG_IsOK(ecode5)) {
20934 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20935 }
20936 arg5 = static_cast< long >(val5);
20937 }
20938 if (obj5) {
20939 {
20940 arg6 = wxString_in_helper(obj5);
20941 if (arg6 == NULL) SWIG_fail;
20942 temp6 = true;
20943 }
20944 }
20945 {
20946 if (!wxPyCheckForApp()) SWIG_fail;
20947 PyThreadState* __tstate = wxPyBeginAllowThreads();
20948 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20949 wxPyEndAllowThreads(__tstate);
20950 if (PyErr_Occurred()) SWIG_fail;
20951 }
20952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20953 {
20954 if (temp6)
20955 delete arg6;
20956 }
20957 return resultobj;
20958 fail:
20959 {
20960 if (temp6)
20961 delete arg6;
20962 }
20963 return NULL;
20964 }
20965
20966
20967 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20968 PyObject *resultobj = 0;
20969 wxListbook *result = 0 ;
20970
20971 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20972 {
20973 if (!wxPyCheckForApp()) SWIG_fail;
20974 PyThreadState* __tstate = wxPyBeginAllowThreads();
20975 result = (wxListbook *)new wxListbook();
20976 wxPyEndAllowThreads(__tstate);
20977 if (PyErr_Occurred()) SWIG_fail;
20978 }
20979 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20980 return resultobj;
20981 fail:
20982 return NULL;
20983 }
20984
20985
20986 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20987 PyObject *resultobj = 0;
20988 wxListbook *arg1 = (wxListbook *) 0 ;
20989 wxWindow *arg2 = (wxWindow *) 0 ;
20990 int arg3 = (int) -1 ;
20991 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20992 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20993 wxSize const &arg5_defvalue = wxDefaultSize ;
20994 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20995 long arg6 = (long) 0 ;
20996 wxString const &arg7_defvalue = wxPyEmptyString ;
20997 wxString *arg7 = (wxString *) &arg7_defvalue ;
20998 bool result;
20999 void *argp1 = 0 ;
21000 int res1 = 0 ;
21001 void *argp2 = 0 ;
21002 int res2 = 0 ;
21003 int val3 ;
21004 int ecode3 = 0 ;
21005 wxPoint temp4 ;
21006 wxSize temp5 ;
21007 long val6 ;
21008 int ecode6 = 0 ;
21009 bool temp7 = false ;
21010 PyObject * obj0 = 0 ;
21011 PyObject * obj1 = 0 ;
21012 PyObject * obj2 = 0 ;
21013 PyObject * obj3 = 0 ;
21014 PyObject * obj4 = 0 ;
21015 PyObject * obj5 = 0 ;
21016 PyObject * obj6 = 0 ;
21017 char * kwnames[] = {
21018 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21019 };
21020
21021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21023 if (!SWIG_IsOK(res1)) {
21024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21025 }
21026 arg1 = reinterpret_cast< wxListbook * >(argp1);
21027 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21028 if (!SWIG_IsOK(res2)) {
21029 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21030 }
21031 arg2 = reinterpret_cast< wxWindow * >(argp2);
21032 if (obj2) {
21033 ecode3 = SWIG_AsVal_int(obj2, &val3);
21034 if (!SWIG_IsOK(ecode3)) {
21035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21036 }
21037 arg3 = static_cast< int >(val3);
21038 }
21039 if (obj3) {
21040 {
21041 arg4 = &temp4;
21042 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21043 }
21044 }
21045 if (obj4) {
21046 {
21047 arg5 = &temp5;
21048 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21049 }
21050 }
21051 if (obj5) {
21052 ecode6 = SWIG_AsVal_long(obj5, &val6);
21053 if (!SWIG_IsOK(ecode6)) {
21054 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21055 }
21056 arg6 = static_cast< long >(val6);
21057 }
21058 if (obj6) {
21059 {
21060 arg7 = wxString_in_helper(obj6);
21061 if (arg7 == NULL) SWIG_fail;
21062 temp7 = true;
21063 }
21064 }
21065 {
21066 PyThreadState* __tstate = wxPyBeginAllowThreads();
21067 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21068 wxPyEndAllowThreads(__tstate);
21069 if (PyErr_Occurred()) SWIG_fail;
21070 }
21071 {
21072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21073 }
21074 {
21075 if (temp7)
21076 delete arg7;
21077 }
21078 return resultobj;
21079 fail:
21080 {
21081 if (temp7)
21082 delete arg7;
21083 }
21084 return NULL;
21085 }
21086
21087
21088 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21089 PyObject *resultobj = 0;
21090 wxListbook *arg1 = (wxListbook *) 0 ;
21091 wxListView *result = 0 ;
21092 void *argp1 = 0 ;
21093 int res1 = 0 ;
21094 PyObject *swig_obj[1] ;
21095
21096 if (!args) SWIG_fail;
21097 swig_obj[0] = args;
21098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21099 if (!SWIG_IsOK(res1)) {
21100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21101 }
21102 arg1 = reinterpret_cast< wxListbook * >(argp1);
21103 {
21104 PyThreadState* __tstate = wxPyBeginAllowThreads();
21105 result = (wxListView *)(arg1)->GetListView();
21106 wxPyEndAllowThreads(__tstate);
21107 if (PyErr_Occurred()) SWIG_fail;
21108 }
21109 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21110 return resultobj;
21111 fail:
21112 return NULL;
21113 }
21114
21115
21116 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21117 PyObject *obj;
21118 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21119 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21120 return SWIG_Py_Void();
21121 }
21122
21123 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21124 return SWIG_Python_InitShadowInstance(args);
21125 }
21126
21127 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21128 PyObject *resultobj = 0;
21129 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21130 int arg2 = (int) 0 ;
21131 int arg3 = (int) -1 ;
21132 int arg4 = (int) -1 ;
21133 wxListbookEvent *result = 0 ;
21134 int val1 ;
21135 int ecode1 = 0 ;
21136 int val2 ;
21137 int ecode2 = 0 ;
21138 int val3 ;
21139 int ecode3 = 0 ;
21140 int val4 ;
21141 int ecode4 = 0 ;
21142 PyObject * obj0 = 0 ;
21143 PyObject * obj1 = 0 ;
21144 PyObject * obj2 = 0 ;
21145 PyObject * obj3 = 0 ;
21146 char * kwnames[] = {
21147 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21148 };
21149
21150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21151 if (obj0) {
21152 ecode1 = SWIG_AsVal_int(obj0, &val1);
21153 if (!SWIG_IsOK(ecode1)) {
21154 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21155 }
21156 arg1 = static_cast< wxEventType >(val1);
21157 }
21158 if (obj1) {
21159 ecode2 = SWIG_AsVal_int(obj1, &val2);
21160 if (!SWIG_IsOK(ecode2)) {
21161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21162 }
21163 arg2 = static_cast< int >(val2);
21164 }
21165 if (obj2) {
21166 ecode3 = SWIG_AsVal_int(obj2, &val3);
21167 if (!SWIG_IsOK(ecode3)) {
21168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21169 }
21170 arg3 = static_cast< int >(val3);
21171 }
21172 if (obj3) {
21173 ecode4 = SWIG_AsVal_int(obj3, &val4);
21174 if (!SWIG_IsOK(ecode4)) {
21175 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21176 }
21177 arg4 = static_cast< int >(val4);
21178 }
21179 {
21180 PyThreadState* __tstate = wxPyBeginAllowThreads();
21181 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21182 wxPyEndAllowThreads(__tstate);
21183 if (PyErr_Occurred()) SWIG_fail;
21184 }
21185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21186 return resultobj;
21187 fail:
21188 return NULL;
21189 }
21190
21191
21192 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21193 PyObject *obj;
21194 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21195 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21196 return SWIG_Py_Void();
21197 }
21198
21199 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21200 return SWIG_Python_InitShadowInstance(args);
21201 }
21202
21203 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21204 PyObject *resultobj = 0;
21205 wxWindow *arg1 = (wxWindow *) 0 ;
21206 int arg2 ;
21207 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21208 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21209 wxSize const &arg4_defvalue = wxDefaultSize ;
21210 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21211 long arg5 = (long) 0 ;
21212 wxString const &arg6_defvalue = wxPyEmptyString ;
21213 wxString *arg6 = (wxString *) &arg6_defvalue ;
21214 wxChoicebook *result = 0 ;
21215 void *argp1 = 0 ;
21216 int res1 = 0 ;
21217 int val2 ;
21218 int ecode2 = 0 ;
21219 wxPoint temp3 ;
21220 wxSize temp4 ;
21221 long val5 ;
21222 int ecode5 = 0 ;
21223 bool temp6 = false ;
21224 PyObject * obj0 = 0 ;
21225 PyObject * obj1 = 0 ;
21226 PyObject * obj2 = 0 ;
21227 PyObject * obj3 = 0 ;
21228 PyObject * obj4 = 0 ;
21229 PyObject * obj5 = 0 ;
21230 char * kwnames[] = {
21231 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21232 };
21233
21234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21236 if (!SWIG_IsOK(res1)) {
21237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21238 }
21239 arg1 = reinterpret_cast< wxWindow * >(argp1);
21240 ecode2 = SWIG_AsVal_int(obj1, &val2);
21241 if (!SWIG_IsOK(ecode2)) {
21242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21243 }
21244 arg2 = static_cast< int >(val2);
21245 if (obj2) {
21246 {
21247 arg3 = &temp3;
21248 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21249 }
21250 }
21251 if (obj3) {
21252 {
21253 arg4 = &temp4;
21254 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21255 }
21256 }
21257 if (obj4) {
21258 ecode5 = SWIG_AsVal_long(obj4, &val5);
21259 if (!SWIG_IsOK(ecode5)) {
21260 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21261 }
21262 arg5 = static_cast< long >(val5);
21263 }
21264 if (obj5) {
21265 {
21266 arg6 = wxString_in_helper(obj5);
21267 if (arg6 == NULL) SWIG_fail;
21268 temp6 = true;
21269 }
21270 }
21271 {
21272 if (!wxPyCheckForApp()) SWIG_fail;
21273 PyThreadState* __tstate = wxPyBeginAllowThreads();
21274 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21275 wxPyEndAllowThreads(__tstate);
21276 if (PyErr_Occurred()) SWIG_fail;
21277 }
21278 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21279 {
21280 if (temp6)
21281 delete arg6;
21282 }
21283 return resultobj;
21284 fail:
21285 {
21286 if (temp6)
21287 delete arg6;
21288 }
21289 return NULL;
21290 }
21291
21292
21293 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21294 PyObject *resultobj = 0;
21295 wxChoicebook *result = 0 ;
21296
21297 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21298 {
21299 if (!wxPyCheckForApp()) SWIG_fail;
21300 PyThreadState* __tstate = wxPyBeginAllowThreads();
21301 result = (wxChoicebook *)new wxChoicebook();
21302 wxPyEndAllowThreads(__tstate);
21303 if (PyErr_Occurred()) SWIG_fail;
21304 }
21305 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21306 return resultobj;
21307 fail:
21308 return NULL;
21309 }
21310
21311
21312 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21313 PyObject *resultobj = 0;
21314 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21315 wxWindow *arg2 = (wxWindow *) 0 ;
21316 int arg3 ;
21317 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21318 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21319 wxSize const &arg5_defvalue = wxDefaultSize ;
21320 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21321 long arg6 = (long) 0 ;
21322 wxString const &arg7_defvalue = wxPyEmptyString ;
21323 wxString *arg7 = (wxString *) &arg7_defvalue ;
21324 bool result;
21325 void *argp1 = 0 ;
21326 int res1 = 0 ;
21327 void *argp2 = 0 ;
21328 int res2 = 0 ;
21329 int val3 ;
21330 int ecode3 = 0 ;
21331 wxPoint temp4 ;
21332 wxSize temp5 ;
21333 long val6 ;
21334 int ecode6 = 0 ;
21335 bool temp7 = false ;
21336 PyObject * obj0 = 0 ;
21337 PyObject * obj1 = 0 ;
21338 PyObject * obj2 = 0 ;
21339 PyObject * obj3 = 0 ;
21340 PyObject * obj4 = 0 ;
21341 PyObject * obj5 = 0 ;
21342 PyObject * obj6 = 0 ;
21343 char * kwnames[] = {
21344 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21345 };
21346
21347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21349 if (!SWIG_IsOK(res1)) {
21350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21351 }
21352 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21353 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21354 if (!SWIG_IsOK(res2)) {
21355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21356 }
21357 arg2 = reinterpret_cast< wxWindow * >(argp2);
21358 ecode3 = SWIG_AsVal_int(obj2, &val3);
21359 if (!SWIG_IsOK(ecode3)) {
21360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21361 }
21362 arg3 = static_cast< int >(val3);
21363 if (obj3) {
21364 {
21365 arg4 = &temp4;
21366 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21367 }
21368 }
21369 if (obj4) {
21370 {
21371 arg5 = &temp5;
21372 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21373 }
21374 }
21375 if (obj5) {
21376 ecode6 = SWIG_AsVal_long(obj5, &val6);
21377 if (!SWIG_IsOK(ecode6)) {
21378 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21379 }
21380 arg6 = static_cast< long >(val6);
21381 }
21382 if (obj6) {
21383 {
21384 arg7 = wxString_in_helper(obj6);
21385 if (arg7 == NULL) SWIG_fail;
21386 temp7 = true;
21387 }
21388 }
21389 {
21390 PyThreadState* __tstate = wxPyBeginAllowThreads();
21391 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21392 wxPyEndAllowThreads(__tstate);
21393 if (PyErr_Occurred()) SWIG_fail;
21394 }
21395 {
21396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21397 }
21398 {
21399 if (temp7)
21400 delete arg7;
21401 }
21402 return resultobj;
21403 fail:
21404 {
21405 if (temp7)
21406 delete arg7;
21407 }
21408 return NULL;
21409 }
21410
21411
21412 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21413 PyObject *resultobj = 0;
21414 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21415 wxChoice *result = 0 ;
21416 void *argp1 = 0 ;
21417 int res1 = 0 ;
21418 PyObject *swig_obj[1] ;
21419
21420 if (!args) SWIG_fail;
21421 swig_obj[0] = args;
21422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21423 if (!SWIG_IsOK(res1)) {
21424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21425 }
21426 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21427 {
21428 PyThreadState* __tstate = wxPyBeginAllowThreads();
21429 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21430 wxPyEndAllowThreads(__tstate);
21431 if (PyErr_Occurred()) SWIG_fail;
21432 }
21433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21434 return resultobj;
21435 fail:
21436 return NULL;
21437 }
21438
21439
21440 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21441 PyObject *obj;
21442 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21443 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21444 return SWIG_Py_Void();
21445 }
21446
21447 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21448 return SWIG_Python_InitShadowInstance(args);
21449 }
21450
21451 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21452 PyObject *resultobj = 0;
21453 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21454 int arg2 = (int) 0 ;
21455 int arg3 = (int) -1 ;
21456 int arg4 = (int) -1 ;
21457 wxChoicebookEvent *result = 0 ;
21458 int val1 ;
21459 int ecode1 = 0 ;
21460 int val2 ;
21461 int ecode2 = 0 ;
21462 int val3 ;
21463 int ecode3 = 0 ;
21464 int val4 ;
21465 int ecode4 = 0 ;
21466 PyObject * obj0 = 0 ;
21467 PyObject * obj1 = 0 ;
21468 PyObject * obj2 = 0 ;
21469 PyObject * obj3 = 0 ;
21470 char * kwnames[] = {
21471 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21472 };
21473
21474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21475 if (obj0) {
21476 ecode1 = SWIG_AsVal_int(obj0, &val1);
21477 if (!SWIG_IsOK(ecode1)) {
21478 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21479 }
21480 arg1 = static_cast< wxEventType >(val1);
21481 }
21482 if (obj1) {
21483 ecode2 = SWIG_AsVal_int(obj1, &val2);
21484 if (!SWIG_IsOK(ecode2)) {
21485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21486 }
21487 arg2 = static_cast< int >(val2);
21488 }
21489 if (obj2) {
21490 ecode3 = SWIG_AsVal_int(obj2, &val3);
21491 if (!SWIG_IsOK(ecode3)) {
21492 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21493 }
21494 arg3 = static_cast< int >(val3);
21495 }
21496 if (obj3) {
21497 ecode4 = SWIG_AsVal_int(obj3, &val4);
21498 if (!SWIG_IsOK(ecode4)) {
21499 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21500 }
21501 arg4 = static_cast< int >(val4);
21502 }
21503 {
21504 PyThreadState* __tstate = wxPyBeginAllowThreads();
21505 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21506 wxPyEndAllowThreads(__tstate);
21507 if (PyErr_Occurred()) SWIG_fail;
21508 }
21509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21510 return resultobj;
21511 fail:
21512 return NULL;
21513 }
21514
21515
21516 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21517 PyObject *obj;
21518 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21519 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21520 return SWIG_Py_Void();
21521 }
21522
21523 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21524 return SWIG_Python_InitShadowInstance(args);
21525 }
21526
21527 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21528 PyObject *resultobj = 0;
21529 wxWindow *arg1 = (wxWindow *) 0 ;
21530 int arg2 ;
21531 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21532 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21533 wxSize const &arg4_defvalue = wxDefaultSize ;
21534 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21535 long arg5 = (long) wxBK_DEFAULT ;
21536 wxString const &arg6_defvalue = wxPyEmptyString ;
21537 wxString *arg6 = (wxString *) &arg6_defvalue ;
21538 wxTreebook *result = 0 ;
21539 void *argp1 = 0 ;
21540 int res1 = 0 ;
21541 int val2 ;
21542 int ecode2 = 0 ;
21543 wxPoint temp3 ;
21544 wxSize temp4 ;
21545 long val5 ;
21546 int ecode5 = 0 ;
21547 bool temp6 = false ;
21548 PyObject * obj0 = 0 ;
21549 PyObject * obj1 = 0 ;
21550 PyObject * obj2 = 0 ;
21551 PyObject * obj3 = 0 ;
21552 PyObject * obj4 = 0 ;
21553 PyObject * obj5 = 0 ;
21554 char * kwnames[] = {
21555 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21556 };
21557
21558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21560 if (!SWIG_IsOK(res1)) {
21561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21562 }
21563 arg1 = reinterpret_cast< wxWindow * >(argp1);
21564 ecode2 = SWIG_AsVal_int(obj1, &val2);
21565 if (!SWIG_IsOK(ecode2)) {
21566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21567 }
21568 arg2 = static_cast< int >(val2);
21569 if (obj2) {
21570 {
21571 arg3 = &temp3;
21572 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21573 }
21574 }
21575 if (obj3) {
21576 {
21577 arg4 = &temp4;
21578 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21579 }
21580 }
21581 if (obj4) {
21582 ecode5 = SWIG_AsVal_long(obj4, &val5);
21583 if (!SWIG_IsOK(ecode5)) {
21584 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21585 }
21586 arg5 = static_cast< long >(val5);
21587 }
21588 if (obj5) {
21589 {
21590 arg6 = wxString_in_helper(obj5);
21591 if (arg6 == NULL) SWIG_fail;
21592 temp6 = true;
21593 }
21594 }
21595 {
21596 if (!wxPyCheckForApp()) SWIG_fail;
21597 PyThreadState* __tstate = wxPyBeginAllowThreads();
21598 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21599 wxPyEndAllowThreads(__tstate);
21600 if (PyErr_Occurred()) SWIG_fail;
21601 }
21602 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21603 {
21604 if (temp6)
21605 delete arg6;
21606 }
21607 return resultobj;
21608 fail:
21609 {
21610 if (temp6)
21611 delete arg6;
21612 }
21613 return NULL;
21614 }
21615
21616
21617 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21618 PyObject *resultobj = 0;
21619 wxTreebook *result = 0 ;
21620
21621 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21622 {
21623 if (!wxPyCheckForApp()) SWIG_fail;
21624 PyThreadState* __tstate = wxPyBeginAllowThreads();
21625 result = (wxTreebook *)new wxTreebook();
21626 wxPyEndAllowThreads(__tstate);
21627 if (PyErr_Occurred()) SWIG_fail;
21628 }
21629 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21630 return resultobj;
21631 fail:
21632 return NULL;
21633 }
21634
21635
21636 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21637 PyObject *resultobj = 0;
21638 wxTreebook *arg1 = (wxTreebook *) 0 ;
21639 wxWindow *arg2 = (wxWindow *) 0 ;
21640 int arg3 ;
21641 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21642 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21643 wxSize const &arg5_defvalue = wxDefaultSize ;
21644 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21645 long arg6 = (long) wxBK_DEFAULT ;
21646 wxString const &arg7_defvalue = wxPyEmptyString ;
21647 wxString *arg7 = (wxString *) &arg7_defvalue ;
21648 bool result;
21649 void *argp1 = 0 ;
21650 int res1 = 0 ;
21651 void *argp2 = 0 ;
21652 int res2 = 0 ;
21653 int val3 ;
21654 int ecode3 = 0 ;
21655 wxPoint temp4 ;
21656 wxSize temp5 ;
21657 long val6 ;
21658 int ecode6 = 0 ;
21659 bool temp7 = false ;
21660 PyObject * obj0 = 0 ;
21661 PyObject * obj1 = 0 ;
21662 PyObject * obj2 = 0 ;
21663 PyObject * obj3 = 0 ;
21664 PyObject * obj4 = 0 ;
21665 PyObject * obj5 = 0 ;
21666 PyObject * obj6 = 0 ;
21667 char * kwnames[] = {
21668 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21669 };
21670
21671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21673 if (!SWIG_IsOK(res1)) {
21674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21675 }
21676 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21677 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21678 if (!SWIG_IsOK(res2)) {
21679 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21680 }
21681 arg2 = reinterpret_cast< wxWindow * >(argp2);
21682 ecode3 = SWIG_AsVal_int(obj2, &val3);
21683 if (!SWIG_IsOK(ecode3)) {
21684 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21685 }
21686 arg3 = static_cast< int >(val3);
21687 if (obj3) {
21688 {
21689 arg4 = &temp4;
21690 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21691 }
21692 }
21693 if (obj4) {
21694 {
21695 arg5 = &temp5;
21696 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21697 }
21698 }
21699 if (obj5) {
21700 ecode6 = SWIG_AsVal_long(obj5, &val6);
21701 if (!SWIG_IsOK(ecode6)) {
21702 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21703 }
21704 arg6 = static_cast< long >(val6);
21705 }
21706 if (obj6) {
21707 {
21708 arg7 = wxString_in_helper(obj6);
21709 if (arg7 == NULL) SWIG_fail;
21710 temp7 = true;
21711 }
21712 }
21713 {
21714 PyThreadState* __tstate = wxPyBeginAllowThreads();
21715 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21716 wxPyEndAllowThreads(__tstate);
21717 if (PyErr_Occurred()) SWIG_fail;
21718 }
21719 {
21720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21721 }
21722 {
21723 if (temp7)
21724 delete arg7;
21725 }
21726 return resultobj;
21727 fail:
21728 {
21729 if (temp7)
21730 delete arg7;
21731 }
21732 return NULL;
21733 }
21734
21735
21736 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21737 PyObject *resultobj = 0;
21738 wxTreebook *arg1 = (wxTreebook *) 0 ;
21739 size_t arg2 ;
21740 wxWindow *arg3 = (wxWindow *) 0 ;
21741 wxString *arg4 = 0 ;
21742 bool arg5 = (bool) false ;
21743 int arg6 = (int) wxNOT_FOUND ;
21744 bool result;
21745 void *argp1 = 0 ;
21746 int res1 = 0 ;
21747 size_t val2 ;
21748 int ecode2 = 0 ;
21749 void *argp3 = 0 ;
21750 int res3 = 0 ;
21751 bool temp4 = false ;
21752 bool val5 ;
21753 int ecode5 = 0 ;
21754 int val6 ;
21755 int ecode6 = 0 ;
21756 PyObject * obj0 = 0 ;
21757 PyObject * obj1 = 0 ;
21758 PyObject * obj2 = 0 ;
21759 PyObject * obj3 = 0 ;
21760 PyObject * obj4 = 0 ;
21761 PyObject * obj5 = 0 ;
21762 char * kwnames[] = {
21763 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21764 };
21765
21766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21768 if (!SWIG_IsOK(res1)) {
21769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21770 }
21771 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21772 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21773 if (!SWIG_IsOK(ecode2)) {
21774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21775 }
21776 arg2 = static_cast< size_t >(val2);
21777 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21778 if (!SWIG_IsOK(res3)) {
21779 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21780 }
21781 arg3 = reinterpret_cast< wxWindow * >(argp3);
21782 {
21783 arg4 = wxString_in_helper(obj3);
21784 if (arg4 == NULL) SWIG_fail;
21785 temp4 = true;
21786 }
21787 if (obj4) {
21788 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21789 if (!SWIG_IsOK(ecode5)) {
21790 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21791 }
21792 arg5 = static_cast< bool >(val5);
21793 }
21794 if (obj5) {
21795 ecode6 = SWIG_AsVal_int(obj5, &val6);
21796 if (!SWIG_IsOK(ecode6)) {
21797 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21798 }
21799 arg6 = static_cast< int >(val6);
21800 }
21801 {
21802 PyThreadState* __tstate = wxPyBeginAllowThreads();
21803 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21804 wxPyEndAllowThreads(__tstate);
21805 if (PyErr_Occurred()) SWIG_fail;
21806 }
21807 {
21808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21809 }
21810 {
21811 if (temp4)
21812 delete arg4;
21813 }
21814 return resultobj;
21815 fail:
21816 {
21817 if (temp4)
21818 delete arg4;
21819 }
21820 return NULL;
21821 }
21822
21823
21824 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21825 PyObject *resultobj = 0;
21826 wxTreebook *arg1 = (wxTreebook *) 0 ;
21827 wxWindow *arg2 = (wxWindow *) 0 ;
21828 wxString *arg3 = 0 ;
21829 bool arg4 = (bool) false ;
21830 int arg5 = (int) wxNOT_FOUND ;
21831 bool result;
21832 void *argp1 = 0 ;
21833 int res1 = 0 ;
21834 void *argp2 = 0 ;
21835 int res2 = 0 ;
21836 bool temp3 = false ;
21837 bool val4 ;
21838 int ecode4 = 0 ;
21839 int val5 ;
21840 int ecode5 = 0 ;
21841 PyObject * obj0 = 0 ;
21842 PyObject * obj1 = 0 ;
21843 PyObject * obj2 = 0 ;
21844 PyObject * obj3 = 0 ;
21845 PyObject * obj4 = 0 ;
21846 char * kwnames[] = {
21847 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21848 };
21849
21850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21852 if (!SWIG_IsOK(res1)) {
21853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21854 }
21855 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21856 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21857 if (!SWIG_IsOK(res2)) {
21858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21859 }
21860 arg2 = reinterpret_cast< wxWindow * >(argp2);
21861 {
21862 arg3 = wxString_in_helper(obj2);
21863 if (arg3 == NULL) SWIG_fail;
21864 temp3 = true;
21865 }
21866 if (obj3) {
21867 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21868 if (!SWIG_IsOK(ecode4)) {
21869 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21870 }
21871 arg4 = static_cast< bool >(val4);
21872 }
21873 if (obj4) {
21874 ecode5 = SWIG_AsVal_int(obj4, &val5);
21875 if (!SWIG_IsOK(ecode5)) {
21876 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21877 }
21878 arg5 = static_cast< int >(val5);
21879 }
21880 {
21881 PyThreadState* __tstate = wxPyBeginAllowThreads();
21882 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21883 wxPyEndAllowThreads(__tstate);
21884 if (PyErr_Occurred()) SWIG_fail;
21885 }
21886 {
21887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21888 }
21889 {
21890 if (temp3)
21891 delete arg3;
21892 }
21893 return resultobj;
21894 fail:
21895 {
21896 if (temp3)
21897 delete arg3;
21898 }
21899 return NULL;
21900 }
21901
21902
21903 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21904 PyObject *resultobj = 0;
21905 wxTreebook *arg1 = (wxTreebook *) 0 ;
21906 size_t arg2 ;
21907 bool result;
21908 void *argp1 = 0 ;
21909 int res1 = 0 ;
21910 size_t val2 ;
21911 int ecode2 = 0 ;
21912 PyObject * obj0 = 0 ;
21913 PyObject * obj1 = 0 ;
21914 char * kwnames[] = {
21915 (char *) "self",(char *) "pos", NULL
21916 };
21917
21918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21920 if (!SWIG_IsOK(res1)) {
21921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21922 }
21923 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21924 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21925 if (!SWIG_IsOK(ecode2)) {
21926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21927 }
21928 arg2 = static_cast< size_t >(val2);
21929 {
21930 PyThreadState* __tstate = wxPyBeginAllowThreads();
21931 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21932 wxPyEndAllowThreads(__tstate);
21933 if (PyErr_Occurred()) SWIG_fail;
21934 }
21935 {
21936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21937 }
21938 return resultobj;
21939 fail:
21940 return NULL;
21941 }
21942
21943
21944 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21945 PyObject *resultobj = 0;
21946 wxTreebook *arg1 = (wxTreebook *) 0 ;
21947 size_t arg2 ;
21948 bool arg3 = (bool) true ;
21949 bool result;
21950 void *argp1 = 0 ;
21951 int res1 = 0 ;
21952 size_t val2 ;
21953 int ecode2 = 0 ;
21954 bool val3 ;
21955 int ecode3 = 0 ;
21956 PyObject * obj0 = 0 ;
21957 PyObject * obj1 = 0 ;
21958 PyObject * obj2 = 0 ;
21959 char * kwnames[] = {
21960 (char *) "self",(char *) "pos",(char *) "expand", NULL
21961 };
21962
21963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21965 if (!SWIG_IsOK(res1)) {
21966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21967 }
21968 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21969 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21970 if (!SWIG_IsOK(ecode2)) {
21971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21972 }
21973 arg2 = static_cast< size_t >(val2);
21974 if (obj2) {
21975 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21976 if (!SWIG_IsOK(ecode3)) {
21977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21978 }
21979 arg3 = static_cast< bool >(val3);
21980 }
21981 {
21982 PyThreadState* __tstate = wxPyBeginAllowThreads();
21983 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21984 wxPyEndAllowThreads(__tstate);
21985 if (PyErr_Occurred()) SWIG_fail;
21986 }
21987 {
21988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21989 }
21990 return resultobj;
21991 fail:
21992 return NULL;
21993 }
21994
21995
21996 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21997 PyObject *resultobj = 0;
21998 wxTreebook *arg1 = (wxTreebook *) 0 ;
21999 size_t arg2 ;
22000 bool result;
22001 void *argp1 = 0 ;
22002 int res1 = 0 ;
22003 size_t val2 ;
22004 int ecode2 = 0 ;
22005 PyObject * obj0 = 0 ;
22006 PyObject * obj1 = 0 ;
22007 char * kwnames[] = {
22008 (char *) "self",(char *) "pos", NULL
22009 };
22010
22011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22013 if (!SWIG_IsOK(res1)) {
22014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22015 }
22016 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22017 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22018 if (!SWIG_IsOK(ecode2)) {
22019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22020 }
22021 arg2 = static_cast< size_t >(val2);
22022 {
22023 PyThreadState* __tstate = wxPyBeginAllowThreads();
22024 result = (bool)(arg1)->CollapseNode(arg2);
22025 wxPyEndAllowThreads(__tstate);
22026 if (PyErr_Occurred()) SWIG_fail;
22027 }
22028 {
22029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22030 }
22031 return resultobj;
22032 fail:
22033 return NULL;
22034 }
22035
22036
22037 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22038 PyObject *resultobj = 0;
22039 wxTreebook *arg1 = (wxTreebook *) 0 ;
22040 size_t arg2 ;
22041 int result;
22042 void *argp1 = 0 ;
22043 int res1 = 0 ;
22044 size_t val2 ;
22045 int ecode2 = 0 ;
22046 PyObject * obj0 = 0 ;
22047 PyObject * obj1 = 0 ;
22048 char * kwnames[] = {
22049 (char *) "self",(char *) "pos", NULL
22050 };
22051
22052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22054 if (!SWIG_IsOK(res1)) {
22055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22056 }
22057 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22058 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22059 if (!SWIG_IsOK(ecode2)) {
22060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22061 }
22062 arg2 = static_cast< size_t >(val2);
22063 {
22064 PyThreadState* __tstate = wxPyBeginAllowThreads();
22065 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22066 wxPyEndAllowThreads(__tstate);
22067 if (PyErr_Occurred()) SWIG_fail;
22068 }
22069 resultobj = SWIG_From_int(static_cast< int >(result));
22070 return resultobj;
22071 fail:
22072 return NULL;
22073 }
22074
22075
22076 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22077 PyObject *resultobj = 0;
22078 wxTreebook *arg1 = (wxTreebook *) 0 ;
22079 wxPyTreeCtrl *result = 0 ;
22080 void *argp1 = 0 ;
22081 int res1 = 0 ;
22082 PyObject *swig_obj[1] ;
22083
22084 if (!args) SWIG_fail;
22085 swig_obj[0] = args;
22086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22087 if (!SWIG_IsOK(res1)) {
22088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22089 }
22090 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22091 {
22092 PyThreadState* __tstate = wxPyBeginAllowThreads();
22093 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22094 wxPyEndAllowThreads(__tstate);
22095 if (PyErr_Occurred()) SWIG_fail;
22096 }
22097 {
22098 resultobj = wxPyMake_wxObject(result, (bool)0);
22099 }
22100 return resultobj;
22101 fail:
22102 return NULL;
22103 }
22104
22105
22106 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22107 PyObject *obj;
22108 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22109 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22110 return SWIG_Py_Void();
22111 }
22112
22113 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22114 return SWIG_Python_InitShadowInstance(args);
22115 }
22116
22117 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22118 PyObject *resultobj = 0;
22119 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22120 int arg2 = (int) 0 ;
22121 int arg3 = (int) wxNOT_FOUND ;
22122 int arg4 = (int) wxNOT_FOUND ;
22123 wxTreebookEvent *result = 0 ;
22124 int val1 ;
22125 int ecode1 = 0 ;
22126 int val2 ;
22127 int ecode2 = 0 ;
22128 int val3 ;
22129 int ecode3 = 0 ;
22130 int val4 ;
22131 int ecode4 = 0 ;
22132 PyObject * obj0 = 0 ;
22133 PyObject * obj1 = 0 ;
22134 PyObject * obj2 = 0 ;
22135 PyObject * obj3 = 0 ;
22136 char * kwnames[] = {
22137 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22138 };
22139
22140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22141 if (obj0) {
22142 ecode1 = SWIG_AsVal_int(obj0, &val1);
22143 if (!SWIG_IsOK(ecode1)) {
22144 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22145 }
22146 arg1 = static_cast< wxEventType >(val1);
22147 }
22148 if (obj1) {
22149 ecode2 = SWIG_AsVal_int(obj1, &val2);
22150 if (!SWIG_IsOK(ecode2)) {
22151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22152 }
22153 arg2 = static_cast< int >(val2);
22154 }
22155 if (obj2) {
22156 ecode3 = SWIG_AsVal_int(obj2, &val3);
22157 if (!SWIG_IsOK(ecode3)) {
22158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22159 }
22160 arg3 = static_cast< int >(val3);
22161 }
22162 if (obj3) {
22163 ecode4 = SWIG_AsVal_int(obj3, &val4);
22164 if (!SWIG_IsOK(ecode4)) {
22165 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22166 }
22167 arg4 = static_cast< int >(val4);
22168 }
22169 {
22170 PyThreadState* __tstate = wxPyBeginAllowThreads();
22171 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22172 wxPyEndAllowThreads(__tstate);
22173 if (PyErr_Occurred()) SWIG_fail;
22174 }
22175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22176 return resultobj;
22177 fail:
22178 return NULL;
22179 }
22180
22181
22182 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22183 PyObject *obj;
22184 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22185 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22186 return SWIG_Py_Void();
22187 }
22188
22189 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22190 return SWIG_Python_InitShadowInstance(args);
22191 }
22192
22193 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22194 PyObject *resultobj = 0;
22195 wxWindow *arg1 = (wxWindow *) 0 ;
22196 int arg2 ;
22197 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22198 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22199 wxSize const &arg4_defvalue = wxDefaultSize ;
22200 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22201 long arg5 = (long) wxBK_DEFAULT ;
22202 wxString const &arg6_defvalue = wxPyEmptyString ;
22203 wxString *arg6 = (wxString *) &arg6_defvalue ;
22204 wxToolbook *result = 0 ;
22205 void *argp1 = 0 ;
22206 int res1 = 0 ;
22207 int val2 ;
22208 int ecode2 = 0 ;
22209 wxPoint temp3 ;
22210 wxSize temp4 ;
22211 long val5 ;
22212 int ecode5 = 0 ;
22213 bool temp6 = false ;
22214 PyObject * obj0 = 0 ;
22215 PyObject * obj1 = 0 ;
22216 PyObject * obj2 = 0 ;
22217 PyObject * obj3 = 0 ;
22218 PyObject * obj4 = 0 ;
22219 PyObject * obj5 = 0 ;
22220 char * kwnames[] = {
22221 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22222 };
22223
22224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22226 if (!SWIG_IsOK(res1)) {
22227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22228 }
22229 arg1 = reinterpret_cast< wxWindow * >(argp1);
22230 ecode2 = SWIG_AsVal_int(obj1, &val2);
22231 if (!SWIG_IsOK(ecode2)) {
22232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22233 }
22234 arg2 = static_cast< int >(val2);
22235 if (obj2) {
22236 {
22237 arg3 = &temp3;
22238 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22239 }
22240 }
22241 if (obj3) {
22242 {
22243 arg4 = &temp4;
22244 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22245 }
22246 }
22247 if (obj4) {
22248 ecode5 = SWIG_AsVal_long(obj4, &val5);
22249 if (!SWIG_IsOK(ecode5)) {
22250 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22251 }
22252 arg5 = static_cast< long >(val5);
22253 }
22254 if (obj5) {
22255 {
22256 arg6 = wxString_in_helper(obj5);
22257 if (arg6 == NULL) SWIG_fail;
22258 temp6 = true;
22259 }
22260 }
22261 {
22262 PyThreadState* __tstate = wxPyBeginAllowThreads();
22263 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22264 wxPyEndAllowThreads(__tstate);
22265 if (PyErr_Occurred()) SWIG_fail;
22266 }
22267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22268 {
22269 if (temp6)
22270 delete arg6;
22271 }
22272 return resultobj;
22273 fail:
22274 {
22275 if (temp6)
22276 delete arg6;
22277 }
22278 return NULL;
22279 }
22280
22281
22282 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22283 PyObject *resultobj = 0;
22284 wxToolbook *result = 0 ;
22285
22286 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22287 {
22288 PyThreadState* __tstate = wxPyBeginAllowThreads();
22289 result = (wxToolbook *)new wxToolbook();
22290 wxPyEndAllowThreads(__tstate);
22291 if (PyErr_Occurred()) SWIG_fail;
22292 }
22293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22294 return resultobj;
22295 fail:
22296 return NULL;
22297 }
22298
22299
22300 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22301 PyObject *resultobj = 0;
22302 wxToolbook *arg1 = (wxToolbook *) 0 ;
22303 wxWindow *arg2 = (wxWindow *) 0 ;
22304 int arg3 ;
22305 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22306 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22307 wxSize const &arg5_defvalue = wxDefaultSize ;
22308 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22309 long arg6 = (long) 0 ;
22310 wxString const &arg7_defvalue = wxEmptyString ;
22311 wxString *arg7 = (wxString *) &arg7_defvalue ;
22312 bool result;
22313 void *argp1 = 0 ;
22314 int res1 = 0 ;
22315 void *argp2 = 0 ;
22316 int res2 = 0 ;
22317 int val3 ;
22318 int ecode3 = 0 ;
22319 wxPoint temp4 ;
22320 wxSize temp5 ;
22321 long val6 ;
22322 int ecode6 = 0 ;
22323 bool temp7 = false ;
22324 PyObject * obj0 = 0 ;
22325 PyObject * obj1 = 0 ;
22326 PyObject * obj2 = 0 ;
22327 PyObject * obj3 = 0 ;
22328 PyObject * obj4 = 0 ;
22329 PyObject * obj5 = 0 ;
22330 PyObject * obj6 = 0 ;
22331 char * kwnames[] = {
22332 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22333 };
22334
22335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22337 if (!SWIG_IsOK(res1)) {
22338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22339 }
22340 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22341 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22342 if (!SWIG_IsOK(res2)) {
22343 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22344 }
22345 arg2 = reinterpret_cast< wxWindow * >(argp2);
22346 ecode3 = SWIG_AsVal_int(obj2, &val3);
22347 if (!SWIG_IsOK(ecode3)) {
22348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22349 }
22350 arg3 = static_cast< int >(val3);
22351 if (obj3) {
22352 {
22353 arg4 = &temp4;
22354 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22355 }
22356 }
22357 if (obj4) {
22358 {
22359 arg5 = &temp5;
22360 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22361 }
22362 }
22363 if (obj5) {
22364 ecode6 = SWIG_AsVal_long(obj5, &val6);
22365 if (!SWIG_IsOK(ecode6)) {
22366 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22367 }
22368 arg6 = static_cast< long >(val6);
22369 }
22370 if (obj6) {
22371 {
22372 arg7 = wxString_in_helper(obj6);
22373 if (arg7 == NULL) SWIG_fail;
22374 temp7 = true;
22375 }
22376 }
22377 {
22378 PyThreadState* __tstate = wxPyBeginAllowThreads();
22379 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22380 wxPyEndAllowThreads(__tstate);
22381 if (PyErr_Occurred()) SWIG_fail;
22382 }
22383 {
22384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22385 }
22386 {
22387 if (temp7)
22388 delete arg7;
22389 }
22390 return resultobj;
22391 fail:
22392 {
22393 if (temp7)
22394 delete arg7;
22395 }
22396 return NULL;
22397 }
22398
22399
22400 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22401 PyObject *resultobj = 0;
22402 wxToolbook *arg1 = (wxToolbook *) 0 ;
22403 wxToolBarBase *result = 0 ;
22404 void *argp1 = 0 ;
22405 int res1 = 0 ;
22406 PyObject *swig_obj[1] ;
22407
22408 if (!args) SWIG_fail;
22409 swig_obj[0] = args;
22410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22411 if (!SWIG_IsOK(res1)) {
22412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22413 }
22414 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22415 {
22416 PyThreadState* __tstate = wxPyBeginAllowThreads();
22417 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22418 wxPyEndAllowThreads(__tstate);
22419 if (PyErr_Occurred()) SWIG_fail;
22420 }
22421 {
22422 resultobj = wxPyMake_wxObject(result, (bool)0);
22423 }
22424 return resultobj;
22425 fail:
22426 return NULL;
22427 }
22428
22429
22430 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22431 PyObject *resultobj = 0;
22432 wxToolbook *arg1 = (wxToolbook *) 0 ;
22433 void *argp1 = 0 ;
22434 int res1 = 0 ;
22435 PyObject *swig_obj[1] ;
22436
22437 if (!args) SWIG_fail;
22438 swig_obj[0] = args;
22439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22440 if (!SWIG_IsOK(res1)) {
22441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22442 }
22443 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22444 {
22445 PyThreadState* __tstate = wxPyBeginAllowThreads();
22446 (arg1)->Realize();
22447 wxPyEndAllowThreads(__tstate);
22448 if (PyErr_Occurred()) SWIG_fail;
22449 }
22450 resultobj = SWIG_Py_Void();
22451 return resultobj;
22452 fail:
22453 return NULL;
22454 }
22455
22456
22457 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22458 PyObject *obj;
22459 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22460 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22461 return SWIG_Py_Void();
22462 }
22463
22464 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22465 return SWIG_Python_InitShadowInstance(args);
22466 }
22467
22468 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22469 PyObject *resultobj = 0;
22470 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22471 int arg2 = (int) 0 ;
22472 int arg3 = (int) wxNOT_FOUND ;
22473 int arg4 = (int) wxNOT_FOUND ;
22474 wxToolbookEvent *result = 0 ;
22475 int val1 ;
22476 int ecode1 = 0 ;
22477 int val2 ;
22478 int ecode2 = 0 ;
22479 int val3 ;
22480 int ecode3 = 0 ;
22481 int val4 ;
22482 int ecode4 = 0 ;
22483 PyObject * obj0 = 0 ;
22484 PyObject * obj1 = 0 ;
22485 PyObject * obj2 = 0 ;
22486 PyObject * obj3 = 0 ;
22487 char * kwnames[] = {
22488 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22489 };
22490
22491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22492 if (obj0) {
22493 ecode1 = SWIG_AsVal_int(obj0, &val1);
22494 if (!SWIG_IsOK(ecode1)) {
22495 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22496 }
22497 arg1 = static_cast< wxEventType >(val1);
22498 }
22499 if (obj1) {
22500 ecode2 = SWIG_AsVal_int(obj1, &val2);
22501 if (!SWIG_IsOK(ecode2)) {
22502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22503 }
22504 arg2 = static_cast< int >(val2);
22505 }
22506 if (obj2) {
22507 ecode3 = SWIG_AsVal_int(obj2, &val3);
22508 if (!SWIG_IsOK(ecode3)) {
22509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22510 }
22511 arg3 = static_cast< int >(val3);
22512 }
22513 if (obj3) {
22514 ecode4 = SWIG_AsVal_int(obj3, &val4);
22515 if (!SWIG_IsOK(ecode4)) {
22516 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22517 }
22518 arg4 = static_cast< int >(val4);
22519 }
22520 {
22521 PyThreadState* __tstate = wxPyBeginAllowThreads();
22522 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22523 wxPyEndAllowThreads(__tstate);
22524 if (PyErr_Occurred()) SWIG_fail;
22525 }
22526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22527 return resultobj;
22528 fail:
22529 return NULL;
22530 }
22531
22532
22533 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22534 PyObject *obj;
22535 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22536 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22537 return SWIG_Py_Void();
22538 }
22539
22540 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22541 return SWIG_Python_InitShadowInstance(args);
22542 }
22543
22544 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22545 PyObject *resultobj = 0;
22546 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22547 int result;
22548 void *argp1 = 0 ;
22549 int res1 = 0 ;
22550 PyObject *swig_obj[1] ;
22551
22552 if (!args) SWIG_fail;
22553 swig_obj[0] = args;
22554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22555 if (!SWIG_IsOK(res1)) {
22556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22557 }
22558 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22559 {
22560 PyThreadState* __tstate = wxPyBeginAllowThreads();
22561 result = (int)(arg1)->GetId();
22562 wxPyEndAllowThreads(__tstate);
22563 if (PyErr_Occurred()) SWIG_fail;
22564 }
22565 resultobj = SWIG_From_int(static_cast< int >(result));
22566 return resultobj;
22567 fail:
22568 return NULL;
22569 }
22570
22571
22572 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22573 PyObject *resultobj = 0;
22574 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22575 wxControl *result = 0 ;
22576 void *argp1 = 0 ;
22577 int res1 = 0 ;
22578 PyObject *swig_obj[1] ;
22579
22580 if (!args) SWIG_fail;
22581 swig_obj[0] = args;
22582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22583 if (!SWIG_IsOK(res1)) {
22584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22585 }
22586 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22587 {
22588 PyThreadState* __tstate = wxPyBeginAllowThreads();
22589 result = (wxControl *)(arg1)->GetControl();
22590 wxPyEndAllowThreads(__tstate);
22591 if (PyErr_Occurred()) SWIG_fail;
22592 }
22593 {
22594 resultobj = wxPyMake_wxObject(result, 0);
22595 }
22596 return resultobj;
22597 fail:
22598 return NULL;
22599 }
22600
22601
22602 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22603 PyObject *resultobj = 0;
22604 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22605 wxToolBarBase *result = 0 ;
22606 void *argp1 = 0 ;
22607 int res1 = 0 ;
22608 PyObject *swig_obj[1] ;
22609
22610 if (!args) SWIG_fail;
22611 swig_obj[0] = args;
22612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22613 if (!SWIG_IsOK(res1)) {
22614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22615 }
22616 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22617 {
22618 PyThreadState* __tstate = wxPyBeginAllowThreads();
22619 result = (wxToolBarBase *)(arg1)->GetToolBar();
22620 wxPyEndAllowThreads(__tstate);
22621 if (PyErr_Occurred()) SWIG_fail;
22622 }
22623 {
22624 resultobj = wxPyMake_wxObject(result, (bool)0);
22625 }
22626 return resultobj;
22627 fail:
22628 return NULL;
22629 }
22630
22631
22632 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22633 PyObject *resultobj = 0;
22634 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22635 int result;
22636 void *argp1 = 0 ;
22637 int res1 = 0 ;
22638 PyObject *swig_obj[1] ;
22639
22640 if (!args) SWIG_fail;
22641 swig_obj[0] = args;
22642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22643 if (!SWIG_IsOK(res1)) {
22644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22645 }
22646 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22647 {
22648 PyThreadState* __tstate = wxPyBeginAllowThreads();
22649 result = (int)(arg1)->IsButton();
22650 wxPyEndAllowThreads(__tstate);
22651 if (PyErr_Occurred()) SWIG_fail;
22652 }
22653 resultobj = SWIG_From_int(static_cast< int >(result));
22654 return resultobj;
22655 fail:
22656 return NULL;
22657 }
22658
22659
22660 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22661 PyObject *resultobj = 0;
22662 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22663 int result;
22664 void *argp1 = 0 ;
22665 int res1 = 0 ;
22666 PyObject *swig_obj[1] ;
22667
22668 if (!args) SWIG_fail;
22669 swig_obj[0] = args;
22670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22671 if (!SWIG_IsOK(res1)) {
22672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22673 }
22674 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22675 {
22676 PyThreadState* __tstate = wxPyBeginAllowThreads();
22677 result = (int)(arg1)->IsControl();
22678 wxPyEndAllowThreads(__tstate);
22679 if (PyErr_Occurred()) SWIG_fail;
22680 }
22681 resultobj = SWIG_From_int(static_cast< int >(result));
22682 return resultobj;
22683 fail:
22684 return NULL;
22685 }
22686
22687
22688 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22689 PyObject *resultobj = 0;
22690 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22691 int result;
22692 void *argp1 = 0 ;
22693 int res1 = 0 ;
22694 PyObject *swig_obj[1] ;
22695
22696 if (!args) SWIG_fail;
22697 swig_obj[0] = args;
22698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22699 if (!SWIG_IsOK(res1)) {
22700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22701 }
22702 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22703 {
22704 PyThreadState* __tstate = wxPyBeginAllowThreads();
22705 result = (int)(arg1)->IsSeparator();
22706 wxPyEndAllowThreads(__tstate);
22707 if (PyErr_Occurred()) SWIG_fail;
22708 }
22709 resultobj = SWIG_From_int(static_cast< int >(result));
22710 return resultobj;
22711 fail:
22712 return NULL;
22713 }
22714
22715
22716 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22717 PyObject *resultobj = 0;
22718 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22719 int result;
22720 void *argp1 = 0 ;
22721 int res1 = 0 ;
22722 PyObject *swig_obj[1] ;
22723
22724 if (!args) SWIG_fail;
22725 swig_obj[0] = args;
22726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22727 if (!SWIG_IsOK(res1)) {
22728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22729 }
22730 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22731 {
22732 PyThreadState* __tstate = wxPyBeginAllowThreads();
22733 result = (int)(arg1)->GetStyle();
22734 wxPyEndAllowThreads(__tstate);
22735 if (PyErr_Occurred()) SWIG_fail;
22736 }
22737 resultobj = SWIG_From_int(static_cast< int >(result));
22738 return resultobj;
22739 fail:
22740 return NULL;
22741 }
22742
22743
22744 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22745 PyObject *resultobj = 0;
22746 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22747 wxItemKind result;
22748 void *argp1 = 0 ;
22749 int res1 = 0 ;
22750 PyObject *swig_obj[1] ;
22751
22752 if (!args) SWIG_fail;
22753 swig_obj[0] = args;
22754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22755 if (!SWIG_IsOK(res1)) {
22756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22757 }
22758 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22759 {
22760 PyThreadState* __tstate = wxPyBeginAllowThreads();
22761 result = (wxItemKind)(arg1)->GetKind();
22762 wxPyEndAllowThreads(__tstate);
22763 if (PyErr_Occurred()) SWIG_fail;
22764 }
22765 resultobj = SWIG_From_int(static_cast< int >(result));
22766 return resultobj;
22767 fail:
22768 return NULL;
22769 }
22770
22771
22772 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22773 PyObject *resultobj = 0;
22774 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22775 bool result;
22776 void *argp1 = 0 ;
22777 int res1 = 0 ;
22778 PyObject *swig_obj[1] ;
22779
22780 if (!args) SWIG_fail;
22781 swig_obj[0] = args;
22782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22783 if (!SWIG_IsOK(res1)) {
22784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22785 }
22786 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22787 {
22788 PyThreadState* __tstate = wxPyBeginAllowThreads();
22789 result = (bool)(arg1)->IsEnabled();
22790 wxPyEndAllowThreads(__tstate);
22791 if (PyErr_Occurred()) SWIG_fail;
22792 }
22793 {
22794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22795 }
22796 return resultobj;
22797 fail:
22798 return NULL;
22799 }
22800
22801
22802 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22803 PyObject *resultobj = 0;
22804 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22805 bool result;
22806 void *argp1 = 0 ;
22807 int res1 = 0 ;
22808 PyObject *swig_obj[1] ;
22809
22810 if (!args) SWIG_fail;
22811 swig_obj[0] = args;
22812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22813 if (!SWIG_IsOK(res1)) {
22814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22815 }
22816 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22817 {
22818 PyThreadState* __tstate = wxPyBeginAllowThreads();
22819 result = (bool)(arg1)->IsToggled();
22820 wxPyEndAllowThreads(__tstate);
22821 if (PyErr_Occurred()) SWIG_fail;
22822 }
22823 {
22824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22825 }
22826 return resultobj;
22827 fail:
22828 return NULL;
22829 }
22830
22831
22832 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22833 PyObject *resultobj = 0;
22834 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22835 bool result;
22836 void *argp1 = 0 ;
22837 int res1 = 0 ;
22838 PyObject *swig_obj[1] ;
22839
22840 if (!args) SWIG_fail;
22841 swig_obj[0] = args;
22842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22843 if (!SWIG_IsOK(res1)) {
22844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22845 }
22846 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22847 {
22848 PyThreadState* __tstate = wxPyBeginAllowThreads();
22849 result = (bool)(arg1)->CanBeToggled();
22850 wxPyEndAllowThreads(__tstate);
22851 if (PyErr_Occurred()) SWIG_fail;
22852 }
22853 {
22854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22855 }
22856 return resultobj;
22857 fail:
22858 return NULL;
22859 }
22860
22861
22862 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22863 PyObject *resultobj = 0;
22864 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22865 wxBitmap *result = 0 ;
22866 void *argp1 = 0 ;
22867 int res1 = 0 ;
22868 PyObject *swig_obj[1] ;
22869
22870 if (!args) SWIG_fail;
22871 swig_obj[0] = args;
22872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22873 if (!SWIG_IsOK(res1)) {
22874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22875 }
22876 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22877 {
22878 PyThreadState* __tstate = wxPyBeginAllowThreads();
22879 {
22880 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22881 result = (wxBitmap *) &_result_ref;
22882 }
22883 wxPyEndAllowThreads(__tstate);
22884 if (PyErr_Occurred()) SWIG_fail;
22885 }
22886 {
22887 wxBitmap* resultptr = new wxBitmap(*result);
22888 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22889 }
22890 return resultobj;
22891 fail:
22892 return NULL;
22893 }
22894
22895
22896 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22897 PyObject *resultobj = 0;
22898 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22899 wxBitmap *result = 0 ;
22900 void *argp1 = 0 ;
22901 int res1 = 0 ;
22902 PyObject *swig_obj[1] ;
22903
22904 if (!args) SWIG_fail;
22905 swig_obj[0] = args;
22906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22907 if (!SWIG_IsOK(res1)) {
22908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22909 }
22910 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22911 {
22912 PyThreadState* __tstate = wxPyBeginAllowThreads();
22913 {
22914 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22915 result = (wxBitmap *) &_result_ref;
22916 }
22917 wxPyEndAllowThreads(__tstate);
22918 if (PyErr_Occurred()) SWIG_fail;
22919 }
22920 {
22921 wxBitmap* resultptr = new wxBitmap(*result);
22922 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22923 }
22924 return resultobj;
22925 fail:
22926 return NULL;
22927 }
22928
22929
22930 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22931 PyObject *resultobj = 0;
22932 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22933 wxBitmap result;
22934 void *argp1 = 0 ;
22935 int res1 = 0 ;
22936 PyObject *swig_obj[1] ;
22937
22938 if (!args) SWIG_fail;
22939 swig_obj[0] = args;
22940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22941 if (!SWIG_IsOK(res1)) {
22942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22943 }
22944 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22945 {
22946 PyThreadState* __tstate = wxPyBeginAllowThreads();
22947 result = (arg1)->GetBitmap();
22948 wxPyEndAllowThreads(__tstate);
22949 if (PyErr_Occurred()) SWIG_fail;
22950 }
22951 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22952 return resultobj;
22953 fail:
22954 return NULL;
22955 }
22956
22957
22958 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22959 PyObject *resultobj = 0;
22960 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22961 wxString result;
22962 void *argp1 = 0 ;
22963 int res1 = 0 ;
22964 PyObject *swig_obj[1] ;
22965
22966 if (!args) SWIG_fail;
22967 swig_obj[0] = args;
22968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22969 if (!SWIG_IsOK(res1)) {
22970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22971 }
22972 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22973 {
22974 PyThreadState* __tstate = wxPyBeginAllowThreads();
22975 result = (arg1)->GetLabel();
22976 wxPyEndAllowThreads(__tstate);
22977 if (PyErr_Occurred()) SWIG_fail;
22978 }
22979 {
22980 #if wxUSE_UNICODE
22981 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22982 #else
22983 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22984 #endif
22985 }
22986 return resultobj;
22987 fail:
22988 return NULL;
22989 }
22990
22991
22992 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22993 PyObject *resultobj = 0;
22994 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22995 wxString result;
22996 void *argp1 = 0 ;
22997 int res1 = 0 ;
22998 PyObject *swig_obj[1] ;
22999
23000 if (!args) SWIG_fail;
23001 swig_obj[0] = args;
23002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23003 if (!SWIG_IsOK(res1)) {
23004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23005 }
23006 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23007 {
23008 PyThreadState* __tstate = wxPyBeginAllowThreads();
23009 result = (arg1)->GetShortHelp();
23010 wxPyEndAllowThreads(__tstate);
23011 if (PyErr_Occurred()) SWIG_fail;
23012 }
23013 {
23014 #if wxUSE_UNICODE
23015 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23016 #else
23017 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23018 #endif
23019 }
23020 return resultobj;
23021 fail:
23022 return NULL;
23023 }
23024
23025
23026 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23027 PyObject *resultobj = 0;
23028 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23029 wxString result;
23030 void *argp1 = 0 ;
23031 int res1 = 0 ;
23032 PyObject *swig_obj[1] ;
23033
23034 if (!args) SWIG_fail;
23035 swig_obj[0] = args;
23036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23037 if (!SWIG_IsOK(res1)) {
23038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23039 }
23040 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23041 {
23042 PyThreadState* __tstate = wxPyBeginAllowThreads();
23043 result = (arg1)->GetLongHelp();
23044 wxPyEndAllowThreads(__tstate);
23045 if (PyErr_Occurred()) SWIG_fail;
23046 }
23047 {
23048 #if wxUSE_UNICODE
23049 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23050 #else
23051 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23052 #endif
23053 }
23054 return resultobj;
23055 fail:
23056 return NULL;
23057 }
23058
23059
23060 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23061 PyObject *resultobj = 0;
23062 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23063 bool arg2 ;
23064 bool result;
23065 void *argp1 = 0 ;
23066 int res1 = 0 ;
23067 bool val2 ;
23068 int ecode2 = 0 ;
23069 PyObject * obj0 = 0 ;
23070 PyObject * obj1 = 0 ;
23071 char * kwnames[] = {
23072 (char *) "self",(char *) "enable", NULL
23073 };
23074
23075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23077 if (!SWIG_IsOK(res1)) {
23078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23079 }
23080 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23081 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23082 if (!SWIG_IsOK(ecode2)) {
23083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23084 }
23085 arg2 = static_cast< bool >(val2);
23086 {
23087 PyThreadState* __tstate = wxPyBeginAllowThreads();
23088 result = (bool)(arg1)->Enable(arg2);
23089 wxPyEndAllowThreads(__tstate);
23090 if (PyErr_Occurred()) SWIG_fail;
23091 }
23092 {
23093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23094 }
23095 return resultobj;
23096 fail:
23097 return NULL;
23098 }
23099
23100
23101 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23102 PyObject *resultobj = 0;
23103 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23104 void *argp1 = 0 ;
23105 int res1 = 0 ;
23106 PyObject *swig_obj[1] ;
23107
23108 if (!args) SWIG_fail;
23109 swig_obj[0] = args;
23110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23111 if (!SWIG_IsOK(res1)) {
23112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23113 }
23114 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23115 {
23116 PyThreadState* __tstate = wxPyBeginAllowThreads();
23117 (arg1)->Toggle();
23118 wxPyEndAllowThreads(__tstate);
23119 if (PyErr_Occurred()) SWIG_fail;
23120 }
23121 resultobj = SWIG_Py_Void();
23122 return resultobj;
23123 fail:
23124 return NULL;
23125 }
23126
23127
23128 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23129 PyObject *resultobj = 0;
23130 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23131 bool arg2 ;
23132 bool result;
23133 void *argp1 = 0 ;
23134 int res1 = 0 ;
23135 bool val2 ;
23136 int ecode2 = 0 ;
23137 PyObject * obj0 = 0 ;
23138 PyObject * obj1 = 0 ;
23139 char * kwnames[] = {
23140 (char *) "self",(char *) "toggle", NULL
23141 };
23142
23143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23145 if (!SWIG_IsOK(res1)) {
23146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23147 }
23148 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23149 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23150 if (!SWIG_IsOK(ecode2)) {
23151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23152 }
23153 arg2 = static_cast< bool >(val2);
23154 {
23155 PyThreadState* __tstate = wxPyBeginAllowThreads();
23156 result = (bool)(arg1)->SetToggle(arg2);
23157 wxPyEndAllowThreads(__tstate);
23158 if (PyErr_Occurred()) SWIG_fail;
23159 }
23160 {
23161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23162 }
23163 return resultobj;
23164 fail:
23165 return NULL;
23166 }
23167
23168
23169 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23170 PyObject *resultobj = 0;
23171 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23172 wxString *arg2 = 0 ;
23173 bool result;
23174 void *argp1 = 0 ;
23175 int res1 = 0 ;
23176 bool temp2 = false ;
23177 PyObject * obj0 = 0 ;
23178 PyObject * obj1 = 0 ;
23179 char * kwnames[] = {
23180 (char *) "self",(char *) "help", NULL
23181 };
23182
23183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23185 if (!SWIG_IsOK(res1)) {
23186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23187 }
23188 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23189 {
23190 arg2 = wxString_in_helper(obj1);
23191 if (arg2 == NULL) SWIG_fail;
23192 temp2 = true;
23193 }
23194 {
23195 PyThreadState* __tstate = wxPyBeginAllowThreads();
23196 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23197 wxPyEndAllowThreads(__tstate);
23198 if (PyErr_Occurred()) SWIG_fail;
23199 }
23200 {
23201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23202 }
23203 {
23204 if (temp2)
23205 delete arg2;
23206 }
23207 return resultobj;
23208 fail:
23209 {
23210 if (temp2)
23211 delete arg2;
23212 }
23213 return NULL;
23214 }
23215
23216
23217 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23218 PyObject *resultobj = 0;
23219 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23220 wxString *arg2 = 0 ;
23221 bool result;
23222 void *argp1 = 0 ;
23223 int res1 = 0 ;
23224 bool temp2 = false ;
23225 PyObject * obj0 = 0 ;
23226 PyObject * obj1 = 0 ;
23227 char * kwnames[] = {
23228 (char *) "self",(char *) "help", NULL
23229 };
23230
23231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23233 if (!SWIG_IsOK(res1)) {
23234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23235 }
23236 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23237 {
23238 arg2 = wxString_in_helper(obj1);
23239 if (arg2 == NULL) SWIG_fail;
23240 temp2 = true;
23241 }
23242 {
23243 PyThreadState* __tstate = wxPyBeginAllowThreads();
23244 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23245 wxPyEndAllowThreads(__tstate);
23246 if (PyErr_Occurred()) SWIG_fail;
23247 }
23248 {
23249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23250 }
23251 {
23252 if (temp2)
23253 delete arg2;
23254 }
23255 return resultobj;
23256 fail:
23257 {
23258 if (temp2)
23259 delete arg2;
23260 }
23261 return NULL;
23262 }
23263
23264
23265 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23266 PyObject *resultobj = 0;
23267 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23268 wxBitmap *arg2 = 0 ;
23269 void *argp1 = 0 ;
23270 int res1 = 0 ;
23271 void *argp2 = 0 ;
23272 int res2 = 0 ;
23273 PyObject * obj0 = 0 ;
23274 PyObject * obj1 = 0 ;
23275 char * kwnames[] = {
23276 (char *) "self",(char *) "bmp", NULL
23277 };
23278
23279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23281 if (!SWIG_IsOK(res1)) {
23282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23283 }
23284 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23285 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23286 if (!SWIG_IsOK(res2)) {
23287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23288 }
23289 if (!argp2) {
23290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23291 }
23292 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23293 {
23294 PyThreadState* __tstate = wxPyBeginAllowThreads();
23295 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23296 wxPyEndAllowThreads(__tstate);
23297 if (PyErr_Occurred()) SWIG_fail;
23298 }
23299 resultobj = SWIG_Py_Void();
23300 return resultobj;
23301 fail:
23302 return NULL;
23303 }
23304
23305
23306 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23307 PyObject *resultobj = 0;
23308 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23309 wxBitmap *arg2 = 0 ;
23310 void *argp1 = 0 ;
23311 int res1 = 0 ;
23312 void *argp2 = 0 ;
23313 int res2 = 0 ;
23314 PyObject * obj0 = 0 ;
23315 PyObject * obj1 = 0 ;
23316 char * kwnames[] = {
23317 (char *) "self",(char *) "bmp", NULL
23318 };
23319
23320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23322 if (!SWIG_IsOK(res1)) {
23323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23324 }
23325 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23326 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23327 if (!SWIG_IsOK(res2)) {
23328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23329 }
23330 if (!argp2) {
23331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23332 }
23333 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23334 {
23335 PyThreadState* __tstate = wxPyBeginAllowThreads();
23336 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23337 wxPyEndAllowThreads(__tstate);
23338 if (PyErr_Occurred()) SWIG_fail;
23339 }
23340 resultobj = SWIG_Py_Void();
23341 return resultobj;
23342 fail:
23343 return NULL;
23344 }
23345
23346
23347 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23348 PyObject *resultobj = 0;
23349 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23350 wxString *arg2 = 0 ;
23351 void *argp1 = 0 ;
23352 int res1 = 0 ;
23353 bool temp2 = false ;
23354 PyObject * obj0 = 0 ;
23355 PyObject * obj1 = 0 ;
23356 char * kwnames[] = {
23357 (char *) "self",(char *) "label", NULL
23358 };
23359
23360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23362 if (!SWIG_IsOK(res1)) {
23363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23364 }
23365 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23366 {
23367 arg2 = wxString_in_helper(obj1);
23368 if (arg2 == NULL) SWIG_fail;
23369 temp2 = true;
23370 }
23371 {
23372 PyThreadState* __tstate = wxPyBeginAllowThreads();
23373 (arg1)->SetLabel((wxString const &)*arg2);
23374 wxPyEndAllowThreads(__tstate);
23375 if (PyErr_Occurred()) SWIG_fail;
23376 }
23377 resultobj = SWIG_Py_Void();
23378 {
23379 if (temp2)
23380 delete arg2;
23381 }
23382 return resultobj;
23383 fail:
23384 {
23385 if (temp2)
23386 delete arg2;
23387 }
23388 return NULL;
23389 }
23390
23391
23392 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23393 PyObject *resultobj = 0;
23394 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23395 void *argp1 = 0 ;
23396 int res1 = 0 ;
23397 PyObject *swig_obj[1] ;
23398
23399 if (!args) SWIG_fail;
23400 swig_obj[0] = args;
23401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23402 if (!SWIG_IsOK(res1)) {
23403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23404 }
23405 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23406 {
23407 PyThreadState* __tstate = wxPyBeginAllowThreads();
23408 (arg1)->Detach();
23409 wxPyEndAllowThreads(__tstate);
23410 if (PyErr_Occurred()) SWIG_fail;
23411 }
23412 resultobj = SWIG_Py_Void();
23413 return resultobj;
23414 fail:
23415 return NULL;
23416 }
23417
23418
23419 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23420 PyObject *resultobj = 0;
23421 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23422 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23423 void *argp1 = 0 ;
23424 int res1 = 0 ;
23425 void *argp2 = 0 ;
23426 int res2 = 0 ;
23427 PyObject * obj0 = 0 ;
23428 PyObject * obj1 = 0 ;
23429 char * kwnames[] = {
23430 (char *) "self",(char *) "tbar", NULL
23431 };
23432
23433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23435 if (!SWIG_IsOK(res1)) {
23436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23437 }
23438 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23439 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23440 if (!SWIG_IsOK(res2)) {
23441 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23442 }
23443 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23444 {
23445 PyThreadState* __tstate = wxPyBeginAllowThreads();
23446 (arg1)->Attach(arg2);
23447 wxPyEndAllowThreads(__tstate);
23448 if (PyErr_Occurred()) SWIG_fail;
23449 }
23450 resultobj = SWIG_Py_Void();
23451 return resultobj;
23452 fail:
23453 return NULL;
23454 }
23455
23456
23457 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23458 PyObject *resultobj = 0;
23459 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23460 PyObject *result = 0 ;
23461 void *argp1 = 0 ;
23462 int res1 = 0 ;
23463 PyObject *swig_obj[1] ;
23464
23465 if (!args) SWIG_fail;
23466 swig_obj[0] = args;
23467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23468 if (!SWIG_IsOK(res1)) {
23469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23470 }
23471 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23472 {
23473 PyThreadState* __tstate = wxPyBeginAllowThreads();
23474 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23475 wxPyEndAllowThreads(__tstate);
23476 if (PyErr_Occurred()) SWIG_fail;
23477 }
23478 resultobj = result;
23479 return resultobj;
23480 fail:
23481 return NULL;
23482 }
23483
23484
23485 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23486 PyObject *resultobj = 0;
23487 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23488 PyObject *arg2 = (PyObject *) 0 ;
23489 void *argp1 = 0 ;
23490 int res1 = 0 ;
23491 PyObject * obj0 = 0 ;
23492 PyObject * obj1 = 0 ;
23493 char * kwnames[] = {
23494 (char *) "self",(char *) "clientData", NULL
23495 };
23496
23497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23499 if (!SWIG_IsOK(res1)) {
23500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23501 }
23502 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23503 arg2 = obj1;
23504 {
23505 PyThreadState* __tstate = wxPyBeginAllowThreads();
23506 wxToolBarToolBase_SetClientData(arg1,arg2);
23507 wxPyEndAllowThreads(__tstate);
23508 if (PyErr_Occurred()) SWIG_fail;
23509 }
23510 resultobj = SWIG_Py_Void();
23511 return resultobj;
23512 fail:
23513 return NULL;
23514 }
23515
23516
23517 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23518 PyObject *obj;
23519 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23520 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23521 return SWIG_Py_Void();
23522 }
23523
23524 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23525 PyObject *resultobj = 0;
23526 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23527 int arg2 ;
23528 wxString *arg3 = 0 ;
23529 wxBitmap *arg4 = 0 ;
23530 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23531 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23532 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23533 wxString const &arg7_defvalue = wxPyEmptyString ;
23534 wxString *arg7 = (wxString *) &arg7_defvalue ;
23535 wxString const &arg8_defvalue = wxPyEmptyString ;
23536 wxString *arg8 = (wxString *) &arg8_defvalue ;
23537 PyObject *arg9 = (PyObject *) NULL ;
23538 wxToolBarToolBase *result = 0 ;
23539 void *argp1 = 0 ;
23540 int res1 = 0 ;
23541 int val2 ;
23542 int ecode2 = 0 ;
23543 bool temp3 = false ;
23544 void *argp4 = 0 ;
23545 int res4 = 0 ;
23546 void *argp5 = 0 ;
23547 int res5 = 0 ;
23548 int val6 ;
23549 int ecode6 = 0 ;
23550 bool temp7 = false ;
23551 bool temp8 = false ;
23552 PyObject * obj0 = 0 ;
23553 PyObject * obj1 = 0 ;
23554 PyObject * obj2 = 0 ;
23555 PyObject * obj3 = 0 ;
23556 PyObject * obj4 = 0 ;
23557 PyObject * obj5 = 0 ;
23558 PyObject * obj6 = 0 ;
23559 PyObject * obj7 = 0 ;
23560 PyObject * obj8 = 0 ;
23561 char * kwnames[] = {
23562 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23563 };
23564
23565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23567 if (!SWIG_IsOK(res1)) {
23568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23569 }
23570 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23571 ecode2 = SWIG_AsVal_int(obj1, &val2);
23572 if (!SWIG_IsOK(ecode2)) {
23573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23574 }
23575 arg2 = static_cast< int >(val2);
23576 {
23577 arg3 = wxString_in_helper(obj2);
23578 if (arg3 == NULL) SWIG_fail;
23579 temp3 = true;
23580 }
23581 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23582 if (!SWIG_IsOK(res4)) {
23583 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23584 }
23585 if (!argp4) {
23586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23587 }
23588 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23589 if (obj4) {
23590 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23591 if (!SWIG_IsOK(res5)) {
23592 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23593 }
23594 if (!argp5) {
23595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23596 }
23597 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23598 }
23599 if (obj5) {
23600 ecode6 = SWIG_AsVal_int(obj5, &val6);
23601 if (!SWIG_IsOK(ecode6)) {
23602 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23603 }
23604 arg6 = static_cast< wxItemKind >(val6);
23605 }
23606 if (obj6) {
23607 {
23608 arg7 = wxString_in_helper(obj6);
23609 if (arg7 == NULL) SWIG_fail;
23610 temp7 = true;
23611 }
23612 }
23613 if (obj7) {
23614 {
23615 arg8 = wxString_in_helper(obj7);
23616 if (arg8 == NULL) SWIG_fail;
23617 temp8 = true;
23618 }
23619 }
23620 if (obj8) {
23621 arg9 = obj8;
23622 }
23623 {
23624 PyThreadState* __tstate = wxPyBeginAllowThreads();
23625 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23626 wxPyEndAllowThreads(__tstate);
23627 if (PyErr_Occurred()) SWIG_fail;
23628 }
23629 {
23630 resultobj = wxPyMake_wxObject(result, (bool)0);
23631 }
23632 {
23633 if (temp3)
23634 delete arg3;
23635 }
23636 {
23637 if (temp7)
23638 delete arg7;
23639 }
23640 {
23641 if (temp8)
23642 delete arg8;
23643 }
23644 return resultobj;
23645 fail:
23646 {
23647 if (temp3)
23648 delete arg3;
23649 }
23650 {
23651 if (temp7)
23652 delete arg7;
23653 }
23654 {
23655 if (temp8)
23656 delete arg8;
23657 }
23658 return NULL;
23659 }
23660
23661
23662 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23663 PyObject *resultobj = 0;
23664 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23665 size_t arg2 ;
23666 int arg3 ;
23667 wxString *arg4 = 0 ;
23668 wxBitmap *arg5 = 0 ;
23669 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23670 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23671 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23672 wxString const &arg8_defvalue = wxPyEmptyString ;
23673 wxString *arg8 = (wxString *) &arg8_defvalue ;
23674 wxString const &arg9_defvalue = wxPyEmptyString ;
23675 wxString *arg9 = (wxString *) &arg9_defvalue ;
23676 PyObject *arg10 = (PyObject *) NULL ;
23677 wxToolBarToolBase *result = 0 ;
23678 void *argp1 = 0 ;
23679 int res1 = 0 ;
23680 size_t val2 ;
23681 int ecode2 = 0 ;
23682 int val3 ;
23683 int ecode3 = 0 ;
23684 bool temp4 = false ;
23685 void *argp5 = 0 ;
23686 int res5 = 0 ;
23687 void *argp6 = 0 ;
23688 int res6 = 0 ;
23689 int val7 ;
23690 int ecode7 = 0 ;
23691 bool temp8 = false ;
23692 bool temp9 = false ;
23693 PyObject * obj0 = 0 ;
23694 PyObject * obj1 = 0 ;
23695 PyObject * obj2 = 0 ;
23696 PyObject * obj3 = 0 ;
23697 PyObject * obj4 = 0 ;
23698 PyObject * obj5 = 0 ;
23699 PyObject * obj6 = 0 ;
23700 PyObject * obj7 = 0 ;
23701 PyObject * obj8 = 0 ;
23702 PyObject * obj9 = 0 ;
23703 char * kwnames[] = {
23704 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23705 };
23706
23707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23709 if (!SWIG_IsOK(res1)) {
23710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23711 }
23712 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23713 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23714 if (!SWIG_IsOK(ecode2)) {
23715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23716 }
23717 arg2 = static_cast< size_t >(val2);
23718 ecode3 = SWIG_AsVal_int(obj2, &val3);
23719 if (!SWIG_IsOK(ecode3)) {
23720 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23721 }
23722 arg3 = static_cast< int >(val3);
23723 {
23724 arg4 = wxString_in_helper(obj3);
23725 if (arg4 == NULL) SWIG_fail;
23726 temp4 = true;
23727 }
23728 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23729 if (!SWIG_IsOK(res5)) {
23730 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23731 }
23732 if (!argp5) {
23733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23734 }
23735 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23736 if (obj5) {
23737 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23738 if (!SWIG_IsOK(res6)) {
23739 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23740 }
23741 if (!argp6) {
23742 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23743 }
23744 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23745 }
23746 if (obj6) {
23747 ecode7 = SWIG_AsVal_int(obj6, &val7);
23748 if (!SWIG_IsOK(ecode7)) {
23749 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23750 }
23751 arg7 = static_cast< wxItemKind >(val7);
23752 }
23753 if (obj7) {
23754 {
23755 arg8 = wxString_in_helper(obj7);
23756 if (arg8 == NULL) SWIG_fail;
23757 temp8 = true;
23758 }
23759 }
23760 if (obj8) {
23761 {
23762 arg9 = wxString_in_helper(obj8);
23763 if (arg9 == NULL) SWIG_fail;
23764 temp9 = true;
23765 }
23766 }
23767 if (obj9) {
23768 arg10 = obj9;
23769 }
23770 {
23771 PyThreadState* __tstate = wxPyBeginAllowThreads();
23772 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23773 wxPyEndAllowThreads(__tstate);
23774 if (PyErr_Occurred()) SWIG_fail;
23775 }
23776 {
23777 resultobj = wxPyMake_wxObject(result, (bool)0);
23778 }
23779 {
23780 if (temp4)
23781 delete arg4;
23782 }
23783 {
23784 if (temp8)
23785 delete arg8;
23786 }
23787 {
23788 if (temp9)
23789 delete arg9;
23790 }
23791 return resultobj;
23792 fail:
23793 {
23794 if (temp4)
23795 delete arg4;
23796 }
23797 {
23798 if (temp8)
23799 delete arg8;
23800 }
23801 {
23802 if (temp9)
23803 delete arg9;
23804 }
23805 return NULL;
23806 }
23807
23808
23809 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23810 PyObject *resultobj = 0;
23811 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23812 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23813 wxToolBarToolBase *result = 0 ;
23814 void *argp1 = 0 ;
23815 int res1 = 0 ;
23816 void *argp2 = 0 ;
23817 int res2 = 0 ;
23818 PyObject * obj0 = 0 ;
23819 PyObject * obj1 = 0 ;
23820 char * kwnames[] = {
23821 (char *) "self",(char *) "tool", NULL
23822 };
23823
23824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23826 if (!SWIG_IsOK(res1)) {
23827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23828 }
23829 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23830 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23831 if (!SWIG_IsOK(res2)) {
23832 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23833 }
23834 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23835 {
23836 PyThreadState* __tstate = wxPyBeginAllowThreads();
23837 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23838 wxPyEndAllowThreads(__tstate);
23839 if (PyErr_Occurred()) SWIG_fail;
23840 }
23841 {
23842 resultobj = wxPyMake_wxObject(result, (bool)0);
23843 }
23844 return resultobj;
23845 fail:
23846 return NULL;
23847 }
23848
23849
23850 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23851 PyObject *resultobj = 0;
23852 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23853 size_t arg2 ;
23854 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23855 wxToolBarToolBase *result = 0 ;
23856 void *argp1 = 0 ;
23857 int res1 = 0 ;
23858 size_t val2 ;
23859 int ecode2 = 0 ;
23860 void *argp3 = 0 ;
23861 int res3 = 0 ;
23862 PyObject * obj0 = 0 ;
23863 PyObject * obj1 = 0 ;
23864 PyObject * obj2 = 0 ;
23865 char * kwnames[] = {
23866 (char *) "self",(char *) "pos",(char *) "tool", NULL
23867 };
23868
23869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23871 if (!SWIG_IsOK(res1)) {
23872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23873 }
23874 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23875 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23876 if (!SWIG_IsOK(ecode2)) {
23877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23878 }
23879 arg2 = static_cast< size_t >(val2);
23880 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23881 if (!SWIG_IsOK(res3)) {
23882 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23883 }
23884 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23885 {
23886 PyThreadState* __tstate = wxPyBeginAllowThreads();
23887 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23888 wxPyEndAllowThreads(__tstate);
23889 if (PyErr_Occurred()) SWIG_fail;
23890 }
23891 {
23892 resultobj = wxPyMake_wxObject(result, (bool)0);
23893 }
23894 return resultobj;
23895 fail:
23896 return NULL;
23897 }
23898
23899
23900 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23901 PyObject *resultobj = 0;
23902 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23903 wxControl *arg2 = (wxControl *) 0 ;
23904 wxToolBarToolBase *result = 0 ;
23905 void *argp1 = 0 ;
23906 int res1 = 0 ;
23907 void *argp2 = 0 ;
23908 int res2 = 0 ;
23909 PyObject * obj0 = 0 ;
23910 PyObject * obj1 = 0 ;
23911 char * kwnames[] = {
23912 (char *) "self",(char *) "control", NULL
23913 };
23914
23915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23917 if (!SWIG_IsOK(res1)) {
23918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23919 }
23920 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23921 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23922 if (!SWIG_IsOK(res2)) {
23923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23924 }
23925 arg2 = reinterpret_cast< wxControl * >(argp2);
23926 {
23927 PyThreadState* __tstate = wxPyBeginAllowThreads();
23928 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23929 wxPyEndAllowThreads(__tstate);
23930 if (PyErr_Occurred()) SWIG_fail;
23931 }
23932 {
23933 resultobj = wxPyMake_wxObject(result, (bool)0);
23934 }
23935 return resultobj;
23936 fail:
23937 return NULL;
23938 }
23939
23940
23941 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23942 PyObject *resultobj = 0;
23943 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23944 size_t arg2 ;
23945 wxControl *arg3 = (wxControl *) 0 ;
23946 wxToolBarToolBase *result = 0 ;
23947 void *argp1 = 0 ;
23948 int res1 = 0 ;
23949 size_t val2 ;
23950 int ecode2 = 0 ;
23951 void *argp3 = 0 ;
23952 int res3 = 0 ;
23953 PyObject * obj0 = 0 ;
23954 PyObject * obj1 = 0 ;
23955 PyObject * obj2 = 0 ;
23956 char * kwnames[] = {
23957 (char *) "self",(char *) "pos",(char *) "control", NULL
23958 };
23959
23960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) 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_InsertControl" "', 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_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23969 }
23970 arg2 = static_cast< size_t >(val2);
23971 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23972 if (!SWIG_IsOK(res3)) {
23973 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23974 }
23975 arg3 = reinterpret_cast< wxControl * >(argp3);
23976 {
23977 PyThreadState* __tstate = wxPyBeginAllowThreads();
23978 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23979 wxPyEndAllowThreads(__tstate);
23980 if (PyErr_Occurred()) SWIG_fail;
23981 }
23982 {
23983 resultobj = wxPyMake_wxObject(result, (bool)0);
23984 }
23985 return resultobj;
23986 fail:
23987 return NULL;
23988 }
23989
23990
23991 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23992 PyObject *resultobj = 0;
23993 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23994 int arg2 ;
23995 wxControl *result = 0 ;
23996 void *argp1 = 0 ;
23997 int res1 = 0 ;
23998 int val2 ;
23999 int ecode2 = 0 ;
24000 PyObject * obj0 = 0 ;
24001 PyObject * obj1 = 0 ;
24002 char * kwnames[] = {
24003 (char *) "self",(char *) "id", NULL
24004 };
24005
24006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24008 if (!SWIG_IsOK(res1)) {
24009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24010 }
24011 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24012 ecode2 = SWIG_AsVal_int(obj1, &val2);
24013 if (!SWIG_IsOK(ecode2)) {
24014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24015 }
24016 arg2 = static_cast< int >(val2);
24017 {
24018 PyThreadState* __tstate = wxPyBeginAllowThreads();
24019 result = (wxControl *)(arg1)->FindControl(arg2);
24020 wxPyEndAllowThreads(__tstate);
24021 if (PyErr_Occurred()) SWIG_fail;
24022 }
24023 {
24024 resultobj = wxPyMake_wxObject(result, 0);
24025 }
24026 return resultobj;
24027 fail:
24028 return NULL;
24029 }
24030
24031
24032 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24033 PyObject *resultobj = 0;
24034 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24035 wxToolBarToolBase *result = 0 ;
24036 void *argp1 = 0 ;
24037 int res1 = 0 ;
24038 PyObject *swig_obj[1] ;
24039
24040 if (!args) SWIG_fail;
24041 swig_obj[0] = args;
24042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24043 if (!SWIG_IsOK(res1)) {
24044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24045 }
24046 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24047 {
24048 PyThreadState* __tstate = wxPyBeginAllowThreads();
24049 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24050 wxPyEndAllowThreads(__tstate);
24051 if (PyErr_Occurred()) SWIG_fail;
24052 }
24053 {
24054 resultobj = wxPyMake_wxObject(result, (bool)0);
24055 }
24056 return resultobj;
24057 fail:
24058 return NULL;
24059 }
24060
24061
24062 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24063 PyObject *resultobj = 0;
24064 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24065 size_t arg2 ;
24066 wxToolBarToolBase *result = 0 ;
24067 void *argp1 = 0 ;
24068 int res1 = 0 ;
24069 size_t val2 ;
24070 int ecode2 = 0 ;
24071 PyObject * obj0 = 0 ;
24072 PyObject * obj1 = 0 ;
24073 char * kwnames[] = {
24074 (char *) "self",(char *) "pos", NULL
24075 };
24076
24077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",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_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24081 }
24082 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24083 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24084 if (!SWIG_IsOK(ecode2)) {
24085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24086 }
24087 arg2 = static_cast< size_t >(val2);
24088 {
24089 PyThreadState* __tstate = wxPyBeginAllowThreads();
24090 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(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_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24104 PyObject *resultobj = 0;
24105 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24106 int arg2 ;
24107 wxToolBarToolBase *result = 0 ;
24108 void *argp1 = 0 ;
24109 int res1 = 0 ;
24110 int val2 ;
24111 int ecode2 = 0 ;
24112 PyObject * obj0 = 0 ;
24113 PyObject * obj1 = 0 ;
24114 char * kwnames[] = {
24115 (char *) "self",(char *) "id", NULL
24116 };
24117
24118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24120 if (!SWIG_IsOK(res1)) {
24121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24122 }
24123 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24124 ecode2 = SWIG_AsVal_int(obj1, &val2);
24125 if (!SWIG_IsOK(ecode2)) {
24126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24127 }
24128 arg2 = static_cast< int >(val2);
24129 {
24130 PyThreadState* __tstate = wxPyBeginAllowThreads();
24131 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24132 wxPyEndAllowThreads(__tstate);
24133 if (PyErr_Occurred()) SWIG_fail;
24134 }
24135 {
24136 resultobj = wxPyMake_wxObject(result, (bool)0);
24137 }
24138 return resultobj;
24139 fail:
24140 return NULL;
24141 }
24142
24143
24144 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24145 PyObject *resultobj = 0;
24146 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24147 size_t arg2 ;
24148 bool result;
24149 void *argp1 = 0 ;
24150 int res1 = 0 ;
24151 size_t val2 ;
24152 int ecode2 = 0 ;
24153 PyObject * obj0 = 0 ;
24154 PyObject * obj1 = 0 ;
24155 char * kwnames[] = {
24156 (char *) "self",(char *) "pos", NULL
24157 };
24158
24159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24161 if (!SWIG_IsOK(res1)) {
24162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24163 }
24164 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24165 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24166 if (!SWIG_IsOK(ecode2)) {
24167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24168 }
24169 arg2 = static_cast< size_t >(val2);
24170 {
24171 PyThreadState* __tstate = wxPyBeginAllowThreads();
24172 result = (bool)(arg1)->DeleteToolByPos(arg2);
24173 wxPyEndAllowThreads(__tstate);
24174 if (PyErr_Occurred()) SWIG_fail;
24175 }
24176 {
24177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24178 }
24179 return resultobj;
24180 fail:
24181 return NULL;
24182 }
24183
24184
24185 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24186 PyObject *resultobj = 0;
24187 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24188 int arg2 ;
24189 bool result;
24190 void *argp1 = 0 ;
24191 int res1 = 0 ;
24192 int val2 ;
24193 int ecode2 = 0 ;
24194 PyObject * obj0 = 0 ;
24195 PyObject * obj1 = 0 ;
24196 char * kwnames[] = {
24197 (char *) "self",(char *) "id", NULL
24198 };
24199
24200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24202 if (!SWIG_IsOK(res1)) {
24203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24204 }
24205 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24206 ecode2 = SWIG_AsVal_int(obj1, &val2);
24207 if (!SWIG_IsOK(ecode2)) {
24208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24209 }
24210 arg2 = static_cast< int >(val2);
24211 {
24212 PyThreadState* __tstate = wxPyBeginAllowThreads();
24213 result = (bool)(arg1)->DeleteTool(arg2);
24214 wxPyEndAllowThreads(__tstate);
24215 if (PyErr_Occurred()) SWIG_fail;
24216 }
24217 {
24218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24219 }
24220 return resultobj;
24221 fail:
24222 return NULL;
24223 }
24224
24225
24226 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24227 PyObject *resultobj = 0;
24228 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24229 void *argp1 = 0 ;
24230 int res1 = 0 ;
24231 PyObject *swig_obj[1] ;
24232
24233 if (!args) SWIG_fail;
24234 swig_obj[0] = args;
24235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24236 if (!SWIG_IsOK(res1)) {
24237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24238 }
24239 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24240 {
24241 PyThreadState* __tstate = wxPyBeginAllowThreads();
24242 (arg1)->ClearTools();
24243 wxPyEndAllowThreads(__tstate);
24244 if (PyErr_Occurred()) SWIG_fail;
24245 }
24246 resultobj = SWIG_Py_Void();
24247 return resultobj;
24248 fail:
24249 return NULL;
24250 }
24251
24252
24253 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24254 PyObject *resultobj = 0;
24255 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24256 bool result;
24257 void *argp1 = 0 ;
24258 int res1 = 0 ;
24259 PyObject *swig_obj[1] ;
24260
24261 if (!args) SWIG_fail;
24262 swig_obj[0] = args;
24263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24264 if (!SWIG_IsOK(res1)) {
24265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24266 }
24267 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24268 {
24269 PyThreadState* __tstate = wxPyBeginAllowThreads();
24270 result = (bool)(arg1)->Realize();
24271 wxPyEndAllowThreads(__tstate);
24272 if (PyErr_Occurred()) SWIG_fail;
24273 }
24274 {
24275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24276 }
24277 return resultobj;
24278 fail:
24279 return NULL;
24280 }
24281
24282
24283 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24284 PyObject *resultobj = 0;
24285 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24286 int arg2 ;
24287 bool arg3 ;
24288 void *argp1 = 0 ;
24289 int res1 = 0 ;
24290 int val2 ;
24291 int ecode2 = 0 ;
24292 bool val3 ;
24293 int ecode3 = 0 ;
24294 PyObject * obj0 = 0 ;
24295 PyObject * obj1 = 0 ;
24296 PyObject * obj2 = 0 ;
24297 char * kwnames[] = {
24298 (char *) "self",(char *) "id",(char *) "enable", NULL
24299 };
24300
24301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24303 if (!SWIG_IsOK(res1)) {
24304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24305 }
24306 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24307 ecode2 = SWIG_AsVal_int(obj1, &val2);
24308 if (!SWIG_IsOK(ecode2)) {
24309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24310 }
24311 arg2 = static_cast< int >(val2);
24312 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24313 if (!SWIG_IsOK(ecode3)) {
24314 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24315 }
24316 arg3 = static_cast< bool >(val3);
24317 {
24318 PyThreadState* __tstate = wxPyBeginAllowThreads();
24319 (arg1)->EnableTool(arg2,arg3);
24320 wxPyEndAllowThreads(__tstate);
24321 if (PyErr_Occurred()) SWIG_fail;
24322 }
24323 resultobj = SWIG_Py_Void();
24324 return resultobj;
24325 fail:
24326 return NULL;
24327 }
24328
24329
24330 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24331 PyObject *resultobj = 0;
24332 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24333 int arg2 ;
24334 bool arg3 ;
24335 void *argp1 = 0 ;
24336 int res1 = 0 ;
24337 int val2 ;
24338 int ecode2 = 0 ;
24339 bool val3 ;
24340 int ecode3 = 0 ;
24341 PyObject * obj0 = 0 ;
24342 PyObject * obj1 = 0 ;
24343 PyObject * obj2 = 0 ;
24344 char * kwnames[] = {
24345 (char *) "self",(char *) "id",(char *) "toggle", NULL
24346 };
24347
24348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24350 if (!SWIG_IsOK(res1)) {
24351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24352 }
24353 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24354 ecode2 = SWIG_AsVal_int(obj1, &val2);
24355 if (!SWIG_IsOK(ecode2)) {
24356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24357 }
24358 arg2 = static_cast< int >(val2);
24359 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24360 if (!SWIG_IsOK(ecode3)) {
24361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24362 }
24363 arg3 = static_cast< bool >(val3);
24364 {
24365 PyThreadState* __tstate = wxPyBeginAllowThreads();
24366 (arg1)->ToggleTool(arg2,arg3);
24367 wxPyEndAllowThreads(__tstate);
24368 if (PyErr_Occurred()) SWIG_fail;
24369 }
24370 resultobj = SWIG_Py_Void();
24371 return resultobj;
24372 fail:
24373 return NULL;
24374 }
24375
24376
24377 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24378 PyObject *resultobj = 0;
24379 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24380 int arg2 ;
24381 bool arg3 ;
24382 void *argp1 = 0 ;
24383 int res1 = 0 ;
24384 int val2 ;
24385 int ecode2 = 0 ;
24386 bool val3 ;
24387 int ecode3 = 0 ;
24388 PyObject * obj0 = 0 ;
24389 PyObject * obj1 = 0 ;
24390 PyObject * obj2 = 0 ;
24391 char * kwnames[] = {
24392 (char *) "self",(char *) "id",(char *) "toggle", NULL
24393 };
24394
24395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24397 if (!SWIG_IsOK(res1)) {
24398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24399 }
24400 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24401 ecode2 = SWIG_AsVal_int(obj1, &val2);
24402 if (!SWIG_IsOK(ecode2)) {
24403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24404 }
24405 arg2 = static_cast< int >(val2);
24406 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24407 if (!SWIG_IsOK(ecode3)) {
24408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24409 }
24410 arg3 = static_cast< bool >(val3);
24411 {
24412 PyThreadState* __tstate = wxPyBeginAllowThreads();
24413 (arg1)->SetToggle(arg2,arg3);
24414 wxPyEndAllowThreads(__tstate);
24415 if (PyErr_Occurred()) SWIG_fail;
24416 }
24417 resultobj = SWIG_Py_Void();
24418 return resultobj;
24419 fail:
24420 return NULL;
24421 }
24422
24423
24424 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24425 PyObject *resultobj = 0;
24426 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24427 int arg2 ;
24428 PyObject *result = 0 ;
24429 void *argp1 = 0 ;
24430 int res1 = 0 ;
24431 int val2 ;
24432 int ecode2 = 0 ;
24433 PyObject * obj0 = 0 ;
24434 PyObject * obj1 = 0 ;
24435 char * kwnames[] = {
24436 (char *) "self",(char *) "id", NULL
24437 };
24438
24439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24441 if (!SWIG_IsOK(res1)) {
24442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24443 }
24444 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24445 ecode2 = SWIG_AsVal_int(obj1, &val2);
24446 if (!SWIG_IsOK(ecode2)) {
24447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24448 }
24449 arg2 = static_cast< int >(val2);
24450 {
24451 PyThreadState* __tstate = wxPyBeginAllowThreads();
24452 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24453 wxPyEndAllowThreads(__tstate);
24454 if (PyErr_Occurred()) SWIG_fail;
24455 }
24456 resultobj = result;
24457 return resultobj;
24458 fail:
24459 return NULL;
24460 }
24461
24462
24463 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24464 PyObject *resultobj = 0;
24465 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24466 int arg2 ;
24467 PyObject *arg3 = (PyObject *) 0 ;
24468 void *argp1 = 0 ;
24469 int res1 = 0 ;
24470 int val2 ;
24471 int ecode2 = 0 ;
24472 PyObject * obj0 = 0 ;
24473 PyObject * obj1 = 0 ;
24474 PyObject * obj2 = 0 ;
24475 char * kwnames[] = {
24476 (char *) "self",(char *) "id",(char *) "clientData", NULL
24477 };
24478
24479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24481 if (!SWIG_IsOK(res1)) {
24482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24483 }
24484 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24485 ecode2 = SWIG_AsVal_int(obj1, &val2);
24486 if (!SWIG_IsOK(ecode2)) {
24487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24488 }
24489 arg2 = static_cast< int >(val2);
24490 arg3 = obj2;
24491 {
24492 PyThreadState* __tstate = wxPyBeginAllowThreads();
24493 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24494 wxPyEndAllowThreads(__tstate);
24495 if (PyErr_Occurred()) SWIG_fail;
24496 }
24497 resultobj = SWIG_Py_Void();
24498 return resultobj;
24499 fail:
24500 return NULL;
24501 }
24502
24503
24504 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24505 PyObject *resultobj = 0;
24506 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24507 int arg2 ;
24508 int result;
24509 void *argp1 = 0 ;
24510 int res1 = 0 ;
24511 int val2 ;
24512 int ecode2 = 0 ;
24513 PyObject * obj0 = 0 ;
24514 PyObject * obj1 = 0 ;
24515 char * kwnames[] = {
24516 (char *) "self",(char *) "id", NULL
24517 };
24518
24519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24521 if (!SWIG_IsOK(res1)) {
24522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24523 }
24524 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24525 ecode2 = SWIG_AsVal_int(obj1, &val2);
24526 if (!SWIG_IsOK(ecode2)) {
24527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24528 }
24529 arg2 = static_cast< int >(val2);
24530 {
24531 PyThreadState* __tstate = wxPyBeginAllowThreads();
24532 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24533 wxPyEndAllowThreads(__tstate);
24534 if (PyErr_Occurred()) SWIG_fail;
24535 }
24536 resultobj = SWIG_From_int(static_cast< int >(result));
24537 return resultobj;
24538 fail:
24539 return NULL;
24540 }
24541
24542
24543 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24544 PyObject *resultobj = 0;
24545 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24546 int arg2 ;
24547 bool result;
24548 void *argp1 = 0 ;
24549 int res1 = 0 ;
24550 int val2 ;
24551 int ecode2 = 0 ;
24552 PyObject * obj0 = 0 ;
24553 PyObject * obj1 = 0 ;
24554 char * kwnames[] = {
24555 (char *) "self",(char *) "id", NULL
24556 };
24557
24558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24560 if (!SWIG_IsOK(res1)) {
24561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24562 }
24563 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24564 ecode2 = SWIG_AsVal_int(obj1, &val2);
24565 if (!SWIG_IsOK(ecode2)) {
24566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24567 }
24568 arg2 = static_cast< int >(val2);
24569 {
24570 PyThreadState* __tstate = wxPyBeginAllowThreads();
24571 result = (bool)(arg1)->GetToolState(arg2);
24572 wxPyEndAllowThreads(__tstate);
24573 if (PyErr_Occurred()) SWIG_fail;
24574 }
24575 {
24576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24577 }
24578 return resultobj;
24579 fail:
24580 return NULL;
24581 }
24582
24583
24584 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24585 PyObject *resultobj = 0;
24586 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24587 int arg2 ;
24588 bool result;
24589 void *argp1 = 0 ;
24590 int res1 = 0 ;
24591 int val2 ;
24592 int ecode2 = 0 ;
24593 PyObject * obj0 = 0 ;
24594 PyObject * obj1 = 0 ;
24595 char * kwnames[] = {
24596 (char *) "self",(char *) "id", NULL
24597 };
24598
24599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24601 if (!SWIG_IsOK(res1)) {
24602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24603 }
24604 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24605 ecode2 = SWIG_AsVal_int(obj1, &val2);
24606 if (!SWIG_IsOK(ecode2)) {
24607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24608 }
24609 arg2 = static_cast< int >(val2);
24610 {
24611 PyThreadState* __tstate = wxPyBeginAllowThreads();
24612 result = (bool)(arg1)->GetToolEnabled(arg2);
24613 wxPyEndAllowThreads(__tstate);
24614 if (PyErr_Occurred()) SWIG_fail;
24615 }
24616 {
24617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24618 }
24619 return resultobj;
24620 fail:
24621 return NULL;
24622 }
24623
24624
24625 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24626 PyObject *resultobj = 0;
24627 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24628 int arg2 ;
24629 wxString *arg3 = 0 ;
24630 void *argp1 = 0 ;
24631 int res1 = 0 ;
24632 int val2 ;
24633 int ecode2 = 0 ;
24634 bool temp3 = false ;
24635 PyObject * obj0 = 0 ;
24636 PyObject * obj1 = 0 ;
24637 PyObject * obj2 = 0 ;
24638 char * kwnames[] = {
24639 (char *) "self",(char *) "id",(char *) "helpString", NULL
24640 };
24641
24642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24644 if (!SWIG_IsOK(res1)) {
24645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24646 }
24647 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24648 ecode2 = SWIG_AsVal_int(obj1, &val2);
24649 if (!SWIG_IsOK(ecode2)) {
24650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24651 }
24652 arg2 = static_cast< int >(val2);
24653 {
24654 arg3 = wxString_in_helper(obj2);
24655 if (arg3 == NULL) SWIG_fail;
24656 temp3 = true;
24657 }
24658 {
24659 PyThreadState* __tstate = wxPyBeginAllowThreads();
24660 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24661 wxPyEndAllowThreads(__tstate);
24662 if (PyErr_Occurred()) SWIG_fail;
24663 }
24664 resultobj = SWIG_Py_Void();
24665 {
24666 if (temp3)
24667 delete arg3;
24668 }
24669 return resultobj;
24670 fail:
24671 {
24672 if (temp3)
24673 delete arg3;
24674 }
24675 return NULL;
24676 }
24677
24678
24679 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24680 PyObject *resultobj = 0;
24681 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24682 int arg2 ;
24683 wxString result;
24684 void *argp1 = 0 ;
24685 int res1 = 0 ;
24686 int val2 ;
24687 int ecode2 = 0 ;
24688 PyObject * obj0 = 0 ;
24689 PyObject * obj1 = 0 ;
24690 char * kwnames[] = {
24691 (char *) "self",(char *) "id", NULL
24692 };
24693
24694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24696 if (!SWIG_IsOK(res1)) {
24697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24698 }
24699 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24700 ecode2 = SWIG_AsVal_int(obj1, &val2);
24701 if (!SWIG_IsOK(ecode2)) {
24702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24703 }
24704 arg2 = static_cast< int >(val2);
24705 {
24706 PyThreadState* __tstate = wxPyBeginAllowThreads();
24707 result = (arg1)->GetToolShortHelp(arg2);
24708 wxPyEndAllowThreads(__tstate);
24709 if (PyErr_Occurred()) SWIG_fail;
24710 }
24711 {
24712 #if wxUSE_UNICODE
24713 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24714 #else
24715 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24716 #endif
24717 }
24718 return resultobj;
24719 fail:
24720 return NULL;
24721 }
24722
24723
24724 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24725 PyObject *resultobj = 0;
24726 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24727 int arg2 ;
24728 wxString *arg3 = 0 ;
24729 void *argp1 = 0 ;
24730 int res1 = 0 ;
24731 int val2 ;
24732 int ecode2 = 0 ;
24733 bool temp3 = false ;
24734 PyObject * obj0 = 0 ;
24735 PyObject * obj1 = 0 ;
24736 PyObject * obj2 = 0 ;
24737 char * kwnames[] = {
24738 (char *) "self",(char *) "id",(char *) "helpString", NULL
24739 };
24740
24741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24743 if (!SWIG_IsOK(res1)) {
24744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24745 }
24746 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24747 ecode2 = SWIG_AsVal_int(obj1, &val2);
24748 if (!SWIG_IsOK(ecode2)) {
24749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24750 }
24751 arg2 = static_cast< int >(val2);
24752 {
24753 arg3 = wxString_in_helper(obj2);
24754 if (arg3 == NULL) SWIG_fail;
24755 temp3 = true;
24756 }
24757 {
24758 PyThreadState* __tstate = wxPyBeginAllowThreads();
24759 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24760 wxPyEndAllowThreads(__tstate);
24761 if (PyErr_Occurred()) SWIG_fail;
24762 }
24763 resultobj = SWIG_Py_Void();
24764 {
24765 if (temp3)
24766 delete arg3;
24767 }
24768 return resultobj;
24769 fail:
24770 {
24771 if (temp3)
24772 delete arg3;
24773 }
24774 return NULL;
24775 }
24776
24777
24778 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24779 PyObject *resultobj = 0;
24780 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24781 int arg2 ;
24782 wxString result;
24783 void *argp1 = 0 ;
24784 int res1 = 0 ;
24785 int val2 ;
24786 int ecode2 = 0 ;
24787 PyObject * obj0 = 0 ;
24788 PyObject * obj1 = 0 ;
24789 char * kwnames[] = {
24790 (char *) "self",(char *) "id", NULL
24791 };
24792
24793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24795 if (!SWIG_IsOK(res1)) {
24796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24797 }
24798 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24799 ecode2 = SWIG_AsVal_int(obj1, &val2);
24800 if (!SWIG_IsOK(ecode2)) {
24801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24802 }
24803 arg2 = static_cast< int >(val2);
24804 {
24805 PyThreadState* __tstate = wxPyBeginAllowThreads();
24806 result = (arg1)->GetToolLongHelp(arg2);
24807 wxPyEndAllowThreads(__tstate);
24808 if (PyErr_Occurred()) SWIG_fail;
24809 }
24810 {
24811 #if wxUSE_UNICODE
24812 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24813 #else
24814 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24815 #endif
24816 }
24817 return resultobj;
24818 fail:
24819 return NULL;
24820 }
24821
24822
24823 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24824 PyObject *resultobj = 0;
24825 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24826 int arg2 ;
24827 int arg3 ;
24828 void *argp1 = 0 ;
24829 int res1 = 0 ;
24830 int val2 ;
24831 int ecode2 = 0 ;
24832 int val3 ;
24833 int ecode3 = 0 ;
24834 PyObject * obj0 = 0 ;
24835 PyObject * obj1 = 0 ;
24836 PyObject * obj2 = 0 ;
24837 char * kwnames[] = {
24838 (char *) "self",(char *) "x",(char *) "y", NULL
24839 };
24840
24841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24843 if (!SWIG_IsOK(res1)) {
24844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24845 }
24846 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24847 ecode2 = SWIG_AsVal_int(obj1, &val2);
24848 if (!SWIG_IsOK(ecode2)) {
24849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24850 }
24851 arg2 = static_cast< int >(val2);
24852 ecode3 = SWIG_AsVal_int(obj2, &val3);
24853 if (!SWIG_IsOK(ecode3)) {
24854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24855 }
24856 arg3 = static_cast< int >(val3);
24857 {
24858 PyThreadState* __tstate = wxPyBeginAllowThreads();
24859 (arg1)->SetMargins(arg2,arg3);
24860 wxPyEndAllowThreads(__tstate);
24861 if (PyErr_Occurred()) SWIG_fail;
24862 }
24863 resultobj = SWIG_Py_Void();
24864 return resultobj;
24865 fail:
24866 return NULL;
24867 }
24868
24869
24870 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24871 PyObject *resultobj = 0;
24872 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24873 wxSize *arg2 = 0 ;
24874 void *argp1 = 0 ;
24875 int res1 = 0 ;
24876 wxSize temp2 ;
24877 PyObject * obj0 = 0 ;
24878 PyObject * obj1 = 0 ;
24879 char * kwnames[] = {
24880 (char *) "self",(char *) "size", NULL
24881 };
24882
24883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24885 if (!SWIG_IsOK(res1)) {
24886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24887 }
24888 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24889 {
24890 arg2 = &temp2;
24891 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24892 }
24893 {
24894 PyThreadState* __tstate = wxPyBeginAllowThreads();
24895 (arg1)->SetMargins((wxSize const &)*arg2);
24896 wxPyEndAllowThreads(__tstate);
24897 if (PyErr_Occurred()) SWIG_fail;
24898 }
24899 resultobj = SWIG_Py_Void();
24900 return resultobj;
24901 fail:
24902 return NULL;
24903 }
24904
24905
24906 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24907 PyObject *resultobj = 0;
24908 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24909 int arg2 ;
24910 void *argp1 = 0 ;
24911 int res1 = 0 ;
24912 int val2 ;
24913 int ecode2 = 0 ;
24914 PyObject * obj0 = 0 ;
24915 PyObject * obj1 = 0 ;
24916 char * kwnames[] = {
24917 (char *) "self",(char *) "packing", NULL
24918 };
24919
24920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24922 if (!SWIG_IsOK(res1)) {
24923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24924 }
24925 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24926 ecode2 = SWIG_AsVal_int(obj1, &val2);
24927 if (!SWIG_IsOK(ecode2)) {
24928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24929 }
24930 arg2 = static_cast< int >(val2);
24931 {
24932 PyThreadState* __tstate = wxPyBeginAllowThreads();
24933 (arg1)->SetToolPacking(arg2);
24934 wxPyEndAllowThreads(__tstate);
24935 if (PyErr_Occurred()) SWIG_fail;
24936 }
24937 resultobj = SWIG_Py_Void();
24938 return resultobj;
24939 fail:
24940 return NULL;
24941 }
24942
24943
24944 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24945 PyObject *resultobj = 0;
24946 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24947 int arg2 ;
24948 void *argp1 = 0 ;
24949 int res1 = 0 ;
24950 int val2 ;
24951 int ecode2 = 0 ;
24952 PyObject * obj0 = 0 ;
24953 PyObject * obj1 = 0 ;
24954 char * kwnames[] = {
24955 (char *) "self",(char *) "separation", NULL
24956 };
24957
24958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24960 if (!SWIG_IsOK(res1)) {
24961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24962 }
24963 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24964 ecode2 = SWIG_AsVal_int(obj1, &val2);
24965 if (!SWIG_IsOK(ecode2)) {
24966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24967 }
24968 arg2 = static_cast< int >(val2);
24969 {
24970 PyThreadState* __tstate = wxPyBeginAllowThreads();
24971 (arg1)->SetToolSeparation(arg2);
24972 wxPyEndAllowThreads(__tstate);
24973 if (PyErr_Occurred()) SWIG_fail;
24974 }
24975 resultobj = SWIG_Py_Void();
24976 return resultobj;
24977 fail:
24978 return NULL;
24979 }
24980
24981
24982 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24983 PyObject *resultobj = 0;
24984 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24985 wxSize result;
24986 void *argp1 = 0 ;
24987 int res1 = 0 ;
24988 PyObject *swig_obj[1] ;
24989
24990 if (!args) SWIG_fail;
24991 swig_obj[0] = args;
24992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24993 if (!SWIG_IsOK(res1)) {
24994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24995 }
24996 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24997 {
24998 PyThreadState* __tstate = wxPyBeginAllowThreads();
24999 result = (arg1)->GetToolMargins();
25000 wxPyEndAllowThreads(__tstate);
25001 if (PyErr_Occurred()) SWIG_fail;
25002 }
25003 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25004 return resultobj;
25005 fail:
25006 return NULL;
25007 }
25008
25009
25010 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25011 PyObject *resultobj = 0;
25012 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25013 wxSize result;
25014 void *argp1 = 0 ;
25015 int res1 = 0 ;
25016 PyObject *swig_obj[1] ;
25017
25018 if (!args) SWIG_fail;
25019 swig_obj[0] = args;
25020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25021 if (!SWIG_IsOK(res1)) {
25022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25023 }
25024 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25025 {
25026 PyThreadState* __tstate = wxPyBeginAllowThreads();
25027 result = (arg1)->GetMargins();
25028 wxPyEndAllowThreads(__tstate);
25029 if (PyErr_Occurred()) SWIG_fail;
25030 }
25031 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25032 return resultobj;
25033 fail:
25034 return NULL;
25035 }
25036
25037
25038 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25039 PyObject *resultobj = 0;
25040 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25041 int result;
25042 void *argp1 = 0 ;
25043 int res1 = 0 ;
25044 PyObject *swig_obj[1] ;
25045
25046 if (!args) SWIG_fail;
25047 swig_obj[0] = args;
25048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25049 if (!SWIG_IsOK(res1)) {
25050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25051 }
25052 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25053 {
25054 PyThreadState* __tstate = wxPyBeginAllowThreads();
25055 result = (int)(arg1)->GetToolPacking();
25056 wxPyEndAllowThreads(__tstate);
25057 if (PyErr_Occurred()) SWIG_fail;
25058 }
25059 resultobj = SWIG_From_int(static_cast< int >(result));
25060 return resultobj;
25061 fail:
25062 return NULL;
25063 }
25064
25065
25066 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25067 PyObject *resultobj = 0;
25068 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25069 int result;
25070 void *argp1 = 0 ;
25071 int res1 = 0 ;
25072 PyObject *swig_obj[1] ;
25073
25074 if (!args) SWIG_fail;
25075 swig_obj[0] = args;
25076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25077 if (!SWIG_IsOK(res1)) {
25078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25079 }
25080 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25081 {
25082 PyThreadState* __tstate = wxPyBeginAllowThreads();
25083 result = (int)(arg1)->GetToolSeparation();
25084 wxPyEndAllowThreads(__tstate);
25085 if (PyErr_Occurred()) SWIG_fail;
25086 }
25087 resultobj = SWIG_From_int(static_cast< int >(result));
25088 return resultobj;
25089 fail:
25090 return NULL;
25091 }
25092
25093
25094 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25095 PyObject *resultobj = 0;
25096 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25097 int arg2 ;
25098 void *argp1 = 0 ;
25099 int res1 = 0 ;
25100 int val2 ;
25101 int ecode2 = 0 ;
25102 PyObject * obj0 = 0 ;
25103 PyObject * obj1 = 0 ;
25104 char * kwnames[] = {
25105 (char *) "self",(char *) "nRows", NULL
25106 };
25107
25108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25110 if (!SWIG_IsOK(res1)) {
25111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25112 }
25113 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25114 ecode2 = SWIG_AsVal_int(obj1, &val2);
25115 if (!SWIG_IsOK(ecode2)) {
25116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25117 }
25118 arg2 = static_cast< int >(val2);
25119 {
25120 PyThreadState* __tstate = wxPyBeginAllowThreads();
25121 (arg1)->SetRows(arg2);
25122 wxPyEndAllowThreads(__tstate);
25123 if (PyErr_Occurred()) SWIG_fail;
25124 }
25125 resultobj = SWIG_Py_Void();
25126 return resultobj;
25127 fail:
25128 return NULL;
25129 }
25130
25131
25132 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25133 PyObject *resultobj = 0;
25134 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25135 int arg2 ;
25136 int arg3 ;
25137 void *argp1 = 0 ;
25138 int res1 = 0 ;
25139 int val2 ;
25140 int ecode2 = 0 ;
25141 int val3 ;
25142 int ecode3 = 0 ;
25143 PyObject * obj0 = 0 ;
25144 PyObject * obj1 = 0 ;
25145 PyObject * obj2 = 0 ;
25146 char * kwnames[] = {
25147 (char *) "self",(char *) "rows",(char *) "cols", NULL
25148 };
25149
25150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25152 if (!SWIG_IsOK(res1)) {
25153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25154 }
25155 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25156 ecode2 = SWIG_AsVal_int(obj1, &val2);
25157 if (!SWIG_IsOK(ecode2)) {
25158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25159 }
25160 arg2 = static_cast< int >(val2);
25161 ecode3 = SWIG_AsVal_int(obj2, &val3);
25162 if (!SWIG_IsOK(ecode3)) {
25163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25164 }
25165 arg3 = static_cast< int >(val3);
25166 {
25167 PyThreadState* __tstate = wxPyBeginAllowThreads();
25168 (arg1)->SetMaxRowsCols(arg2,arg3);
25169 wxPyEndAllowThreads(__tstate);
25170 if (PyErr_Occurred()) SWIG_fail;
25171 }
25172 resultobj = SWIG_Py_Void();
25173 return resultobj;
25174 fail:
25175 return NULL;
25176 }
25177
25178
25179 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25180 PyObject *resultobj = 0;
25181 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25182 int result;
25183 void *argp1 = 0 ;
25184 int res1 = 0 ;
25185 PyObject *swig_obj[1] ;
25186
25187 if (!args) SWIG_fail;
25188 swig_obj[0] = args;
25189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25190 if (!SWIG_IsOK(res1)) {
25191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25192 }
25193 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25194 {
25195 PyThreadState* __tstate = wxPyBeginAllowThreads();
25196 result = (int)(arg1)->GetMaxRows();
25197 wxPyEndAllowThreads(__tstate);
25198 if (PyErr_Occurred()) SWIG_fail;
25199 }
25200 resultobj = SWIG_From_int(static_cast< int >(result));
25201 return resultobj;
25202 fail:
25203 return NULL;
25204 }
25205
25206
25207 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25208 PyObject *resultobj = 0;
25209 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25210 int result;
25211 void *argp1 = 0 ;
25212 int res1 = 0 ;
25213 PyObject *swig_obj[1] ;
25214
25215 if (!args) SWIG_fail;
25216 swig_obj[0] = args;
25217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25218 if (!SWIG_IsOK(res1)) {
25219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25220 }
25221 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25222 {
25223 PyThreadState* __tstate = wxPyBeginAllowThreads();
25224 result = (int)(arg1)->GetMaxCols();
25225 wxPyEndAllowThreads(__tstate);
25226 if (PyErr_Occurred()) SWIG_fail;
25227 }
25228 resultobj = SWIG_From_int(static_cast< int >(result));
25229 return resultobj;
25230 fail:
25231 return NULL;
25232 }
25233
25234
25235 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25236 PyObject *resultobj = 0;
25237 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25238 wxSize *arg2 = 0 ;
25239 void *argp1 = 0 ;
25240 int res1 = 0 ;
25241 wxSize temp2 ;
25242 PyObject * obj0 = 0 ;
25243 PyObject * obj1 = 0 ;
25244 char * kwnames[] = {
25245 (char *) "self",(char *) "size", NULL
25246 };
25247
25248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25250 if (!SWIG_IsOK(res1)) {
25251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25252 }
25253 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25254 {
25255 arg2 = &temp2;
25256 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25257 }
25258 {
25259 PyThreadState* __tstate = wxPyBeginAllowThreads();
25260 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25261 wxPyEndAllowThreads(__tstate);
25262 if (PyErr_Occurred()) SWIG_fail;
25263 }
25264 resultobj = SWIG_Py_Void();
25265 return resultobj;
25266 fail:
25267 return NULL;
25268 }
25269
25270
25271 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25272 PyObject *resultobj = 0;
25273 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25274 wxSize result;
25275 void *argp1 = 0 ;
25276 int res1 = 0 ;
25277 PyObject *swig_obj[1] ;
25278
25279 if (!args) SWIG_fail;
25280 swig_obj[0] = args;
25281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25282 if (!SWIG_IsOK(res1)) {
25283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25284 }
25285 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25286 {
25287 PyThreadState* __tstate = wxPyBeginAllowThreads();
25288 result = (arg1)->GetToolBitmapSize();
25289 wxPyEndAllowThreads(__tstate);
25290 if (PyErr_Occurred()) SWIG_fail;
25291 }
25292 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25293 return resultobj;
25294 fail:
25295 return NULL;
25296 }
25297
25298
25299 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25300 PyObject *resultobj = 0;
25301 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25302 wxSize result;
25303 void *argp1 = 0 ;
25304 int res1 = 0 ;
25305 PyObject *swig_obj[1] ;
25306
25307 if (!args) SWIG_fail;
25308 swig_obj[0] = args;
25309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25310 if (!SWIG_IsOK(res1)) {
25311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25312 }
25313 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25314 {
25315 PyThreadState* __tstate = wxPyBeginAllowThreads();
25316 result = (arg1)->GetToolSize();
25317 wxPyEndAllowThreads(__tstate);
25318 if (PyErr_Occurred()) SWIG_fail;
25319 }
25320 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25321 return resultobj;
25322 fail:
25323 return NULL;
25324 }
25325
25326
25327 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25328 PyObject *resultobj = 0;
25329 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25330 int arg2 ;
25331 int arg3 ;
25332 wxToolBarToolBase *result = 0 ;
25333 void *argp1 = 0 ;
25334 int res1 = 0 ;
25335 int val2 ;
25336 int ecode2 = 0 ;
25337 int val3 ;
25338 int ecode3 = 0 ;
25339 PyObject * obj0 = 0 ;
25340 PyObject * obj1 = 0 ;
25341 PyObject * obj2 = 0 ;
25342 char * kwnames[] = {
25343 (char *) "self",(char *) "x",(char *) "y", NULL
25344 };
25345
25346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25348 if (!SWIG_IsOK(res1)) {
25349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25350 }
25351 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25352 ecode2 = SWIG_AsVal_int(obj1, &val2);
25353 if (!SWIG_IsOK(ecode2)) {
25354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25355 }
25356 arg2 = static_cast< int >(val2);
25357 ecode3 = SWIG_AsVal_int(obj2, &val3);
25358 if (!SWIG_IsOK(ecode3)) {
25359 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25360 }
25361 arg3 = static_cast< int >(val3);
25362 {
25363 PyThreadState* __tstate = wxPyBeginAllowThreads();
25364 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25365 wxPyEndAllowThreads(__tstate);
25366 if (PyErr_Occurred()) SWIG_fail;
25367 }
25368 {
25369 resultobj = wxPyMake_wxObject(result, (bool)0);
25370 }
25371 return resultobj;
25372 fail:
25373 return NULL;
25374 }
25375
25376
25377 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25378 PyObject *resultobj = 0;
25379 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25380 int arg2 ;
25381 wxToolBarToolBase *result = 0 ;
25382 void *argp1 = 0 ;
25383 int res1 = 0 ;
25384 int val2 ;
25385 int ecode2 = 0 ;
25386 PyObject * obj0 = 0 ;
25387 PyObject * obj1 = 0 ;
25388 char * kwnames[] = {
25389 (char *) "self",(char *) "toolid", NULL
25390 };
25391
25392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25394 if (!SWIG_IsOK(res1)) {
25395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25396 }
25397 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25398 ecode2 = SWIG_AsVal_int(obj1, &val2);
25399 if (!SWIG_IsOK(ecode2)) {
25400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25401 }
25402 arg2 = static_cast< int >(val2);
25403 {
25404 PyThreadState* __tstate = wxPyBeginAllowThreads();
25405 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25406 wxPyEndAllowThreads(__tstate);
25407 if (PyErr_Occurred()) SWIG_fail;
25408 }
25409 {
25410 resultobj = wxPyMake_wxObject(result, (bool)0);
25411 }
25412 return resultobj;
25413 fail:
25414 return NULL;
25415 }
25416
25417
25418 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25419 PyObject *resultobj = 0;
25420 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25421 bool result;
25422 void *argp1 = 0 ;
25423 int res1 = 0 ;
25424 PyObject *swig_obj[1] ;
25425
25426 if (!args) SWIG_fail;
25427 swig_obj[0] = args;
25428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25429 if (!SWIG_IsOK(res1)) {
25430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25431 }
25432 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25433 {
25434 PyThreadState* __tstate = wxPyBeginAllowThreads();
25435 result = (bool)(arg1)->IsVertical();
25436 wxPyEndAllowThreads(__tstate);
25437 if (PyErr_Occurred()) SWIG_fail;
25438 }
25439 {
25440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25441 }
25442 return resultobj;
25443 fail:
25444 return NULL;
25445 }
25446
25447
25448 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25449 PyObject *resultobj = 0;
25450 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25451 size_t result;
25452 void *argp1 = 0 ;
25453 int res1 = 0 ;
25454 PyObject *swig_obj[1] ;
25455
25456 if (!args) SWIG_fail;
25457 swig_obj[0] = args;
25458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25459 if (!SWIG_IsOK(res1)) {
25460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25461 }
25462 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25463 {
25464 PyThreadState* __tstate = wxPyBeginAllowThreads();
25465 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25466 wxPyEndAllowThreads(__tstate);
25467 if (PyErr_Occurred()) SWIG_fail;
25468 }
25469 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25470 return resultobj;
25471 fail:
25472 return NULL;
25473 }
25474
25475
25476 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25477 PyObject *obj;
25478 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25479 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25480 return SWIG_Py_Void();
25481 }
25482
25483 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25484 PyObject *resultobj = 0;
25485 wxWindow *arg1 = (wxWindow *) 0 ;
25486 int arg2 = (int) -1 ;
25487 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25488 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25489 wxSize const &arg4_defvalue = wxDefaultSize ;
25490 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25491 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25492 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25493 wxString *arg6 = (wxString *) &arg6_defvalue ;
25494 wxToolBar *result = 0 ;
25495 void *argp1 = 0 ;
25496 int res1 = 0 ;
25497 int val2 ;
25498 int ecode2 = 0 ;
25499 wxPoint temp3 ;
25500 wxSize temp4 ;
25501 long val5 ;
25502 int ecode5 = 0 ;
25503 bool temp6 = false ;
25504 PyObject * obj0 = 0 ;
25505 PyObject * obj1 = 0 ;
25506 PyObject * obj2 = 0 ;
25507 PyObject * obj3 = 0 ;
25508 PyObject * obj4 = 0 ;
25509 PyObject * obj5 = 0 ;
25510 char * kwnames[] = {
25511 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25512 };
25513
25514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25516 if (!SWIG_IsOK(res1)) {
25517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25518 }
25519 arg1 = reinterpret_cast< wxWindow * >(argp1);
25520 if (obj1) {
25521 ecode2 = SWIG_AsVal_int(obj1, &val2);
25522 if (!SWIG_IsOK(ecode2)) {
25523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25524 }
25525 arg2 = static_cast< int >(val2);
25526 }
25527 if (obj2) {
25528 {
25529 arg3 = &temp3;
25530 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25531 }
25532 }
25533 if (obj3) {
25534 {
25535 arg4 = &temp4;
25536 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25537 }
25538 }
25539 if (obj4) {
25540 ecode5 = SWIG_AsVal_long(obj4, &val5);
25541 if (!SWIG_IsOK(ecode5)) {
25542 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25543 }
25544 arg5 = static_cast< long >(val5);
25545 }
25546 if (obj5) {
25547 {
25548 arg6 = wxString_in_helper(obj5);
25549 if (arg6 == NULL) SWIG_fail;
25550 temp6 = true;
25551 }
25552 }
25553 {
25554 if (!wxPyCheckForApp()) SWIG_fail;
25555 PyThreadState* __tstate = wxPyBeginAllowThreads();
25556 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25557 wxPyEndAllowThreads(__tstate);
25558 if (PyErr_Occurred()) SWIG_fail;
25559 }
25560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25561 {
25562 if (temp6)
25563 delete arg6;
25564 }
25565 return resultobj;
25566 fail:
25567 {
25568 if (temp6)
25569 delete arg6;
25570 }
25571 return NULL;
25572 }
25573
25574
25575 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25576 PyObject *resultobj = 0;
25577 wxToolBar *result = 0 ;
25578
25579 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25580 {
25581 if (!wxPyCheckForApp()) SWIG_fail;
25582 PyThreadState* __tstate = wxPyBeginAllowThreads();
25583 result = (wxToolBar *)new wxToolBar();
25584 wxPyEndAllowThreads(__tstate);
25585 if (PyErr_Occurred()) SWIG_fail;
25586 }
25587 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25588 return resultobj;
25589 fail:
25590 return NULL;
25591 }
25592
25593
25594 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25595 PyObject *resultobj = 0;
25596 wxToolBar *arg1 = (wxToolBar *) 0 ;
25597 wxWindow *arg2 = (wxWindow *) 0 ;
25598 int arg3 = (int) -1 ;
25599 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25600 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25601 wxSize const &arg5_defvalue = wxDefaultSize ;
25602 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25603 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25604 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25605 wxString *arg7 = (wxString *) &arg7_defvalue ;
25606 bool result;
25607 void *argp1 = 0 ;
25608 int res1 = 0 ;
25609 void *argp2 = 0 ;
25610 int res2 = 0 ;
25611 int val3 ;
25612 int ecode3 = 0 ;
25613 wxPoint temp4 ;
25614 wxSize temp5 ;
25615 long val6 ;
25616 int ecode6 = 0 ;
25617 bool temp7 = false ;
25618 PyObject * obj0 = 0 ;
25619 PyObject * obj1 = 0 ;
25620 PyObject * obj2 = 0 ;
25621 PyObject * obj3 = 0 ;
25622 PyObject * obj4 = 0 ;
25623 PyObject * obj5 = 0 ;
25624 PyObject * obj6 = 0 ;
25625 char * kwnames[] = {
25626 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25627 };
25628
25629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25631 if (!SWIG_IsOK(res1)) {
25632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25633 }
25634 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25635 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25636 if (!SWIG_IsOK(res2)) {
25637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25638 }
25639 arg2 = reinterpret_cast< wxWindow * >(argp2);
25640 if (obj2) {
25641 ecode3 = SWIG_AsVal_int(obj2, &val3);
25642 if (!SWIG_IsOK(ecode3)) {
25643 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25644 }
25645 arg3 = static_cast< int >(val3);
25646 }
25647 if (obj3) {
25648 {
25649 arg4 = &temp4;
25650 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25651 }
25652 }
25653 if (obj4) {
25654 {
25655 arg5 = &temp5;
25656 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25657 }
25658 }
25659 if (obj5) {
25660 ecode6 = SWIG_AsVal_long(obj5, &val6);
25661 if (!SWIG_IsOK(ecode6)) {
25662 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25663 }
25664 arg6 = static_cast< long >(val6);
25665 }
25666 if (obj6) {
25667 {
25668 arg7 = wxString_in_helper(obj6);
25669 if (arg7 == NULL) SWIG_fail;
25670 temp7 = true;
25671 }
25672 }
25673 {
25674 PyThreadState* __tstate = wxPyBeginAllowThreads();
25675 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25676 wxPyEndAllowThreads(__tstate);
25677 if (PyErr_Occurred()) SWIG_fail;
25678 }
25679 {
25680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25681 }
25682 {
25683 if (temp7)
25684 delete arg7;
25685 }
25686 return resultobj;
25687 fail:
25688 {
25689 if (temp7)
25690 delete arg7;
25691 }
25692 return NULL;
25693 }
25694
25695
25696 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25697 PyObject *resultobj = 0;
25698 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25699 SwigValueWrapper<wxVisualAttributes > result;
25700 int val1 ;
25701 int ecode1 = 0 ;
25702 PyObject * obj0 = 0 ;
25703 char * kwnames[] = {
25704 (char *) "variant", NULL
25705 };
25706
25707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25708 if (obj0) {
25709 ecode1 = SWIG_AsVal_int(obj0, &val1);
25710 if (!SWIG_IsOK(ecode1)) {
25711 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25712 }
25713 arg1 = static_cast< wxWindowVariant >(val1);
25714 }
25715 {
25716 if (!wxPyCheckForApp()) SWIG_fail;
25717 PyThreadState* __tstate = wxPyBeginAllowThreads();
25718 result = wxToolBar::GetClassDefaultAttributes(arg1);
25719 wxPyEndAllowThreads(__tstate);
25720 if (PyErr_Occurred()) SWIG_fail;
25721 }
25722 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25723 return resultobj;
25724 fail:
25725 return NULL;
25726 }
25727
25728
25729 SWIGINTERN PyObject *ToolBar_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_wxToolBar, SWIG_NewClientData(obj));
25733 return SWIG_Py_Void();
25734 }
25735
25736 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25737 return SWIG_Python_InitShadowInstance(args);
25738 }
25739
25740 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25741 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25742 return 1;
25743 }
25744
25745
25746 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25747 PyObject *pyobj = 0;
25748
25749 {
25750 #if wxUSE_UNICODE
25751 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25752 #else
25753 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25754 #endif
25755 }
25756 return pyobj;
25757 }
25758
25759
25760 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25761 PyObject *resultobj = 0;
25762 wxColour const &arg1_defvalue = wxNullColour ;
25763 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25764 wxColour const &arg2_defvalue = wxNullColour ;
25765 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25766 wxFont const &arg3_defvalue = wxNullFont ;
25767 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25768 wxListItemAttr *result = 0 ;
25769 wxColour temp1 ;
25770 wxColour temp2 ;
25771 void *argp3 = 0 ;
25772 int res3 = 0 ;
25773 PyObject * obj0 = 0 ;
25774 PyObject * obj1 = 0 ;
25775 PyObject * obj2 = 0 ;
25776 char * kwnames[] = {
25777 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25778 };
25779
25780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25781 if (obj0) {
25782 {
25783 arg1 = &temp1;
25784 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25785 }
25786 }
25787 if (obj1) {
25788 {
25789 arg2 = &temp2;
25790 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25791 }
25792 }
25793 if (obj2) {
25794 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25795 if (!SWIG_IsOK(res3)) {
25796 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25797 }
25798 if (!argp3) {
25799 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25800 }
25801 arg3 = reinterpret_cast< wxFont * >(argp3);
25802 }
25803 {
25804 PyThreadState* __tstate = wxPyBeginAllowThreads();
25805 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25806 wxPyEndAllowThreads(__tstate);
25807 if (PyErr_Occurred()) SWIG_fail;
25808 }
25809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25810 return resultobj;
25811 fail:
25812 return NULL;
25813 }
25814
25815
25816 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25817 PyObject *resultobj = 0;
25818 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25819 void *argp1 = 0 ;
25820 int res1 = 0 ;
25821 PyObject *swig_obj[1] ;
25822
25823 if (!args) SWIG_fail;
25824 swig_obj[0] = args;
25825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25826 if (!SWIG_IsOK(res1)) {
25827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25828 }
25829 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25830 {
25831 PyThreadState* __tstate = wxPyBeginAllowThreads();
25832 delete arg1;
25833
25834 wxPyEndAllowThreads(__tstate);
25835 if (PyErr_Occurred()) SWIG_fail;
25836 }
25837 resultobj = SWIG_Py_Void();
25838 return resultobj;
25839 fail:
25840 return NULL;
25841 }
25842
25843
25844 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25845 PyObject *resultobj = 0;
25846 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25847 wxColour *arg2 = 0 ;
25848 void *argp1 = 0 ;
25849 int res1 = 0 ;
25850 wxColour temp2 ;
25851 PyObject * obj0 = 0 ;
25852 PyObject * obj1 = 0 ;
25853 char * kwnames[] = {
25854 (char *) "self",(char *) "colText", NULL
25855 };
25856
25857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25859 if (!SWIG_IsOK(res1)) {
25860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25861 }
25862 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25863 {
25864 arg2 = &temp2;
25865 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25866 }
25867 {
25868 PyThreadState* __tstate = wxPyBeginAllowThreads();
25869 (arg1)->SetTextColour((wxColour const &)*arg2);
25870 wxPyEndAllowThreads(__tstate);
25871 if (PyErr_Occurred()) SWIG_fail;
25872 }
25873 resultobj = SWIG_Py_Void();
25874 return resultobj;
25875 fail:
25876 return NULL;
25877 }
25878
25879
25880 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25881 PyObject *resultobj = 0;
25882 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25883 wxColour *arg2 = 0 ;
25884 void *argp1 = 0 ;
25885 int res1 = 0 ;
25886 wxColour temp2 ;
25887 PyObject * obj0 = 0 ;
25888 PyObject * obj1 = 0 ;
25889 char * kwnames[] = {
25890 (char *) "self",(char *) "colBack", NULL
25891 };
25892
25893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25895 if (!SWIG_IsOK(res1)) {
25896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25897 }
25898 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25899 {
25900 arg2 = &temp2;
25901 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25902 }
25903 {
25904 PyThreadState* __tstate = wxPyBeginAllowThreads();
25905 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25906 wxPyEndAllowThreads(__tstate);
25907 if (PyErr_Occurred()) SWIG_fail;
25908 }
25909 resultobj = SWIG_Py_Void();
25910 return resultobj;
25911 fail:
25912 return NULL;
25913 }
25914
25915
25916 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25917 PyObject *resultobj = 0;
25918 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25919 wxFont *arg2 = 0 ;
25920 void *argp1 = 0 ;
25921 int res1 = 0 ;
25922 void *argp2 = 0 ;
25923 int res2 = 0 ;
25924 PyObject * obj0 = 0 ;
25925 PyObject * obj1 = 0 ;
25926 char * kwnames[] = {
25927 (char *) "self",(char *) "font", NULL
25928 };
25929
25930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25932 if (!SWIG_IsOK(res1)) {
25933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25934 }
25935 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25937 if (!SWIG_IsOK(res2)) {
25938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25939 }
25940 if (!argp2) {
25941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25942 }
25943 arg2 = reinterpret_cast< wxFont * >(argp2);
25944 {
25945 PyThreadState* __tstate = wxPyBeginAllowThreads();
25946 (arg1)->SetFont((wxFont const &)*arg2);
25947 wxPyEndAllowThreads(__tstate);
25948 if (PyErr_Occurred()) SWIG_fail;
25949 }
25950 resultobj = SWIG_Py_Void();
25951 return resultobj;
25952 fail:
25953 return NULL;
25954 }
25955
25956
25957 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25958 PyObject *resultobj = 0;
25959 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25960 bool result;
25961 void *argp1 = 0 ;
25962 int res1 = 0 ;
25963 PyObject *swig_obj[1] ;
25964
25965 if (!args) SWIG_fail;
25966 swig_obj[0] = args;
25967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25968 if (!SWIG_IsOK(res1)) {
25969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25970 }
25971 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25972 {
25973 PyThreadState* __tstate = wxPyBeginAllowThreads();
25974 result = (bool)(arg1)->HasTextColour();
25975 wxPyEndAllowThreads(__tstate);
25976 if (PyErr_Occurred()) SWIG_fail;
25977 }
25978 {
25979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25980 }
25981 return resultobj;
25982 fail:
25983 return NULL;
25984 }
25985
25986
25987 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25988 PyObject *resultobj = 0;
25989 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25990 bool result;
25991 void *argp1 = 0 ;
25992 int res1 = 0 ;
25993 PyObject *swig_obj[1] ;
25994
25995 if (!args) SWIG_fail;
25996 swig_obj[0] = args;
25997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25998 if (!SWIG_IsOK(res1)) {
25999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26000 }
26001 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26002 {
26003 PyThreadState* __tstate = wxPyBeginAllowThreads();
26004 result = (bool)(arg1)->HasBackgroundColour();
26005 wxPyEndAllowThreads(__tstate);
26006 if (PyErr_Occurred()) SWIG_fail;
26007 }
26008 {
26009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26010 }
26011 return resultobj;
26012 fail:
26013 return NULL;
26014 }
26015
26016
26017 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26018 PyObject *resultobj = 0;
26019 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26020 bool result;
26021 void *argp1 = 0 ;
26022 int res1 = 0 ;
26023 PyObject *swig_obj[1] ;
26024
26025 if (!args) SWIG_fail;
26026 swig_obj[0] = args;
26027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26028 if (!SWIG_IsOK(res1)) {
26029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26030 }
26031 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26032 {
26033 PyThreadState* __tstate = wxPyBeginAllowThreads();
26034 result = (bool)(arg1)->HasFont();
26035 wxPyEndAllowThreads(__tstate);
26036 if (PyErr_Occurred()) SWIG_fail;
26037 }
26038 {
26039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26040 }
26041 return resultobj;
26042 fail:
26043 return NULL;
26044 }
26045
26046
26047 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26048 PyObject *resultobj = 0;
26049 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26050 wxColour result;
26051 void *argp1 = 0 ;
26052 int res1 = 0 ;
26053 PyObject *swig_obj[1] ;
26054
26055 if (!args) SWIG_fail;
26056 swig_obj[0] = args;
26057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26058 if (!SWIG_IsOK(res1)) {
26059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26060 }
26061 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26062 {
26063 PyThreadState* __tstate = wxPyBeginAllowThreads();
26064 result = (arg1)->GetTextColour();
26065 wxPyEndAllowThreads(__tstate);
26066 if (PyErr_Occurred()) SWIG_fail;
26067 }
26068 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26069 return resultobj;
26070 fail:
26071 return NULL;
26072 }
26073
26074
26075 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26076 PyObject *resultobj = 0;
26077 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26078 wxColour result;
26079 void *argp1 = 0 ;
26080 int res1 = 0 ;
26081 PyObject *swig_obj[1] ;
26082
26083 if (!args) SWIG_fail;
26084 swig_obj[0] = args;
26085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26086 if (!SWIG_IsOK(res1)) {
26087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26088 }
26089 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26090 {
26091 PyThreadState* __tstate = wxPyBeginAllowThreads();
26092 result = (arg1)->GetBackgroundColour();
26093 wxPyEndAllowThreads(__tstate);
26094 if (PyErr_Occurred()) SWIG_fail;
26095 }
26096 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26097 return resultobj;
26098 fail:
26099 return NULL;
26100 }
26101
26102
26103 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26104 PyObject *resultobj = 0;
26105 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26106 wxFont result;
26107 void *argp1 = 0 ;
26108 int res1 = 0 ;
26109 PyObject *swig_obj[1] ;
26110
26111 if (!args) SWIG_fail;
26112 swig_obj[0] = args;
26113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26114 if (!SWIG_IsOK(res1)) {
26115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26116 }
26117 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26118 {
26119 PyThreadState* __tstate = wxPyBeginAllowThreads();
26120 result = (arg1)->GetFont();
26121 wxPyEndAllowThreads(__tstate);
26122 if (PyErr_Occurred()) SWIG_fail;
26123 }
26124 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26125 return resultobj;
26126 fail:
26127 return NULL;
26128 }
26129
26130
26131 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26132 PyObject *resultobj = 0;
26133 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26134 wxListItemAttr *arg2 = 0 ;
26135 void *argp1 = 0 ;
26136 int res1 = 0 ;
26137 void *argp2 = 0 ;
26138 int res2 = 0 ;
26139 PyObject * obj0 = 0 ;
26140 PyObject * obj1 = 0 ;
26141 char * kwnames[] = {
26142 (char *) "self",(char *) "source", NULL
26143 };
26144
26145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26147 if (!SWIG_IsOK(res1)) {
26148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26149 }
26150 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26151 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26152 if (!SWIG_IsOK(res2)) {
26153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26154 }
26155 if (!argp2) {
26156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26157 }
26158 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26159 {
26160 PyThreadState* __tstate = wxPyBeginAllowThreads();
26161 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26162 wxPyEndAllowThreads(__tstate);
26163 if (PyErr_Occurred()) SWIG_fail;
26164 }
26165 resultobj = SWIG_Py_Void();
26166 return resultobj;
26167 fail:
26168 return NULL;
26169 }
26170
26171
26172 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26173 PyObject *resultobj = 0;
26174 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26175 void *argp1 = 0 ;
26176 int res1 = 0 ;
26177 PyObject *swig_obj[1] ;
26178
26179 if (!args) SWIG_fail;
26180 swig_obj[0] = args;
26181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26182 if (!SWIG_IsOK(res1)) {
26183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26184 }
26185 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26186 {
26187 PyThreadState* __tstate = wxPyBeginAllowThreads();
26188 wxListItemAttr_Destroy(arg1);
26189 wxPyEndAllowThreads(__tstate);
26190 if (PyErr_Occurred()) SWIG_fail;
26191 }
26192 resultobj = SWIG_Py_Void();
26193 return resultobj;
26194 fail:
26195 return NULL;
26196 }
26197
26198
26199 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26200 PyObject *obj;
26201 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26202 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26203 return SWIG_Py_Void();
26204 }
26205
26206 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26207 return SWIG_Python_InitShadowInstance(args);
26208 }
26209
26210 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26211 PyObject *resultobj = 0;
26212 wxListItem *result = 0 ;
26213
26214 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26215 {
26216 PyThreadState* __tstate = wxPyBeginAllowThreads();
26217 result = (wxListItem *)new wxListItem();
26218 wxPyEndAllowThreads(__tstate);
26219 if (PyErr_Occurred()) SWIG_fail;
26220 }
26221 {
26222 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26223 }
26224 return resultobj;
26225 fail:
26226 return NULL;
26227 }
26228
26229
26230 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26231 PyObject *resultobj = 0;
26232 wxListItem *arg1 = (wxListItem *) 0 ;
26233 void *argp1 = 0 ;
26234 int res1 = 0 ;
26235 PyObject *swig_obj[1] ;
26236
26237 if (!args) SWIG_fail;
26238 swig_obj[0] = args;
26239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26240 if (!SWIG_IsOK(res1)) {
26241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26242 }
26243 arg1 = reinterpret_cast< wxListItem * >(argp1);
26244 {
26245 PyThreadState* __tstate = wxPyBeginAllowThreads();
26246 delete arg1;
26247
26248 wxPyEndAllowThreads(__tstate);
26249 if (PyErr_Occurred()) SWIG_fail;
26250 }
26251 resultobj = SWIG_Py_Void();
26252 return resultobj;
26253 fail:
26254 return NULL;
26255 }
26256
26257
26258 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26259 PyObject *resultobj = 0;
26260 wxListItem *arg1 = (wxListItem *) 0 ;
26261 void *argp1 = 0 ;
26262 int res1 = 0 ;
26263 PyObject *swig_obj[1] ;
26264
26265 if (!args) SWIG_fail;
26266 swig_obj[0] = args;
26267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26268 if (!SWIG_IsOK(res1)) {
26269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26270 }
26271 arg1 = reinterpret_cast< wxListItem * >(argp1);
26272 {
26273 PyThreadState* __tstate = wxPyBeginAllowThreads();
26274 (arg1)->Clear();
26275 wxPyEndAllowThreads(__tstate);
26276 if (PyErr_Occurred()) SWIG_fail;
26277 }
26278 resultobj = SWIG_Py_Void();
26279 return resultobj;
26280 fail:
26281 return NULL;
26282 }
26283
26284
26285 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26286 PyObject *resultobj = 0;
26287 wxListItem *arg1 = (wxListItem *) 0 ;
26288 void *argp1 = 0 ;
26289 int res1 = 0 ;
26290 PyObject *swig_obj[1] ;
26291
26292 if (!args) SWIG_fail;
26293 swig_obj[0] = args;
26294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26295 if (!SWIG_IsOK(res1)) {
26296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26297 }
26298 arg1 = reinterpret_cast< wxListItem * >(argp1);
26299 {
26300 PyThreadState* __tstate = wxPyBeginAllowThreads();
26301 (arg1)->ClearAttributes();
26302 wxPyEndAllowThreads(__tstate);
26303 if (PyErr_Occurred()) SWIG_fail;
26304 }
26305 resultobj = SWIG_Py_Void();
26306 return resultobj;
26307 fail:
26308 return NULL;
26309 }
26310
26311
26312 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26313 PyObject *resultobj = 0;
26314 wxListItem *arg1 = (wxListItem *) 0 ;
26315 long arg2 ;
26316 void *argp1 = 0 ;
26317 int res1 = 0 ;
26318 long val2 ;
26319 int ecode2 = 0 ;
26320 PyObject * obj0 = 0 ;
26321 PyObject * obj1 = 0 ;
26322 char * kwnames[] = {
26323 (char *) "self",(char *) "mask", NULL
26324 };
26325
26326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26328 if (!SWIG_IsOK(res1)) {
26329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26330 }
26331 arg1 = reinterpret_cast< wxListItem * >(argp1);
26332 ecode2 = SWIG_AsVal_long(obj1, &val2);
26333 if (!SWIG_IsOK(ecode2)) {
26334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26335 }
26336 arg2 = static_cast< long >(val2);
26337 {
26338 PyThreadState* __tstate = wxPyBeginAllowThreads();
26339 (arg1)->SetMask(arg2);
26340 wxPyEndAllowThreads(__tstate);
26341 if (PyErr_Occurred()) SWIG_fail;
26342 }
26343 resultobj = SWIG_Py_Void();
26344 return resultobj;
26345 fail:
26346 return NULL;
26347 }
26348
26349
26350 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26351 PyObject *resultobj = 0;
26352 wxListItem *arg1 = (wxListItem *) 0 ;
26353 long arg2 ;
26354 void *argp1 = 0 ;
26355 int res1 = 0 ;
26356 long val2 ;
26357 int ecode2 = 0 ;
26358 PyObject * obj0 = 0 ;
26359 PyObject * obj1 = 0 ;
26360 char * kwnames[] = {
26361 (char *) "self",(char *) "id", NULL
26362 };
26363
26364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26366 if (!SWIG_IsOK(res1)) {
26367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26368 }
26369 arg1 = reinterpret_cast< wxListItem * >(argp1);
26370 ecode2 = SWIG_AsVal_long(obj1, &val2);
26371 if (!SWIG_IsOK(ecode2)) {
26372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26373 }
26374 arg2 = static_cast< long >(val2);
26375 {
26376 PyThreadState* __tstate = wxPyBeginAllowThreads();
26377 (arg1)->SetId(arg2);
26378 wxPyEndAllowThreads(__tstate);
26379 if (PyErr_Occurred()) SWIG_fail;
26380 }
26381 resultobj = SWIG_Py_Void();
26382 return resultobj;
26383 fail:
26384 return NULL;
26385 }
26386
26387
26388 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26389 PyObject *resultobj = 0;
26390 wxListItem *arg1 = (wxListItem *) 0 ;
26391 int arg2 ;
26392 void *argp1 = 0 ;
26393 int res1 = 0 ;
26394 int val2 ;
26395 int ecode2 = 0 ;
26396 PyObject * obj0 = 0 ;
26397 PyObject * obj1 = 0 ;
26398 char * kwnames[] = {
26399 (char *) "self",(char *) "col", NULL
26400 };
26401
26402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26404 if (!SWIG_IsOK(res1)) {
26405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26406 }
26407 arg1 = reinterpret_cast< wxListItem * >(argp1);
26408 ecode2 = SWIG_AsVal_int(obj1, &val2);
26409 if (!SWIG_IsOK(ecode2)) {
26410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26411 }
26412 arg2 = static_cast< int >(val2);
26413 {
26414 PyThreadState* __tstate = wxPyBeginAllowThreads();
26415 (arg1)->SetColumn(arg2);
26416 wxPyEndAllowThreads(__tstate);
26417 if (PyErr_Occurred()) SWIG_fail;
26418 }
26419 resultobj = SWIG_Py_Void();
26420 return resultobj;
26421 fail:
26422 return NULL;
26423 }
26424
26425
26426 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26427 PyObject *resultobj = 0;
26428 wxListItem *arg1 = (wxListItem *) 0 ;
26429 long arg2 ;
26430 void *argp1 = 0 ;
26431 int res1 = 0 ;
26432 long val2 ;
26433 int ecode2 = 0 ;
26434 PyObject * obj0 = 0 ;
26435 PyObject * obj1 = 0 ;
26436 char * kwnames[] = {
26437 (char *) "self",(char *) "state", NULL
26438 };
26439
26440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26442 if (!SWIG_IsOK(res1)) {
26443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26444 }
26445 arg1 = reinterpret_cast< wxListItem * >(argp1);
26446 ecode2 = SWIG_AsVal_long(obj1, &val2);
26447 if (!SWIG_IsOK(ecode2)) {
26448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26449 }
26450 arg2 = static_cast< long >(val2);
26451 {
26452 PyThreadState* __tstate = wxPyBeginAllowThreads();
26453 (arg1)->SetState(arg2);
26454 wxPyEndAllowThreads(__tstate);
26455 if (PyErr_Occurred()) SWIG_fail;
26456 }
26457 resultobj = SWIG_Py_Void();
26458 return resultobj;
26459 fail:
26460 return NULL;
26461 }
26462
26463
26464 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26465 PyObject *resultobj = 0;
26466 wxListItem *arg1 = (wxListItem *) 0 ;
26467 long arg2 ;
26468 void *argp1 = 0 ;
26469 int res1 = 0 ;
26470 long val2 ;
26471 int ecode2 = 0 ;
26472 PyObject * obj0 = 0 ;
26473 PyObject * obj1 = 0 ;
26474 char * kwnames[] = {
26475 (char *) "self",(char *) "stateMask", NULL
26476 };
26477
26478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26480 if (!SWIG_IsOK(res1)) {
26481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26482 }
26483 arg1 = reinterpret_cast< wxListItem * >(argp1);
26484 ecode2 = SWIG_AsVal_long(obj1, &val2);
26485 if (!SWIG_IsOK(ecode2)) {
26486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26487 }
26488 arg2 = static_cast< long >(val2);
26489 {
26490 PyThreadState* __tstate = wxPyBeginAllowThreads();
26491 (arg1)->SetStateMask(arg2);
26492 wxPyEndAllowThreads(__tstate);
26493 if (PyErr_Occurred()) SWIG_fail;
26494 }
26495 resultobj = SWIG_Py_Void();
26496 return resultobj;
26497 fail:
26498 return NULL;
26499 }
26500
26501
26502 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26503 PyObject *resultobj = 0;
26504 wxListItem *arg1 = (wxListItem *) 0 ;
26505 wxString *arg2 = 0 ;
26506 void *argp1 = 0 ;
26507 int res1 = 0 ;
26508 bool temp2 = false ;
26509 PyObject * obj0 = 0 ;
26510 PyObject * obj1 = 0 ;
26511 char * kwnames[] = {
26512 (char *) "self",(char *) "text", NULL
26513 };
26514
26515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26517 if (!SWIG_IsOK(res1)) {
26518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26519 }
26520 arg1 = reinterpret_cast< wxListItem * >(argp1);
26521 {
26522 arg2 = wxString_in_helper(obj1);
26523 if (arg2 == NULL) SWIG_fail;
26524 temp2 = true;
26525 }
26526 {
26527 PyThreadState* __tstate = wxPyBeginAllowThreads();
26528 (arg1)->SetText((wxString const &)*arg2);
26529 wxPyEndAllowThreads(__tstate);
26530 if (PyErr_Occurred()) SWIG_fail;
26531 }
26532 resultobj = SWIG_Py_Void();
26533 {
26534 if (temp2)
26535 delete arg2;
26536 }
26537 return resultobj;
26538 fail:
26539 {
26540 if (temp2)
26541 delete arg2;
26542 }
26543 return NULL;
26544 }
26545
26546
26547 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26548 PyObject *resultobj = 0;
26549 wxListItem *arg1 = (wxListItem *) 0 ;
26550 int arg2 ;
26551 void *argp1 = 0 ;
26552 int res1 = 0 ;
26553 int val2 ;
26554 int ecode2 = 0 ;
26555 PyObject * obj0 = 0 ;
26556 PyObject * obj1 = 0 ;
26557 char * kwnames[] = {
26558 (char *) "self",(char *) "image", NULL
26559 };
26560
26561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26563 if (!SWIG_IsOK(res1)) {
26564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26565 }
26566 arg1 = reinterpret_cast< wxListItem * >(argp1);
26567 ecode2 = SWIG_AsVal_int(obj1, &val2);
26568 if (!SWIG_IsOK(ecode2)) {
26569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26570 }
26571 arg2 = static_cast< int >(val2);
26572 {
26573 PyThreadState* __tstate = wxPyBeginAllowThreads();
26574 (arg1)->SetImage(arg2);
26575 wxPyEndAllowThreads(__tstate);
26576 if (PyErr_Occurred()) SWIG_fail;
26577 }
26578 resultobj = SWIG_Py_Void();
26579 return resultobj;
26580 fail:
26581 return NULL;
26582 }
26583
26584
26585 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26586 PyObject *resultobj = 0;
26587 wxListItem *arg1 = (wxListItem *) 0 ;
26588 long arg2 ;
26589 void *argp1 = 0 ;
26590 int res1 = 0 ;
26591 long val2 ;
26592 int ecode2 = 0 ;
26593 PyObject * obj0 = 0 ;
26594 PyObject * obj1 = 0 ;
26595 char * kwnames[] = {
26596 (char *) "self",(char *) "data", NULL
26597 };
26598
26599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26601 if (!SWIG_IsOK(res1)) {
26602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26603 }
26604 arg1 = reinterpret_cast< wxListItem * >(argp1);
26605 ecode2 = SWIG_AsVal_long(obj1, &val2);
26606 if (!SWIG_IsOK(ecode2)) {
26607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26608 }
26609 arg2 = static_cast< long >(val2);
26610 {
26611 PyThreadState* __tstate = wxPyBeginAllowThreads();
26612 (arg1)->SetData(arg2);
26613 wxPyEndAllowThreads(__tstate);
26614 if (PyErr_Occurred()) SWIG_fail;
26615 }
26616 resultobj = SWIG_Py_Void();
26617 return resultobj;
26618 fail:
26619 return NULL;
26620 }
26621
26622
26623 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26624 PyObject *resultobj = 0;
26625 wxListItem *arg1 = (wxListItem *) 0 ;
26626 int arg2 ;
26627 void *argp1 = 0 ;
26628 int res1 = 0 ;
26629 int val2 ;
26630 int ecode2 = 0 ;
26631 PyObject * obj0 = 0 ;
26632 PyObject * obj1 = 0 ;
26633 char * kwnames[] = {
26634 (char *) "self",(char *) "width", NULL
26635 };
26636
26637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26639 if (!SWIG_IsOK(res1)) {
26640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26641 }
26642 arg1 = reinterpret_cast< wxListItem * >(argp1);
26643 ecode2 = SWIG_AsVal_int(obj1, &val2);
26644 if (!SWIG_IsOK(ecode2)) {
26645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26646 }
26647 arg2 = static_cast< int >(val2);
26648 {
26649 PyThreadState* __tstate = wxPyBeginAllowThreads();
26650 (arg1)->SetWidth(arg2);
26651 wxPyEndAllowThreads(__tstate);
26652 if (PyErr_Occurred()) SWIG_fail;
26653 }
26654 resultobj = SWIG_Py_Void();
26655 return resultobj;
26656 fail:
26657 return NULL;
26658 }
26659
26660
26661 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26662 PyObject *resultobj = 0;
26663 wxListItem *arg1 = (wxListItem *) 0 ;
26664 wxListColumnFormat arg2 ;
26665 void *argp1 = 0 ;
26666 int res1 = 0 ;
26667 int val2 ;
26668 int ecode2 = 0 ;
26669 PyObject * obj0 = 0 ;
26670 PyObject * obj1 = 0 ;
26671 char * kwnames[] = {
26672 (char *) "self",(char *) "align", NULL
26673 };
26674
26675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26677 if (!SWIG_IsOK(res1)) {
26678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26679 }
26680 arg1 = reinterpret_cast< wxListItem * >(argp1);
26681 ecode2 = SWIG_AsVal_int(obj1, &val2);
26682 if (!SWIG_IsOK(ecode2)) {
26683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26684 }
26685 arg2 = static_cast< wxListColumnFormat >(val2);
26686 {
26687 PyThreadState* __tstate = wxPyBeginAllowThreads();
26688 (arg1)->SetAlign(arg2);
26689 wxPyEndAllowThreads(__tstate);
26690 if (PyErr_Occurred()) SWIG_fail;
26691 }
26692 resultobj = SWIG_Py_Void();
26693 return resultobj;
26694 fail:
26695 return NULL;
26696 }
26697
26698
26699 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26700 PyObject *resultobj = 0;
26701 wxListItem *arg1 = (wxListItem *) 0 ;
26702 wxColour *arg2 = 0 ;
26703 void *argp1 = 0 ;
26704 int res1 = 0 ;
26705 wxColour temp2 ;
26706 PyObject * obj0 = 0 ;
26707 PyObject * obj1 = 0 ;
26708 char * kwnames[] = {
26709 (char *) "self",(char *) "colText", NULL
26710 };
26711
26712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26714 if (!SWIG_IsOK(res1)) {
26715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26716 }
26717 arg1 = reinterpret_cast< wxListItem * >(argp1);
26718 {
26719 arg2 = &temp2;
26720 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26721 }
26722 {
26723 PyThreadState* __tstate = wxPyBeginAllowThreads();
26724 (arg1)->SetTextColour((wxColour const &)*arg2);
26725 wxPyEndAllowThreads(__tstate);
26726 if (PyErr_Occurred()) SWIG_fail;
26727 }
26728 resultobj = SWIG_Py_Void();
26729 return resultobj;
26730 fail:
26731 return NULL;
26732 }
26733
26734
26735 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26736 PyObject *resultobj = 0;
26737 wxListItem *arg1 = (wxListItem *) 0 ;
26738 wxColour *arg2 = 0 ;
26739 void *argp1 = 0 ;
26740 int res1 = 0 ;
26741 wxColour temp2 ;
26742 PyObject * obj0 = 0 ;
26743 PyObject * obj1 = 0 ;
26744 char * kwnames[] = {
26745 (char *) "self",(char *) "colBack", NULL
26746 };
26747
26748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26750 if (!SWIG_IsOK(res1)) {
26751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26752 }
26753 arg1 = reinterpret_cast< wxListItem * >(argp1);
26754 {
26755 arg2 = &temp2;
26756 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26757 }
26758 {
26759 PyThreadState* __tstate = wxPyBeginAllowThreads();
26760 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26761 wxPyEndAllowThreads(__tstate);
26762 if (PyErr_Occurred()) SWIG_fail;
26763 }
26764 resultobj = SWIG_Py_Void();
26765 return resultobj;
26766 fail:
26767 return NULL;
26768 }
26769
26770
26771 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26772 PyObject *resultobj = 0;
26773 wxListItem *arg1 = (wxListItem *) 0 ;
26774 wxFont *arg2 = 0 ;
26775 void *argp1 = 0 ;
26776 int res1 = 0 ;
26777 void *argp2 = 0 ;
26778 int res2 = 0 ;
26779 PyObject * obj0 = 0 ;
26780 PyObject * obj1 = 0 ;
26781 char * kwnames[] = {
26782 (char *) "self",(char *) "font", NULL
26783 };
26784
26785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26787 if (!SWIG_IsOK(res1)) {
26788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26789 }
26790 arg1 = reinterpret_cast< wxListItem * >(argp1);
26791 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26792 if (!SWIG_IsOK(res2)) {
26793 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26794 }
26795 if (!argp2) {
26796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26797 }
26798 arg2 = reinterpret_cast< wxFont * >(argp2);
26799 {
26800 PyThreadState* __tstate = wxPyBeginAllowThreads();
26801 (arg1)->SetFont((wxFont const &)*arg2);
26802 wxPyEndAllowThreads(__tstate);
26803 if (PyErr_Occurred()) SWIG_fail;
26804 }
26805 resultobj = SWIG_Py_Void();
26806 return resultobj;
26807 fail:
26808 return NULL;
26809 }
26810
26811
26812 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26813 PyObject *resultobj = 0;
26814 wxListItem *arg1 = (wxListItem *) 0 ;
26815 long result;
26816 void *argp1 = 0 ;
26817 int res1 = 0 ;
26818 PyObject *swig_obj[1] ;
26819
26820 if (!args) SWIG_fail;
26821 swig_obj[0] = args;
26822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26823 if (!SWIG_IsOK(res1)) {
26824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26825 }
26826 arg1 = reinterpret_cast< wxListItem * >(argp1);
26827 {
26828 PyThreadState* __tstate = wxPyBeginAllowThreads();
26829 result = (long)(arg1)->GetMask();
26830 wxPyEndAllowThreads(__tstate);
26831 if (PyErr_Occurred()) SWIG_fail;
26832 }
26833 resultobj = SWIG_From_long(static_cast< long >(result));
26834 return resultobj;
26835 fail:
26836 return NULL;
26837 }
26838
26839
26840 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26841 PyObject *resultobj = 0;
26842 wxListItem *arg1 = (wxListItem *) 0 ;
26843 long result;
26844 void *argp1 = 0 ;
26845 int res1 = 0 ;
26846 PyObject *swig_obj[1] ;
26847
26848 if (!args) SWIG_fail;
26849 swig_obj[0] = args;
26850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26851 if (!SWIG_IsOK(res1)) {
26852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26853 }
26854 arg1 = reinterpret_cast< wxListItem * >(argp1);
26855 {
26856 PyThreadState* __tstate = wxPyBeginAllowThreads();
26857 result = (long)(arg1)->GetId();
26858 wxPyEndAllowThreads(__tstate);
26859 if (PyErr_Occurred()) SWIG_fail;
26860 }
26861 resultobj = SWIG_From_long(static_cast< long >(result));
26862 return resultobj;
26863 fail:
26864 return NULL;
26865 }
26866
26867
26868 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26869 PyObject *resultobj = 0;
26870 wxListItem *arg1 = (wxListItem *) 0 ;
26871 int result;
26872 void *argp1 = 0 ;
26873 int res1 = 0 ;
26874 PyObject *swig_obj[1] ;
26875
26876 if (!args) SWIG_fail;
26877 swig_obj[0] = args;
26878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26879 if (!SWIG_IsOK(res1)) {
26880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26881 }
26882 arg1 = reinterpret_cast< wxListItem * >(argp1);
26883 {
26884 PyThreadState* __tstate = wxPyBeginAllowThreads();
26885 result = (int)(arg1)->GetColumn();
26886 wxPyEndAllowThreads(__tstate);
26887 if (PyErr_Occurred()) SWIG_fail;
26888 }
26889 resultobj = SWIG_From_int(static_cast< int >(result));
26890 return resultobj;
26891 fail:
26892 return NULL;
26893 }
26894
26895
26896 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26897 PyObject *resultobj = 0;
26898 wxListItem *arg1 = (wxListItem *) 0 ;
26899 long result;
26900 void *argp1 = 0 ;
26901 int res1 = 0 ;
26902 PyObject *swig_obj[1] ;
26903
26904 if (!args) SWIG_fail;
26905 swig_obj[0] = args;
26906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26907 if (!SWIG_IsOK(res1)) {
26908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26909 }
26910 arg1 = reinterpret_cast< wxListItem * >(argp1);
26911 {
26912 PyThreadState* __tstate = wxPyBeginAllowThreads();
26913 result = (long)(arg1)->GetState();
26914 wxPyEndAllowThreads(__tstate);
26915 if (PyErr_Occurred()) SWIG_fail;
26916 }
26917 resultobj = SWIG_From_long(static_cast< long >(result));
26918 return resultobj;
26919 fail:
26920 return NULL;
26921 }
26922
26923
26924 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26925 PyObject *resultobj = 0;
26926 wxListItem *arg1 = (wxListItem *) 0 ;
26927 wxString *result = 0 ;
26928 void *argp1 = 0 ;
26929 int res1 = 0 ;
26930 PyObject *swig_obj[1] ;
26931
26932 if (!args) SWIG_fail;
26933 swig_obj[0] = args;
26934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26935 if (!SWIG_IsOK(res1)) {
26936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26937 }
26938 arg1 = reinterpret_cast< wxListItem * >(argp1);
26939 {
26940 PyThreadState* __tstate = wxPyBeginAllowThreads();
26941 {
26942 wxString const &_result_ref = (arg1)->GetText();
26943 result = (wxString *) &_result_ref;
26944 }
26945 wxPyEndAllowThreads(__tstate);
26946 if (PyErr_Occurred()) SWIG_fail;
26947 }
26948 {
26949 #if wxUSE_UNICODE
26950 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26951 #else
26952 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26953 #endif
26954 }
26955 return resultobj;
26956 fail:
26957 return NULL;
26958 }
26959
26960
26961 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26962 PyObject *resultobj = 0;
26963 wxListItem *arg1 = (wxListItem *) 0 ;
26964 int result;
26965 void *argp1 = 0 ;
26966 int res1 = 0 ;
26967 PyObject *swig_obj[1] ;
26968
26969 if (!args) SWIG_fail;
26970 swig_obj[0] = args;
26971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26972 if (!SWIG_IsOK(res1)) {
26973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26974 }
26975 arg1 = reinterpret_cast< wxListItem * >(argp1);
26976 {
26977 PyThreadState* __tstate = wxPyBeginAllowThreads();
26978 result = (int)(arg1)->GetImage();
26979 wxPyEndAllowThreads(__tstate);
26980 if (PyErr_Occurred()) SWIG_fail;
26981 }
26982 resultobj = SWIG_From_int(static_cast< int >(result));
26983 return resultobj;
26984 fail:
26985 return NULL;
26986 }
26987
26988
26989 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26990 PyObject *resultobj = 0;
26991 wxListItem *arg1 = (wxListItem *) 0 ;
26992 long result;
26993 void *argp1 = 0 ;
26994 int res1 = 0 ;
26995 PyObject *swig_obj[1] ;
26996
26997 if (!args) SWIG_fail;
26998 swig_obj[0] = args;
26999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27000 if (!SWIG_IsOK(res1)) {
27001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27002 }
27003 arg1 = reinterpret_cast< wxListItem * >(argp1);
27004 {
27005 PyThreadState* __tstate = wxPyBeginAllowThreads();
27006 result = (long)(arg1)->GetData();
27007 wxPyEndAllowThreads(__tstate);
27008 if (PyErr_Occurred()) SWIG_fail;
27009 }
27010 resultobj = SWIG_From_long(static_cast< long >(result));
27011 return resultobj;
27012 fail:
27013 return NULL;
27014 }
27015
27016
27017 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27018 PyObject *resultobj = 0;
27019 wxListItem *arg1 = (wxListItem *) 0 ;
27020 int result;
27021 void *argp1 = 0 ;
27022 int res1 = 0 ;
27023 PyObject *swig_obj[1] ;
27024
27025 if (!args) SWIG_fail;
27026 swig_obj[0] = args;
27027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27028 if (!SWIG_IsOK(res1)) {
27029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27030 }
27031 arg1 = reinterpret_cast< wxListItem * >(argp1);
27032 {
27033 PyThreadState* __tstate = wxPyBeginAllowThreads();
27034 result = (int)(arg1)->GetWidth();
27035 wxPyEndAllowThreads(__tstate);
27036 if (PyErr_Occurred()) SWIG_fail;
27037 }
27038 resultobj = SWIG_From_int(static_cast< int >(result));
27039 return resultobj;
27040 fail:
27041 return NULL;
27042 }
27043
27044
27045 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27046 PyObject *resultobj = 0;
27047 wxListItem *arg1 = (wxListItem *) 0 ;
27048 wxListColumnFormat result;
27049 void *argp1 = 0 ;
27050 int res1 = 0 ;
27051 PyObject *swig_obj[1] ;
27052
27053 if (!args) SWIG_fail;
27054 swig_obj[0] = args;
27055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27056 if (!SWIG_IsOK(res1)) {
27057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27058 }
27059 arg1 = reinterpret_cast< wxListItem * >(argp1);
27060 {
27061 PyThreadState* __tstate = wxPyBeginAllowThreads();
27062 result = (wxListColumnFormat)(arg1)->GetAlign();
27063 wxPyEndAllowThreads(__tstate);
27064 if (PyErr_Occurred()) SWIG_fail;
27065 }
27066 resultobj = SWIG_From_int(static_cast< int >(result));
27067 return resultobj;
27068 fail:
27069 return NULL;
27070 }
27071
27072
27073 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27074 PyObject *resultobj = 0;
27075 wxListItem *arg1 = (wxListItem *) 0 ;
27076 wxListItemAttr *result = 0 ;
27077 void *argp1 = 0 ;
27078 int res1 = 0 ;
27079 PyObject *swig_obj[1] ;
27080
27081 if (!args) SWIG_fail;
27082 swig_obj[0] = args;
27083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27084 if (!SWIG_IsOK(res1)) {
27085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27086 }
27087 arg1 = reinterpret_cast< wxListItem * >(argp1);
27088 {
27089 PyThreadState* __tstate = wxPyBeginAllowThreads();
27090 result = (wxListItemAttr *)(arg1)->GetAttributes();
27091 wxPyEndAllowThreads(__tstate);
27092 if (PyErr_Occurred()) SWIG_fail;
27093 }
27094 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27095 return resultobj;
27096 fail:
27097 return NULL;
27098 }
27099
27100
27101 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27102 PyObject *resultobj = 0;
27103 wxListItem *arg1 = (wxListItem *) 0 ;
27104 bool result;
27105 void *argp1 = 0 ;
27106 int res1 = 0 ;
27107 PyObject *swig_obj[1] ;
27108
27109 if (!args) SWIG_fail;
27110 swig_obj[0] = args;
27111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27112 if (!SWIG_IsOK(res1)) {
27113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27114 }
27115 arg1 = reinterpret_cast< wxListItem * >(argp1);
27116 {
27117 PyThreadState* __tstate = wxPyBeginAllowThreads();
27118 result = (bool)(arg1)->HasAttributes();
27119 wxPyEndAllowThreads(__tstate);
27120 if (PyErr_Occurred()) SWIG_fail;
27121 }
27122 {
27123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27124 }
27125 return resultobj;
27126 fail:
27127 return NULL;
27128 }
27129
27130
27131 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27132 PyObject *resultobj = 0;
27133 wxListItem *arg1 = (wxListItem *) 0 ;
27134 wxColour result;
27135 void *argp1 = 0 ;
27136 int res1 = 0 ;
27137 PyObject *swig_obj[1] ;
27138
27139 if (!args) SWIG_fail;
27140 swig_obj[0] = args;
27141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27142 if (!SWIG_IsOK(res1)) {
27143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27144 }
27145 arg1 = reinterpret_cast< wxListItem * >(argp1);
27146 {
27147 PyThreadState* __tstate = wxPyBeginAllowThreads();
27148 result = ((wxListItem const *)arg1)->GetTextColour();
27149 wxPyEndAllowThreads(__tstate);
27150 if (PyErr_Occurred()) SWIG_fail;
27151 }
27152 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27153 return resultobj;
27154 fail:
27155 return NULL;
27156 }
27157
27158
27159 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27160 PyObject *resultobj = 0;
27161 wxListItem *arg1 = (wxListItem *) 0 ;
27162 wxColour result;
27163 void *argp1 = 0 ;
27164 int res1 = 0 ;
27165 PyObject *swig_obj[1] ;
27166
27167 if (!args) SWIG_fail;
27168 swig_obj[0] = args;
27169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27170 if (!SWIG_IsOK(res1)) {
27171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27172 }
27173 arg1 = reinterpret_cast< wxListItem * >(argp1);
27174 {
27175 PyThreadState* __tstate = wxPyBeginAllowThreads();
27176 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27177 wxPyEndAllowThreads(__tstate);
27178 if (PyErr_Occurred()) SWIG_fail;
27179 }
27180 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27181 return resultobj;
27182 fail:
27183 return NULL;
27184 }
27185
27186
27187 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27188 PyObject *resultobj = 0;
27189 wxListItem *arg1 = (wxListItem *) 0 ;
27190 wxFont result;
27191 void *argp1 = 0 ;
27192 int res1 = 0 ;
27193 PyObject *swig_obj[1] ;
27194
27195 if (!args) SWIG_fail;
27196 swig_obj[0] = args;
27197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27198 if (!SWIG_IsOK(res1)) {
27199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27200 }
27201 arg1 = reinterpret_cast< wxListItem * >(argp1);
27202 {
27203 PyThreadState* __tstate = wxPyBeginAllowThreads();
27204 result = ((wxListItem const *)arg1)->GetFont();
27205 wxPyEndAllowThreads(__tstate);
27206 if (PyErr_Occurred()) SWIG_fail;
27207 }
27208 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27209 return resultobj;
27210 fail:
27211 return NULL;
27212 }
27213
27214
27215 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27216 PyObject *resultobj = 0;
27217 wxListItem *arg1 = (wxListItem *) 0 ;
27218 long arg2 ;
27219 void *argp1 = 0 ;
27220 int res1 = 0 ;
27221 long val2 ;
27222 int ecode2 = 0 ;
27223 PyObject *swig_obj[2] ;
27224
27225 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27227 if (!SWIG_IsOK(res1)) {
27228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27229 }
27230 arg1 = reinterpret_cast< wxListItem * >(argp1);
27231 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27232 if (!SWIG_IsOK(ecode2)) {
27233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27234 }
27235 arg2 = static_cast< long >(val2);
27236 if (arg1) (arg1)->m_mask = arg2;
27237
27238 resultobj = SWIG_Py_Void();
27239 return resultobj;
27240 fail:
27241 return NULL;
27242 }
27243
27244
27245 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27246 PyObject *resultobj = 0;
27247 wxListItem *arg1 = (wxListItem *) 0 ;
27248 long result;
27249 void *argp1 = 0 ;
27250 int res1 = 0 ;
27251 PyObject *swig_obj[1] ;
27252
27253 if (!args) SWIG_fail;
27254 swig_obj[0] = args;
27255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27256 if (!SWIG_IsOK(res1)) {
27257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27258 }
27259 arg1 = reinterpret_cast< wxListItem * >(argp1);
27260 result = (long) ((arg1)->m_mask);
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_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27269 PyObject *resultobj = 0;
27270 wxListItem *arg1 = (wxListItem *) 0 ;
27271 long arg2 ;
27272 void *argp1 = 0 ;
27273 int res1 = 0 ;
27274 long val2 ;
27275 int ecode2 = 0 ;
27276 PyObject *swig_obj[2] ;
27277
27278 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27280 if (!SWIG_IsOK(res1)) {
27281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27282 }
27283 arg1 = reinterpret_cast< wxListItem * >(argp1);
27284 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27285 if (!SWIG_IsOK(ecode2)) {
27286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27287 }
27288 arg2 = static_cast< long >(val2);
27289 if (arg1) (arg1)->m_itemId = arg2;
27290
27291 resultobj = SWIG_Py_Void();
27292 return resultobj;
27293 fail:
27294 return NULL;
27295 }
27296
27297
27298 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27299 PyObject *resultobj = 0;
27300 wxListItem *arg1 = (wxListItem *) 0 ;
27301 long result;
27302 void *argp1 = 0 ;
27303 int res1 = 0 ;
27304 PyObject *swig_obj[1] ;
27305
27306 if (!args) SWIG_fail;
27307 swig_obj[0] = args;
27308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27309 if (!SWIG_IsOK(res1)) {
27310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27311 }
27312 arg1 = reinterpret_cast< wxListItem * >(argp1);
27313 result = (long) ((arg1)->m_itemId);
27314 resultobj = SWIG_From_long(static_cast< long >(result));
27315 return resultobj;
27316 fail:
27317 return NULL;
27318 }
27319
27320
27321 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27322 PyObject *resultobj = 0;
27323 wxListItem *arg1 = (wxListItem *) 0 ;
27324 int arg2 ;
27325 void *argp1 = 0 ;
27326 int res1 = 0 ;
27327 int val2 ;
27328 int ecode2 = 0 ;
27329 PyObject *swig_obj[2] ;
27330
27331 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27333 if (!SWIG_IsOK(res1)) {
27334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27335 }
27336 arg1 = reinterpret_cast< wxListItem * >(argp1);
27337 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27338 if (!SWIG_IsOK(ecode2)) {
27339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27340 }
27341 arg2 = static_cast< int >(val2);
27342 if (arg1) (arg1)->m_col = arg2;
27343
27344 resultobj = SWIG_Py_Void();
27345 return resultobj;
27346 fail:
27347 return NULL;
27348 }
27349
27350
27351 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27352 PyObject *resultobj = 0;
27353 wxListItem *arg1 = (wxListItem *) 0 ;
27354 int result;
27355 void *argp1 = 0 ;
27356 int res1 = 0 ;
27357 PyObject *swig_obj[1] ;
27358
27359 if (!args) SWIG_fail;
27360 swig_obj[0] = args;
27361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27362 if (!SWIG_IsOK(res1)) {
27363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27364 }
27365 arg1 = reinterpret_cast< wxListItem * >(argp1);
27366 result = (int) ((arg1)->m_col);
27367 resultobj = SWIG_From_int(static_cast< int >(result));
27368 return resultobj;
27369 fail:
27370 return NULL;
27371 }
27372
27373
27374 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27375 PyObject *resultobj = 0;
27376 wxListItem *arg1 = (wxListItem *) 0 ;
27377 long arg2 ;
27378 void *argp1 = 0 ;
27379 int res1 = 0 ;
27380 long val2 ;
27381 int ecode2 = 0 ;
27382 PyObject *swig_obj[2] ;
27383
27384 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27386 if (!SWIG_IsOK(res1)) {
27387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27388 }
27389 arg1 = reinterpret_cast< wxListItem * >(argp1);
27390 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27391 if (!SWIG_IsOK(ecode2)) {
27392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27393 }
27394 arg2 = static_cast< long >(val2);
27395 if (arg1) (arg1)->m_state = arg2;
27396
27397 resultobj = SWIG_Py_Void();
27398 return resultobj;
27399 fail:
27400 return NULL;
27401 }
27402
27403
27404 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27405 PyObject *resultobj = 0;
27406 wxListItem *arg1 = (wxListItem *) 0 ;
27407 long result;
27408 void *argp1 = 0 ;
27409 int res1 = 0 ;
27410 PyObject *swig_obj[1] ;
27411
27412 if (!args) SWIG_fail;
27413 swig_obj[0] = args;
27414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27415 if (!SWIG_IsOK(res1)) {
27416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27417 }
27418 arg1 = reinterpret_cast< wxListItem * >(argp1);
27419 result = (long) ((arg1)->m_state);
27420 resultobj = SWIG_From_long(static_cast< long >(result));
27421 return resultobj;
27422 fail:
27423 return NULL;
27424 }
27425
27426
27427 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27428 PyObject *resultobj = 0;
27429 wxListItem *arg1 = (wxListItem *) 0 ;
27430 long arg2 ;
27431 void *argp1 = 0 ;
27432 int res1 = 0 ;
27433 long val2 ;
27434 int ecode2 = 0 ;
27435 PyObject *swig_obj[2] ;
27436
27437 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27439 if (!SWIG_IsOK(res1)) {
27440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27441 }
27442 arg1 = reinterpret_cast< wxListItem * >(argp1);
27443 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27444 if (!SWIG_IsOK(ecode2)) {
27445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27446 }
27447 arg2 = static_cast< long >(val2);
27448 if (arg1) (arg1)->m_stateMask = arg2;
27449
27450 resultobj = SWIG_Py_Void();
27451 return resultobj;
27452 fail:
27453 return NULL;
27454 }
27455
27456
27457 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27458 PyObject *resultobj = 0;
27459 wxListItem *arg1 = (wxListItem *) 0 ;
27460 long result;
27461 void *argp1 = 0 ;
27462 int res1 = 0 ;
27463 PyObject *swig_obj[1] ;
27464
27465 if (!args) SWIG_fail;
27466 swig_obj[0] = args;
27467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27468 if (!SWIG_IsOK(res1)) {
27469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27470 }
27471 arg1 = reinterpret_cast< wxListItem * >(argp1);
27472 result = (long) ((arg1)->m_stateMask);
27473 resultobj = SWIG_From_long(static_cast< long >(result));
27474 return resultobj;
27475 fail:
27476 return NULL;
27477 }
27478
27479
27480 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27481 PyObject *resultobj = 0;
27482 wxListItem *arg1 = (wxListItem *) 0 ;
27483 wxString *arg2 = (wxString *) 0 ;
27484 void *argp1 = 0 ;
27485 int res1 = 0 ;
27486 bool temp2 = false ;
27487 PyObject *swig_obj[2] ;
27488
27489 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27491 if (!SWIG_IsOK(res1)) {
27492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27493 }
27494 arg1 = reinterpret_cast< wxListItem * >(argp1);
27495 {
27496 arg2 = wxString_in_helper(swig_obj[1]);
27497 if (arg2 == NULL) SWIG_fail;
27498 temp2 = true;
27499 }
27500 if (arg1) (arg1)->m_text = *arg2;
27501
27502 resultobj = SWIG_Py_Void();
27503 {
27504 if (temp2)
27505 delete arg2;
27506 }
27507 return resultobj;
27508 fail:
27509 {
27510 if (temp2)
27511 delete arg2;
27512 }
27513 return NULL;
27514 }
27515
27516
27517 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27518 PyObject *resultobj = 0;
27519 wxListItem *arg1 = (wxListItem *) 0 ;
27520 wxString *result = 0 ;
27521 void *argp1 = 0 ;
27522 int res1 = 0 ;
27523 PyObject *swig_obj[1] ;
27524
27525 if (!args) SWIG_fail;
27526 swig_obj[0] = args;
27527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27528 if (!SWIG_IsOK(res1)) {
27529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27530 }
27531 arg1 = reinterpret_cast< wxListItem * >(argp1);
27532 result = (wxString *)& ((arg1)->m_text);
27533 {
27534 #if wxUSE_UNICODE
27535 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27536 #else
27537 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27538 #endif
27539 }
27540 return resultobj;
27541 fail:
27542 return NULL;
27543 }
27544
27545
27546 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27547 PyObject *resultobj = 0;
27548 wxListItem *arg1 = (wxListItem *) 0 ;
27549 int arg2 ;
27550 void *argp1 = 0 ;
27551 int res1 = 0 ;
27552 int val2 ;
27553 int ecode2 = 0 ;
27554 PyObject *swig_obj[2] ;
27555
27556 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27558 if (!SWIG_IsOK(res1)) {
27559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27560 }
27561 arg1 = reinterpret_cast< wxListItem * >(argp1);
27562 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27563 if (!SWIG_IsOK(ecode2)) {
27564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27565 }
27566 arg2 = static_cast< int >(val2);
27567 if (arg1) (arg1)->m_image = arg2;
27568
27569 resultobj = SWIG_Py_Void();
27570 return resultobj;
27571 fail:
27572 return NULL;
27573 }
27574
27575
27576 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27577 PyObject *resultobj = 0;
27578 wxListItem *arg1 = (wxListItem *) 0 ;
27579 int result;
27580 void *argp1 = 0 ;
27581 int res1 = 0 ;
27582 PyObject *swig_obj[1] ;
27583
27584 if (!args) SWIG_fail;
27585 swig_obj[0] = args;
27586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27587 if (!SWIG_IsOK(res1)) {
27588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27589 }
27590 arg1 = reinterpret_cast< wxListItem * >(argp1);
27591 result = (int) ((arg1)->m_image);
27592 resultobj = SWIG_From_int(static_cast< int >(result));
27593 return resultobj;
27594 fail:
27595 return NULL;
27596 }
27597
27598
27599 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27600 PyObject *resultobj = 0;
27601 wxListItem *arg1 = (wxListItem *) 0 ;
27602 long arg2 ;
27603 void *argp1 = 0 ;
27604 int res1 = 0 ;
27605 long val2 ;
27606 int ecode2 = 0 ;
27607 PyObject *swig_obj[2] ;
27608
27609 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27611 if (!SWIG_IsOK(res1)) {
27612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27613 }
27614 arg1 = reinterpret_cast< wxListItem * >(argp1);
27615 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27616 if (!SWIG_IsOK(ecode2)) {
27617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27618 }
27619 arg2 = static_cast< long >(val2);
27620 if (arg1) (arg1)->m_data = arg2;
27621
27622 resultobj = SWIG_Py_Void();
27623 return resultobj;
27624 fail:
27625 return NULL;
27626 }
27627
27628
27629 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27630 PyObject *resultobj = 0;
27631 wxListItem *arg1 = (wxListItem *) 0 ;
27632 long result;
27633 void *argp1 = 0 ;
27634 int res1 = 0 ;
27635 PyObject *swig_obj[1] ;
27636
27637 if (!args) SWIG_fail;
27638 swig_obj[0] = args;
27639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27640 if (!SWIG_IsOK(res1)) {
27641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27642 }
27643 arg1 = reinterpret_cast< wxListItem * >(argp1);
27644 result = (long) ((arg1)->m_data);
27645 resultobj = SWIG_From_long(static_cast< long >(result));
27646 return resultobj;
27647 fail:
27648 return NULL;
27649 }
27650
27651
27652 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27653 PyObject *resultobj = 0;
27654 wxListItem *arg1 = (wxListItem *) 0 ;
27655 int arg2 ;
27656 void *argp1 = 0 ;
27657 int res1 = 0 ;
27658 int val2 ;
27659 int ecode2 = 0 ;
27660 PyObject *swig_obj[2] ;
27661
27662 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27664 if (!SWIG_IsOK(res1)) {
27665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27666 }
27667 arg1 = reinterpret_cast< wxListItem * >(argp1);
27668 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27669 if (!SWIG_IsOK(ecode2)) {
27670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27671 }
27672 arg2 = static_cast< int >(val2);
27673 if (arg1) (arg1)->m_format = arg2;
27674
27675 resultobj = SWIG_Py_Void();
27676 return resultobj;
27677 fail:
27678 return NULL;
27679 }
27680
27681
27682 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27683 PyObject *resultobj = 0;
27684 wxListItem *arg1 = (wxListItem *) 0 ;
27685 int result;
27686 void *argp1 = 0 ;
27687 int res1 = 0 ;
27688 PyObject *swig_obj[1] ;
27689
27690 if (!args) SWIG_fail;
27691 swig_obj[0] = args;
27692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27693 if (!SWIG_IsOK(res1)) {
27694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27695 }
27696 arg1 = reinterpret_cast< wxListItem * >(argp1);
27697 result = (int) ((arg1)->m_format);
27698 resultobj = SWIG_From_int(static_cast< int >(result));
27699 return resultobj;
27700 fail:
27701 return NULL;
27702 }
27703
27704
27705 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27706 PyObject *resultobj = 0;
27707 wxListItem *arg1 = (wxListItem *) 0 ;
27708 int arg2 ;
27709 void *argp1 = 0 ;
27710 int res1 = 0 ;
27711 int val2 ;
27712 int ecode2 = 0 ;
27713 PyObject *swig_obj[2] ;
27714
27715 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27717 if (!SWIG_IsOK(res1)) {
27718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27719 }
27720 arg1 = reinterpret_cast< wxListItem * >(argp1);
27721 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27722 if (!SWIG_IsOK(ecode2)) {
27723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27724 }
27725 arg2 = static_cast< int >(val2);
27726 if (arg1) (arg1)->m_width = arg2;
27727
27728 resultobj = SWIG_Py_Void();
27729 return resultobj;
27730 fail:
27731 return NULL;
27732 }
27733
27734
27735 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27736 PyObject *resultobj = 0;
27737 wxListItem *arg1 = (wxListItem *) 0 ;
27738 int result;
27739 void *argp1 = 0 ;
27740 int res1 = 0 ;
27741 PyObject *swig_obj[1] ;
27742
27743 if (!args) SWIG_fail;
27744 swig_obj[0] = args;
27745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27746 if (!SWIG_IsOK(res1)) {
27747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27748 }
27749 arg1 = reinterpret_cast< wxListItem * >(argp1);
27750 result = (int) ((arg1)->m_width);
27751 resultobj = SWIG_From_int(static_cast< int >(result));
27752 return resultobj;
27753 fail:
27754 return NULL;
27755 }
27756
27757
27758 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27759 PyObject *obj;
27760 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27761 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27762 return SWIG_Py_Void();
27763 }
27764
27765 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27766 return SWIG_Python_InitShadowInstance(args);
27767 }
27768
27769 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27770 PyObject *resultobj = 0;
27771 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27772 int arg2 = (int) 0 ;
27773 wxListEvent *result = 0 ;
27774 int val1 ;
27775 int ecode1 = 0 ;
27776 int val2 ;
27777 int ecode2 = 0 ;
27778 PyObject * obj0 = 0 ;
27779 PyObject * obj1 = 0 ;
27780 char * kwnames[] = {
27781 (char *) "commandType",(char *) "id", NULL
27782 };
27783
27784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27785 if (obj0) {
27786 ecode1 = SWIG_AsVal_int(obj0, &val1);
27787 if (!SWIG_IsOK(ecode1)) {
27788 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27789 }
27790 arg1 = static_cast< wxEventType >(val1);
27791 }
27792 if (obj1) {
27793 ecode2 = SWIG_AsVal_int(obj1, &val2);
27794 if (!SWIG_IsOK(ecode2)) {
27795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27796 }
27797 arg2 = static_cast< int >(val2);
27798 }
27799 {
27800 PyThreadState* __tstate = wxPyBeginAllowThreads();
27801 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27802 wxPyEndAllowThreads(__tstate);
27803 if (PyErr_Occurred()) SWIG_fail;
27804 }
27805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27806 return resultobj;
27807 fail:
27808 return NULL;
27809 }
27810
27811
27812 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27813 PyObject *resultobj = 0;
27814 wxListEvent *arg1 = (wxListEvent *) 0 ;
27815 int arg2 ;
27816 void *argp1 = 0 ;
27817 int res1 = 0 ;
27818 int val2 ;
27819 int ecode2 = 0 ;
27820 PyObject *swig_obj[2] ;
27821
27822 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27824 if (!SWIG_IsOK(res1)) {
27825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27826 }
27827 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27828 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27829 if (!SWIG_IsOK(ecode2)) {
27830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27831 }
27832 arg2 = static_cast< int >(val2);
27833 if (arg1) (arg1)->m_code = arg2;
27834
27835 resultobj = SWIG_Py_Void();
27836 return resultobj;
27837 fail:
27838 return NULL;
27839 }
27840
27841
27842 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27843 PyObject *resultobj = 0;
27844 wxListEvent *arg1 = (wxListEvent *) 0 ;
27845 int result;
27846 void *argp1 = 0 ;
27847 int res1 = 0 ;
27848 PyObject *swig_obj[1] ;
27849
27850 if (!args) SWIG_fail;
27851 swig_obj[0] = args;
27852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27853 if (!SWIG_IsOK(res1)) {
27854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27855 }
27856 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27857 result = (int) ((arg1)->m_code);
27858 resultobj = SWIG_From_int(static_cast< int >(result));
27859 return resultobj;
27860 fail:
27861 return NULL;
27862 }
27863
27864
27865 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27866 PyObject *resultobj = 0;
27867 wxListEvent *arg1 = (wxListEvent *) 0 ;
27868 long arg2 ;
27869 void *argp1 = 0 ;
27870 int res1 = 0 ;
27871 long val2 ;
27872 int ecode2 = 0 ;
27873 PyObject *swig_obj[2] ;
27874
27875 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27877 if (!SWIG_IsOK(res1)) {
27878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27879 }
27880 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27881 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27882 if (!SWIG_IsOK(ecode2)) {
27883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27884 }
27885 arg2 = static_cast< long >(val2);
27886 if (arg1) (arg1)->m_oldItemIndex = arg2;
27887
27888 resultobj = SWIG_Py_Void();
27889 return resultobj;
27890 fail:
27891 return NULL;
27892 }
27893
27894
27895 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27896 PyObject *resultobj = 0;
27897 wxListEvent *arg1 = (wxListEvent *) 0 ;
27898 long result;
27899 void *argp1 = 0 ;
27900 int res1 = 0 ;
27901 PyObject *swig_obj[1] ;
27902
27903 if (!args) SWIG_fail;
27904 swig_obj[0] = args;
27905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27906 if (!SWIG_IsOK(res1)) {
27907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27908 }
27909 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27910 result = (long) ((arg1)->m_oldItemIndex);
27911 resultobj = SWIG_From_long(static_cast< long >(result));
27912 return resultobj;
27913 fail:
27914 return NULL;
27915 }
27916
27917
27918 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27919 PyObject *resultobj = 0;
27920 wxListEvent *arg1 = (wxListEvent *) 0 ;
27921 long arg2 ;
27922 void *argp1 = 0 ;
27923 int res1 = 0 ;
27924 long val2 ;
27925 int ecode2 = 0 ;
27926 PyObject *swig_obj[2] ;
27927
27928 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27930 if (!SWIG_IsOK(res1)) {
27931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27932 }
27933 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27934 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27935 if (!SWIG_IsOK(ecode2)) {
27936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27937 }
27938 arg2 = static_cast< long >(val2);
27939 if (arg1) (arg1)->m_itemIndex = arg2;
27940
27941 resultobj = SWIG_Py_Void();
27942 return resultobj;
27943 fail:
27944 return NULL;
27945 }
27946
27947
27948 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27949 PyObject *resultobj = 0;
27950 wxListEvent *arg1 = (wxListEvent *) 0 ;
27951 long result;
27952 void *argp1 = 0 ;
27953 int res1 = 0 ;
27954 PyObject *swig_obj[1] ;
27955
27956 if (!args) SWIG_fail;
27957 swig_obj[0] = args;
27958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27959 if (!SWIG_IsOK(res1)) {
27960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27961 }
27962 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27963 result = (long) ((arg1)->m_itemIndex);
27964 resultobj = SWIG_From_long(static_cast< long >(result));
27965 return resultobj;
27966 fail:
27967 return NULL;
27968 }
27969
27970
27971 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27972 PyObject *resultobj = 0;
27973 wxListEvent *arg1 = (wxListEvent *) 0 ;
27974 int arg2 ;
27975 void *argp1 = 0 ;
27976 int res1 = 0 ;
27977 int val2 ;
27978 int ecode2 = 0 ;
27979 PyObject *swig_obj[2] ;
27980
27981 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27983 if (!SWIG_IsOK(res1)) {
27984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27985 }
27986 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27987 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27988 if (!SWIG_IsOK(ecode2)) {
27989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27990 }
27991 arg2 = static_cast< int >(val2);
27992 if (arg1) (arg1)->m_col = arg2;
27993
27994 resultobj = SWIG_Py_Void();
27995 return resultobj;
27996 fail:
27997 return NULL;
27998 }
27999
28000
28001 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28002 PyObject *resultobj = 0;
28003 wxListEvent *arg1 = (wxListEvent *) 0 ;
28004 int result;
28005 void *argp1 = 0 ;
28006 int res1 = 0 ;
28007 PyObject *swig_obj[1] ;
28008
28009 if (!args) SWIG_fail;
28010 swig_obj[0] = args;
28011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28012 if (!SWIG_IsOK(res1)) {
28013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28014 }
28015 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28016 result = (int) ((arg1)->m_col);
28017 resultobj = SWIG_From_int(static_cast< int >(result));
28018 return resultobj;
28019 fail:
28020 return NULL;
28021 }
28022
28023
28024 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28025 PyObject *resultobj = 0;
28026 wxListEvent *arg1 = (wxListEvent *) 0 ;
28027 wxPoint *arg2 = (wxPoint *) 0 ;
28028 void *argp1 = 0 ;
28029 int res1 = 0 ;
28030 void *argp2 = 0 ;
28031 int res2 = 0 ;
28032 PyObject *swig_obj[2] ;
28033
28034 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28036 if (!SWIG_IsOK(res1)) {
28037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28038 }
28039 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28040 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28041 if (!SWIG_IsOK(res2)) {
28042 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28043 }
28044 arg2 = reinterpret_cast< wxPoint * >(argp2);
28045 if (arg1) (arg1)->m_pointDrag = *arg2;
28046
28047 resultobj = SWIG_Py_Void();
28048 return resultobj;
28049 fail:
28050 return NULL;
28051 }
28052
28053
28054 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28055 PyObject *resultobj = 0;
28056 wxListEvent *arg1 = (wxListEvent *) 0 ;
28057 wxPoint *result = 0 ;
28058 void *argp1 = 0 ;
28059 int res1 = 0 ;
28060 PyObject *swig_obj[1] ;
28061
28062 if (!args) SWIG_fail;
28063 swig_obj[0] = args;
28064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28065 if (!SWIG_IsOK(res1)) {
28066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28067 }
28068 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28069 result = (wxPoint *)& ((arg1)->m_pointDrag);
28070 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28071 return resultobj;
28072 fail:
28073 return NULL;
28074 }
28075
28076
28077 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28078 PyObject *resultobj = 0;
28079 wxListEvent *arg1 = (wxListEvent *) 0 ;
28080 wxListItem *result = 0 ;
28081 void *argp1 = 0 ;
28082 int res1 = 0 ;
28083 PyObject *swig_obj[1] ;
28084
28085 if (!args) SWIG_fail;
28086 swig_obj[0] = args;
28087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28088 if (!SWIG_IsOK(res1)) {
28089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28090 }
28091 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28092 result = (wxListItem *)& ((arg1)->m_item);
28093 {
28094 resultobj = wxPyMake_wxObject(result, (bool)0);
28095 }
28096 return resultobj;
28097 fail:
28098 return NULL;
28099 }
28100
28101
28102 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28103 PyObject *resultobj = 0;
28104 wxListEvent *arg1 = (wxListEvent *) 0 ;
28105 int result;
28106 void *argp1 = 0 ;
28107 int res1 = 0 ;
28108 PyObject *swig_obj[1] ;
28109
28110 if (!args) SWIG_fail;
28111 swig_obj[0] = args;
28112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28113 if (!SWIG_IsOK(res1)) {
28114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28115 }
28116 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28117 {
28118 PyThreadState* __tstate = wxPyBeginAllowThreads();
28119 result = (int)(arg1)->GetKeyCode();
28120 wxPyEndAllowThreads(__tstate);
28121 if (PyErr_Occurred()) SWIG_fail;
28122 }
28123 resultobj = SWIG_From_int(static_cast< int >(result));
28124 return resultobj;
28125 fail:
28126 return NULL;
28127 }
28128
28129
28130 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28131 PyObject *resultobj = 0;
28132 wxListEvent *arg1 = (wxListEvent *) 0 ;
28133 long result;
28134 void *argp1 = 0 ;
28135 int res1 = 0 ;
28136 PyObject *swig_obj[1] ;
28137
28138 if (!args) SWIG_fail;
28139 swig_obj[0] = args;
28140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28141 if (!SWIG_IsOK(res1)) {
28142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28143 }
28144 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28145 {
28146 PyThreadState* __tstate = wxPyBeginAllowThreads();
28147 result = (long)(arg1)->GetIndex();
28148 wxPyEndAllowThreads(__tstate);
28149 if (PyErr_Occurred()) SWIG_fail;
28150 }
28151 resultobj = SWIG_From_long(static_cast< long >(result));
28152 return resultobj;
28153 fail:
28154 return NULL;
28155 }
28156
28157
28158 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28159 PyObject *resultobj = 0;
28160 wxListEvent *arg1 = (wxListEvent *) 0 ;
28161 int result;
28162 void *argp1 = 0 ;
28163 int res1 = 0 ;
28164 PyObject *swig_obj[1] ;
28165
28166 if (!args) SWIG_fail;
28167 swig_obj[0] = args;
28168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28169 if (!SWIG_IsOK(res1)) {
28170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28171 }
28172 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28173 {
28174 PyThreadState* __tstate = wxPyBeginAllowThreads();
28175 result = (int)(arg1)->GetColumn();
28176 wxPyEndAllowThreads(__tstate);
28177 if (PyErr_Occurred()) SWIG_fail;
28178 }
28179 resultobj = SWIG_From_int(static_cast< int >(result));
28180 return resultobj;
28181 fail:
28182 return NULL;
28183 }
28184
28185
28186 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28187 PyObject *resultobj = 0;
28188 wxListEvent *arg1 = (wxListEvent *) 0 ;
28189 wxPoint result;
28190 void *argp1 = 0 ;
28191 int res1 = 0 ;
28192 PyObject *swig_obj[1] ;
28193
28194 if (!args) SWIG_fail;
28195 swig_obj[0] = args;
28196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28197 if (!SWIG_IsOK(res1)) {
28198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28199 }
28200 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28201 {
28202 PyThreadState* __tstate = wxPyBeginAllowThreads();
28203 result = (arg1)->GetPoint();
28204 wxPyEndAllowThreads(__tstate);
28205 if (PyErr_Occurred()) SWIG_fail;
28206 }
28207 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28208 return resultobj;
28209 fail:
28210 return NULL;
28211 }
28212
28213
28214 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28215 PyObject *resultobj = 0;
28216 wxListEvent *arg1 = (wxListEvent *) 0 ;
28217 wxString *result = 0 ;
28218 void *argp1 = 0 ;
28219 int res1 = 0 ;
28220 PyObject *swig_obj[1] ;
28221
28222 if (!args) SWIG_fail;
28223 swig_obj[0] = args;
28224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28225 if (!SWIG_IsOK(res1)) {
28226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28227 }
28228 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28229 {
28230 PyThreadState* __tstate = wxPyBeginAllowThreads();
28231 {
28232 wxString const &_result_ref = (arg1)->GetLabel();
28233 result = (wxString *) &_result_ref;
28234 }
28235 wxPyEndAllowThreads(__tstate);
28236 if (PyErr_Occurred()) SWIG_fail;
28237 }
28238 {
28239 #if wxUSE_UNICODE
28240 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28241 #else
28242 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28243 #endif
28244 }
28245 return resultobj;
28246 fail:
28247 return NULL;
28248 }
28249
28250
28251 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28252 PyObject *resultobj = 0;
28253 wxListEvent *arg1 = (wxListEvent *) 0 ;
28254 wxString *result = 0 ;
28255 void *argp1 = 0 ;
28256 int res1 = 0 ;
28257 PyObject *swig_obj[1] ;
28258
28259 if (!args) SWIG_fail;
28260 swig_obj[0] = args;
28261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28262 if (!SWIG_IsOK(res1)) {
28263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28264 }
28265 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28266 {
28267 PyThreadState* __tstate = wxPyBeginAllowThreads();
28268 {
28269 wxString const &_result_ref = (arg1)->GetText();
28270 result = (wxString *) &_result_ref;
28271 }
28272 wxPyEndAllowThreads(__tstate);
28273 if (PyErr_Occurred()) SWIG_fail;
28274 }
28275 {
28276 #if wxUSE_UNICODE
28277 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28278 #else
28279 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28280 #endif
28281 }
28282 return resultobj;
28283 fail:
28284 return NULL;
28285 }
28286
28287
28288 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28289 PyObject *resultobj = 0;
28290 wxListEvent *arg1 = (wxListEvent *) 0 ;
28291 int result;
28292 void *argp1 = 0 ;
28293 int res1 = 0 ;
28294 PyObject *swig_obj[1] ;
28295
28296 if (!args) SWIG_fail;
28297 swig_obj[0] = args;
28298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28299 if (!SWIG_IsOK(res1)) {
28300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28301 }
28302 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28303 {
28304 PyThreadState* __tstate = wxPyBeginAllowThreads();
28305 result = (int)(arg1)->GetImage();
28306 wxPyEndAllowThreads(__tstate);
28307 if (PyErr_Occurred()) SWIG_fail;
28308 }
28309 resultobj = SWIG_From_int(static_cast< int >(result));
28310 return resultobj;
28311 fail:
28312 return NULL;
28313 }
28314
28315
28316 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28317 PyObject *resultobj = 0;
28318 wxListEvent *arg1 = (wxListEvent *) 0 ;
28319 long result;
28320 void *argp1 = 0 ;
28321 int res1 = 0 ;
28322 PyObject *swig_obj[1] ;
28323
28324 if (!args) SWIG_fail;
28325 swig_obj[0] = args;
28326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28327 if (!SWIG_IsOK(res1)) {
28328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28329 }
28330 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28331 {
28332 PyThreadState* __tstate = wxPyBeginAllowThreads();
28333 result = (long)(arg1)->GetData();
28334 wxPyEndAllowThreads(__tstate);
28335 if (PyErr_Occurred()) SWIG_fail;
28336 }
28337 resultobj = SWIG_From_long(static_cast< long >(result));
28338 return resultobj;
28339 fail:
28340 return NULL;
28341 }
28342
28343
28344 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28345 PyObject *resultobj = 0;
28346 wxListEvent *arg1 = (wxListEvent *) 0 ;
28347 long result;
28348 void *argp1 = 0 ;
28349 int res1 = 0 ;
28350 PyObject *swig_obj[1] ;
28351
28352 if (!args) SWIG_fail;
28353 swig_obj[0] = args;
28354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28355 if (!SWIG_IsOK(res1)) {
28356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28357 }
28358 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28359 {
28360 PyThreadState* __tstate = wxPyBeginAllowThreads();
28361 result = (long)(arg1)->GetMask();
28362 wxPyEndAllowThreads(__tstate);
28363 if (PyErr_Occurred()) SWIG_fail;
28364 }
28365 resultobj = SWIG_From_long(static_cast< long >(result));
28366 return resultobj;
28367 fail:
28368 return NULL;
28369 }
28370
28371
28372 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28373 PyObject *resultobj = 0;
28374 wxListEvent *arg1 = (wxListEvent *) 0 ;
28375 wxListItem *result = 0 ;
28376 void *argp1 = 0 ;
28377 int res1 = 0 ;
28378 PyObject *swig_obj[1] ;
28379
28380 if (!args) SWIG_fail;
28381 swig_obj[0] = args;
28382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28383 if (!SWIG_IsOK(res1)) {
28384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28385 }
28386 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28387 {
28388 PyThreadState* __tstate = wxPyBeginAllowThreads();
28389 {
28390 wxListItem const &_result_ref = (arg1)->GetItem();
28391 result = (wxListItem *) &_result_ref;
28392 }
28393 wxPyEndAllowThreads(__tstate);
28394 if (PyErr_Occurred()) SWIG_fail;
28395 }
28396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28397 return resultobj;
28398 fail:
28399 return NULL;
28400 }
28401
28402
28403 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28404 PyObject *resultobj = 0;
28405 wxListEvent *arg1 = (wxListEvent *) 0 ;
28406 long result;
28407 void *argp1 = 0 ;
28408 int res1 = 0 ;
28409 PyObject *swig_obj[1] ;
28410
28411 if (!args) SWIG_fail;
28412 swig_obj[0] = args;
28413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28414 if (!SWIG_IsOK(res1)) {
28415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28416 }
28417 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28418 {
28419 PyThreadState* __tstate = wxPyBeginAllowThreads();
28420 result = (long)(arg1)->GetCacheFrom();
28421 wxPyEndAllowThreads(__tstate);
28422 if (PyErr_Occurred()) SWIG_fail;
28423 }
28424 resultobj = SWIG_From_long(static_cast< long >(result));
28425 return resultobj;
28426 fail:
28427 return NULL;
28428 }
28429
28430
28431 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28432 PyObject *resultobj = 0;
28433 wxListEvent *arg1 = (wxListEvent *) 0 ;
28434 long result;
28435 void *argp1 = 0 ;
28436 int res1 = 0 ;
28437 PyObject *swig_obj[1] ;
28438
28439 if (!args) SWIG_fail;
28440 swig_obj[0] = args;
28441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28442 if (!SWIG_IsOK(res1)) {
28443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28444 }
28445 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28446 {
28447 PyThreadState* __tstate = wxPyBeginAllowThreads();
28448 result = (long)(arg1)->GetCacheTo();
28449 wxPyEndAllowThreads(__tstate);
28450 if (PyErr_Occurred()) SWIG_fail;
28451 }
28452 resultobj = SWIG_From_long(static_cast< long >(result));
28453 return resultobj;
28454 fail:
28455 return NULL;
28456 }
28457
28458
28459 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28460 PyObject *resultobj = 0;
28461 wxListEvent *arg1 = (wxListEvent *) 0 ;
28462 bool result;
28463 void *argp1 = 0 ;
28464 int res1 = 0 ;
28465 PyObject *swig_obj[1] ;
28466
28467 if (!args) SWIG_fail;
28468 swig_obj[0] = args;
28469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28470 if (!SWIG_IsOK(res1)) {
28471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28472 }
28473 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28474 {
28475 PyThreadState* __tstate = wxPyBeginAllowThreads();
28476 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28477 wxPyEndAllowThreads(__tstate);
28478 if (PyErr_Occurred()) SWIG_fail;
28479 }
28480 {
28481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28482 }
28483 return resultobj;
28484 fail:
28485 return NULL;
28486 }
28487
28488
28489 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28490 PyObject *resultobj = 0;
28491 wxListEvent *arg1 = (wxListEvent *) 0 ;
28492 bool arg2 ;
28493 void *argp1 = 0 ;
28494 int res1 = 0 ;
28495 bool val2 ;
28496 int ecode2 = 0 ;
28497 PyObject * obj0 = 0 ;
28498 PyObject * obj1 = 0 ;
28499 char * kwnames[] = {
28500 (char *) "self",(char *) "editCancelled", NULL
28501 };
28502
28503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28505 if (!SWIG_IsOK(res1)) {
28506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28507 }
28508 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28509 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28510 if (!SWIG_IsOK(ecode2)) {
28511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28512 }
28513 arg2 = static_cast< bool >(val2);
28514 {
28515 PyThreadState* __tstate = wxPyBeginAllowThreads();
28516 (arg1)->SetEditCanceled(arg2);
28517 wxPyEndAllowThreads(__tstate);
28518 if (PyErr_Occurred()) SWIG_fail;
28519 }
28520 resultobj = SWIG_Py_Void();
28521 return resultobj;
28522 fail:
28523 return NULL;
28524 }
28525
28526
28527 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28528 PyObject *obj;
28529 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28530 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28531 return SWIG_Py_Void();
28532 }
28533
28534 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28535 return SWIG_Python_InitShadowInstance(args);
28536 }
28537
28538 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28539 PyObject *resultobj = 0;
28540 wxWindow *arg1 = (wxWindow *) 0 ;
28541 int arg2 = (int) -1 ;
28542 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28543 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28544 wxSize const &arg4_defvalue = wxDefaultSize ;
28545 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28546 long arg5 = (long) wxLC_ICON ;
28547 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28548 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28549 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28550 wxString *arg7 = (wxString *) &arg7_defvalue ;
28551 wxPyListCtrl *result = 0 ;
28552 void *argp1 = 0 ;
28553 int res1 = 0 ;
28554 int val2 ;
28555 int ecode2 = 0 ;
28556 wxPoint temp3 ;
28557 wxSize temp4 ;
28558 long val5 ;
28559 int ecode5 = 0 ;
28560 void *argp6 = 0 ;
28561 int res6 = 0 ;
28562 bool temp7 = false ;
28563 PyObject * obj0 = 0 ;
28564 PyObject * obj1 = 0 ;
28565 PyObject * obj2 = 0 ;
28566 PyObject * obj3 = 0 ;
28567 PyObject * obj4 = 0 ;
28568 PyObject * obj5 = 0 ;
28569 PyObject * obj6 = 0 ;
28570 char * kwnames[] = {
28571 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28572 };
28573
28574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28576 if (!SWIG_IsOK(res1)) {
28577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28578 }
28579 arg1 = reinterpret_cast< wxWindow * >(argp1);
28580 if (obj1) {
28581 ecode2 = SWIG_AsVal_int(obj1, &val2);
28582 if (!SWIG_IsOK(ecode2)) {
28583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28584 }
28585 arg2 = static_cast< int >(val2);
28586 }
28587 if (obj2) {
28588 {
28589 arg3 = &temp3;
28590 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28591 }
28592 }
28593 if (obj3) {
28594 {
28595 arg4 = &temp4;
28596 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28597 }
28598 }
28599 if (obj4) {
28600 ecode5 = SWIG_AsVal_long(obj4, &val5);
28601 if (!SWIG_IsOK(ecode5)) {
28602 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28603 }
28604 arg5 = static_cast< long >(val5);
28605 }
28606 if (obj5) {
28607 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28608 if (!SWIG_IsOK(res6)) {
28609 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28610 }
28611 if (!argp6) {
28612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28613 }
28614 arg6 = reinterpret_cast< wxValidator * >(argp6);
28615 }
28616 if (obj6) {
28617 {
28618 arg7 = wxString_in_helper(obj6);
28619 if (arg7 == NULL) SWIG_fail;
28620 temp7 = true;
28621 }
28622 }
28623 {
28624 if (!wxPyCheckForApp()) SWIG_fail;
28625 PyThreadState* __tstate = wxPyBeginAllowThreads();
28626 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28627 wxPyEndAllowThreads(__tstate);
28628 if (PyErr_Occurred()) SWIG_fail;
28629 }
28630 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28631 {
28632 if (temp7)
28633 delete arg7;
28634 }
28635 return resultobj;
28636 fail:
28637 {
28638 if (temp7)
28639 delete arg7;
28640 }
28641 return NULL;
28642 }
28643
28644
28645 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28646 PyObject *resultobj = 0;
28647 wxPyListCtrl *result = 0 ;
28648
28649 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28650 {
28651 if (!wxPyCheckForApp()) SWIG_fail;
28652 PyThreadState* __tstate = wxPyBeginAllowThreads();
28653 result = (wxPyListCtrl *)new wxPyListCtrl();
28654 wxPyEndAllowThreads(__tstate);
28655 if (PyErr_Occurred()) SWIG_fail;
28656 }
28657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28658 return resultobj;
28659 fail:
28660 return NULL;
28661 }
28662
28663
28664 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28665 PyObject *resultobj = 0;
28666 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28667 wxWindow *arg2 = (wxWindow *) 0 ;
28668 int arg3 = (int) -1 ;
28669 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28670 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28671 wxSize const &arg5_defvalue = wxDefaultSize ;
28672 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28673 long arg6 = (long) wxLC_ICON ;
28674 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28675 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28676 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28677 wxString *arg8 = (wxString *) &arg8_defvalue ;
28678 bool result;
28679 void *argp1 = 0 ;
28680 int res1 = 0 ;
28681 void *argp2 = 0 ;
28682 int res2 = 0 ;
28683 int val3 ;
28684 int ecode3 = 0 ;
28685 wxPoint temp4 ;
28686 wxSize temp5 ;
28687 long val6 ;
28688 int ecode6 = 0 ;
28689 void *argp7 = 0 ;
28690 int res7 = 0 ;
28691 bool temp8 = false ;
28692 PyObject * obj0 = 0 ;
28693 PyObject * obj1 = 0 ;
28694 PyObject * obj2 = 0 ;
28695 PyObject * obj3 = 0 ;
28696 PyObject * obj4 = 0 ;
28697 PyObject * obj5 = 0 ;
28698 PyObject * obj6 = 0 ;
28699 PyObject * obj7 = 0 ;
28700 char * kwnames[] = {
28701 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28702 };
28703
28704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28706 if (!SWIG_IsOK(res1)) {
28707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28708 }
28709 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28710 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28711 if (!SWIG_IsOK(res2)) {
28712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28713 }
28714 arg2 = reinterpret_cast< wxWindow * >(argp2);
28715 if (obj2) {
28716 ecode3 = SWIG_AsVal_int(obj2, &val3);
28717 if (!SWIG_IsOK(ecode3)) {
28718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28719 }
28720 arg3 = static_cast< int >(val3);
28721 }
28722 if (obj3) {
28723 {
28724 arg4 = &temp4;
28725 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28726 }
28727 }
28728 if (obj4) {
28729 {
28730 arg5 = &temp5;
28731 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28732 }
28733 }
28734 if (obj5) {
28735 ecode6 = SWIG_AsVal_long(obj5, &val6);
28736 if (!SWIG_IsOK(ecode6)) {
28737 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28738 }
28739 arg6 = static_cast< long >(val6);
28740 }
28741 if (obj6) {
28742 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28743 if (!SWIG_IsOK(res7)) {
28744 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28745 }
28746 if (!argp7) {
28747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28748 }
28749 arg7 = reinterpret_cast< wxValidator * >(argp7);
28750 }
28751 if (obj7) {
28752 {
28753 arg8 = wxString_in_helper(obj7);
28754 if (arg8 == NULL) SWIG_fail;
28755 temp8 = true;
28756 }
28757 }
28758 {
28759 PyThreadState* __tstate = wxPyBeginAllowThreads();
28760 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28761 wxPyEndAllowThreads(__tstate);
28762 if (PyErr_Occurred()) SWIG_fail;
28763 }
28764 {
28765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28766 }
28767 {
28768 if (temp8)
28769 delete arg8;
28770 }
28771 return resultobj;
28772 fail:
28773 {
28774 if (temp8)
28775 delete arg8;
28776 }
28777 return NULL;
28778 }
28779
28780
28781 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28782 PyObject *resultobj = 0;
28783 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28784 PyObject *arg2 = (PyObject *) 0 ;
28785 PyObject *arg3 = (PyObject *) 0 ;
28786 void *argp1 = 0 ;
28787 int res1 = 0 ;
28788 PyObject * obj0 = 0 ;
28789 PyObject * obj1 = 0 ;
28790 PyObject * obj2 = 0 ;
28791 char * kwnames[] = {
28792 (char *) "self",(char *) "self",(char *) "_class", NULL
28793 };
28794
28795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28797 if (!SWIG_IsOK(res1)) {
28798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28799 }
28800 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28801 arg2 = obj1;
28802 arg3 = obj2;
28803 {
28804 PyThreadState* __tstate = wxPyBeginAllowThreads();
28805 (arg1)->_setCallbackInfo(arg2,arg3);
28806 wxPyEndAllowThreads(__tstate);
28807 if (PyErr_Occurred()) SWIG_fail;
28808 }
28809 resultobj = SWIG_Py_Void();
28810 return resultobj;
28811 fail:
28812 return NULL;
28813 }
28814
28815
28816 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28817 PyObject *resultobj = 0;
28818 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28819 int arg2 ;
28820 wxListItem *result = 0 ;
28821 void *argp1 = 0 ;
28822 int res1 = 0 ;
28823 int val2 ;
28824 int ecode2 = 0 ;
28825 PyObject * obj0 = 0 ;
28826 PyObject * obj1 = 0 ;
28827 char * kwnames[] = {
28828 (char *) "self",(char *) "col", NULL
28829 };
28830
28831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28833 if (!SWIG_IsOK(res1)) {
28834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28835 }
28836 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28837 ecode2 = SWIG_AsVal_int(obj1, &val2);
28838 if (!SWIG_IsOK(ecode2)) {
28839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28840 }
28841 arg2 = static_cast< int >(val2);
28842 {
28843 PyThreadState* __tstate = wxPyBeginAllowThreads();
28844 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28845 wxPyEndAllowThreads(__tstate);
28846 if (PyErr_Occurred()) SWIG_fail;
28847 }
28848 {
28849 resultobj = wxPyMake_wxObject(result, (bool)0);
28850 }
28851 return resultobj;
28852 fail:
28853 return NULL;
28854 }
28855
28856
28857 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28858 PyObject *resultobj = 0;
28859 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28860 int arg2 ;
28861 wxListItem *arg3 = 0 ;
28862 bool result;
28863 void *argp1 = 0 ;
28864 int res1 = 0 ;
28865 int val2 ;
28866 int ecode2 = 0 ;
28867 void *argp3 = 0 ;
28868 int res3 = 0 ;
28869 PyObject * obj0 = 0 ;
28870 PyObject * obj1 = 0 ;
28871 PyObject * obj2 = 0 ;
28872 char * kwnames[] = {
28873 (char *) "self",(char *) "col",(char *) "item", NULL
28874 };
28875
28876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28878 if (!SWIG_IsOK(res1)) {
28879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28880 }
28881 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28882 ecode2 = SWIG_AsVal_int(obj1, &val2);
28883 if (!SWIG_IsOK(ecode2)) {
28884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28885 }
28886 arg2 = static_cast< int >(val2);
28887 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28888 if (!SWIG_IsOK(res3)) {
28889 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28890 }
28891 if (!argp3) {
28892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28893 }
28894 arg3 = reinterpret_cast< wxListItem * >(argp3);
28895 {
28896 PyThreadState* __tstate = wxPyBeginAllowThreads();
28897 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28898 wxPyEndAllowThreads(__tstate);
28899 if (PyErr_Occurred()) SWIG_fail;
28900 }
28901 {
28902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28903 }
28904 return resultobj;
28905 fail:
28906 return NULL;
28907 }
28908
28909
28910 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28911 PyObject *resultobj = 0;
28912 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28913 int arg2 ;
28914 int result;
28915 void *argp1 = 0 ;
28916 int res1 = 0 ;
28917 int val2 ;
28918 int ecode2 = 0 ;
28919 PyObject * obj0 = 0 ;
28920 PyObject * obj1 = 0 ;
28921 char * kwnames[] = {
28922 (char *) "self",(char *) "col", NULL
28923 };
28924
28925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28927 if (!SWIG_IsOK(res1)) {
28928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28929 }
28930 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28931 ecode2 = SWIG_AsVal_int(obj1, &val2);
28932 if (!SWIG_IsOK(ecode2)) {
28933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28934 }
28935 arg2 = static_cast< int >(val2);
28936 {
28937 PyThreadState* __tstate = wxPyBeginAllowThreads();
28938 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28939 wxPyEndAllowThreads(__tstate);
28940 if (PyErr_Occurred()) SWIG_fail;
28941 }
28942 resultobj = SWIG_From_int(static_cast< int >(result));
28943 return resultobj;
28944 fail:
28945 return NULL;
28946 }
28947
28948
28949 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28950 PyObject *resultobj = 0;
28951 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28952 int arg2 ;
28953 int arg3 ;
28954 bool result;
28955 void *argp1 = 0 ;
28956 int res1 = 0 ;
28957 int val2 ;
28958 int ecode2 = 0 ;
28959 int val3 ;
28960 int ecode3 = 0 ;
28961 PyObject * obj0 = 0 ;
28962 PyObject * obj1 = 0 ;
28963 PyObject * obj2 = 0 ;
28964 char * kwnames[] = {
28965 (char *) "self",(char *) "col",(char *) "width", NULL
28966 };
28967
28968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28970 if (!SWIG_IsOK(res1)) {
28971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28972 }
28973 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28974 ecode2 = SWIG_AsVal_int(obj1, &val2);
28975 if (!SWIG_IsOK(ecode2)) {
28976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28977 }
28978 arg2 = static_cast< int >(val2);
28979 ecode3 = SWIG_AsVal_int(obj2, &val3);
28980 if (!SWIG_IsOK(ecode3)) {
28981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28982 }
28983 arg3 = static_cast< int >(val3);
28984 {
28985 PyThreadState* __tstate = wxPyBeginAllowThreads();
28986 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28987 wxPyEndAllowThreads(__tstate);
28988 if (PyErr_Occurred()) SWIG_fail;
28989 }
28990 {
28991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28992 }
28993 return resultobj;
28994 fail:
28995 return NULL;
28996 }
28997
28998
28999 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29000 PyObject *resultobj = 0;
29001 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29002 int result;
29003 void *argp1 = 0 ;
29004 int res1 = 0 ;
29005 PyObject *swig_obj[1] ;
29006
29007 if (!args) SWIG_fail;
29008 swig_obj[0] = args;
29009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29010 if (!SWIG_IsOK(res1)) {
29011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29012 }
29013 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29014 {
29015 PyThreadState* __tstate = wxPyBeginAllowThreads();
29016 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29017 wxPyEndAllowThreads(__tstate);
29018 if (PyErr_Occurred()) SWIG_fail;
29019 }
29020 resultobj = SWIG_From_int(static_cast< int >(result));
29021 return resultobj;
29022 fail:
29023 return NULL;
29024 }
29025
29026
29027 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29028 PyObject *resultobj = 0;
29029 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29030 wxRect result;
29031 void *argp1 = 0 ;
29032 int res1 = 0 ;
29033 PyObject *swig_obj[1] ;
29034
29035 if (!args) SWIG_fail;
29036 swig_obj[0] = args;
29037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29038 if (!SWIG_IsOK(res1)) {
29039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29040 }
29041 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29042 {
29043 PyThreadState* __tstate = wxPyBeginAllowThreads();
29044 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29045 wxPyEndAllowThreads(__tstate);
29046 if (PyErr_Occurred()) SWIG_fail;
29047 }
29048 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29049 return resultobj;
29050 fail:
29051 return NULL;
29052 }
29053
29054
29055 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29056 PyObject *resultobj = 0;
29057 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29058 wxTextCtrl *result = 0 ;
29059 void *argp1 = 0 ;
29060 int res1 = 0 ;
29061 PyObject *swig_obj[1] ;
29062
29063 if (!args) SWIG_fail;
29064 swig_obj[0] = args;
29065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29066 if (!SWIG_IsOK(res1)) {
29067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29068 }
29069 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29070 {
29071 PyThreadState* __tstate = wxPyBeginAllowThreads();
29072 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29073 wxPyEndAllowThreads(__tstate);
29074 if (PyErr_Occurred()) SWIG_fail;
29075 }
29076 {
29077 resultobj = wxPyMake_wxObject(result, 0);
29078 }
29079 return resultobj;
29080 fail:
29081 return NULL;
29082 }
29083
29084
29085 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29086 PyObject *resultobj = 0;
29087 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29088 long arg2 ;
29089 int arg3 = (int) 0 ;
29090 wxListItem *result = 0 ;
29091 void *argp1 = 0 ;
29092 int res1 = 0 ;
29093 long val2 ;
29094 int ecode2 = 0 ;
29095 int val3 ;
29096 int ecode3 = 0 ;
29097 PyObject * obj0 = 0 ;
29098 PyObject * obj1 = 0 ;
29099 PyObject * obj2 = 0 ;
29100 char * kwnames[] = {
29101 (char *) "self",(char *) "itemId",(char *) "col", NULL
29102 };
29103
29104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29106 if (!SWIG_IsOK(res1)) {
29107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29108 }
29109 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29110 ecode2 = SWIG_AsVal_long(obj1, &val2);
29111 if (!SWIG_IsOK(ecode2)) {
29112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29113 }
29114 arg2 = static_cast< long >(val2);
29115 if (obj2) {
29116 ecode3 = SWIG_AsVal_int(obj2, &val3);
29117 if (!SWIG_IsOK(ecode3)) {
29118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29119 }
29120 arg3 = static_cast< int >(val3);
29121 }
29122 {
29123 PyThreadState* __tstate = wxPyBeginAllowThreads();
29124 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29125 wxPyEndAllowThreads(__tstate);
29126 if (PyErr_Occurred()) SWIG_fail;
29127 }
29128 {
29129 resultobj = wxPyMake_wxObject(result, (bool)0);
29130 }
29131 return resultobj;
29132 fail:
29133 return NULL;
29134 }
29135
29136
29137 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29138 PyObject *resultobj = 0;
29139 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29140 wxListItem *arg2 = 0 ;
29141 bool result;
29142 void *argp1 = 0 ;
29143 int res1 = 0 ;
29144 void *argp2 = 0 ;
29145 int res2 = 0 ;
29146 PyObject * obj0 = 0 ;
29147 PyObject * obj1 = 0 ;
29148 char * kwnames[] = {
29149 (char *) "self",(char *) "info", NULL
29150 };
29151
29152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29154 if (!SWIG_IsOK(res1)) {
29155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29156 }
29157 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29158 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29159 if (!SWIG_IsOK(res2)) {
29160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29161 }
29162 if (!argp2) {
29163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29164 }
29165 arg2 = reinterpret_cast< wxListItem * >(argp2);
29166 {
29167 PyThreadState* __tstate = wxPyBeginAllowThreads();
29168 result = (bool)(arg1)->SetItem(*arg2);
29169 wxPyEndAllowThreads(__tstate);
29170 if (PyErr_Occurred()) SWIG_fail;
29171 }
29172 {
29173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29174 }
29175 return resultobj;
29176 fail:
29177 return NULL;
29178 }
29179
29180
29181 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29182 PyObject *resultobj = 0;
29183 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29184 long arg2 ;
29185 int arg3 ;
29186 wxString *arg4 = 0 ;
29187 int arg5 = (int) -1 ;
29188 long result;
29189 void *argp1 = 0 ;
29190 int res1 = 0 ;
29191 long val2 ;
29192 int ecode2 = 0 ;
29193 int val3 ;
29194 int ecode3 = 0 ;
29195 bool temp4 = false ;
29196 int val5 ;
29197 int ecode5 = 0 ;
29198 PyObject * obj0 = 0 ;
29199 PyObject * obj1 = 0 ;
29200 PyObject * obj2 = 0 ;
29201 PyObject * obj3 = 0 ;
29202 PyObject * obj4 = 0 ;
29203 char * kwnames[] = {
29204 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29205 };
29206
29207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29209 if (!SWIG_IsOK(res1)) {
29210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29211 }
29212 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29213 ecode2 = SWIG_AsVal_long(obj1, &val2);
29214 if (!SWIG_IsOK(ecode2)) {
29215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29216 }
29217 arg2 = static_cast< long >(val2);
29218 ecode3 = SWIG_AsVal_int(obj2, &val3);
29219 if (!SWIG_IsOK(ecode3)) {
29220 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29221 }
29222 arg3 = static_cast< int >(val3);
29223 {
29224 arg4 = wxString_in_helper(obj3);
29225 if (arg4 == NULL) SWIG_fail;
29226 temp4 = true;
29227 }
29228 if (obj4) {
29229 ecode5 = SWIG_AsVal_int(obj4, &val5);
29230 if (!SWIG_IsOK(ecode5)) {
29231 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29232 }
29233 arg5 = static_cast< int >(val5);
29234 }
29235 {
29236 PyThreadState* __tstate = wxPyBeginAllowThreads();
29237 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29238 wxPyEndAllowThreads(__tstate);
29239 if (PyErr_Occurred()) SWIG_fail;
29240 }
29241 resultobj = SWIG_From_long(static_cast< long >(result));
29242 {
29243 if (temp4)
29244 delete arg4;
29245 }
29246 return resultobj;
29247 fail:
29248 {
29249 if (temp4)
29250 delete arg4;
29251 }
29252 return NULL;
29253 }
29254
29255
29256 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29257 PyObject *resultobj = 0;
29258 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29259 long arg2 ;
29260 long arg3 ;
29261 int result;
29262 void *argp1 = 0 ;
29263 int res1 = 0 ;
29264 long val2 ;
29265 int ecode2 = 0 ;
29266 long val3 ;
29267 int ecode3 = 0 ;
29268 PyObject * obj0 = 0 ;
29269 PyObject * obj1 = 0 ;
29270 PyObject * obj2 = 0 ;
29271 char * kwnames[] = {
29272 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29273 };
29274
29275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29277 if (!SWIG_IsOK(res1)) {
29278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29279 }
29280 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29281 ecode2 = SWIG_AsVal_long(obj1, &val2);
29282 if (!SWIG_IsOK(ecode2)) {
29283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29284 }
29285 arg2 = static_cast< long >(val2);
29286 ecode3 = SWIG_AsVal_long(obj2, &val3);
29287 if (!SWIG_IsOK(ecode3)) {
29288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29289 }
29290 arg3 = static_cast< long >(val3);
29291 {
29292 PyThreadState* __tstate = wxPyBeginAllowThreads();
29293 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29294 wxPyEndAllowThreads(__tstate);
29295 if (PyErr_Occurred()) SWIG_fail;
29296 }
29297 resultobj = SWIG_From_int(static_cast< int >(result));
29298 return resultobj;
29299 fail:
29300 return NULL;
29301 }
29302
29303
29304 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29305 PyObject *resultobj = 0;
29306 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29307 long arg2 ;
29308 long arg3 ;
29309 long arg4 ;
29310 bool result;
29311 void *argp1 = 0 ;
29312 int res1 = 0 ;
29313 long val2 ;
29314 int ecode2 = 0 ;
29315 long val3 ;
29316 int ecode3 = 0 ;
29317 long val4 ;
29318 int ecode4 = 0 ;
29319 PyObject * obj0 = 0 ;
29320 PyObject * obj1 = 0 ;
29321 PyObject * obj2 = 0 ;
29322 PyObject * obj3 = 0 ;
29323 char * kwnames[] = {
29324 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29325 };
29326
29327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29329 if (!SWIG_IsOK(res1)) {
29330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29331 }
29332 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29333 ecode2 = SWIG_AsVal_long(obj1, &val2);
29334 if (!SWIG_IsOK(ecode2)) {
29335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29336 }
29337 arg2 = static_cast< long >(val2);
29338 ecode3 = SWIG_AsVal_long(obj2, &val3);
29339 if (!SWIG_IsOK(ecode3)) {
29340 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29341 }
29342 arg3 = static_cast< long >(val3);
29343 ecode4 = SWIG_AsVal_long(obj3, &val4);
29344 if (!SWIG_IsOK(ecode4)) {
29345 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29346 }
29347 arg4 = static_cast< long >(val4);
29348 {
29349 PyThreadState* __tstate = wxPyBeginAllowThreads();
29350 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29351 wxPyEndAllowThreads(__tstate);
29352 if (PyErr_Occurred()) SWIG_fail;
29353 }
29354 {
29355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29356 }
29357 return resultobj;
29358 fail:
29359 return NULL;
29360 }
29361
29362
29363 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29364 PyObject *resultobj = 0;
29365 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29366 long arg2 ;
29367 int arg3 ;
29368 int arg4 = (int) -1 ;
29369 bool result;
29370 void *argp1 = 0 ;
29371 int res1 = 0 ;
29372 long val2 ;
29373 int ecode2 = 0 ;
29374 int val3 ;
29375 int ecode3 = 0 ;
29376 int val4 ;
29377 int ecode4 = 0 ;
29378 PyObject * obj0 = 0 ;
29379 PyObject * obj1 = 0 ;
29380 PyObject * obj2 = 0 ;
29381 PyObject * obj3 = 0 ;
29382 char * kwnames[] = {
29383 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29384 };
29385
29386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29388 if (!SWIG_IsOK(res1)) {
29389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29390 }
29391 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29392 ecode2 = SWIG_AsVal_long(obj1, &val2);
29393 if (!SWIG_IsOK(ecode2)) {
29394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29395 }
29396 arg2 = static_cast< long >(val2);
29397 ecode3 = SWIG_AsVal_int(obj2, &val3);
29398 if (!SWIG_IsOK(ecode3)) {
29399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29400 }
29401 arg3 = static_cast< int >(val3);
29402 if (obj3) {
29403 ecode4 = SWIG_AsVal_int(obj3, &val4);
29404 if (!SWIG_IsOK(ecode4)) {
29405 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29406 }
29407 arg4 = static_cast< int >(val4);
29408 }
29409 {
29410 PyThreadState* __tstate = wxPyBeginAllowThreads();
29411 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29412 wxPyEndAllowThreads(__tstate);
29413 if (PyErr_Occurred()) SWIG_fail;
29414 }
29415 {
29416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29417 }
29418 return resultobj;
29419 fail:
29420 return NULL;
29421 }
29422
29423
29424 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29425 PyObject *resultobj = 0;
29426 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29427 long arg2 ;
29428 long arg3 ;
29429 int arg4 ;
29430 bool result;
29431 void *argp1 = 0 ;
29432 int res1 = 0 ;
29433 long val2 ;
29434 int ecode2 = 0 ;
29435 long val3 ;
29436 int ecode3 = 0 ;
29437 int val4 ;
29438 int ecode4 = 0 ;
29439 PyObject * obj0 = 0 ;
29440 PyObject * obj1 = 0 ;
29441 PyObject * obj2 = 0 ;
29442 PyObject * obj3 = 0 ;
29443 char * kwnames[] = {
29444 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29445 };
29446
29447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29449 if (!SWIG_IsOK(res1)) {
29450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29451 }
29452 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29453 ecode2 = SWIG_AsVal_long(obj1, &val2);
29454 if (!SWIG_IsOK(ecode2)) {
29455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29456 }
29457 arg2 = static_cast< long >(val2);
29458 ecode3 = SWIG_AsVal_long(obj2, &val3);
29459 if (!SWIG_IsOK(ecode3)) {
29460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29461 }
29462 arg3 = static_cast< long >(val3);
29463 ecode4 = SWIG_AsVal_int(obj3, &val4);
29464 if (!SWIG_IsOK(ecode4)) {
29465 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29466 }
29467 arg4 = static_cast< int >(val4);
29468 {
29469 PyThreadState* __tstate = wxPyBeginAllowThreads();
29470 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29471 wxPyEndAllowThreads(__tstate);
29472 if (PyErr_Occurred()) SWIG_fail;
29473 }
29474 {
29475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29476 }
29477 return resultobj;
29478 fail:
29479 return NULL;
29480 }
29481
29482
29483 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29484 PyObject *resultobj = 0;
29485 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29486 long arg2 ;
29487 wxString result;
29488 void *argp1 = 0 ;
29489 int res1 = 0 ;
29490 long val2 ;
29491 int ecode2 = 0 ;
29492 PyObject * obj0 = 0 ;
29493 PyObject * obj1 = 0 ;
29494 char * kwnames[] = {
29495 (char *) "self",(char *) "item", NULL
29496 };
29497
29498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29500 if (!SWIG_IsOK(res1)) {
29501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29502 }
29503 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29504 ecode2 = SWIG_AsVal_long(obj1, &val2);
29505 if (!SWIG_IsOK(ecode2)) {
29506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29507 }
29508 arg2 = static_cast< long >(val2);
29509 {
29510 PyThreadState* __tstate = wxPyBeginAllowThreads();
29511 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29512 wxPyEndAllowThreads(__tstate);
29513 if (PyErr_Occurred()) SWIG_fail;
29514 }
29515 {
29516 #if wxUSE_UNICODE
29517 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29518 #else
29519 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29520 #endif
29521 }
29522 return resultobj;
29523 fail:
29524 return NULL;
29525 }
29526
29527
29528 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29529 PyObject *resultobj = 0;
29530 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29531 long arg2 ;
29532 wxString *arg3 = 0 ;
29533 void *argp1 = 0 ;
29534 int res1 = 0 ;
29535 long val2 ;
29536 int ecode2 = 0 ;
29537 bool temp3 = false ;
29538 PyObject * obj0 = 0 ;
29539 PyObject * obj1 = 0 ;
29540 PyObject * obj2 = 0 ;
29541 char * kwnames[] = {
29542 (char *) "self",(char *) "item",(char *) "str", NULL
29543 };
29544
29545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29547 if (!SWIG_IsOK(res1)) {
29548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29549 }
29550 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29551 ecode2 = SWIG_AsVal_long(obj1, &val2);
29552 if (!SWIG_IsOK(ecode2)) {
29553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29554 }
29555 arg2 = static_cast< long >(val2);
29556 {
29557 arg3 = wxString_in_helper(obj2);
29558 if (arg3 == NULL) SWIG_fail;
29559 temp3 = true;
29560 }
29561 {
29562 PyThreadState* __tstate = wxPyBeginAllowThreads();
29563 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29564 wxPyEndAllowThreads(__tstate);
29565 if (PyErr_Occurred()) SWIG_fail;
29566 }
29567 resultobj = SWIG_Py_Void();
29568 {
29569 if (temp3)
29570 delete arg3;
29571 }
29572 return resultobj;
29573 fail:
29574 {
29575 if (temp3)
29576 delete arg3;
29577 }
29578 return NULL;
29579 }
29580
29581
29582 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29583 PyObject *resultobj = 0;
29584 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29585 long arg2 ;
29586 long result;
29587 void *argp1 = 0 ;
29588 int res1 = 0 ;
29589 long val2 ;
29590 int ecode2 = 0 ;
29591 PyObject * obj0 = 0 ;
29592 PyObject * obj1 = 0 ;
29593 char * kwnames[] = {
29594 (char *) "self",(char *) "item", NULL
29595 };
29596
29597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29599 if (!SWIG_IsOK(res1)) {
29600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29601 }
29602 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29603 ecode2 = SWIG_AsVal_long(obj1, &val2);
29604 if (!SWIG_IsOK(ecode2)) {
29605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29606 }
29607 arg2 = static_cast< long >(val2);
29608 {
29609 PyThreadState* __tstate = wxPyBeginAllowThreads();
29610 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29611 wxPyEndAllowThreads(__tstate);
29612 if (PyErr_Occurred()) SWIG_fail;
29613 }
29614 resultobj = SWIG_From_long(static_cast< long >(result));
29615 return resultobj;
29616 fail:
29617 return NULL;
29618 }
29619
29620
29621 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29622 PyObject *resultobj = 0;
29623 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29624 long arg2 ;
29625 long arg3 ;
29626 bool result;
29627 void *argp1 = 0 ;
29628 int res1 = 0 ;
29629 long val2 ;
29630 int ecode2 = 0 ;
29631 long val3 ;
29632 int ecode3 = 0 ;
29633 PyObject * obj0 = 0 ;
29634 PyObject * obj1 = 0 ;
29635 PyObject * obj2 = 0 ;
29636 char * kwnames[] = {
29637 (char *) "self",(char *) "item",(char *) "data", NULL
29638 };
29639
29640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29642 if (!SWIG_IsOK(res1)) {
29643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29644 }
29645 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29646 ecode2 = SWIG_AsVal_long(obj1, &val2);
29647 if (!SWIG_IsOK(ecode2)) {
29648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29649 }
29650 arg2 = static_cast< long >(val2);
29651 ecode3 = SWIG_AsVal_long(obj2, &val3);
29652 if (!SWIG_IsOK(ecode3)) {
29653 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29654 }
29655 arg3 = static_cast< long >(val3);
29656 {
29657 PyThreadState* __tstate = wxPyBeginAllowThreads();
29658 result = (bool)(arg1)->SetItemData(arg2,arg3);
29659 wxPyEndAllowThreads(__tstate);
29660 if (PyErr_Occurred()) SWIG_fail;
29661 }
29662 {
29663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29664 }
29665 return resultobj;
29666 fail:
29667 return NULL;
29668 }
29669
29670
29671 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29672 PyObject *resultobj = 0;
29673 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29674 long arg2 ;
29675 wxPoint result;
29676 void *argp1 = 0 ;
29677 int res1 = 0 ;
29678 long val2 ;
29679 int ecode2 = 0 ;
29680 PyObject * obj0 = 0 ;
29681 PyObject * obj1 = 0 ;
29682 char * kwnames[] = {
29683 (char *) "self",(char *) "item", NULL
29684 };
29685
29686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29688 if (!SWIG_IsOK(res1)) {
29689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29690 }
29691 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29692 ecode2 = SWIG_AsVal_long(obj1, &val2);
29693 if (!SWIG_IsOK(ecode2)) {
29694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29695 }
29696 arg2 = static_cast< long >(val2);
29697 {
29698 PyThreadState* __tstate = wxPyBeginAllowThreads();
29699 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29700 wxPyEndAllowThreads(__tstate);
29701 if (PyErr_Occurred()) SWIG_fail;
29702 }
29703 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29704 return resultobj;
29705 fail:
29706 return NULL;
29707 }
29708
29709
29710 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29711 PyObject *resultobj = 0;
29712 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29713 long arg2 ;
29714 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29715 wxRect result;
29716 void *argp1 = 0 ;
29717 int res1 = 0 ;
29718 long val2 ;
29719 int ecode2 = 0 ;
29720 int val3 ;
29721 int ecode3 = 0 ;
29722 PyObject * obj0 = 0 ;
29723 PyObject * obj1 = 0 ;
29724 PyObject * obj2 = 0 ;
29725 char * kwnames[] = {
29726 (char *) "self",(char *) "item",(char *) "code", NULL
29727 };
29728
29729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29731 if (!SWIG_IsOK(res1)) {
29732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29733 }
29734 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29735 ecode2 = SWIG_AsVal_long(obj1, &val2);
29736 if (!SWIG_IsOK(ecode2)) {
29737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29738 }
29739 arg2 = static_cast< long >(val2);
29740 if (obj2) {
29741 ecode3 = SWIG_AsVal_int(obj2, &val3);
29742 if (!SWIG_IsOK(ecode3)) {
29743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29744 }
29745 arg3 = static_cast< int >(val3);
29746 }
29747 {
29748 PyThreadState* __tstate = wxPyBeginAllowThreads();
29749 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29750 wxPyEndAllowThreads(__tstate);
29751 if (PyErr_Occurred()) SWIG_fail;
29752 }
29753 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29754 return resultobj;
29755 fail:
29756 return NULL;
29757 }
29758
29759
29760 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29761 PyObject *resultobj = 0;
29762 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29763 long arg2 ;
29764 wxPoint *arg3 = 0 ;
29765 bool result;
29766 void *argp1 = 0 ;
29767 int res1 = 0 ;
29768 long val2 ;
29769 int ecode2 = 0 ;
29770 wxPoint temp3 ;
29771 PyObject * obj0 = 0 ;
29772 PyObject * obj1 = 0 ;
29773 PyObject * obj2 = 0 ;
29774 char * kwnames[] = {
29775 (char *) "self",(char *) "item",(char *) "pos", NULL
29776 };
29777
29778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29780 if (!SWIG_IsOK(res1)) {
29781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29782 }
29783 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29784 ecode2 = SWIG_AsVal_long(obj1, &val2);
29785 if (!SWIG_IsOK(ecode2)) {
29786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29787 }
29788 arg2 = static_cast< long >(val2);
29789 {
29790 arg3 = &temp3;
29791 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29792 }
29793 {
29794 PyThreadState* __tstate = wxPyBeginAllowThreads();
29795 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29796 wxPyEndAllowThreads(__tstate);
29797 if (PyErr_Occurred()) SWIG_fail;
29798 }
29799 {
29800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29801 }
29802 return resultobj;
29803 fail:
29804 return NULL;
29805 }
29806
29807
29808 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29809 PyObject *resultobj = 0;
29810 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29811 int result;
29812 void *argp1 = 0 ;
29813 int res1 = 0 ;
29814 PyObject *swig_obj[1] ;
29815
29816 if (!args) SWIG_fail;
29817 swig_obj[0] = args;
29818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29819 if (!SWIG_IsOK(res1)) {
29820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29821 }
29822 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29823 {
29824 PyThreadState* __tstate = wxPyBeginAllowThreads();
29825 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29826 wxPyEndAllowThreads(__tstate);
29827 if (PyErr_Occurred()) SWIG_fail;
29828 }
29829 resultobj = SWIG_From_int(static_cast< int >(result));
29830 return resultobj;
29831 fail:
29832 return NULL;
29833 }
29834
29835
29836 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29837 PyObject *resultobj = 0;
29838 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29839 int result;
29840 void *argp1 = 0 ;
29841 int res1 = 0 ;
29842 PyObject *swig_obj[1] ;
29843
29844 if (!args) SWIG_fail;
29845 swig_obj[0] = args;
29846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29847 if (!SWIG_IsOK(res1)) {
29848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29849 }
29850 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29851 {
29852 PyThreadState* __tstate = wxPyBeginAllowThreads();
29853 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29854 wxPyEndAllowThreads(__tstate);
29855 if (PyErr_Occurred()) SWIG_fail;
29856 }
29857 resultobj = SWIG_From_int(static_cast< int >(result));
29858 return resultobj;
29859 fail:
29860 return NULL;
29861 }
29862
29863
29864 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29865 PyObject *resultobj = 0;
29866 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29867 wxSize result;
29868 void *argp1 = 0 ;
29869 int res1 = 0 ;
29870 PyObject *swig_obj[1] ;
29871
29872 if (!args) SWIG_fail;
29873 swig_obj[0] = args;
29874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29875 if (!SWIG_IsOK(res1)) {
29876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29877 }
29878 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29879 {
29880 PyThreadState* __tstate = wxPyBeginAllowThreads();
29881 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29882 wxPyEndAllowThreads(__tstate);
29883 if (PyErr_Occurred()) SWIG_fail;
29884 }
29885 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29886 return resultobj;
29887 fail:
29888 return NULL;
29889 }
29890
29891
29892 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29893 PyObject *resultobj = 0;
29894 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29895 int arg2 ;
29896 bool arg3 = (bool) false ;
29897 void *argp1 = 0 ;
29898 int res1 = 0 ;
29899 int val2 ;
29900 int ecode2 = 0 ;
29901 bool val3 ;
29902 int ecode3 = 0 ;
29903 PyObject * obj0 = 0 ;
29904 PyObject * obj1 = 0 ;
29905 PyObject * obj2 = 0 ;
29906 char * kwnames[] = {
29907 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29908 };
29909
29910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29912 if (!SWIG_IsOK(res1)) {
29913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29914 }
29915 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29916 ecode2 = SWIG_AsVal_int(obj1, &val2);
29917 if (!SWIG_IsOK(ecode2)) {
29918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29919 }
29920 arg2 = static_cast< int >(val2);
29921 if (obj2) {
29922 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29923 if (!SWIG_IsOK(ecode3)) {
29924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29925 }
29926 arg3 = static_cast< bool >(val3);
29927 }
29928 {
29929 PyThreadState* __tstate = wxPyBeginAllowThreads();
29930 (arg1)->SetItemSpacing(arg2,arg3);
29931 wxPyEndAllowThreads(__tstate);
29932 if (PyErr_Occurred()) SWIG_fail;
29933 }
29934 resultobj = SWIG_Py_Void();
29935 return resultobj;
29936 fail:
29937 return NULL;
29938 }
29939
29940
29941 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29942 PyObject *resultobj = 0;
29943 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29944 int result;
29945 void *argp1 = 0 ;
29946 int res1 = 0 ;
29947 PyObject *swig_obj[1] ;
29948
29949 if (!args) SWIG_fail;
29950 swig_obj[0] = args;
29951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29952 if (!SWIG_IsOK(res1)) {
29953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29954 }
29955 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29956 {
29957 PyThreadState* __tstate = wxPyBeginAllowThreads();
29958 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29959 wxPyEndAllowThreads(__tstate);
29960 if (PyErr_Occurred()) SWIG_fail;
29961 }
29962 resultobj = SWIG_From_int(static_cast< int >(result));
29963 return resultobj;
29964 fail:
29965 return NULL;
29966 }
29967
29968
29969 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29970 PyObject *resultobj = 0;
29971 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29972 wxColour result;
29973 void *argp1 = 0 ;
29974 int res1 = 0 ;
29975 PyObject *swig_obj[1] ;
29976
29977 if (!args) SWIG_fail;
29978 swig_obj[0] = args;
29979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29980 if (!SWIG_IsOK(res1)) {
29981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29982 }
29983 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29984 {
29985 PyThreadState* __tstate = wxPyBeginAllowThreads();
29986 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29987 wxPyEndAllowThreads(__tstate);
29988 if (PyErr_Occurred()) SWIG_fail;
29989 }
29990 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29991 return resultobj;
29992 fail:
29993 return NULL;
29994 }
29995
29996
29997 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29998 PyObject *resultobj = 0;
29999 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30000 wxColour *arg2 = 0 ;
30001 void *argp1 = 0 ;
30002 int res1 = 0 ;
30003 wxColour temp2 ;
30004 PyObject * obj0 = 0 ;
30005 PyObject * obj1 = 0 ;
30006 char * kwnames[] = {
30007 (char *) "self",(char *) "col", NULL
30008 };
30009
30010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30012 if (!SWIG_IsOK(res1)) {
30013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30014 }
30015 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30016 {
30017 arg2 = &temp2;
30018 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30019 }
30020 {
30021 PyThreadState* __tstate = wxPyBeginAllowThreads();
30022 (arg1)->SetTextColour((wxColour const &)*arg2);
30023 wxPyEndAllowThreads(__tstate);
30024 if (PyErr_Occurred()) SWIG_fail;
30025 }
30026 resultobj = SWIG_Py_Void();
30027 return resultobj;
30028 fail:
30029 return NULL;
30030 }
30031
30032
30033 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30034 PyObject *resultobj = 0;
30035 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30036 long result;
30037 void *argp1 = 0 ;
30038 int res1 = 0 ;
30039 PyObject *swig_obj[1] ;
30040
30041 if (!args) SWIG_fail;
30042 swig_obj[0] = args;
30043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30044 if (!SWIG_IsOK(res1)) {
30045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30046 }
30047 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30048 {
30049 PyThreadState* __tstate = wxPyBeginAllowThreads();
30050 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30051 wxPyEndAllowThreads(__tstate);
30052 if (PyErr_Occurred()) SWIG_fail;
30053 }
30054 resultobj = SWIG_From_long(static_cast< long >(result));
30055 return resultobj;
30056 fail:
30057 return NULL;
30058 }
30059
30060
30061 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30062 PyObject *resultobj = 0;
30063 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30064 long arg2 ;
30065 bool arg3 = (bool) true ;
30066 void *argp1 = 0 ;
30067 int res1 = 0 ;
30068 long val2 ;
30069 int ecode2 = 0 ;
30070 bool val3 ;
30071 int ecode3 = 0 ;
30072 PyObject * obj0 = 0 ;
30073 PyObject * obj1 = 0 ;
30074 PyObject * obj2 = 0 ;
30075 char * kwnames[] = {
30076 (char *) "self",(char *) "style",(char *) "add", NULL
30077 };
30078
30079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30081 if (!SWIG_IsOK(res1)) {
30082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30083 }
30084 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30085 ecode2 = SWIG_AsVal_long(obj1, &val2);
30086 if (!SWIG_IsOK(ecode2)) {
30087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30088 }
30089 arg2 = static_cast< long >(val2);
30090 if (obj2) {
30091 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30092 if (!SWIG_IsOK(ecode3)) {
30093 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30094 }
30095 arg3 = static_cast< bool >(val3);
30096 }
30097 {
30098 PyThreadState* __tstate = wxPyBeginAllowThreads();
30099 (arg1)->SetSingleStyle(arg2,arg3);
30100 wxPyEndAllowThreads(__tstate);
30101 if (PyErr_Occurred()) SWIG_fail;
30102 }
30103 resultobj = SWIG_Py_Void();
30104 return resultobj;
30105 fail:
30106 return NULL;
30107 }
30108
30109
30110 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30111 PyObject *resultobj = 0;
30112 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30113 long arg2 ;
30114 int arg3 = (int) wxLIST_NEXT_ALL ;
30115 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30116 long result;
30117 void *argp1 = 0 ;
30118 int res1 = 0 ;
30119 long val2 ;
30120 int ecode2 = 0 ;
30121 int val3 ;
30122 int ecode3 = 0 ;
30123 int val4 ;
30124 int ecode4 = 0 ;
30125 PyObject * obj0 = 0 ;
30126 PyObject * obj1 = 0 ;
30127 PyObject * obj2 = 0 ;
30128 PyObject * obj3 = 0 ;
30129 char * kwnames[] = {
30130 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30131 };
30132
30133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30135 if (!SWIG_IsOK(res1)) {
30136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30137 }
30138 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30139 ecode2 = SWIG_AsVal_long(obj1, &val2);
30140 if (!SWIG_IsOK(ecode2)) {
30141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30142 }
30143 arg2 = static_cast< long >(val2);
30144 if (obj2) {
30145 ecode3 = SWIG_AsVal_int(obj2, &val3);
30146 if (!SWIG_IsOK(ecode3)) {
30147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30148 }
30149 arg3 = static_cast< int >(val3);
30150 }
30151 if (obj3) {
30152 ecode4 = SWIG_AsVal_int(obj3, &val4);
30153 if (!SWIG_IsOK(ecode4)) {
30154 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30155 }
30156 arg4 = static_cast< int >(val4);
30157 }
30158 {
30159 PyThreadState* __tstate = wxPyBeginAllowThreads();
30160 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30161 wxPyEndAllowThreads(__tstate);
30162 if (PyErr_Occurred()) SWIG_fail;
30163 }
30164 resultobj = SWIG_From_long(static_cast< long >(result));
30165 return resultobj;
30166 fail:
30167 return NULL;
30168 }
30169
30170
30171 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30172 PyObject *resultobj = 0;
30173 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30174 int arg2 ;
30175 wxImageList *result = 0 ;
30176 void *argp1 = 0 ;
30177 int res1 = 0 ;
30178 int val2 ;
30179 int ecode2 = 0 ;
30180 PyObject * obj0 = 0 ;
30181 PyObject * obj1 = 0 ;
30182 char * kwnames[] = {
30183 (char *) "self",(char *) "which", NULL
30184 };
30185
30186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30188 if (!SWIG_IsOK(res1)) {
30189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30190 }
30191 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30192 ecode2 = SWIG_AsVal_int(obj1, &val2);
30193 if (!SWIG_IsOK(ecode2)) {
30194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30195 }
30196 arg2 = static_cast< int >(val2);
30197 {
30198 PyThreadState* __tstate = wxPyBeginAllowThreads();
30199 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30200 wxPyEndAllowThreads(__tstate);
30201 if (PyErr_Occurred()) SWIG_fail;
30202 }
30203 {
30204 resultobj = wxPyMake_wxObject(result, (bool)0);
30205 }
30206 return resultobj;
30207 fail:
30208 return NULL;
30209 }
30210
30211
30212 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30213 PyObject *resultobj = 0;
30214 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30215 wxImageList *arg2 = (wxImageList *) 0 ;
30216 int arg3 ;
30217 void *argp1 = 0 ;
30218 int res1 = 0 ;
30219 void *argp2 = 0 ;
30220 int res2 = 0 ;
30221 int val3 ;
30222 int ecode3 = 0 ;
30223 PyObject * obj0 = 0 ;
30224 PyObject * obj1 = 0 ;
30225 PyObject * obj2 = 0 ;
30226 char * kwnames[] = {
30227 (char *) "self",(char *) "imageList",(char *) "which", NULL
30228 };
30229
30230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30232 if (!SWIG_IsOK(res1)) {
30233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30234 }
30235 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30236 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30237 if (!SWIG_IsOK(res2)) {
30238 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30239 }
30240 arg2 = reinterpret_cast< wxImageList * >(argp2);
30241 ecode3 = SWIG_AsVal_int(obj2, &val3);
30242 if (!SWIG_IsOK(ecode3)) {
30243 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30244 }
30245 arg3 = static_cast< int >(val3);
30246 {
30247 PyThreadState* __tstate = wxPyBeginAllowThreads();
30248 (arg1)->SetImageList(arg2,arg3);
30249 wxPyEndAllowThreads(__tstate);
30250 if (PyErr_Occurred()) SWIG_fail;
30251 }
30252 resultobj = SWIG_Py_Void();
30253 return resultobj;
30254 fail:
30255 return NULL;
30256 }
30257
30258
30259 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30260 PyObject *resultobj = 0;
30261 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30262 wxImageList *arg2 = (wxImageList *) 0 ;
30263 int arg3 ;
30264 void *argp1 = 0 ;
30265 int res1 = 0 ;
30266 int res2 = 0 ;
30267 int val3 ;
30268 int ecode3 = 0 ;
30269 PyObject * obj0 = 0 ;
30270 PyObject * obj1 = 0 ;
30271 PyObject * obj2 = 0 ;
30272 char * kwnames[] = {
30273 (char *) "self",(char *) "imageList",(char *) "which", NULL
30274 };
30275
30276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30278 if (!SWIG_IsOK(res1)) {
30279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30280 }
30281 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30282 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30283 if (!SWIG_IsOK(res2)) {
30284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30285 }
30286 ecode3 = SWIG_AsVal_int(obj2, &val3);
30287 if (!SWIG_IsOK(ecode3)) {
30288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30289 }
30290 arg3 = static_cast< int >(val3);
30291 {
30292 PyThreadState* __tstate = wxPyBeginAllowThreads();
30293 (arg1)->AssignImageList(arg2,arg3);
30294 wxPyEndAllowThreads(__tstate);
30295 if (PyErr_Occurred()) SWIG_fail;
30296 }
30297 resultobj = SWIG_Py_Void();
30298 return resultobj;
30299 fail:
30300 return NULL;
30301 }
30302
30303
30304 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30305 PyObject *resultobj = 0;
30306 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30307 bool result;
30308 void *argp1 = 0 ;
30309 int res1 = 0 ;
30310 PyObject *swig_obj[1] ;
30311
30312 if (!args) SWIG_fail;
30313 swig_obj[0] = args;
30314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30315 if (!SWIG_IsOK(res1)) {
30316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30317 }
30318 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30319 {
30320 PyThreadState* __tstate = wxPyBeginAllowThreads();
30321 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30322 wxPyEndAllowThreads(__tstate);
30323 if (PyErr_Occurred()) SWIG_fail;
30324 }
30325 {
30326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30327 }
30328 return resultobj;
30329 fail:
30330 return NULL;
30331 }
30332
30333
30334 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30335 PyObject *resultobj = 0;
30336 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30337 bool result;
30338 void *argp1 = 0 ;
30339 int res1 = 0 ;
30340 PyObject *swig_obj[1] ;
30341
30342 if (!args) SWIG_fail;
30343 swig_obj[0] = args;
30344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30345 if (!SWIG_IsOK(res1)) {
30346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30347 }
30348 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30349 {
30350 PyThreadState* __tstate = wxPyBeginAllowThreads();
30351 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30352 wxPyEndAllowThreads(__tstate);
30353 if (PyErr_Occurred()) SWIG_fail;
30354 }
30355 {
30356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30357 }
30358 return resultobj;
30359 fail:
30360 return NULL;
30361 }
30362
30363
30364 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30365 PyObject *resultobj = 0;
30366 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30367 long arg2 ;
30368 void *argp1 = 0 ;
30369 int res1 = 0 ;
30370 long val2 ;
30371 int ecode2 = 0 ;
30372 PyObject * obj0 = 0 ;
30373 PyObject * obj1 = 0 ;
30374 char * kwnames[] = {
30375 (char *) "self",(char *) "item", NULL
30376 };
30377
30378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30380 if (!SWIG_IsOK(res1)) {
30381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30382 }
30383 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30384 ecode2 = SWIG_AsVal_long(obj1, &val2);
30385 if (!SWIG_IsOK(ecode2)) {
30386 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30387 }
30388 arg2 = static_cast< long >(val2);
30389 {
30390 PyThreadState* __tstate = wxPyBeginAllowThreads();
30391 (arg1)->RefreshItem(arg2);
30392 wxPyEndAllowThreads(__tstate);
30393 if (PyErr_Occurred()) SWIG_fail;
30394 }
30395 resultobj = SWIG_Py_Void();
30396 return resultobj;
30397 fail:
30398 return NULL;
30399 }
30400
30401
30402 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30403 PyObject *resultobj = 0;
30404 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30405 long arg2 ;
30406 long arg3 ;
30407 void *argp1 = 0 ;
30408 int res1 = 0 ;
30409 long val2 ;
30410 int ecode2 = 0 ;
30411 long val3 ;
30412 int ecode3 = 0 ;
30413 PyObject * obj0 = 0 ;
30414 PyObject * obj1 = 0 ;
30415 PyObject * obj2 = 0 ;
30416 char * kwnames[] = {
30417 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30418 };
30419
30420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30422 if (!SWIG_IsOK(res1)) {
30423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30424 }
30425 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30426 ecode2 = SWIG_AsVal_long(obj1, &val2);
30427 if (!SWIG_IsOK(ecode2)) {
30428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30429 }
30430 arg2 = static_cast< long >(val2);
30431 ecode3 = SWIG_AsVal_long(obj2, &val3);
30432 if (!SWIG_IsOK(ecode3)) {
30433 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30434 }
30435 arg3 = static_cast< long >(val3);
30436 {
30437 PyThreadState* __tstate = wxPyBeginAllowThreads();
30438 (arg1)->RefreshItems(arg2,arg3);
30439 wxPyEndAllowThreads(__tstate);
30440 if (PyErr_Occurred()) SWIG_fail;
30441 }
30442 resultobj = SWIG_Py_Void();
30443 return resultobj;
30444 fail:
30445 return NULL;
30446 }
30447
30448
30449 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30450 PyObject *resultobj = 0;
30451 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30452 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30453 bool result;
30454 void *argp1 = 0 ;
30455 int res1 = 0 ;
30456 int val2 ;
30457 int ecode2 = 0 ;
30458 PyObject * obj0 = 0 ;
30459 PyObject * obj1 = 0 ;
30460 char * kwnames[] = {
30461 (char *) "self",(char *) "flag", NULL
30462 };
30463
30464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30466 if (!SWIG_IsOK(res1)) {
30467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30468 }
30469 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30470 if (obj1) {
30471 ecode2 = SWIG_AsVal_int(obj1, &val2);
30472 if (!SWIG_IsOK(ecode2)) {
30473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30474 }
30475 arg2 = static_cast< int >(val2);
30476 }
30477 {
30478 PyThreadState* __tstate = wxPyBeginAllowThreads();
30479 result = (bool)(arg1)->Arrange(arg2);
30480 wxPyEndAllowThreads(__tstate);
30481 if (PyErr_Occurred()) SWIG_fail;
30482 }
30483 {
30484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30485 }
30486 return resultobj;
30487 fail:
30488 return NULL;
30489 }
30490
30491
30492 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30493 PyObject *resultobj = 0;
30494 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30495 long arg2 ;
30496 bool result;
30497 void *argp1 = 0 ;
30498 int res1 = 0 ;
30499 long val2 ;
30500 int ecode2 = 0 ;
30501 PyObject * obj0 = 0 ;
30502 PyObject * obj1 = 0 ;
30503 char * kwnames[] = {
30504 (char *) "self",(char *) "item", NULL
30505 };
30506
30507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30509 if (!SWIG_IsOK(res1)) {
30510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30511 }
30512 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30513 ecode2 = SWIG_AsVal_long(obj1, &val2);
30514 if (!SWIG_IsOK(ecode2)) {
30515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30516 }
30517 arg2 = static_cast< long >(val2);
30518 {
30519 PyThreadState* __tstate = wxPyBeginAllowThreads();
30520 result = (bool)(arg1)->DeleteItem(arg2);
30521 wxPyEndAllowThreads(__tstate);
30522 if (PyErr_Occurred()) SWIG_fail;
30523 }
30524 {
30525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30526 }
30527 return resultobj;
30528 fail:
30529 return NULL;
30530 }
30531
30532
30533 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30534 PyObject *resultobj = 0;
30535 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30536 bool result;
30537 void *argp1 = 0 ;
30538 int res1 = 0 ;
30539 PyObject *swig_obj[1] ;
30540
30541 if (!args) SWIG_fail;
30542 swig_obj[0] = args;
30543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30544 if (!SWIG_IsOK(res1)) {
30545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30546 }
30547 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30548 {
30549 PyThreadState* __tstate = wxPyBeginAllowThreads();
30550 result = (bool)(arg1)->DeleteAllItems();
30551 wxPyEndAllowThreads(__tstate);
30552 if (PyErr_Occurred()) SWIG_fail;
30553 }
30554 {
30555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30556 }
30557 return resultobj;
30558 fail:
30559 return NULL;
30560 }
30561
30562
30563 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30564 PyObject *resultobj = 0;
30565 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30566 int arg2 ;
30567 bool result;
30568 void *argp1 = 0 ;
30569 int res1 = 0 ;
30570 int val2 ;
30571 int ecode2 = 0 ;
30572 PyObject * obj0 = 0 ;
30573 PyObject * obj1 = 0 ;
30574 char * kwnames[] = {
30575 (char *) "self",(char *) "col", NULL
30576 };
30577
30578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30580 if (!SWIG_IsOK(res1)) {
30581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30582 }
30583 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30584 ecode2 = SWIG_AsVal_int(obj1, &val2);
30585 if (!SWIG_IsOK(ecode2)) {
30586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30587 }
30588 arg2 = static_cast< int >(val2);
30589 {
30590 PyThreadState* __tstate = wxPyBeginAllowThreads();
30591 result = (bool)(arg1)->DeleteColumn(arg2);
30592 wxPyEndAllowThreads(__tstate);
30593 if (PyErr_Occurred()) SWIG_fail;
30594 }
30595 {
30596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30597 }
30598 return resultobj;
30599 fail:
30600 return NULL;
30601 }
30602
30603
30604 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30605 PyObject *resultobj = 0;
30606 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30607 bool result;
30608 void *argp1 = 0 ;
30609 int res1 = 0 ;
30610 PyObject *swig_obj[1] ;
30611
30612 if (!args) SWIG_fail;
30613 swig_obj[0] = args;
30614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30615 if (!SWIG_IsOK(res1)) {
30616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30617 }
30618 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30619 {
30620 PyThreadState* __tstate = wxPyBeginAllowThreads();
30621 result = (bool)(arg1)->DeleteAllColumns();
30622 wxPyEndAllowThreads(__tstate);
30623 if (PyErr_Occurred()) SWIG_fail;
30624 }
30625 {
30626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30627 }
30628 return resultobj;
30629 fail:
30630 return NULL;
30631 }
30632
30633
30634 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30635 PyObject *resultobj = 0;
30636 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30637 void *argp1 = 0 ;
30638 int res1 = 0 ;
30639 PyObject *swig_obj[1] ;
30640
30641 if (!args) SWIG_fail;
30642 swig_obj[0] = args;
30643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30644 if (!SWIG_IsOK(res1)) {
30645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30646 }
30647 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30648 {
30649 PyThreadState* __tstate = wxPyBeginAllowThreads();
30650 (arg1)->ClearAll();
30651 wxPyEndAllowThreads(__tstate);
30652 if (PyErr_Occurred()) SWIG_fail;
30653 }
30654 resultobj = SWIG_Py_Void();
30655 return resultobj;
30656 fail:
30657 return NULL;
30658 }
30659
30660
30661 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30662 PyObject *resultobj = 0;
30663 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30664 long arg2 ;
30665 void *argp1 = 0 ;
30666 int res1 = 0 ;
30667 long val2 ;
30668 int ecode2 = 0 ;
30669 PyObject * obj0 = 0 ;
30670 PyObject * obj1 = 0 ;
30671 char * kwnames[] = {
30672 (char *) "self",(char *) "item", NULL
30673 };
30674
30675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30677 if (!SWIG_IsOK(res1)) {
30678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30679 }
30680 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30681 ecode2 = SWIG_AsVal_long(obj1, &val2);
30682 if (!SWIG_IsOK(ecode2)) {
30683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30684 }
30685 arg2 = static_cast< long >(val2);
30686 {
30687 PyThreadState* __tstate = wxPyBeginAllowThreads();
30688 (arg1)->EditLabel(arg2);
30689 wxPyEndAllowThreads(__tstate);
30690 if (PyErr_Occurred()) SWIG_fail;
30691 }
30692 resultobj = SWIG_Py_Void();
30693 return resultobj;
30694 fail:
30695 return NULL;
30696 }
30697
30698
30699 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30700 PyObject *resultobj = 0;
30701 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30702 long arg2 ;
30703 bool result;
30704 void *argp1 = 0 ;
30705 int res1 = 0 ;
30706 long val2 ;
30707 int ecode2 = 0 ;
30708 PyObject * obj0 = 0 ;
30709 PyObject * obj1 = 0 ;
30710 char * kwnames[] = {
30711 (char *) "self",(char *) "item", NULL
30712 };
30713
30714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30716 if (!SWIG_IsOK(res1)) {
30717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30718 }
30719 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30720 ecode2 = SWIG_AsVal_long(obj1, &val2);
30721 if (!SWIG_IsOK(ecode2)) {
30722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30723 }
30724 arg2 = static_cast< long >(val2);
30725 {
30726 PyThreadState* __tstate = wxPyBeginAllowThreads();
30727 result = (bool)(arg1)->EnsureVisible(arg2);
30728 wxPyEndAllowThreads(__tstate);
30729 if (PyErr_Occurred()) SWIG_fail;
30730 }
30731 {
30732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30733 }
30734 return resultobj;
30735 fail:
30736 return NULL;
30737 }
30738
30739
30740 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30741 PyObject *resultobj = 0;
30742 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30743 long arg2 ;
30744 wxString *arg3 = 0 ;
30745 bool arg4 = (bool) false ;
30746 long result;
30747 void *argp1 = 0 ;
30748 int res1 = 0 ;
30749 long val2 ;
30750 int ecode2 = 0 ;
30751 bool temp3 = false ;
30752 bool val4 ;
30753 int ecode4 = 0 ;
30754 PyObject * obj0 = 0 ;
30755 PyObject * obj1 = 0 ;
30756 PyObject * obj2 = 0 ;
30757 PyObject * obj3 = 0 ;
30758 char * kwnames[] = {
30759 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30760 };
30761
30762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30764 if (!SWIG_IsOK(res1)) {
30765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30766 }
30767 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30768 ecode2 = SWIG_AsVal_long(obj1, &val2);
30769 if (!SWIG_IsOK(ecode2)) {
30770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30771 }
30772 arg2 = static_cast< long >(val2);
30773 {
30774 arg3 = wxString_in_helper(obj2);
30775 if (arg3 == NULL) SWIG_fail;
30776 temp3 = true;
30777 }
30778 if (obj3) {
30779 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30780 if (!SWIG_IsOK(ecode4)) {
30781 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30782 }
30783 arg4 = static_cast< bool >(val4);
30784 }
30785 {
30786 PyThreadState* __tstate = wxPyBeginAllowThreads();
30787 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30788 wxPyEndAllowThreads(__tstate);
30789 if (PyErr_Occurred()) SWIG_fail;
30790 }
30791 resultobj = SWIG_From_long(static_cast< long >(result));
30792 {
30793 if (temp3)
30794 delete arg3;
30795 }
30796 return resultobj;
30797 fail:
30798 {
30799 if (temp3)
30800 delete arg3;
30801 }
30802 return NULL;
30803 }
30804
30805
30806 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30807 PyObject *resultobj = 0;
30808 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30809 long arg2 ;
30810 long arg3 ;
30811 long result;
30812 void *argp1 = 0 ;
30813 int res1 = 0 ;
30814 long val2 ;
30815 int ecode2 = 0 ;
30816 long val3 ;
30817 int ecode3 = 0 ;
30818 PyObject * obj0 = 0 ;
30819 PyObject * obj1 = 0 ;
30820 PyObject * obj2 = 0 ;
30821 char * kwnames[] = {
30822 (char *) "self",(char *) "start",(char *) "data", NULL
30823 };
30824
30825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30827 if (!SWIG_IsOK(res1)) {
30828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30829 }
30830 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30831 ecode2 = SWIG_AsVal_long(obj1, &val2);
30832 if (!SWIG_IsOK(ecode2)) {
30833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30834 }
30835 arg2 = static_cast< long >(val2);
30836 ecode3 = SWIG_AsVal_long(obj2, &val3);
30837 if (!SWIG_IsOK(ecode3)) {
30838 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30839 }
30840 arg3 = static_cast< long >(val3);
30841 {
30842 PyThreadState* __tstate = wxPyBeginAllowThreads();
30843 result = (long)(arg1)->FindItem(arg2,arg3);
30844 wxPyEndAllowThreads(__tstate);
30845 if (PyErr_Occurred()) SWIG_fail;
30846 }
30847 resultobj = SWIG_From_long(static_cast< long >(result));
30848 return resultobj;
30849 fail:
30850 return NULL;
30851 }
30852
30853
30854 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30855 PyObject *resultobj = 0;
30856 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30857 long arg2 ;
30858 wxPoint *arg3 = 0 ;
30859 int arg4 ;
30860 long result;
30861 void *argp1 = 0 ;
30862 int res1 = 0 ;
30863 long val2 ;
30864 int ecode2 = 0 ;
30865 wxPoint temp3 ;
30866 int val4 ;
30867 int ecode4 = 0 ;
30868 PyObject * obj0 = 0 ;
30869 PyObject * obj1 = 0 ;
30870 PyObject * obj2 = 0 ;
30871 PyObject * obj3 = 0 ;
30872 char * kwnames[] = {
30873 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30874 };
30875
30876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30878 if (!SWIG_IsOK(res1)) {
30879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30880 }
30881 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30882 ecode2 = SWIG_AsVal_long(obj1, &val2);
30883 if (!SWIG_IsOK(ecode2)) {
30884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30885 }
30886 arg2 = static_cast< long >(val2);
30887 {
30888 arg3 = &temp3;
30889 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30890 }
30891 ecode4 = SWIG_AsVal_int(obj3, &val4);
30892 if (!SWIG_IsOK(ecode4)) {
30893 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30894 }
30895 arg4 = static_cast< int >(val4);
30896 {
30897 PyThreadState* __tstate = wxPyBeginAllowThreads();
30898 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30899 wxPyEndAllowThreads(__tstate);
30900 if (PyErr_Occurred()) SWIG_fail;
30901 }
30902 resultobj = SWIG_From_long(static_cast< long >(result));
30903 return resultobj;
30904 fail:
30905 return NULL;
30906 }
30907
30908
30909 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30910 PyObject *resultobj = 0;
30911 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30912 wxPoint *arg2 = 0 ;
30913 int *arg3 = 0 ;
30914 long result;
30915 void *argp1 = 0 ;
30916 int res1 = 0 ;
30917 wxPoint temp2 ;
30918 int temp3 ;
30919 int res3 = SWIG_TMPOBJ ;
30920 PyObject * obj0 = 0 ;
30921 PyObject * obj1 = 0 ;
30922 char * kwnames[] = {
30923 (char *) "self",(char *) "point", NULL
30924 };
30925
30926 arg3 = &temp3;
30927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30929 if (!SWIG_IsOK(res1)) {
30930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30931 }
30932 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30933 {
30934 arg2 = &temp2;
30935 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30936 }
30937 {
30938 PyThreadState* __tstate = wxPyBeginAllowThreads();
30939 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30940 wxPyEndAllowThreads(__tstate);
30941 if (PyErr_Occurred()) SWIG_fail;
30942 }
30943 resultobj = SWIG_From_long(static_cast< long >(result));
30944 if (SWIG_IsTmpObj(res3)) {
30945 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30946 } else {
30947 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30948 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30949 }
30950 return resultobj;
30951 fail:
30952 return NULL;
30953 }
30954
30955
30956 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30957 PyObject *resultobj = 0;
30958 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30959 wxPoint *arg2 = 0 ;
30960 int *arg3 = 0 ;
30961 long *arg4 = (long *) 0 ;
30962 long result;
30963 void *argp1 = 0 ;
30964 int res1 = 0 ;
30965 wxPoint temp2 ;
30966 int temp3 ;
30967 int res3 = SWIG_TMPOBJ ;
30968 long temp4 ;
30969 int res4 = SWIG_TMPOBJ ;
30970 PyObject * obj0 = 0 ;
30971 PyObject * obj1 = 0 ;
30972 char * kwnames[] = {
30973 (char *) "self",(char *) "point", NULL
30974 };
30975
30976 arg3 = &temp3;
30977 arg4 = &temp4;
30978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
30979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30980 if (!SWIG_IsOK(res1)) {
30981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30982 }
30983 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30984 {
30985 arg2 = &temp2;
30986 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30987 }
30988 {
30989 PyThreadState* __tstate = wxPyBeginAllowThreads();
30990 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
30991 wxPyEndAllowThreads(__tstate);
30992 if (PyErr_Occurred()) SWIG_fail;
30993 }
30994 resultobj = SWIG_From_long(static_cast< long >(result));
30995 if (SWIG_IsTmpObj(res3)) {
30996 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30997 } else {
30998 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30999 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31000 }
31001 if (SWIG_IsTmpObj(res4)) {
31002 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31003 } else {
31004 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31005 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31006 }
31007 return resultobj;
31008 fail:
31009 return NULL;
31010 }
31011
31012
31013 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31014 PyObject *resultobj = 0;
31015 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31016 wxListItem *arg2 = 0 ;
31017 long result;
31018 void *argp1 = 0 ;
31019 int res1 = 0 ;
31020 void *argp2 = 0 ;
31021 int res2 = 0 ;
31022 PyObject * obj0 = 0 ;
31023 PyObject * obj1 = 0 ;
31024 char * kwnames[] = {
31025 (char *) "self",(char *) "info", NULL
31026 };
31027
31028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31030 if (!SWIG_IsOK(res1)) {
31031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31032 }
31033 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31034 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31035 if (!SWIG_IsOK(res2)) {
31036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31037 }
31038 if (!argp2) {
31039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31040 }
31041 arg2 = reinterpret_cast< wxListItem * >(argp2);
31042 {
31043 PyThreadState* __tstate = wxPyBeginAllowThreads();
31044 result = (long)(arg1)->InsertItem(*arg2);
31045 wxPyEndAllowThreads(__tstate);
31046 if (PyErr_Occurred()) SWIG_fail;
31047 }
31048 resultobj = SWIG_From_long(static_cast< long >(result));
31049 return resultobj;
31050 fail:
31051 return NULL;
31052 }
31053
31054
31055 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31056 PyObject *resultobj = 0;
31057 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31058 long arg2 ;
31059 wxString *arg3 = 0 ;
31060 int arg4 = (int) -1 ;
31061 long result;
31062 void *argp1 = 0 ;
31063 int res1 = 0 ;
31064 long val2 ;
31065 int ecode2 = 0 ;
31066 bool temp3 = false ;
31067 int val4 ;
31068 int ecode4 = 0 ;
31069 PyObject * obj0 = 0 ;
31070 PyObject * obj1 = 0 ;
31071 PyObject * obj2 = 0 ;
31072 PyObject * obj3 = 0 ;
31073 char * kwnames[] = {
31074 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31075 };
31076
31077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31079 if (!SWIG_IsOK(res1)) {
31080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31081 }
31082 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31083 ecode2 = SWIG_AsVal_long(obj1, &val2);
31084 if (!SWIG_IsOK(ecode2)) {
31085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31086 }
31087 arg2 = static_cast< long >(val2);
31088 {
31089 arg3 = wxString_in_helper(obj2);
31090 if (arg3 == NULL) SWIG_fail;
31091 temp3 = true;
31092 }
31093 if (obj3) {
31094 ecode4 = SWIG_AsVal_int(obj3, &val4);
31095 if (!SWIG_IsOK(ecode4)) {
31096 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31097 }
31098 arg4 = static_cast< int >(val4);
31099 }
31100 {
31101 PyThreadState* __tstate = wxPyBeginAllowThreads();
31102 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31103 wxPyEndAllowThreads(__tstate);
31104 if (PyErr_Occurred()) SWIG_fail;
31105 }
31106 resultobj = SWIG_From_long(static_cast< long >(result));
31107 {
31108 if (temp3)
31109 delete arg3;
31110 }
31111 return resultobj;
31112 fail:
31113 {
31114 if (temp3)
31115 delete arg3;
31116 }
31117 return NULL;
31118 }
31119
31120
31121 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31122 PyObject *resultobj = 0;
31123 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31124 long arg2 ;
31125 int arg3 ;
31126 long result;
31127 void *argp1 = 0 ;
31128 int res1 = 0 ;
31129 long val2 ;
31130 int ecode2 = 0 ;
31131 int val3 ;
31132 int ecode3 = 0 ;
31133 PyObject * obj0 = 0 ;
31134 PyObject * obj1 = 0 ;
31135 PyObject * obj2 = 0 ;
31136 char * kwnames[] = {
31137 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31138 };
31139
31140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31142 if (!SWIG_IsOK(res1)) {
31143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31144 }
31145 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31146 ecode2 = SWIG_AsVal_long(obj1, &val2);
31147 if (!SWIG_IsOK(ecode2)) {
31148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31149 }
31150 arg2 = static_cast< long >(val2);
31151 ecode3 = SWIG_AsVal_int(obj2, &val3);
31152 if (!SWIG_IsOK(ecode3)) {
31153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31154 }
31155 arg3 = static_cast< int >(val3);
31156 {
31157 PyThreadState* __tstate = wxPyBeginAllowThreads();
31158 result = (long)(arg1)->InsertItem(arg2,arg3);
31159 wxPyEndAllowThreads(__tstate);
31160 if (PyErr_Occurred()) SWIG_fail;
31161 }
31162 resultobj = SWIG_From_long(static_cast< long >(result));
31163 return resultobj;
31164 fail:
31165 return NULL;
31166 }
31167
31168
31169 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31170 PyObject *resultobj = 0;
31171 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31172 long arg2 ;
31173 wxString *arg3 = 0 ;
31174 int arg4 ;
31175 long result;
31176 void *argp1 = 0 ;
31177 int res1 = 0 ;
31178 long val2 ;
31179 int ecode2 = 0 ;
31180 bool temp3 = false ;
31181 int val4 ;
31182 int ecode4 = 0 ;
31183 PyObject * obj0 = 0 ;
31184 PyObject * obj1 = 0 ;
31185 PyObject * obj2 = 0 ;
31186 PyObject * obj3 = 0 ;
31187 char * kwnames[] = {
31188 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31189 };
31190
31191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31193 if (!SWIG_IsOK(res1)) {
31194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31195 }
31196 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31197 ecode2 = SWIG_AsVal_long(obj1, &val2);
31198 if (!SWIG_IsOK(ecode2)) {
31199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31200 }
31201 arg2 = static_cast< long >(val2);
31202 {
31203 arg3 = wxString_in_helper(obj2);
31204 if (arg3 == NULL) SWIG_fail;
31205 temp3 = true;
31206 }
31207 ecode4 = SWIG_AsVal_int(obj3, &val4);
31208 if (!SWIG_IsOK(ecode4)) {
31209 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31210 }
31211 arg4 = static_cast< int >(val4);
31212 {
31213 PyThreadState* __tstate = wxPyBeginAllowThreads();
31214 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31215 wxPyEndAllowThreads(__tstate);
31216 if (PyErr_Occurred()) SWIG_fail;
31217 }
31218 resultobj = SWIG_From_long(static_cast< long >(result));
31219 {
31220 if (temp3)
31221 delete arg3;
31222 }
31223 return resultobj;
31224 fail:
31225 {
31226 if (temp3)
31227 delete arg3;
31228 }
31229 return NULL;
31230 }
31231
31232
31233 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31234 PyObject *resultobj = 0;
31235 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31236 long arg2 ;
31237 wxListItem *arg3 = 0 ;
31238 long result;
31239 void *argp1 = 0 ;
31240 int res1 = 0 ;
31241 long val2 ;
31242 int ecode2 = 0 ;
31243 void *argp3 = 0 ;
31244 int res3 = 0 ;
31245 PyObject * obj0 = 0 ;
31246 PyObject * obj1 = 0 ;
31247 PyObject * obj2 = 0 ;
31248 char * kwnames[] = {
31249 (char *) "self",(char *) "col",(char *) "info", NULL
31250 };
31251
31252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31254 if (!SWIG_IsOK(res1)) {
31255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31256 }
31257 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31258 ecode2 = SWIG_AsVal_long(obj1, &val2);
31259 if (!SWIG_IsOK(ecode2)) {
31260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31261 }
31262 arg2 = static_cast< long >(val2);
31263 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31264 if (!SWIG_IsOK(res3)) {
31265 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31266 }
31267 if (!argp3) {
31268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31269 }
31270 arg3 = reinterpret_cast< wxListItem * >(argp3);
31271 {
31272 PyThreadState* __tstate = wxPyBeginAllowThreads();
31273 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31274 wxPyEndAllowThreads(__tstate);
31275 if (PyErr_Occurred()) SWIG_fail;
31276 }
31277 resultobj = SWIG_From_long(static_cast< long >(result));
31278 return resultobj;
31279 fail:
31280 return NULL;
31281 }
31282
31283
31284 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31285 PyObject *resultobj = 0;
31286 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31287 long arg2 ;
31288 wxString *arg3 = 0 ;
31289 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31290 int arg5 = (int) -1 ;
31291 long result;
31292 void *argp1 = 0 ;
31293 int res1 = 0 ;
31294 long val2 ;
31295 int ecode2 = 0 ;
31296 bool temp3 = false ;
31297 int val4 ;
31298 int ecode4 = 0 ;
31299 int val5 ;
31300 int ecode5 = 0 ;
31301 PyObject * obj0 = 0 ;
31302 PyObject * obj1 = 0 ;
31303 PyObject * obj2 = 0 ;
31304 PyObject * obj3 = 0 ;
31305 PyObject * obj4 = 0 ;
31306 char * kwnames[] = {
31307 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31308 };
31309
31310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31312 if (!SWIG_IsOK(res1)) {
31313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31314 }
31315 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31316 ecode2 = SWIG_AsVal_long(obj1, &val2);
31317 if (!SWIG_IsOK(ecode2)) {
31318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31319 }
31320 arg2 = static_cast< long >(val2);
31321 {
31322 arg3 = wxString_in_helper(obj2);
31323 if (arg3 == NULL) SWIG_fail;
31324 temp3 = true;
31325 }
31326 if (obj3) {
31327 ecode4 = SWIG_AsVal_int(obj3, &val4);
31328 if (!SWIG_IsOK(ecode4)) {
31329 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31330 }
31331 arg4 = static_cast< int >(val4);
31332 }
31333 if (obj4) {
31334 ecode5 = SWIG_AsVal_int(obj4, &val5);
31335 if (!SWIG_IsOK(ecode5)) {
31336 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31337 }
31338 arg5 = static_cast< int >(val5);
31339 }
31340 {
31341 PyThreadState* __tstate = wxPyBeginAllowThreads();
31342 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31343 wxPyEndAllowThreads(__tstate);
31344 if (PyErr_Occurred()) SWIG_fail;
31345 }
31346 resultobj = SWIG_From_long(static_cast< long >(result));
31347 {
31348 if (temp3)
31349 delete arg3;
31350 }
31351 return resultobj;
31352 fail:
31353 {
31354 if (temp3)
31355 delete arg3;
31356 }
31357 return NULL;
31358 }
31359
31360
31361 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31362 PyObject *resultobj = 0;
31363 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31364 long arg2 ;
31365 void *argp1 = 0 ;
31366 int res1 = 0 ;
31367 long val2 ;
31368 int ecode2 = 0 ;
31369 PyObject * obj0 = 0 ;
31370 PyObject * obj1 = 0 ;
31371 char * kwnames[] = {
31372 (char *) "self",(char *) "count", NULL
31373 };
31374
31375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31377 if (!SWIG_IsOK(res1)) {
31378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31379 }
31380 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31381 ecode2 = SWIG_AsVal_long(obj1, &val2);
31382 if (!SWIG_IsOK(ecode2)) {
31383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31384 }
31385 arg2 = static_cast< long >(val2);
31386 {
31387 PyThreadState* __tstate = wxPyBeginAllowThreads();
31388 (arg1)->SetItemCount(arg2);
31389 wxPyEndAllowThreads(__tstate);
31390 if (PyErr_Occurred()) SWIG_fail;
31391 }
31392 resultobj = SWIG_Py_Void();
31393 return resultobj;
31394 fail:
31395 return NULL;
31396 }
31397
31398
31399 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31400 PyObject *resultobj = 0;
31401 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31402 int arg2 ;
31403 int arg3 ;
31404 bool result;
31405 void *argp1 = 0 ;
31406 int res1 = 0 ;
31407 int val2 ;
31408 int ecode2 = 0 ;
31409 int val3 ;
31410 int ecode3 = 0 ;
31411 PyObject * obj0 = 0 ;
31412 PyObject * obj1 = 0 ;
31413 PyObject * obj2 = 0 ;
31414 char * kwnames[] = {
31415 (char *) "self",(char *) "dx",(char *) "dy", NULL
31416 };
31417
31418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31420 if (!SWIG_IsOK(res1)) {
31421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31422 }
31423 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31424 ecode2 = SWIG_AsVal_int(obj1, &val2);
31425 if (!SWIG_IsOK(ecode2)) {
31426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31427 }
31428 arg2 = static_cast< int >(val2);
31429 ecode3 = SWIG_AsVal_int(obj2, &val3);
31430 if (!SWIG_IsOK(ecode3)) {
31431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31432 }
31433 arg3 = static_cast< int >(val3);
31434 {
31435 PyThreadState* __tstate = wxPyBeginAllowThreads();
31436 result = (bool)(arg1)->ScrollList(arg2,arg3);
31437 wxPyEndAllowThreads(__tstate);
31438 if (PyErr_Occurred()) SWIG_fail;
31439 }
31440 {
31441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31442 }
31443 return resultobj;
31444 fail:
31445 return NULL;
31446 }
31447
31448
31449 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31450 PyObject *resultobj = 0;
31451 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31452 long arg2 ;
31453 wxColour *arg3 = 0 ;
31454 void *argp1 = 0 ;
31455 int res1 = 0 ;
31456 long val2 ;
31457 int ecode2 = 0 ;
31458 wxColour temp3 ;
31459 PyObject * obj0 = 0 ;
31460 PyObject * obj1 = 0 ;
31461 PyObject * obj2 = 0 ;
31462 char * kwnames[] = {
31463 (char *) "self",(char *) "item",(char *) "col", NULL
31464 };
31465
31466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31468 if (!SWIG_IsOK(res1)) {
31469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31470 }
31471 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31472 ecode2 = SWIG_AsVal_long(obj1, &val2);
31473 if (!SWIG_IsOK(ecode2)) {
31474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31475 }
31476 arg2 = static_cast< long >(val2);
31477 {
31478 arg3 = &temp3;
31479 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31480 }
31481 {
31482 PyThreadState* __tstate = wxPyBeginAllowThreads();
31483 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31484 wxPyEndAllowThreads(__tstate);
31485 if (PyErr_Occurred()) SWIG_fail;
31486 }
31487 resultobj = SWIG_Py_Void();
31488 return resultobj;
31489 fail:
31490 return NULL;
31491 }
31492
31493
31494 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31495 PyObject *resultobj = 0;
31496 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31497 long arg2 ;
31498 wxColour result;
31499 void *argp1 = 0 ;
31500 int res1 = 0 ;
31501 long val2 ;
31502 int ecode2 = 0 ;
31503 PyObject * obj0 = 0 ;
31504 PyObject * obj1 = 0 ;
31505 char * kwnames[] = {
31506 (char *) "self",(char *) "item", NULL
31507 };
31508
31509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31511 if (!SWIG_IsOK(res1)) {
31512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31513 }
31514 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31515 ecode2 = SWIG_AsVal_long(obj1, &val2);
31516 if (!SWIG_IsOK(ecode2)) {
31517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31518 }
31519 arg2 = static_cast< long >(val2);
31520 {
31521 PyThreadState* __tstate = wxPyBeginAllowThreads();
31522 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31523 wxPyEndAllowThreads(__tstate);
31524 if (PyErr_Occurred()) SWIG_fail;
31525 }
31526 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31527 return resultobj;
31528 fail:
31529 return NULL;
31530 }
31531
31532
31533 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31534 PyObject *resultobj = 0;
31535 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31536 long arg2 ;
31537 wxColour *arg3 = 0 ;
31538 void *argp1 = 0 ;
31539 int res1 = 0 ;
31540 long val2 ;
31541 int ecode2 = 0 ;
31542 wxColour temp3 ;
31543 PyObject * obj0 = 0 ;
31544 PyObject * obj1 = 0 ;
31545 PyObject * obj2 = 0 ;
31546 char * kwnames[] = {
31547 (char *) "self",(char *) "item",(char *) "col", NULL
31548 };
31549
31550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31552 if (!SWIG_IsOK(res1)) {
31553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31554 }
31555 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31556 ecode2 = SWIG_AsVal_long(obj1, &val2);
31557 if (!SWIG_IsOK(ecode2)) {
31558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31559 }
31560 arg2 = static_cast< long >(val2);
31561 {
31562 arg3 = &temp3;
31563 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31564 }
31565 {
31566 PyThreadState* __tstate = wxPyBeginAllowThreads();
31567 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31568 wxPyEndAllowThreads(__tstate);
31569 if (PyErr_Occurred()) SWIG_fail;
31570 }
31571 resultobj = SWIG_Py_Void();
31572 return resultobj;
31573 fail:
31574 return NULL;
31575 }
31576
31577
31578 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31579 PyObject *resultobj = 0;
31580 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31581 long arg2 ;
31582 wxColour result;
31583 void *argp1 = 0 ;
31584 int res1 = 0 ;
31585 long val2 ;
31586 int ecode2 = 0 ;
31587 PyObject * obj0 = 0 ;
31588 PyObject * obj1 = 0 ;
31589 char * kwnames[] = {
31590 (char *) "self",(char *) "item", NULL
31591 };
31592
31593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31595 if (!SWIG_IsOK(res1)) {
31596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31597 }
31598 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31599 ecode2 = SWIG_AsVal_long(obj1, &val2);
31600 if (!SWIG_IsOK(ecode2)) {
31601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31602 }
31603 arg2 = static_cast< long >(val2);
31604 {
31605 PyThreadState* __tstate = wxPyBeginAllowThreads();
31606 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31607 wxPyEndAllowThreads(__tstate);
31608 if (PyErr_Occurred()) SWIG_fail;
31609 }
31610 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31611 return resultobj;
31612 fail:
31613 return NULL;
31614 }
31615
31616
31617 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31618 PyObject *resultobj = 0;
31619 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31620 long arg2 ;
31621 wxFont *arg3 = 0 ;
31622 void *argp1 = 0 ;
31623 int res1 = 0 ;
31624 long val2 ;
31625 int ecode2 = 0 ;
31626 void *argp3 = 0 ;
31627 int res3 = 0 ;
31628 PyObject * obj0 = 0 ;
31629 PyObject * obj1 = 0 ;
31630 PyObject * obj2 = 0 ;
31631 char * kwnames[] = {
31632 (char *) "self",(char *) "item",(char *) "f", NULL
31633 };
31634
31635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31637 if (!SWIG_IsOK(res1)) {
31638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31639 }
31640 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31641 ecode2 = SWIG_AsVal_long(obj1, &val2);
31642 if (!SWIG_IsOK(ecode2)) {
31643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31644 }
31645 arg2 = static_cast< long >(val2);
31646 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31647 if (!SWIG_IsOK(res3)) {
31648 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31649 }
31650 if (!argp3) {
31651 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31652 }
31653 arg3 = reinterpret_cast< wxFont * >(argp3);
31654 {
31655 PyThreadState* __tstate = wxPyBeginAllowThreads();
31656 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31657 wxPyEndAllowThreads(__tstate);
31658 if (PyErr_Occurred()) SWIG_fail;
31659 }
31660 resultobj = SWIG_Py_Void();
31661 return resultobj;
31662 fail:
31663 return NULL;
31664 }
31665
31666
31667 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31668 PyObject *resultobj = 0;
31669 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31670 long arg2 ;
31671 wxFont result;
31672 void *argp1 = 0 ;
31673 int res1 = 0 ;
31674 long val2 ;
31675 int ecode2 = 0 ;
31676 PyObject * obj0 = 0 ;
31677 PyObject * obj1 = 0 ;
31678 char * kwnames[] = {
31679 (char *) "self",(char *) "item", NULL
31680 };
31681
31682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31684 if (!SWIG_IsOK(res1)) {
31685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31686 }
31687 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31688 ecode2 = SWIG_AsVal_long(obj1, &val2);
31689 if (!SWIG_IsOK(ecode2)) {
31690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31691 }
31692 arg2 = static_cast< long >(val2);
31693 {
31694 PyThreadState* __tstate = wxPyBeginAllowThreads();
31695 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31696 wxPyEndAllowThreads(__tstate);
31697 if (PyErr_Occurred()) SWIG_fail;
31698 }
31699 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31700 return resultobj;
31701 fail:
31702 return NULL;
31703 }
31704
31705
31706 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31707 PyObject *resultobj = 0;
31708 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31709 PyObject *arg2 = (PyObject *) 0 ;
31710 bool result;
31711 void *argp1 = 0 ;
31712 int res1 = 0 ;
31713 PyObject * obj0 = 0 ;
31714 PyObject * obj1 = 0 ;
31715 char * kwnames[] = {
31716 (char *) "self",(char *) "func", NULL
31717 };
31718
31719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31721 if (!SWIG_IsOK(res1)) {
31722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31723 }
31724 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31725 arg2 = obj1;
31726 {
31727 PyThreadState* __tstate = wxPyBeginAllowThreads();
31728 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31729 wxPyEndAllowThreads(__tstate);
31730 if (PyErr_Occurred()) SWIG_fail;
31731 }
31732 {
31733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31734 }
31735 return resultobj;
31736 fail:
31737 return NULL;
31738 }
31739
31740
31741 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31742 PyObject *resultobj = 0;
31743 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31744 wxWindow *result = 0 ;
31745 void *argp1 = 0 ;
31746 int res1 = 0 ;
31747 PyObject *swig_obj[1] ;
31748
31749 if (!args) SWIG_fail;
31750 swig_obj[0] = args;
31751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31752 if (!SWIG_IsOK(res1)) {
31753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31754 }
31755 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31756 {
31757 PyThreadState* __tstate = wxPyBeginAllowThreads();
31758 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31759 wxPyEndAllowThreads(__tstate);
31760 if (PyErr_Occurred()) SWIG_fail;
31761 }
31762 {
31763 resultobj = wxPyMake_wxObject(result, 0);
31764 }
31765 return resultobj;
31766 fail:
31767 return NULL;
31768 }
31769
31770
31771 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31772 PyObject *resultobj = 0;
31773 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31774 SwigValueWrapper<wxVisualAttributes > result;
31775 int val1 ;
31776 int ecode1 = 0 ;
31777 PyObject * obj0 = 0 ;
31778 char * kwnames[] = {
31779 (char *) "variant", NULL
31780 };
31781
31782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31783 if (obj0) {
31784 ecode1 = SWIG_AsVal_int(obj0, &val1);
31785 if (!SWIG_IsOK(ecode1)) {
31786 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31787 }
31788 arg1 = static_cast< wxWindowVariant >(val1);
31789 }
31790 {
31791 if (!wxPyCheckForApp()) SWIG_fail;
31792 PyThreadState* __tstate = wxPyBeginAllowThreads();
31793 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31794 wxPyEndAllowThreads(__tstate);
31795 if (PyErr_Occurred()) SWIG_fail;
31796 }
31797 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31798 return resultobj;
31799 fail:
31800 return NULL;
31801 }
31802
31803
31804 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31805 PyObject *obj;
31806 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31807 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31808 return SWIG_Py_Void();
31809 }
31810
31811 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31812 return SWIG_Python_InitShadowInstance(args);
31813 }
31814
31815 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31816 PyObject *resultobj = 0;
31817 wxWindow *arg1 = (wxWindow *) 0 ;
31818 int arg2 = (int) -1 ;
31819 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31820 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31821 wxSize const &arg4_defvalue = wxDefaultSize ;
31822 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31823 long arg5 = (long) wxLC_REPORT ;
31824 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31825 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31826 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31827 wxString *arg7 = (wxString *) &arg7_defvalue ;
31828 wxListView *result = 0 ;
31829 void *argp1 = 0 ;
31830 int res1 = 0 ;
31831 int val2 ;
31832 int ecode2 = 0 ;
31833 wxPoint temp3 ;
31834 wxSize temp4 ;
31835 long val5 ;
31836 int ecode5 = 0 ;
31837 void *argp6 = 0 ;
31838 int res6 = 0 ;
31839 bool temp7 = false ;
31840 PyObject * obj0 = 0 ;
31841 PyObject * obj1 = 0 ;
31842 PyObject * obj2 = 0 ;
31843 PyObject * obj3 = 0 ;
31844 PyObject * obj4 = 0 ;
31845 PyObject * obj5 = 0 ;
31846 PyObject * obj6 = 0 ;
31847 char * kwnames[] = {
31848 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31849 };
31850
31851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31853 if (!SWIG_IsOK(res1)) {
31854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31855 }
31856 arg1 = reinterpret_cast< wxWindow * >(argp1);
31857 if (obj1) {
31858 ecode2 = SWIG_AsVal_int(obj1, &val2);
31859 if (!SWIG_IsOK(ecode2)) {
31860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31861 }
31862 arg2 = static_cast< int >(val2);
31863 }
31864 if (obj2) {
31865 {
31866 arg3 = &temp3;
31867 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31868 }
31869 }
31870 if (obj3) {
31871 {
31872 arg4 = &temp4;
31873 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31874 }
31875 }
31876 if (obj4) {
31877 ecode5 = SWIG_AsVal_long(obj4, &val5);
31878 if (!SWIG_IsOK(ecode5)) {
31879 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31880 }
31881 arg5 = static_cast< long >(val5);
31882 }
31883 if (obj5) {
31884 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31885 if (!SWIG_IsOK(res6)) {
31886 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31887 }
31888 if (!argp6) {
31889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31890 }
31891 arg6 = reinterpret_cast< wxValidator * >(argp6);
31892 }
31893 if (obj6) {
31894 {
31895 arg7 = wxString_in_helper(obj6);
31896 if (arg7 == NULL) SWIG_fail;
31897 temp7 = true;
31898 }
31899 }
31900 {
31901 if (!wxPyCheckForApp()) SWIG_fail;
31902 PyThreadState* __tstate = wxPyBeginAllowThreads();
31903 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31904 wxPyEndAllowThreads(__tstate);
31905 if (PyErr_Occurred()) SWIG_fail;
31906 }
31907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31908 {
31909 if (temp7)
31910 delete arg7;
31911 }
31912 return resultobj;
31913 fail:
31914 {
31915 if (temp7)
31916 delete arg7;
31917 }
31918 return NULL;
31919 }
31920
31921
31922 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31923 PyObject *resultobj = 0;
31924 wxListView *result = 0 ;
31925
31926 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31927 {
31928 if (!wxPyCheckForApp()) SWIG_fail;
31929 PyThreadState* __tstate = wxPyBeginAllowThreads();
31930 result = (wxListView *)new wxListView();
31931 wxPyEndAllowThreads(__tstate);
31932 if (PyErr_Occurred()) SWIG_fail;
31933 }
31934 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31935 return resultobj;
31936 fail:
31937 return NULL;
31938 }
31939
31940
31941 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31942 PyObject *resultobj = 0;
31943 wxListView *arg1 = (wxListView *) 0 ;
31944 wxWindow *arg2 = (wxWindow *) 0 ;
31945 int arg3 = (int) -1 ;
31946 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31947 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31948 wxSize const &arg5_defvalue = wxDefaultSize ;
31949 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31950 long arg6 = (long) wxLC_REPORT ;
31951 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31952 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31953 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31954 wxString *arg8 = (wxString *) &arg8_defvalue ;
31955 bool result;
31956 void *argp1 = 0 ;
31957 int res1 = 0 ;
31958 void *argp2 = 0 ;
31959 int res2 = 0 ;
31960 int val3 ;
31961 int ecode3 = 0 ;
31962 wxPoint temp4 ;
31963 wxSize temp5 ;
31964 long val6 ;
31965 int ecode6 = 0 ;
31966 void *argp7 = 0 ;
31967 int res7 = 0 ;
31968 bool temp8 = false ;
31969 PyObject * obj0 = 0 ;
31970 PyObject * obj1 = 0 ;
31971 PyObject * obj2 = 0 ;
31972 PyObject * obj3 = 0 ;
31973 PyObject * obj4 = 0 ;
31974 PyObject * obj5 = 0 ;
31975 PyObject * obj6 = 0 ;
31976 PyObject * obj7 = 0 ;
31977 char * kwnames[] = {
31978 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31979 };
31980
31981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31983 if (!SWIG_IsOK(res1)) {
31984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31985 }
31986 arg1 = reinterpret_cast< wxListView * >(argp1);
31987 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31988 if (!SWIG_IsOK(res2)) {
31989 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31990 }
31991 arg2 = reinterpret_cast< wxWindow * >(argp2);
31992 if (obj2) {
31993 ecode3 = SWIG_AsVal_int(obj2, &val3);
31994 if (!SWIG_IsOK(ecode3)) {
31995 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31996 }
31997 arg3 = static_cast< int >(val3);
31998 }
31999 if (obj3) {
32000 {
32001 arg4 = &temp4;
32002 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32003 }
32004 }
32005 if (obj4) {
32006 {
32007 arg5 = &temp5;
32008 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32009 }
32010 }
32011 if (obj5) {
32012 ecode6 = SWIG_AsVal_long(obj5, &val6);
32013 if (!SWIG_IsOK(ecode6)) {
32014 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32015 }
32016 arg6 = static_cast< long >(val6);
32017 }
32018 if (obj6) {
32019 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32020 if (!SWIG_IsOK(res7)) {
32021 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32022 }
32023 if (!argp7) {
32024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32025 }
32026 arg7 = reinterpret_cast< wxValidator * >(argp7);
32027 }
32028 if (obj7) {
32029 {
32030 arg8 = wxString_in_helper(obj7);
32031 if (arg8 == NULL) SWIG_fail;
32032 temp8 = true;
32033 }
32034 }
32035 {
32036 PyThreadState* __tstate = wxPyBeginAllowThreads();
32037 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32038 wxPyEndAllowThreads(__tstate);
32039 if (PyErr_Occurred()) SWIG_fail;
32040 }
32041 {
32042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32043 }
32044 {
32045 if (temp8)
32046 delete arg8;
32047 }
32048 return resultobj;
32049 fail:
32050 {
32051 if (temp8)
32052 delete arg8;
32053 }
32054 return NULL;
32055 }
32056
32057
32058 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32059 PyObject *resultobj = 0;
32060 wxListView *arg1 = (wxListView *) 0 ;
32061 long arg2 ;
32062 bool arg3 = (bool) true ;
32063 void *argp1 = 0 ;
32064 int res1 = 0 ;
32065 long val2 ;
32066 int ecode2 = 0 ;
32067 bool val3 ;
32068 int ecode3 = 0 ;
32069 PyObject * obj0 = 0 ;
32070 PyObject * obj1 = 0 ;
32071 PyObject * obj2 = 0 ;
32072 char * kwnames[] = {
32073 (char *) "self",(char *) "n",(char *) "on", NULL
32074 };
32075
32076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32078 if (!SWIG_IsOK(res1)) {
32079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32080 }
32081 arg1 = reinterpret_cast< wxListView * >(argp1);
32082 ecode2 = SWIG_AsVal_long(obj1, &val2);
32083 if (!SWIG_IsOK(ecode2)) {
32084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32085 }
32086 arg2 = static_cast< long >(val2);
32087 if (obj2) {
32088 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32089 if (!SWIG_IsOK(ecode3)) {
32090 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32091 }
32092 arg3 = static_cast< bool >(val3);
32093 }
32094 {
32095 PyThreadState* __tstate = wxPyBeginAllowThreads();
32096 (arg1)->Select(arg2,arg3);
32097 wxPyEndAllowThreads(__tstate);
32098 if (PyErr_Occurred()) SWIG_fail;
32099 }
32100 resultobj = SWIG_Py_Void();
32101 return resultobj;
32102 fail:
32103 return NULL;
32104 }
32105
32106
32107 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32108 PyObject *resultobj = 0;
32109 wxListView *arg1 = (wxListView *) 0 ;
32110 long arg2 ;
32111 void *argp1 = 0 ;
32112 int res1 = 0 ;
32113 long val2 ;
32114 int ecode2 = 0 ;
32115 PyObject * obj0 = 0 ;
32116 PyObject * obj1 = 0 ;
32117 char * kwnames[] = {
32118 (char *) "self",(char *) "index", NULL
32119 };
32120
32121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32123 if (!SWIG_IsOK(res1)) {
32124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32125 }
32126 arg1 = reinterpret_cast< wxListView * >(argp1);
32127 ecode2 = SWIG_AsVal_long(obj1, &val2);
32128 if (!SWIG_IsOK(ecode2)) {
32129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32130 }
32131 arg2 = static_cast< long >(val2);
32132 {
32133 PyThreadState* __tstate = wxPyBeginAllowThreads();
32134 (arg1)->Focus(arg2);
32135 wxPyEndAllowThreads(__tstate);
32136 if (PyErr_Occurred()) SWIG_fail;
32137 }
32138 resultobj = SWIG_Py_Void();
32139 return resultobj;
32140 fail:
32141 return NULL;
32142 }
32143
32144
32145 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32146 PyObject *resultobj = 0;
32147 wxListView *arg1 = (wxListView *) 0 ;
32148 long result;
32149 void *argp1 = 0 ;
32150 int res1 = 0 ;
32151 PyObject *swig_obj[1] ;
32152
32153 if (!args) SWIG_fail;
32154 swig_obj[0] = args;
32155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32156 if (!SWIG_IsOK(res1)) {
32157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32158 }
32159 arg1 = reinterpret_cast< wxListView * >(argp1);
32160 {
32161 PyThreadState* __tstate = wxPyBeginAllowThreads();
32162 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32163 wxPyEndAllowThreads(__tstate);
32164 if (PyErr_Occurred()) SWIG_fail;
32165 }
32166 resultobj = SWIG_From_long(static_cast< long >(result));
32167 return resultobj;
32168 fail:
32169 return NULL;
32170 }
32171
32172
32173 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32174 PyObject *resultobj = 0;
32175 wxListView *arg1 = (wxListView *) 0 ;
32176 long arg2 ;
32177 long result;
32178 void *argp1 = 0 ;
32179 int res1 = 0 ;
32180 long val2 ;
32181 int ecode2 = 0 ;
32182 PyObject * obj0 = 0 ;
32183 PyObject * obj1 = 0 ;
32184 char * kwnames[] = {
32185 (char *) "self",(char *) "item", NULL
32186 };
32187
32188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32190 if (!SWIG_IsOK(res1)) {
32191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32192 }
32193 arg1 = reinterpret_cast< wxListView * >(argp1);
32194 ecode2 = SWIG_AsVal_long(obj1, &val2);
32195 if (!SWIG_IsOK(ecode2)) {
32196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32197 }
32198 arg2 = static_cast< long >(val2);
32199 {
32200 PyThreadState* __tstate = wxPyBeginAllowThreads();
32201 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32202 wxPyEndAllowThreads(__tstate);
32203 if (PyErr_Occurred()) SWIG_fail;
32204 }
32205 resultobj = SWIG_From_long(static_cast< long >(result));
32206 return resultobj;
32207 fail:
32208 return NULL;
32209 }
32210
32211
32212 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32213 PyObject *resultobj = 0;
32214 wxListView *arg1 = (wxListView *) 0 ;
32215 long result;
32216 void *argp1 = 0 ;
32217 int res1 = 0 ;
32218 PyObject *swig_obj[1] ;
32219
32220 if (!args) SWIG_fail;
32221 swig_obj[0] = args;
32222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32223 if (!SWIG_IsOK(res1)) {
32224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32225 }
32226 arg1 = reinterpret_cast< wxListView * >(argp1);
32227 {
32228 PyThreadState* __tstate = wxPyBeginAllowThreads();
32229 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32230 wxPyEndAllowThreads(__tstate);
32231 if (PyErr_Occurred()) SWIG_fail;
32232 }
32233 resultobj = SWIG_From_long(static_cast< long >(result));
32234 return resultobj;
32235 fail:
32236 return NULL;
32237 }
32238
32239
32240 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32241 PyObject *resultobj = 0;
32242 wxListView *arg1 = (wxListView *) 0 ;
32243 long arg2 ;
32244 bool result;
32245 void *argp1 = 0 ;
32246 int res1 = 0 ;
32247 long val2 ;
32248 int ecode2 = 0 ;
32249 PyObject * obj0 = 0 ;
32250 PyObject * obj1 = 0 ;
32251 char * kwnames[] = {
32252 (char *) "self",(char *) "index", NULL
32253 };
32254
32255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32257 if (!SWIG_IsOK(res1)) {
32258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32259 }
32260 arg1 = reinterpret_cast< wxListView * >(argp1);
32261 ecode2 = SWIG_AsVal_long(obj1, &val2);
32262 if (!SWIG_IsOK(ecode2)) {
32263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32264 }
32265 arg2 = static_cast< long >(val2);
32266 {
32267 PyThreadState* __tstate = wxPyBeginAllowThreads();
32268 result = (bool)(arg1)->IsSelected(arg2);
32269 wxPyEndAllowThreads(__tstate);
32270 if (PyErr_Occurred()) SWIG_fail;
32271 }
32272 {
32273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32274 }
32275 return resultobj;
32276 fail:
32277 return NULL;
32278 }
32279
32280
32281 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32282 PyObject *resultobj = 0;
32283 wxListView *arg1 = (wxListView *) 0 ;
32284 int arg2 ;
32285 int arg3 ;
32286 void *argp1 = 0 ;
32287 int res1 = 0 ;
32288 int val2 ;
32289 int ecode2 = 0 ;
32290 int val3 ;
32291 int ecode3 = 0 ;
32292 PyObject * obj0 = 0 ;
32293 PyObject * obj1 = 0 ;
32294 PyObject * obj2 = 0 ;
32295 char * kwnames[] = {
32296 (char *) "self",(char *) "col",(char *) "image", NULL
32297 };
32298
32299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32301 if (!SWIG_IsOK(res1)) {
32302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32303 }
32304 arg1 = reinterpret_cast< wxListView * >(argp1);
32305 ecode2 = SWIG_AsVal_int(obj1, &val2);
32306 if (!SWIG_IsOK(ecode2)) {
32307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32308 }
32309 arg2 = static_cast< int >(val2);
32310 ecode3 = SWIG_AsVal_int(obj2, &val3);
32311 if (!SWIG_IsOK(ecode3)) {
32312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32313 }
32314 arg3 = static_cast< int >(val3);
32315 {
32316 PyThreadState* __tstate = wxPyBeginAllowThreads();
32317 (arg1)->SetColumnImage(arg2,arg3);
32318 wxPyEndAllowThreads(__tstate);
32319 if (PyErr_Occurred()) SWIG_fail;
32320 }
32321 resultobj = SWIG_Py_Void();
32322 return resultobj;
32323 fail:
32324 return NULL;
32325 }
32326
32327
32328 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32329 PyObject *resultobj = 0;
32330 wxListView *arg1 = (wxListView *) 0 ;
32331 int arg2 ;
32332 void *argp1 = 0 ;
32333 int res1 = 0 ;
32334 int val2 ;
32335 int ecode2 = 0 ;
32336 PyObject * obj0 = 0 ;
32337 PyObject * obj1 = 0 ;
32338 char * kwnames[] = {
32339 (char *) "self",(char *) "col", NULL
32340 };
32341
32342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32344 if (!SWIG_IsOK(res1)) {
32345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32346 }
32347 arg1 = reinterpret_cast< wxListView * >(argp1);
32348 ecode2 = SWIG_AsVal_int(obj1, &val2);
32349 if (!SWIG_IsOK(ecode2)) {
32350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32351 }
32352 arg2 = static_cast< int >(val2);
32353 {
32354 PyThreadState* __tstate = wxPyBeginAllowThreads();
32355 (arg1)->ClearColumnImage(arg2);
32356 wxPyEndAllowThreads(__tstate);
32357 if (PyErr_Occurred()) SWIG_fail;
32358 }
32359 resultobj = SWIG_Py_Void();
32360 return resultobj;
32361 fail:
32362 return NULL;
32363 }
32364
32365
32366 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32367 PyObject *obj;
32368 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32369 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32370 return SWIG_Py_Void();
32371 }
32372
32373 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32374 return SWIG_Python_InitShadowInstance(args);
32375 }
32376
32377 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32378 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32379 return 1;
32380 }
32381
32382
32383 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32384 PyObject *pyobj = 0;
32385
32386 {
32387 #if wxUSE_UNICODE
32388 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32389 #else
32390 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32391 #endif
32392 }
32393 return pyobj;
32394 }
32395
32396
32397 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32398 PyObject *resultobj = 0;
32399 wxTreeItemId *result = 0 ;
32400
32401 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32402 {
32403 PyThreadState* __tstate = wxPyBeginAllowThreads();
32404 result = (wxTreeItemId *)new wxTreeItemId();
32405 wxPyEndAllowThreads(__tstate);
32406 if (PyErr_Occurred()) SWIG_fail;
32407 }
32408 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32409 return resultobj;
32410 fail:
32411 return NULL;
32412 }
32413
32414
32415 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32416 PyObject *resultobj = 0;
32417 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32418 void *argp1 = 0 ;
32419 int res1 = 0 ;
32420 PyObject *swig_obj[1] ;
32421
32422 if (!args) SWIG_fail;
32423 swig_obj[0] = args;
32424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32425 if (!SWIG_IsOK(res1)) {
32426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32427 }
32428 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32429 {
32430 PyThreadState* __tstate = wxPyBeginAllowThreads();
32431 delete arg1;
32432
32433 wxPyEndAllowThreads(__tstate);
32434 if (PyErr_Occurred()) SWIG_fail;
32435 }
32436 resultobj = SWIG_Py_Void();
32437 return resultobj;
32438 fail:
32439 return NULL;
32440 }
32441
32442
32443 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32444 PyObject *resultobj = 0;
32445 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32446 bool result;
32447 void *argp1 = 0 ;
32448 int res1 = 0 ;
32449 PyObject *swig_obj[1] ;
32450
32451 if (!args) SWIG_fail;
32452 swig_obj[0] = args;
32453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32454 if (!SWIG_IsOK(res1)) {
32455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32456 }
32457 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32458 {
32459 PyThreadState* __tstate = wxPyBeginAllowThreads();
32460 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32461 wxPyEndAllowThreads(__tstate);
32462 if (PyErr_Occurred()) SWIG_fail;
32463 }
32464 {
32465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32466 }
32467 return resultobj;
32468 fail:
32469 return NULL;
32470 }
32471
32472
32473 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32474 PyObject *resultobj = 0;
32475 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32476 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32477 bool result;
32478 void *argp1 = 0 ;
32479 int res1 = 0 ;
32480 void *argp2 = 0 ;
32481 int res2 = 0 ;
32482 PyObject * obj0 = 0 ;
32483 PyObject * obj1 = 0 ;
32484 char * kwnames[] = {
32485 (char *) "self",(char *) "other", NULL
32486 };
32487
32488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32490 if (!SWIG_IsOK(res1)) {
32491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32492 }
32493 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32494 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32495 if (!SWIG_IsOK(res2)) {
32496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32497 }
32498 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32499 {
32500 PyThreadState* __tstate = wxPyBeginAllowThreads();
32501 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32502 wxPyEndAllowThreads(__tstate);
32503 if (PyErr_Occurred()) SWIG_fail;
32504 }
32505 {
32506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32507 }
32508 return resultobj;
32509 fail:
32510 return NULL;
32511 }
32512
32513
32514 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32515 PyObject *resultobj = 0;
32516 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32517 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32518 bool result;
32519 void *argp1 = 0 ;
32520 int res1 = 0 ;
32521 void *argp2 = 0 ;
32522 int res2 = 0 ;
32523 PyObject * obj0 = 0 ;
32524 PyObject * obj1 = 0 ;
32525 char * kwnames[] = {
32526 (char *) "self",(char *) "other", NULL
32527 };
32528
32529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32531 if (!SWIG_IsOK(res1)) {
32532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32533 }
32534 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32535 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32536 if (!SWIG_IsOK(res2)) {
32537 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32538 }
32539 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32540 {
32541 PyThreadState* __tstate = wxPyBeginAllowThreads();
32542 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32543 wxPyEndAllowThreads(__tstate);
32544 if (PyErr_Occurred()) SWIG_fail;
32545 }
32546 {
32547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32548 }
32549 return resultobj;
32550 fail:
32551 return NULL;
32552 }
32553
32554
32555 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32556 PyObject *resultobj = 0;
32557 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32558 void *arg2 = (void *) 0 ;
32559 void *argp1 = 0 ;
32560 int res1 = 0 ;
32561 int res2 ;
32562 PyObject *swig_obj[2] ;
32563
32564 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32566 if (!SWIG_IsOK(res1)) {
32567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32568 }
32569 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32570 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32571 if (!SWIG_IsOK(res2)) {
32572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32573 }
32574 if (arg1) (arg1)->m_pItem = arg2;
32575
32576 resultobj = SWIG_Py_Void();
32577 return resultobj;
32578 fail:
32579 return NULL;
32580 }
32581
32582
32583 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32584 PyObject *resultobj = 0;
32585 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32586 void *result = 0 ;
32587 void *argp1 = 0 ;
32588 int res1 = 0 ;
32589 PyObject *swig_obj[1] ;
32590
32591 if (!args) SWIG_fail;
32592 swig_obj[0] = args;
32593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32594 if (!SWIG_IsOK(res1)) {
32595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32596 }
32597 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32598 result = (void *) ((arg1)->m_pItem);
32599 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32600 return resultobj;
32601 fail:
32602 return NULL;
32603 }
32604
32605
32606 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32607 PyObject *obj;
32608 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32609 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32610 return SWIG_Py_Void();
32611 }
32612
32613 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32614 return SWIG_Python_InitShadowInstance(args);
32615 }
32616
32617 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32618 PyObject *resultobj = 0;
32619 PyObject *arg1 = (PyObject *) NULL ;
32620 wxPyTreeItemData *result = 0 ;
32621 PyObject * obj0 = 0 ;
32622 char * kwnames[] = {
32623 (char *) "obj", NULL
32624 };
32625
32626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32627 if (obj0) {
32628 arg1 = obj0;
32629 }
32630 {
32631 PyThreadState* __tstate = wxPyBeginAllowThreads();
32632 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32633 wxPyEndAllowThreads(__tstate);
32634 if (PyErr_Occurred()) SWIG_fail;
32635 }
32636 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32637 return resultobj;
32638 fail:
32639 return NULL;
32640 }
32641
32642
32643 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32644 PyObject *resultobj = 0;
32645 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32646 void *argp1 = 0 ;
32647 int res1 = 0 ;
32648 PyObject *swig_obj[1] ;
32649
32650 if (!args) SWIG_fail;
32651 swig_obj[0] = args;
32652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32653 if (!SWIG_IsOK(res1)) {
32654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32655 }
32656 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32657 {
32658 PyThreadState* __tstate = wxPyBeginAllowThreads();
32659 delete arg1;
32660
32661 wxPyEndAllowThreads(__tstate);
32662 if (PyErr_Occurred()) SWIG_fail;
32663 }
32664 resultobj = SWIG_Py_Void();
32665 return resultobj;
32666 fail:
32667 return NULL;
32668 }
32669
32670
32671 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32672 PyObject *resultobj = 0;
32673 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32674 PyObject *result = 0 ;
32675 void *argp1 = 0 ;
32676 int res1 = 0 ;
32677 PyObject *swig_obj[1] ;
32678
32679 if (!args) SWIG_fail;
32680 swig_obj[0] = args;
32681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32682 if (!SWIG_IsOK(res1)) {
32683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32684 }
32685 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32686 {
32687 PyThreadState* __tstate = wxPyBeginAllowThreads();
32688 result = (PyObject *)(arg1)->GetData();
32689 wxPyEndAllowThreads(__tstate);
32690 if (PyErr_Occurred()) SWIG_fail;
32691 }
32692 resultobj = result;
32693 return resultobj;
32694 fail:
32695 return NULL;
32696 }
32697
32698
32699 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32700 PyObject *resultobj = 0;
32701 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32702 PyObject *arg2 = (PyObject *) 0 ;
32703 void *argp1 = 0 ;
32704 int res1 = 0 ;
32705 PyObject * obj0 = 0 ;
32706 PyObject * obj1 = 0 ;
32707 char * kwnames[] = {
32708 (char *) "self",(char *) "obj", NULL
32709 };
32710
32711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32713 if (!SWIG_IsOK(res1)) {
32714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32715 }
32716 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32717 arg2 = obj1;
32718 {
32719 PyThreadState* __tstate = wxPyBeginAllowThreads();
32720 (arg1)->SetData(arg2);
32721 wxPyEndAllowThreads(__tstate);
32722 if (PyErr_Occurred()) SWIG_fail;
32723 }
32724 resultobj = SWIG_Py_Void();
32725 return resultobj;
32726 fail:
32727 return NULL;
32728 }
32729
32730
32731 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32732 PyObject *resultobj = 0;
32733 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32734 wxTreeItemId *result = 0 ;
32735 void *argp1 = 0 ;
32736 int res1 = 0 ;
32737 PyObject *swig_obj[1] ;
32738
32739 if (!args) SWIG_fail;
32740 swig_obj[0] = args;
32741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32742 if (!SWIG_IsOK(res1)) {
32743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32744 }
32745 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32746 {
32747 PyThreadState* __tstate = wxPyBeginAllowThreads();
32748 {
32749 wxTreeItemId const &_result_ref = (arg1)->GetId();
32750 result = (wxTreeItemId *) &_result_ref;
32751 }
32752 wxPyEndAllowThreads(__tstate);
32753 if (PyErr_Occurred()) SWIG_fail;
32754 }
32755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32756 return resultobj;
32757 fail:
32758 return NULL;
32759 }
32760
32761
32762 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32763 PyObject *resultobj = 0;
32764 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32765 wxTreeItemId *arg2 = 0 ;
32766 void *argp1 = 0 ;
32767 int res1 = 0 ;
32768 void *argp2 = 0 ;
32769 int res2 = 0 ;
32770 PyObject * obj0 = 0 ;
32771 PyObject * obj1 = 0 ;
32772 char * kwnames[] = {
32773 (char *) "self",(char *) "id", NULL
32774 };
32775
32776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32778 if (!SWIG_IsOK(res1)) {
32779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32780 }
32781 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32782 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32783 if (!SWIG_IsOK(res2)) {
32784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32785 }
32786 if (!argp2) {
32787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32788 }
32789 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32790 {
32791 PyThreadState* __tstate = wxPyBeginAllowThreads();
32792 (arg1)->SetId((wxTreeItemId const &)*arg2);
32793 wxPyEndAllowThreads(__tstate);
32794 if (PyErr_Occurred()) SWIG_fail;
32795 }
32796 resultobj = SWIG_Py_Void();
32797 return resultobj;
32798 fail:
32799 return NULL;
32800 }
32801
32802
32803 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32804 PyObject *resultobj = 0;
32805 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32806 void *argp1 = 0 ;
32807 int res1 = 0 ;
32808 PyObject *swig_obj[1] ;
32809
32810 if (!args) SWIG_fail;
32811 swig_obj[0] = args;
32812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32813 if (!SWIG_IsOK(res1)) {
32814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32815 }
32816 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32817 {
32818 PyThreadState* __tstate = wxPyBeginAllowThreads();
32819 wxPyTreeItemData_Destroy(arg1);
32820 wxPyEndAllowThreads(__tstate);
32821 if (PyErr_Occurred()) SWIG_fail;
32822 }
32823 resultobj = SWIG_Py_Void();
32824 return resultobj;
32825 fail:
32826 return NULL;
32827 }
32828
32829
32830 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32831 PyObject *obj;
32832 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32833 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32834 return SWIG_Py_Void();
32835 }
32836
32837 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32838 return SWIG_Python_InitShadowInstance(args);
32839 }
32840
32841 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
32842 {
32843 void *argp = 0;
32844 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32845 if (!SWIG_IsOK(res)) {
32846 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32847 }
32848 if (!argp) {
32849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32850 } else {
32851 wxTreeItemId * temp;
32852 temp = reinterpret_cast< wxTreeItemId * >(argp);
32853 wxNullTreeItemId = *temp;
32854 if (SWIG_IsNewObj(res)) delete temp;
32855 }
32856 }
32857 return 0;
32858 fail:
32859 return 1;
32860 }
32861
32862
32863 SWIGINTERN PyObject *NullTreeItemId_get(void) {
32864 PyObject *pyobj = 0;
32865
32866 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
32867 return pyobj;
32868 }
32869
32870
32871 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32872 PyObject *resultobj = 0;
32873 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32874 int arg2 = (int) 0 ;
32875 wxTreeEvent *result = 0 ;
32876 int val1 ;
32877 int ecode1 = 0 ;
32878 int val2 ;
32879 int ecode2 = 0 ;
32880
32881 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
32882 if (swig_obj[0]) {
32883 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
32884 if (!SWIG_IsOK(ecode1)) {
32885 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32886 }
32887 arg1 = static_cast< wxEventType >(val1);
32888 }
32889 if (swig_obj[1]) {
32890 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32891 if (!SWIG_IsOK(ecode2)) {
32892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32893 }
32894 arg2 = static_cast< int >(val2);
32895 }
32896 {
32897 PyThreadState* __tstate = wxPyBeginAllowThreads();
32898 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32899 wxPyEndAllowThreads(__tstate);
32900 if (PyErr_Occurred()) SWIG_fail;
32901 }
32902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32903 return resultobj;
32904 fail:
32905 return NULL;
32906 }
32907
32908
32909 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32910 PyObject *resultobj = 0;
32911 wxEventType arg1 ;
32912 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
32913 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
32914 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
32915 wxTreeEvent *result = 0 ;
32916 int val1 ;
32917 int ecode1 = 0 ;
32918 void *argp2 = 0 ;
32919 int res2 = 0 ;
32920 void *argp3 = 0 ;
32921 int res3 = 0 ;
32922
32923 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
32924 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
32925 if (!SWIG_IsOK(ecode1)) {
32926 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32927 }
32928 arg1 = static_cast< wxEventType >(val1);
32929 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
32930 if (!SWIG_IsOK(res2)) {
32931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
32932 }
32933 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
32934 if (swig_obj[2]) {
32935 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
32936 if (!SWIG_IsOK(res3)) {
32937 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32938 }
32939 if (!argp3) {
32940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32941 }
32942 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
32943 }
32944 {
32945 PyThreadState* __tstate = wxPyBeginAllowThreads();
32946 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
32947 wxPyEndAllowThreads(__tstate);
32948 if (PyErr_Occurred()) SWIG_fail;
32949 }
32950 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32951 return resultobj;
32952 fail:
32953 return NULL;
32954 }
32955
32956
32957 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
32958 int argc;
32959 PyObject *argv[4];
32960
32961 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
32962 --argc;
32963 if ((argc >= 0) && (argc <= 2)) {
32964 int _v = 0;
32965 if (argc > 1) {
32966 {
32967 {
32968 int res = SWIG_AsVal_int(argv[1], NULL);
32969 _v = SWIG_CheckState(res);
32970 }
32971 }
32972 if (!_v) goto check_1;
32973 }
32974 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
32975 }
32976 check_1:
32977
32978 if ((argc >= 2) && (argc <= 3)) {
32979 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
32980 }
32981
32982 fail:
32983 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
32984 return NULL;
32985 }
32986
32987
32988 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32989 PyObject *resultobj = 0;
32990 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32991 wxTreeItemId result;
32992 void *argp1 = 0 ;
32993 int res1 = 0 ;
32994 PyObject *swig_obj[1] ;
32995
32996 if (!args) SWIG_fail;
32997 swig_obj[0] = args;
32998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32999 if (!SWIG_IsOK(res1)) {
33000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33001 }
33002 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33003 {
33004 PyThreadState* __tstate = wxPyBeginAllowThreads();
33005 result = ((wxTreeEvent const *)arg1)->GetItem();
33006 wxPyEndAllowThreads(__tstate);
33007 if (PyErr_Occurred()) SWIG_fail;
33008 }
33009 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33010 return resultobj;
33011 fail:
33012 return NULL;
33013 }
33014
33015
33016 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33017 PyObject *resultobj = 0;
33018 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33019 wxTreeItemId *arg2 = 0 ;
33020 void *argp1 = 0 ;
33021 int res1 = 0 ;
33022 void *argp2 = 0 ;
33023 int res2 = 0 ;
33024 PyObject * obj0 = 0 ;
33025 PyObject * obj1 = 0 ;
33026 char * kwnames[] = {
33027 (char *) "self",(char *) "item", NULL
33028 };
33029
33030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33032 if (!SWIG_IsOK(res1)) {
33033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33034 }
33035 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33036 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33037 if (!SWIG_IsOK(res2)) {
33038 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33039 }
33040 if (!argp2) {
33041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33042 }
33043 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33044 {
33045 PyThreadState* __tstate = wxPyBeginAllowThreads();
33046 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33047 wxPyEndAllowThreads(__tstate);
33048 if (PyErr_Occurred()) SWIG_fail;
33049 }
33050 resultobj = SWIG_Py_Void();
33051 return resultobj;
33052 fail:
33053 return NULL;
33054 }
33055
33056
33057 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33058 PyObject *resultobj = 0;
33059 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33060 wxTreeItemId result;
33061 void *argp1 = 0 ;
33062 int res1 = 0 ;
33063 PyObject *swig_obj[1] ;
33064
33065 if (!args) SWIG_fail;
33066 swig_obj[0] = args;
33067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33068 if (!SWIG_IsOK(res1)) {
33069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33070 }
33071 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33072 {
33073 PyThreadState* __tstate = wxPyBeginAllowThreads();
33074 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33075 wxPyEndAllowThreads(__tstate);
33076 if (PyErr_Occurred()) SWIG_fail;
33077 }
33078 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33079 return resultobj;
33080 fail:
33081 return NULL;
33082 }
33083
33084
33085 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33086 PyObject *resultobj = 0;
33087 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33088 wxTreeItemId *arg2 = 0 ;
33089 void *argp1 = 0 ;
33090 int res1 = 0 ;
33091 void *argp2 = 0 ;
33092 int res2 = 0 ;
33093 PyObject * obj0 = 0 ;
33094 PyObject * obj1 = 0 ;
33095 char * kwnames[] = {
33096 (char *) "self",(char *) "item", NULL
33097 };
33098
33099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33101 if (!SWIG_IsOK(res1)) {
33102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33103 }
33104 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33105 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33106 if (!SWIG_IsOK(res2)) {
33107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33108 }
33109 if (!argp2) {
33110 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33111 }
33112 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33113 {
33114 PyThreadState* __tstate = wxPyBeginAllowThreads();
33115 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33116 wxPyEndAllowThreads(__tstate);
33117 if (PyErr_Occurred()) SWIG_fail;
33118 }
33119 resultobj = SWIG_Py_Void();
33120 return resultobj;
33121 fail:
33122 return NULL;
33123 }
33124
33125
33126 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33127 PyObject *resultobj = 0;
33128 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33129 wxPoint result;
33130 void *argp1 = 0 ;
33131 int res1 = 0 ;
33132 PyObject *swig_obj[1] ;
33133
33134 if (!args) SWIG_fail;
33135 swig_obj[0] = args;
33136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33137 if (!SWIG_IsOK(res1)) {
33138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33139 }
33140 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33141 {
33142 PyThreadState* __tstate = wxPyBeginAllowThreads();
33143 result = ((wxTreeEvent const *)arg1)->GetPoint();
33144 wxPyEndAllowThreads(__tstate);
33145 if (PyErr_Occurred()) SWIG_fail;
33146 }
33147 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33148 return resultobj;
33149 fail:
33150 return NULL;
33151 }
33152
33153
33154 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33155 PyObject *resultobj = 0;
33156 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33157 wxPoint *arg2 = 0 ;
33158 void *argp1 = 0 ;
33159 int res1 = 0 ;
33160 wxPoint temp2 ;
33161 PyObject * obj0 = 0 ;
33162 PyObject * obj1 = 0 ;
33163 char * kwnames[] = {
33164 (char *) "self",(char *) "pt", NULL
33165 };
33166
33167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33169 if (!SWIG_IsOK(res1)) {
33170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33171 }
33172 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33173 {
33174 arg2 = &temp2;
33175 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33176 }
33177 {
33178 PyThreadState* __tstate = wxPyBeginAllowThreads();
33179 (arg1)->SetPoint((wxPoint const &)*arg2);
33180 wxPyEndAllowThreads(__tstate);
33181 if (PyErr_Occurred()) SWIG_fail;
33182 }
33183 resultobj = SWIG_Py_Void();
33184 return resultobj;
33185 fail:
33186 return NULL;
33187 }
33188
33189
33190 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33191 PyObject *resultobj = 0;
33192 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33193 wxKeyEvent *result = 0 ;
33194 void *argp1 = 0 ;
33195 int res1 = 0 ;
33196 PyObject *swig_obj[1] ;
33197
33198 if (!args) SWIG_fail;
33199 swig_obj[0] = args;
33200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33201 if (!SWIG_IsOK(res1)) {
33202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33203 }
33204 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33205 {
33206 PyThreadState* __tstate = wxPyBeginAllowThreads();
33207 {
33208 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33209 result = (wxKeyEvent *) &_result_ref;
33210 }
33211 wxPyEndAllowThreads(__tstate);
33212 if (PyErr_Occurred()) SWIG_fail;
33213 }
33214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33215 return resultobj;
33216 fail:
33217 return NULL;
33218 }
33219
33220
33221 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33222 PyObject *resultobj = 0;
33223 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33224 int result;
33225 void *argp1 = 0 ;
33226 int res1 = 0 ;
33227 PyObject *swig_obj[1] ;
33228
33229 if (!args) SWIG_fail;
33230 swig_obj[0] = args;
33231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33232 if (!SWIG_IsOK(res1)) {
33233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33234 }
33235 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33236 {
33237 PyThreadState* __tstate = wxPyBeginAllowThreads();
33238 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33239 wxPyEndAllowThreads(__tstate);
33240 if (PyErr_Occurred()) SWIG_fail;
33241 }
33242 resultobj = SWIG_From_int(static_cast< int >(result));
33243 return resultobj;
33244 fail:
33245 return NULL;
33246 }
33247
33248
33249 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33250 PyObject *resultobj = 0;
33251 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33252 wxKeyEvent *arg2 = 0 ;
33253 void *argp1 = 0 ;
33254 int res1 = 0 ;
33255 void *argp2 = 0 ;
33256 int res2 = 0 ;
33257 PyObject * obj0 = 0 ;
33258 PyObject * obj1 = 0 ;
33259 char * kwnames[] = {
33260 (char *) "self",(char *) "evt", NULL
33261 };
33262
33263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33265 if (!SWIG_IsOK(res1)) {
33266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33267 }
33268 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33269 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33270 if (!SWIG_IsOK(res2)) {
33271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33272 }
33273 if (!argp2) {
33274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33275 }
33276 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33277 {
33278 PyThreadState* __tstate = wxPyBeginAllowThreads();
33279 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33280 wxPyEndAllowThreads(__tstate);
33281 if (PyErr_Occurred()) SWIG_fail;
33282 }
33283 resultobj = SWIG_Py_Void();
33284 return resultobj;
33285 fail:
33286 return NULL;
33287 }
33288
33289
33290 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33291 PyObject *resultobj = 0;
33292 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33293 wxString *result = 0 ;
33294 void *argp1 = 0 ;
33295 int res1 = 0 ;
33296 PyObject *swig_obj[1] ;
33297
33298 if (!args) SWIG_fail;
33299 swig_obj[0] = args;
33300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33301 if (!SWIG_IsOK(res1)) {
33302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33303 }
33304 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33305 {
33306 PyThreadState* __tstate = wxPyBeginAllowThreads();
33307 {
33308 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33309 result = (wxString *) &_result_ref;
33310 }
33311 wxPyEndAllowThreads(__tstate);
33312 if (PyErr_Occurred()) SWIG_fail;
33313 }
33314 {
33315 #if wxUSE_UNICODE
33316 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33317 #else
33318 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33319 #endif
33320 }
33321 return resultobj;
33322 fail:
33323 return NULL;
33324 }
33325
33326
33327 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33328 PyObject *resultobj = 0;
33329 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33330 wxString *arg2 = 0 ;
33331 void *argp1 = 0 ;
33332 int res1 = 0 ;
33333 bool temp2 = false ;
33334 PyObject * obj0 = 0 ;
33335 PyObject * obj1 = 0 ;
33336 char * kwnames[] = {
33337 (char *) "self",(char *) "label", NULL
33338 };
33339
33340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33342 if (!SWIG_IsOK(res1)) {
33343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33344 }
33345 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33346 {
33347 arg2 = wxString_in_helper(obj1);
33348 if (arg2 == NULL) SWIG_fail;
33349 temp2 = true;
33350 }
33351 {
33352 PyThreadState* __tstate = wxPyBeginAllowThreads();
33353 (arg1)->SetLabel((wxString const &)*arg2);
33354 wxPyEndAllowThreads(__tstate);
33355 if (PyErr_Occurred()) SWIG_fail;
33356 }
33357 resultobj = SWIG_Py_Void();
33358 {
33359 if (temp2)
33360 delete arg2;
33361 }
33362 return resultobj;
33363 fail:
33364 {
33365 if (temp2)
33366 delete arg2;
33367 }
33368 return NULL;
33369 }
33370
33371
33372 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33373 PyObject *resultobj = 0;
33374 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33375 bool result;
33376 void *argp1 = 0 ;
33377 int res1 = 0 ;
33378 PyObject *swig_obj[1] ;
33379
33380 if (!args) SWIG_fail;
33381 swig_obj[0] = args;
33382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33383 if (!SWIG_IsOK(res1)) {
33384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33385 }
33386 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33387 {
33388 PyThreadState* __tstate = wxPyBeginAllowThreads();
33389 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33390 wxPyEndAllowThreads(__tstate);
33391 if (PyErr_Occurred()) SWIG_fail;
33392 }
33393 {
33394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33395 }
33396 return resultobj;
33397 fail:
33398 return NULL;
33399 }
33400
33401
33402 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33403 PyObject *resultobj = 0;
33404 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33405 bool arg2 ;
33406 void *argp1 = 0 ;
33407 int res1 = 0 ;
33408 bool val2 ;
33409 int ecode2 = 0 ;
33410 PyObject * obj0 = 0 ;
33411 PyObject * obj1 = 0 ;
33412 char * kwnames[] = {
33413 (char *) "self",(char *) "editCancelled", NULL
33414 };
33415
33416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33418 if (!SWIG_IsOK(res1)) {
33419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33420 }
33421 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33422 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33423 if (!SWIG_IsOK(ecode2)) {
33424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33425 }
33426 arg2 = static_cast< bool >(val2);
33427 {
33428 PyThreadState* __tstate = wxPyBeginAllowThreads();
33429 (arg1)->SetEditCanceled(arg2);
33430 wxPyEndAllowThreads(__tstate);
33431 if (PyErr_Occurred()) SWIG_fail;
33432 }
33433 resultobj = SWIG_Py_Void();
33434 return resultobj;
33435 fail:
33436 return NULL;
33437 }
33438
33439
33440 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33441 PyObject *resultobj = 0;
33442 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33443 wxString *arg2 = 0 ;
33444 void *argp1 = 0 ;
33445 int res1 = 0 ;
33446 bool temp2 = false ;
33447 PyObject * obj0 = 0 ;
33448 PyObject * obj1 = 0 ;
33449 char * kwnames[] = {
33450 (char *) "self",(char *) "toolTip", NULL
33451 };
33452
33453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33455 if (!SWIG_IsOK(res1)) {
33456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33457 }
33458 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33459 {
33460 arg2 = wxString_in_helper(obj1);
33461 if (arg2 == NULL) SWIG_fail;
33462 temp2 = true;
33463 }
33464 {
33465 PyThreadState* __tstate = wxPyBeginAllowThreads();
33466 (arg1)->SetToolTip((wxString const &)*arg2);
33467 wxPyEndAllowThreads(__tstate);
33468 if (PyErr_Occurred()) SWIG_fail;
33469 }
33470 resultobj = SWIG_Py_Void();
33471 {
33472 if (temp2)
33473 delete arg2;
33474 }
33475 return resultobj;
33476 fail:
33477 {
33478 if (temp2)
33479 delete arg2;
33480 }
33481 return NULL;
33482 }
33483
33484
33485 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33486 PyObject *resultobj = 0;
33487 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33488 wxString result;
33489 void *argp1 = 0 ;
33490 int res1 = 0 ;
33491 PyObject *swig_obj[1] ;
33492
33493 if (!args) SWIG_fail;
33494 swig_obj[0] = args;
33495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33496 if (!SWIG_IsOK(res1)) {
33497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33498 }
33499 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33500 {
33501 PyThreadState* __tstate = wxPyBeginAllowThreads();
33502 result = (arg1)->GetToolTip();
33503 wxPyEndAllowThreads(__tstate);
33504 if (PyErr_Occurred()) SWIG_fail;
33505 }
33506 {
33507 #if wxUSE_UNICODE
33508 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33509 #else
33510 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33511 #endif
33512 }
33513 return resultobj;
33514 fail:
33515 return NULL;
33516 }
33517
33518
33519 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33520 PyObject *obj;
33521 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33522 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33523 return SWIG_Py_Void();
33524 }
33525
33526 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33527 return SWIG_Python_InitShadowInstance(args);
33528 }
33529
33530 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33531 PyObject *resultobj = 0;
33532 wxWindow *arg1 = (wxWindow *) 0 ;
33533 int arg2 = (int) -1 ;
33534 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33535 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33536 wxSize const &arg4_defvalue = wxDefaultSize ;
33537 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33538 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33539 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33540 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33541 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33542 wxString *arg7 = (wxString *) &arg7_defvalue ;
33543 wxPyTreeCtrl *result = 0 ;
33544 void *argp1 = 0 ;
33545 int res1 = 0 ;
33546 int val2 ;
33547 int ecode2 = 0 ;
33548 wxPoint temp3 ;
33549 wxSize temp4 ;
33550 long val5 ;
33551 int ecode5 = 0 ;
33552 void *argp6 = 0 ;
33553 int res6 = 0 ;
33554 bool temp7 = false ;
33555 PyObject * obj0 = 0 ;
33556 PyObject * obj1 = 0 ;
33557 PyObject * obj2 = 0 ;
33558 PyObject * obj3 = 0 ;
33559 PyObject * obj4 = 0 ;
33560 PyObject * obj5 = 0 ;
33561 PyObject * obj6 = 0 ;
33562 char * kwnames[] = {
33563 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33564 };
33565
33566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33568 if (!SWIG_IsOK(res1)) {
33569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33570 }
33571 arg1 = reinterpret_cast< wxWindow * >(argp1);
33572 if (obj1) {
33573 ecode2 = SWIG_AsVal_int(obj1, &val2);
33574 if (!SWIG_IsOK(ecode2)) {
33575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33576 }
33577 arg2 = static_cast< int >(val2);
33578 }
33579 if (obj2) {
33580 {
33581 arg3 = &temp3;
33582 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33583 }
33584 }
33585 if (obj3) {
33586 {
33587 arg4 = &temp4;
33588 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33589 }
33590 }
33591 if (obj4) {
33592 ecode5 = SWIG_AsVal_long(obj4, &val5);
33593 if (!SWIG_IsOK(ecode5)) {
33594 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33595 }
33596 arg5 = static_cast< long >(val5);
33597 }
33598 if (obj5) {
33599 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33600 if (!SWIG_IsOK(res6)) {
33601 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33602 }
33603 if (!argp6) {
33604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33605 }
33606 arg6 = reinterpret_cast< wxValidator * >(argp6);
33607 }
33608 if (obj6) {
33609 {
33610 arg7 = wxString_in_helper(obj6);
33611 if (arg7 == NULL) SWIG_fail;
33612 temp7 = true;
33613 }
33614 }
33615 {
33616 if (!wxPyCheckForApp()) SWIG_fail;
33617 PyThreadState* __tstate = wxPyBeginAllowThreads();
33618 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33619 wxPyEndAllowThreads(__tstate);
33620 if (PyErr_Occurred()) SWIG_fail;
33621 }
33622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33623 {
33624 if (temp7)
33625 delete arg7;
33626 }
33627 return resultobj;
33628 fail:
33629 {
33630 if (temp7)
33631 delete arg7;
33632 }
33633 return NULL;
33634 }
33635
33636
33637 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33638 PyObject *resultobj = 0;
33639 wxPyTreeCtrl *result = 0 ;
33640
33641 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33642 {
33643 if (!wxPyCheckForApp()) SWIG_fail;
33644 PyThreadState* __tstate = wxPyBeginAllowThreads();
33645 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33646 wxPyEndAllowThreads(__tstate);
33647 if (PyErr_Occurred()) SWIG_fail;
33648 }
33649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33650 return resultobj;
33651 fail:
33652 return NULL;
33653 }
33654
33655
33656 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33657 PyObject *resultobj = 0;
33658 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33659 wxWindow *arg2 = (wxWindow *) 0 ;
33660 int arg3 = (int) -1 ;
33661 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33662 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33663 wxSize const &arg5_defvalue = wxDefaultSize ;
33664 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33665 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33666 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33667 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33668 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33669 wxString *arg8 = (wxString *) &arg8_defvalue ;
33670 bool result;
33671 void *argp1 = 0 ;
33672 int res1 = 0 ;
33673 void *argp2 = 0 ;
33674 int res2 = 0 ;
33675 int val3 ;
33676 int ecode3 = 0 ;
33677 wxPoint temp4 ;
33678 wxSize temp5 ;
33679 long val6 ;
33680 int ecode6 = 0 ;
33681 void *argp7 = 0 ;
33682 int res7 = 0 ;
33683 bool temp8 = false ;
33684 PyObject * obj0 = 0 ;
33685 PyObject * obj1 = 0 ;
33686 PyObject * obj2 = 0 ;
33687 PyObject * obj3 = 0 ;
33688 PyObject * obj4 = 0 ;
33689 PyObject * obj5 = 0 ;
33690 PyObject * obj6 = 0 ;
33691 PyObject * obj7 = 0 ;
33692 char * kwnames[] = {
33693 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33694 };
33695
33696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33698 if (!SWIG_IsOK(res1)) {
33699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33700 }
33701 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33702 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33703 if (!SWIG_IsOK(res2)) {
33704 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33705 }
33706 arg2 = reinterpret_cast< wxWindow * >(argp2);
33707 if (obj2) {
33708 ecode3 = SWIG_AsVal_int(obj2, &val3);
33709 if (!SWIG_IsOK(ecode3)) {
33710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33711 }
33712 arg3 = static_cast< int >(val3);
33713 }
33714 if (obj3) {
33715 {
33716 arg4 = &temp4;
33717 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33718 }
33719 }
33720 if (obj4) {
33721 {
33722 arg5 = &temp5;
33723 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33724 }
33725 }
33726 if (obj5) {
33727 ecode6 = SWIG_AsVal_long(obj5, &val6);
33728 if (!SWIG_IsOK(ecode6)) {
33729 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33730 }
33731 arg6 = static_cast< long >(val6);
33732 }
33733 if (obj6) {
33734 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33735 if (!SWIG_IsOK(res7)) {
33736 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33737 }
33738 if (!argp7) {
33739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33740 }
33741 arg7 = reinterpret_cast< wxValidator * >(argp7);
33742 }
33743 if (obj7) {
33744 {
33745 arg8 = wxString_in_helper(obj7);
33746 if (arg8 == NULL) SWIG_fail;
33747 temp8 = true;
33748 }
33749 }
33750 {
33751 PyThreadState* __tstate = wxPyBeginAllowThreads();
33752 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33753 wxPyEndAllowThreads(__tstate);
33754 if (PyErr_Occurred()) SWIG_fail;
33755 }
33756 {
33757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33758 }
33759 {
33760 if (temp8)
33761 delete arg8;
33762 }
33763 return resultobj;
33764 fail:
33765 {
33766 if (temp8)
33767 delete arg8;
33768 }
33769 return NULL;
33770 }
33771
33772
33773 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33774 PyObject *resultobj = 0;
33775 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33776 PyObject *arg2 = (PyObject *) 0 ;
33777 PyObject *arg3 = (PyObject *) 0 ;
33778 void *argp1 = 0 ;
33779 int res1 = 0 ;
33780 PyObject * obj0 = 0 ;
33781 PyObject * obj1 = 0 ;
33782 PyObject * obj2 = 0 ;
33783 char * kwnames[] = {
33784 (char *) "self",(char *) "self",(char *) "_class", NULL
33785 };
33786
33787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33789 if (!SWIG_IsOK(res1)) {
33790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33791 }
33792 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33793 arg2 = obj1;
33794 arg3 = obj2;
33795 {
33796 PyThreadState* __tstate = wxPyBeginAllowThreads();
33797 (arg1)->_setCallbackInfo(arg2,arg3);
33798 wxPyEndAllowThreads(__tstate);
33799 if (PyErr_Occurred()) SWIG_fail;
33800 }
33801 resultobj = SWIG_Py_Void();
33802 return resultobj;
33803 fail:
33804 return NULL;
33805 }
33806
33807
33808 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33809 PyObject *resultobj = 0;
33810 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33811 unsigned int result;
33812 void *argp1 = 0 ;
33813 int res1 = 0 ;
33814 PyObject *swig_obj[1] ;
33815
33816 if (!args) SWIG_fail;
33817 swig_obj[0] = args;
33818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33819 if (!SWIG_IsOK(res1)) {
33820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33821 }
33822 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33823 {
33824 PyThreadState* __tstate = wxPyBeginAllowThreads();
33825 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
33826 wxPyEndAllowThreads(__tstate);
33827 if (PyErr_Occurred()) SWIG_fail;
33828 }
33829 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33830 return resultobj;
33831 fail:
33832 return NULL;
33833 }
33834
33835
33836 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33837 PyObject *resultobj = 0;
33838 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33839 unsigned int result;
33840 void *argp1 = 0 ;
33841 int res1 = 0 ;
33842 PyObject *swig_obj[1] ;
33843
33844 if (!args) SWIG_fail;
33845 swig_obj[0] = args;
33846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33847 if (!SWIG_IsOK(res1)) {
33848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33849 }
33850 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33851 {
33852 PyThreadState* __tstate = wxPyBeginAllowThreads();
33853 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33854 wxPyEndAllowThreads(__tstate);
33855 if (PyErr_Occurred()) SWIG_fail;
33856 }
33857 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33858 return resultobj;
33859 fail:
33860 return NULL;
33861 }
33862
33863
33864 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33865 PyObject *resultobj = 0;
33866 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33867 unsigned int arg2 ;
33868 void *argp1 = 0 ;
33869 int res1 = 0 ;
33870 unsigned int val2 ;
33871 int ecode2 = 0 ;
33872 PyObject * obj0 = 0 ;
33873 PyObject * obj1 = 0 ;
33874 char * kwnames[] = {
33875 (char *) "self",(char *) "indent", NULL
33876 };
33877
33878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33880 if (!SWIG_IsOK(res1)) {
33881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33882 }
33883 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33884 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33885 if (!SWIG_IsOK(ecode2)) {
33886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33887 }
33888 arg2 = static_cast< unsigned int >(val2);
33889 {
33890 PyThreadState* __tstate = wxPyBeginAllowThreads();
33891 (arg1)->SetIndent(arg2);
33892 wxPyEndAllowThreads(__tstate);
33893 if (PyErr_Occurred()) SWIG_fail;
33894 }
33895 resultobj = SWIG_Py_Void();
33896 return resultobj;
33897 fail:
33898 return NULL;
33899 }
33900
33901
33902 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33903 PyObject *resultobj = 0;
33904 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33905 unsigned int result;
33906 void *argp1 = 0 ;
33907 int res1 = 0 ;
33908 PyObject *swig_obj[1] ;
33909
33910 if (!args) SWIG_fail;
33911 swig_obj[0] = args;
33912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33913 if (!SWIG_IsOK(res1)) {
33914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33915 }
33916 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33917 {
33918 PyThreadState* __tstate = wxPyBeginAllowThreads();
33919 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33920 wxPyEndAllowThreads(__tstate);
33921 if (PyErr_Occurred()) SWIG_fail;
33922 }
33923 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33924 return resultobj;
33925 fail:
33926 return NULL;
33927 }
33928
33929
33930 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33931 PyObject *resultobj = 0;
33932 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33933 unsigned int arg2 ;
33934 void *argp1 = 0 ;
33935 int res1 = 0 ;
33936 unsigned int val2 ;
33937 int ecode2 = 0 ;
33938 PyObject * obj0 = 0 ;
33939 PyObject * obj1 = 0 ;
33940 char * kwnames[] = {
33941 (char *) "self",(char *) "spacing", NULL
33942 };
33943
33944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33946 if (!SWIG_IsOK(res1)) {
33947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33948 }
33949 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33950 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33951 if (!SWIG_IsOK(ecode2)) {
33952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33953 }
33954 arg2 = static_cast< unsigned int >(val2);
33955 {
33956 PyThreadState* __tstate = wxPyBeginAllowThreads();
33957 (arg1)->SetSpacing(arg2);
33958 wxPyEndAllowThreads(__tstate);
33959 if (PyErr_Occurred()) SWIG_fail;
33960 }
33961 resultobj = SWIG_Py_Void();
33962 return resultobj;
33963 fail:
33964 return NULL;
33965 }
33966
33967
33968 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33969 PyObject *resultobj = 0;
33970 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33971 wxImageList *result = 0 ;
33972 void *argp1 = 0 ;
33973 int res1 = 0 ;
33974 PyObject *swig_obj[1] ;
33975
33976 if (!args) SWIG_fail;
33977 swig_obj[0] = args;
33978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33979 if (!SWIG_IsOK(res1)) {
33980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33981 }
33982 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33983 {
33984 PyThreadState* __tstate = wxPyBeginAllowThreads();
33985 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33986 wxPyEndAllowThreads(__tstate);
33987 if (PyErr_Occurred()) SWIG_fail;
33988 }
33989 {
33990 resultobj = wxPyMake_wxObject(result, (bool)0);
33991 }
33992 return resultobj;
33993 fail:
33994 return NULL;
33995 }
33996
33997
33998 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33999 PyObject *resultobj = 0;
34000 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34001 wxImageList *result = 0 ;
34002 void *argp1 = 0 ;
34003 int res1 = 0 ;
34004 PyObject *swig_obj[1] ;
34005
34006 if (!args) SWIG_fail;
34007 swig_obj[0] = args;
34008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34009 if (!SWIG_IsOK(res1)) {
34010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34011 }
34012 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34013 {
34014 PyThreadState* __tstate = wxPyBeginAllowThreads();
34015 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34016 wxPyEndAllowThreads(__tstate);
34017 if (PyErr_Occurred()) SWIG_fail;
34018 }
34019 {
34020 resultobj = wxPyMake_wxObject(result, (bool)0);
34021 }
34022 return resultobj;
34023 fail:
34024 return NULL;
34025 }
34026
34027
34028 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34029 PyObject *resultobj = 0;
34030 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34031 wxImageList *arg2 = (wxImageList *) 0 ;
34032 void *argp1 = 0 ;
34033 int res1 = 0 ;
34034 void *argp2 = 0 ;
34035 int res2 = 0 ;
34036 PyObject * obj0 = 0 ;
34037 PyObject * obj1 = 0 ;
34038 char * kwnames[] = {
34039 (char *) "self",(char *) "imageList", NULL
34040 };
34041
34042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34044 if (!SWIG_IsOK(res1)) {
34045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34046 }
34047 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34048 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34049 if (!SWIG_IsOK(res2)) {
34050 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34051 }
34052 arg2 = reinterpret_cast< wxImageList * >(argp2);
34053 {
34054 PyThreadState* __tstate = wxPyBeginAllowThreads();
34055 (arg1)->SetImageList(arg2);
34056 wxPyEndAllowThreads(__tstate);
34057 if (PyErr_Occurred()) SWIG_fail;
34058 }
34059 resultobj = SWIG_Py_Void();
34060 return resultobj;
34061 fail:
34062 return NULL;
34063 }
34064
34065
34066 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34067 PyObject *resultobj = 0;
34068 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34069 wxImageList *arg2 = (wxImageList *) 0 ;
34070 void *argp1 = 0 ;
34071 int res1 = 0 ;
34072 void *argp2 = 0 ;
34073 int res2 = 0 ;
34074 PyObject * obj0 = 0 ;
34075 PyObject * obj1 = 0 ;
34076 char * kwnames[] = {
34077 (char *) "self",(char *) "imageList", NULL
34078 };
34079
34080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34082 if (!SWIG_IsOK(res1)) {
34083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34084 }
34085 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34086 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34087 if (!SWIG_IsOK(res2)) {
34088 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34089 }
34090 arg2 = reinterpret_cast< wxImageList * >(argp2);
34091 {
34092 PyThreadState* __tstate = wxPyBeginAllowThreads();
34093 (arg1)->SetStateImageList(arg2);
34094 wxPyEndAllowThreads(__tstate);
34095 if (PyErr_Occurred()) SWIG_fail;
34096 }
34097 resultobj = SWIG_Py_Void();
34098 return resultobj;
34099 fail:
34100 return NULL;
34101 }
34102
34103
34104 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34105 PyObject *resultobj = 0;
34106 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34107 wxImageList *arg2 = (wxImageList *) 0 ;
34108 void *argp1 = 0 ;
34109 int res1 = 0 ;
34110 int res2 = 0 ;
34111 PyObject * obj0 = 0 ;
34112 PyObject * obj1 = 0 ;
34113 char * kwnames[] = {
34114 (char *) "self",(char *) "imageList", NULL
34115 };
34116
34117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34119 if (!SWIG_IsOK(res1)) {
34120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34121 }
34122 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34123 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34124 if (!SWIG_IsOK(res2)) {
34125 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34126 }
34127 {
34128 PyThreadState* __tstate = wxPyBeginAllowThreads();
34129 (arg1)->AssignImageList(arg2);
34130 wxPyEndAllowThreads(__tstate);
34131 if (PyErr_Occurred()) SWIG_fail;
34132 }
34133 resultobj = SWIG_Py_Void();
34134 return resultobj;
34135 fail:
34136 return NULL;
34137 }
34138
34139
34140 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34141 PyObject *resultobj = 0;
34142 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34143 wxImageList *arg2 = (wxImageList *) 0 ;
34144 void *argp1 = 0 ;
34145 int res1 = 0 ;
34146 int res2 = 0 ;
34147 PyObject * obj0 = 0 ;
34148 PyObject * obj1 = 0 ;
34149 char * kwnames[] = {
34150 (char *) "self",(char *) "imageList", NULL
34151 };
34152
34153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34155 if (!SWIG_IsOK(res1)) {
34156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34157 }
34158 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34159 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34160 if (!SWIG_IsOK(res2)) {
34161 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34162 }
34163 {
34164 PyThreadState* __tstate = wxPyBeginAllowThreads();
34165 (arg1)->AssignStateImageList(arg2);
34166 wxPyEndAllowThreads(__tstate);
34167 if (PyErr_Occurred()) SWIG_fail;
34168 }
34169 resultobj = SWIG_Py_Void();
34170 return resultobj;
34171 fail:
34172 return NULL;
34173 }
34174
34175
34176 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34177 PyObject *resultobj = 0;
34178 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34179 wxTreeItemId *arg2 = 0 ;
34180 wxString result;
34181 void *argp1 = 0 ;
34182 int res1 = 0 ;
34183 void *argp2 = 0 ;
34184 int res2 = 0 ;
34185 PyObject * obj0 = 0 ;
34186 PyObject * obj1 = 0 ;
34187 char * kwnames[] = {
34188 (char *) "self",(char *) "item", NULL
34189 };
34190
34191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34193 if (!SWIG_IsOK(res1)) {
34194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34195 }
34196 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34197 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34198 if (!SWIG_IsOK(res2)) {
34199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34200 }
34201 if (!argp2) {
34202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34203 }
34204 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34205 {
34206 PyThreadState* __tstate = wxPyBeginAllowThreads();
34207 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34208 wxPyEndAllowThreads(__tstate);
34209 if (PyErr_Occurred()) SWIG_fail;
34210 }
34211 {
34212 #if wxUSE_UNICODE
34213 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34214 #else
34215 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34216 #endif
34217 }
34218 return resultobj;
34219 fail:
34220 return NULL;
34221 }
34222
34223
34224 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34225 PyObject *resultobj = 0;
34226 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34227 wxTreeItemId *arg2 = 0 ;
34228 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34229 int result;
34230 void *argp1 = 0 ;
34231 int res1 = 0 ;
34232 void *argp2 = 0 ;
34233 int res2 = 0 ;
34234 int val3 ;
34235 int ecode3 = 0 ;
34236 PyObject * obj0 = 0 ;
34237 PyObject * obj1 = 0 ;
34238 PyObject * obj2 = 0 ;
34239 char * kwnames[] = {
34240 (char *) "self",(char *) "item",(char *) "which", NULL
34241 };
34242
34243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34245 if (!SWIG_IsOK(res1)) {
34246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34247 }
34248 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34249 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34250 if (!SWIG_IsOK(res2)) {
34251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34252 }
34253 if (!argp2) {
34254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34255 }
34256 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34257 if (obj2) {
34258 ecode3 = SWIG_AsVal_int(obj2, &val3);
34259 if (!SWIG_IsOK(ecode3)) {
34260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34261 }
34262 arg3 = static_cast< wxTreeItemIcon >(val3);
34263 }
34264 {
34265 PyThreadState* __tstate = wxPyBeginAllowThreads();
34266 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34267 wxPyEndAllowThreads(__tstate);
34268 if (PyErr_Occurred()) SWIG_fail;
34269 }
34270 resultobj = SWIG_From_int(static_cast< int >(result));
34271 return resultobj;
34272 fail:
34273 return NULL;
34274 }
34275
34276
34277 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34278 PyObject *resultobj = 0;
34279 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34280 wxTreeItemId *arg2 = 0 ;
34281 wxPyTreeItemData *result = 0 ;
34282 void *argp1 = 0 ;
34283 int res1 = 0 ;
34284 void *argp2 = 0 ;
34285 int res2 = 0 ;
34286 PyObject * obj0 = 0 ;
34287 PyObject * obj1 = 0 ;
34288 char * kwnames[] = {
34289 (char *) "self",(char *) "item", NULL
34290 };
34291
34292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34294 if (!SWIG_IsOK(res1)) {
34295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34296 }
34297 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34299 if (!SWIG_IsOK(res2)) {
34300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34301 }
34302 if (!argp2) {
34303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34304 }
34305 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34306 {
34307 PyThreadState* __tstate = wxPyBeginAllowThreads();
34308 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34309 wxPyEndAllowThreads(__tstate);
34310 if (PyErr_Occurred()) SWIG_fail;
34311 }
34312 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34313 return resultobj;
34314 fail:
34315 return NULL;
34316 }
34317
34318
34319 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34320 PyObject *resultobj = 0;
34321 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34322 wxTreeItemId *arg2 = 0 ;
34323 PyObject *result = 0 ;
34324 void *argp1 = 0 ;
34325 int res1 = 0 ;
34326 void *argp2 = 0 ;
34327 int res2 = 0 ;
34328 PyObject * obj0 = 0 ;
34329 PyObject * obj1 = 0 ;
34330 char * kwnames[] = {
34331 (char *) "self",(char *) "item", NULL
34332 };
34333
34334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34336 if (!SWIG_IsOK(res1)) {
34337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34338 }
34339 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34340 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34341 if (!SWIG_IsOK(res2)) {
34342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34343 }
34344 if (!argp2) {
34345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34346 }
34347 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34348 {
34349 PyThreadState* __tstate = wxPyBeginAllowThreads();
34350 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34351 wxPyEndAllowThreads(__tstate);
34352 if (PyErr_Occurred()) SWIG_fail;
34353 }
34354 resultobj = result;
34355 return resultobj;
34356 fail:
34357 return NULL;
34358 }
34359
34360
34361 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34362 PyObject *resultobj = 0;
34363 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34364 wxTreeItemId *arg2 = 0 ;
34365 wxColour result;
34366 void *argp1 = 0 ;
34367 int res1 = 0 ;
34368 void *argp2 = 0 ;
34369 int res2 = 0 ;
34370 PyObject * obj0 = 0 ;
34371 PyObject * obj1 = 0 ;
34372 char * kwnames[] = {
34373 (char *) "self",(char *) "item", NULL
34374 };
34375
34376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34378 if (!SWIG_IsOK(res1)) {
34379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34380 }
34381 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34382 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34383 if (!SWIG_IsOK(res2)) {
34384 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34385 }
34386 if (!argp2) {
34387 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34388 }
34389 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34390 {
34391 PyThreadState* __tstate = wxPyBeginAllowThreads();
34392 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34393 wxPyEndAllowThreads(__tstate);
34394 if (PyErr_Occurred()) SWIG_fail;
34395 }
34396 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34397 return resultobj;
34398 fail:
34399 return NULL;
34400 }
34401
34402
34403 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34404 PyObject *resultobj = 0;
34405 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34406 wxTreeItemId *arg2 = 0 ;
34407 wxColour result;
34408 void *argp1 = 0 ;
34409 int res1 = 0 ;
34410 void *argp2 = 0 ;
34411 int res2 = 0 ;
34412 PyObject * obj0 = 0 ;
34413 PyObject * obj1 = 0 ;
34414 char * kwnames[] = {
34415 (char *) "self",(char *) "item", NULL
34416 };
34417
34418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34420 if (!SWIG_IsOK(res1)) {
34421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34422 }
34423 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34424 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34425 if (!SWIG_IsOK(res2)) {
34426 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34427 }
34428 if (!argp2) {
34429 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34430 }
34431 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34432 {
34433 PyThreadState* __tstate = wxPyBeginAllowThreads();
34434 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34435 wxPyEndAllowThreads(__tstate);
34436 if (PyErr_Occurred()) SWIG_fail;
34437 }
34438 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34439 return resultobj;
34440 fail:
34441 return NULL;
34442 }
34443
34444
34445 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34446 PyObject *resultobj = 0;
34447 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34448 wxTreeItemId *arg2 = 0 ;
34449 wxFont result;
34450 void *argp1 = 0 ;
34451 int res1 = 0 ;
34452 void *argp2 = 0 ;
34453 int res2 = 0 ;
34454 PyObject * obj0 = 0 ;
34455 PyObject * obj1 = 0 ;
34456 char * kwnames[] = {
34457 (char *) "self",(char *) "item", NULL
34458 };
34459
34460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34462 if (!SWIG_IsOK(res1)) {
34463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34464 }
34465 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34466 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34467 if (!SWIG_IsOK(res2)) {
34468 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34469 }
34470 if (!argp2) {
34471 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34472 }
34473 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34474 {
34475 PyThreadState* __tstate = wxPyBeginAllowThreads();
34476 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34477 wxPyEndAllowThreads(__tstate);
34478 if (PyErr_Occurred()) SWIG_fail;
34479 }
34480 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34481 return resultobj;
34482 fail:
34483 return NULL;
34484 }
34485
34486
34487 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34488 PyObject *resultobj = 0;
34489 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34490 wxTreeItemId *arg2 = 0 ;
34491 wxString *arg3 = 0 ;
34492 void *argp1 = 0 ;
34493 int res1 = 0 ;
34494 void *argp2 = 0 ;
34495 int res2 = 0 ;
34496 bool temp3 = false ;
34497 PyObject * obj0 = 0 ;
34498 PyObject * obj1 = 0 ;
34499 PyObject * obj2 = 0 ;
34500 char * kwnames[] = {
34501 (char *) "self",(char *) "item",(char *) "text", NULL
34502 };
34503
34504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34506 if (!SWIG_IsOK(res1)) {
34507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34508 }
34509 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34510 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34511 if (!SWIG_IsOK(res2)) {
34512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34513 }
34514 if (!argp2) {
34515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34516 }
34517 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34518 {
34519 arg3 = wxString_in_helper(obj2);
34520 if (arg3 == NULL) SWIG_fail;
34521 temp3 = true;
34522 }
34523 {
34524 PyThreadState* __tstate = wxPyBeginAllowThreads();
34525 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34526 wxPyEndAllowThreads(__tstate);
34527 if (PyErr_Occurred()) SWIG_fail;
34528 }
34529 resultobj = SWIG_Py_Void();
34530 {
34531 if (temp3)
34532 delete arg3;
34533 }
34534 return resultobj;
34535 fail:
34536 {
34537 if (temp3)
34538 delete arg3;
34539 }
34540 return NULL;
34541 }
34542
34543
34544 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34545 PyObject *resultobj = 0;
34546 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34547 wxTreeItemId *arg2 = 0 ;
34548 int arg3 ;
34549 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34550 void *argp1 = 0 ;
34551 int res1 = 0 ;
34552 void *argp2 = 0 ;
34553 int res2 = 0 ;
34554 int val3 ;
34555 int ecode3 = 0 ;
34556 int val4 ;
34557 int ecode4 = 0 ;
34558 PyObject * obj0 = 0 ;
34559 PyObject * obj1 = 0 ;
34560 PyObject * obj2 = 0 ;
34561 PyObject * obj3 = 0 ;
34562 char * kwnames[] = {
34563 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34564 };
34565
34566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34568 if (!SWIG_IsOK(res1)) {
34569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34570 }
34571 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34572 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34573 if (!SWIG_IsOK(res2)) {
34574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34575 }
34576 if (!argp2) {
34577 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34578 }
34579 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34580 ecode3 = SWIG_AsVal_int(obj2, &val3);
34581 if (!SWIG_IsOK(ecode3)) {
34582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34583 }
34584 arg3 = static_cast< int >(val3);
34585 if (obj3) {
34586 ecode4 = SWIG_AsVal_int(obj3, &val4);
34587 if (!SWIG_IsOK(ecode4)) {
34588 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34589 }
34590 arg4 = static_cast< wxTreeItemIcon >(val4);
34591 }
34592 {
34593 PyThreadState* __tstate = wxPyBeginAllowThreads();
34594 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34595 wxPyEndAllowThreads(__tstate);
34596 if (PyErr_Occurred()) SWIG_fail;
34597 }
34598 resultobj = SWIG_Py_Void();
34599 return resultobj;
34600 fail:
34601 return NULL;
34602 }
34603
34604
34605 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34606 PyObject *resultobj = 0;
34607 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34608 wxTreeItemId *arg2 = 0 ;
34609 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34610 void *argp1 = 0 ;
34611 int res1 = 0 ;
34612 void *argp2 = 0 ;
34613 int res2 = 0 ;
34614 int res3 = 0 ;
34615 PyObject * obj0 = 0 ;
34616 PyObject * obj1 = 0 ;
34617 PyObject * obj2 = 0 ;
34618 char * kwnames[] = {
34619 (char *) "self",(char *) "item",(char *) "data", NULL
34620 };
34621
34622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34624 if (!SWIG_IsOK(res1)) {
34625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34626 }
34627 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34628 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34629 if (!SWIG_IsOK(res2)) {
34630 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34631 }
34632 if (!argp2) {
34633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34634 }
34635 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34636 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34637 if (!SWIG_IsOK(res3)) {
34638 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34639 }
34640 {
34641 PyThreadState* __tstate = wxPyBeginAllowThreads();
34642 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34643 wxPyEndAllowThreads(__tstate);
34644 if (PyErr_Occurred()) SWIG_fail;
34645 }
34646 resultobj = SWIG_Py_Void();
34647 return resultobj;
34648 fail:
34649 return NULL;
34650 }
34651
34652
34653 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34654 PyObject *resultobj = 0;
34655 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34656 wxTreeItemId *arg2 = 0 ;
34657 PyObject *arg3 = (PyObject *) 0 ;
34658 void *argp1 = 0 ;
34659 int res1 = 0 ;
34660 void *argp2 = 0 ;
34661 int res2 = 0 ;
34662 PyObject * obj0 = 0 ;
34663 PyObject * obj1 = 0 ;
34664 PyObject * obj2 = 0 ;
34665 char * kwnames[] = {
34666 (char *) "self",(char *) "item",(char *) "obj", NULL
34667 };
34668
34669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) 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_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
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_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34678 }
34679 if (!argp2) {
34680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34681 }
34682 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34683 arg3 = obj2;
34684 {
34685 PyThreadState* __tstate = wxPyBeginAllowThreads();
34686 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34687 wxPyEndAllowThreads(__tstate);
34688 if (PyErr_Occurred()) SWIG_fail;
34689 }
34690 resultobj = SWIG_Py_Void();
34691 return resultobj;
34692 fail:
34693 return NULL;
34694 }
34695
34696
34697 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34698 PyObject *resultobj = 0;
34699 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34700 wxTreeItemId *arg2 = 0 ;
34701 bool arg3 = (bool) true ;
34702 void *argp1 = 0 ;
34703 int res1 = 0 ;
34704 void *argp2 = 0 ;
34705 int res2 = 0 ;
34706 bool val3 ;
34707 int ecode3 = 0 ;
34708 PyObject * obj0 = 0 ;
34709 PyObject * obj1 = 0 ;
34710 PyObject * obj2 = 0 ;
34711 char * kwnames[] = {
34712 (char *) "self",(char *) "item",(char *) "has", NULL
34713 };
34714
34715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34717 if (!SWIG_IsOK(res1)) {
34718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34719 }
34720 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34721 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34722 if (!SWIG_IsOK(res2)) {
34723 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34724 }
34725 if (!argp2) {
34726 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34727 }
34728 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34729 if (obj2) {
34730 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34731 if (!SWIG_IsOK(ecode3)) {
34732 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34733 }
34734 arg3 = static_cast< bool >(val3);
34735 }
34736 {
34737 PyThreadState* __tstate = wxPyBeginAllowThreads();
34738 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34739 wxPyEndAllowThreads(__tstate);
34740 if (PyErr_Occurred()) SWIG_fail;
34741 }
34742 resultobj = SWIG_Py_Void();
34743 return resultobj;
34744 fail:
34745 return NULL;
34746 }
34747
34748
34749 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34750 PyObject *resultobj = 0;
34751 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34752 wxTreeItemId *arg2 = 0 ;
34753 bool arg3 = (bool) true ;
34754 void *argp1 = 0 ;
34755 int res1 = 0 ;
34756 void *argp2 = 0 ;
34757 int res2 = 0 ;
34758 bool val3 ;
34759 int ecode3 = 0 ;
34760 PyObject * obj0 = 0 ;
34761 PyObject * obj1 = 0 ;
34762 PyObject * obj2 = 0 ;
34763 char * kwnames[] = {
34764 (char *) "self",(char *) "item",(char *) "bold", NULL
34765 };
34766
34767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34769 if (!SWIG_IsOK(res1)) {
34770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34771 }
34772 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34773 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34774 if (!SWIG_IsOK(res2)) {
34775 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34776 }
34777 if (!argp2) {
34778 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34779 }
34780 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34781 if (obj2) {
34782 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34783 if (!SWIG_IsOK(ecode3)) {
34784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34785 }
34786 arg3 = static_cast< bool >(val3);
34787 }
34788 {
34789 PyThreadState* __tstate = wxPyBeginAllowThreads();
34790 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34791 wxPyEndAllowThreads(__tstate);
34792 if (PyErr_Occurred()) SWIG_fail;
34793 }
34794 resultobj = SWIG_Py_Void();
34795 return resultobj;
34796 fail:
34797 return NULL;
34798 }
34799
34800
34801 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34802 PyObject *resultobj = 0;
34803 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34804 wxTreeItemId *arg2 = 0 ;
34805 bool arg3 = (bool) true ;
34806 void *argp1 = 0 ;
34807 int res1 = 0 ;
34808 void *argp2 = 0 ;
34809 int res2 = 0 ;
34810 bool val3 ;
34811 int ecode3 = 0 ;
34812 PyObject * obj0 = 0 ;
34813 PyObject * obj1 = 0 ;
34814 PyObject * obj2 = 0 ;
34815 char * kwnames[] = {
34816 (char *) "self",(char *) "item",(char *) "highlight", NULL
34817 };
34818
34819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34821 if (!SWIG_IsOK(res1)) {
34822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34823 }
34824 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34825 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34826 if (!SWIG_IsOK(res2)) {
34827 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34828 }
34829 if (!argp2) {
34830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34831 }
34832 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34833 if (obj2) {
34834 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34835 if (!SWIG_IsOK(ecode3)) {
34836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34837 }
34838 arg3 = static_cast< bool >(val3);
34839 }
34840 {
34841 PyThreadState* __tstate = wxPyBeginAllowThreads();
34842 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34843 wxPyEndAllowThreads(__tstate);
34844 if (PyErr_Occurred()) SWIG_fail;
34845 }
34846 resultobj = SWIG_Py_Void();
34847 return resultobj;
34848 fail:
34849 return NULL;
34850 }
34851
34852
34853 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34854 PyObject *resultobj = 0;
34855 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34856 wxTreeItemId *arg2 = 0 ;
34857 wxColour *arg3 = 0 ;
34858 void *argp1 = 0 ;
34859 int res1 = 0 ;
34860 void *argp2 = 0 ;
34861 int res2 = 0 ;
34862 wxColour temp3 ;
34863 PyObject * obj0 = 0 ;
34864 PyObject * obj1 = 0 ;
34865 PyObject * obj2 = 0 ;
34866 char * kwnames[] = {
34867 (char *) "self",(char *) "item",(char *) "col", NULL
34868 };
34869
34870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34872 if (!SWIG_IsOK(res1)) {
34873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34874 }
34875 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34876 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34877 if (!SWIG_IsOK(res2)) {
34878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34879 }
34880 if (!argp2) {
34881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34882 }
34883 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34884 {
34885 arg3 = &temp3;
34886 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34887 }
34888 {
34889 PyThreadState* __tstate = wxPyBeginAllowThreads();
34890 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34891 wxPyEndAllowThreads(__tstate);
34892 if (PyErr_Occurred()) SWIG_fail;
34893 }
34894 resultobj = SWIG_Py_Void();
34895 return resultobj;
34896 fail:
34897 return NULL;
34898 }
34899
34900
34901 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34902 PyObject *resultobj = 0;
34903 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34904 wxTreeItemId *arg2 = 0 ;
34905 wxColour *arg3 = 0 ;
34906 void *argp1 = 0 ;
34907 int res1 = 0 ;
34908 void *argp2 = 0 ;
34909 int res2 = 0 ;
34910 wxColour temp3 ;
34911 PyObject * obj0 = 0 ;
34912 PyObject * obj1 = 0 ;
34913 PyObject * obj2 = 0 ;
34914 char * kwnames[] = {
34915 (char *) "self",(char *) "item",(char *) "col", NULL
34916 };
34917
34918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34920 if (!SWIG_IsOK(res1)) {
34921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34922 }
34923 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34924 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34925 if (!SWIG_IsOK(res2)) {
34926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34927 }
34928 if (!argp2) {
34929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34930 }
34931 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34932 {
34933 arg3 = &temp3;
34934 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34935 }
34936 {
34937 PyThreadState* __tstate = wxPyBeginAllowThreads();
34938 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34939 wxPyEndAllowThreads(__tstate);
34940 if (PyErr_Occurred()) SWIG_fail;
34941 }
34942 resultobj = SWIG_Py_Void();
34943 return resultobj;
34944 fail:
34945 return NULL;
34946 }
34947
34948
34949 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34950 PyObject *resultobj = 0;
34951 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34952 wxTreeItemId *arg2 = 0 ;
34953 wxFont *arg3 = 0 ;
34954 void *argp1 = 0 ;
34955 int res1 = 0 ;
34956 void *argp2 = 0 ;
34957 int res2 = 0 ;
34958 void *argp3 = 0 ;
34959 int res3 = 0 ;
34960 PyObject * obj0 = 0 ;
34961 PyObject * obj1 = 0 ;
34962 PyObject * obj2 = 0 ;
34963 char * kwnames[] = {
34964 (char *) "self",(char *) "item",(char *) "font", NULL
34965 };
34966
34967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34969 if (!SWIG_IsOK(res1)) {
34970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34971 }
34972 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34973 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34974 if (!SWIG_IsOK(res2)) {
34975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34976 }
34977 if (!argp2) {
34978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34979 }
34980 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34981 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34982 if (!SWIG_IsOK(res3)) {
34983 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34984 }
34985 if (!argp3) {
34986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34987 }
34988 arg3 = reinterpret_cast< wxFont * >(argp3);
34989 {
34990 PyThreadState* __tstate = wxPyBeginAllowThreads();
34991 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34992 wxPyEndAllowThreads(__tstate);
34993 if (PyErr_Occurred()) SWIG_fail;
34994 }
34995 resultobj = SWIG_Py_Void();
34996 return resultobj;
34997 fail:
34998 return NULL;
34999 }
35000
35001
35002 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35003 PyObject *resultobj = 0;
35004 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35005 wxTreeItemId *arg2 = 0 ;
35006 bool result;
35007 void *argp1 = 0 ;
35008 int res1 = 0 ;
35009 void *argp2 = 0 ;
35010 int res2 = 0 ;
35011 PyObject * obj0 = 0 ;
35012 PyObject * obj1 = 0 ;
35013 char * kwnames[] = {
35014 (char *) "self",(char *) "item", NULL
35015 };
35016
35017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35019 if (!SWIG_IsOK(res1)) {
35020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35021 }
35022 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35023 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35024 if (!SWIG_IsOK(res2)) {
35025 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35026 }
35027 if (!argp2) {
35028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35029 }
35030 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35031 {
35032 PyThreadState* __tstate = wxPyBeginAllowThreads();
35033 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35034 wxPyEndAllowThreads(__tstate);
35035 if (PyErr_Occurred()) SWIG_fail;
35036 }
35037 {
35038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35039 }
35040 return resultobj;
35041 fail:
35042 return NULL;
35043 }
35044
35045
35046 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35047 PyObject *resultobj = 0;
35048 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35049 wxTreeItemId *arg2 = 0 ;
35050 bool result;
35051 void *argp1 = 0 ;
35052 int res1 = 0 ;
35053 void *argp2 = 0 ;
35054 int res2 = 0 ;
35055 PyObject * obj0 = 0 ;
35056 PyObject * obj1 = 0 ;
35057 char * kwnames[] = {
35058 (char *) "self",(char *) "item", NULL
35059 };
35060
35061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35063 if (!SWIG_IsOK(res1)) {
35064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35065 }
35066 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35067 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35068 if (!SWIG_IsOK(res2)) {
35069 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35070 }
35071 if (!argp2) {
35072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35073 }
35074 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35075 {
35076 PyThreadState* __tstate = wxPyBeginAllowThreads();
35077 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35078 wxPyEndAllowThreads(__tstate);
35079 if (PyErr_Occurred()) SWIG_fail;
35080 }
35081 {
35082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35083 }
35084 return resultobj;
35085 fail:
35086 return NULL;
35087 }
35088
35089
35090 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35091 PyObject *resultobj = 0;
35092 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35093 wxTreeItemId *arg2 = 0 ;
35094 bool result;
35095 void *argp1 = 0 ;
35096 int res1 = 0 ;
35097 void *argp2 = 0 ;
35098 int res2 = 0 ;
35099 PyObject * obj0 = 0 ;
35100 PyObject * obj1 = 0 ;
35101 char * kwnames[] = {
35102 (char *) "self",(char *) "item", NULL
35103 };
35104
35105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35107 if (!SWIG_IsOK(res1)) {
35108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35109 }
35110 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35111 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35112 if (!SWIG_IsOK(res2)) {
35113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35114 }
35115 if (!argp2) {
35116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35117 }
35118 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35119 {
35120 PyThreadState* __tstate = wxPyBeginAllowThreads();
35121 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35122 wxPyEndAllowThreads(__tstate);
35123 if (PyErr_Occurred()) SWIG_fail;
35124 }
35125 {
35126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35127 }
35128 return resultobj;
35129 fail:
35130 return NULL;
35131 }
35132
35133
35134 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35135 PyObject *resultobj = 0;
35136 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35137 wxTreeItemId *arg2 = 0 ;
35138 bool result;
35139 void *argp1 = 0 ;
35140 int res1 = 0 ;
35141 void *argp2 = 0 ;
35142 int res2 = 0 ;
35143 PyObject * obj0 = 0 ;
35144 PyObject * obj1 = 0 ;
35145 char * kwnames[] = {
35146 (char *) "self",(char *) "item", NULL
35147 };
35148
35149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35151 if (!SWIG_IsOK(res1)) {
35152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35153 }
35154 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35155 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35156 if (!SWIG_IsOK(res2)) {
35157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35158 }
35159 if (!argp2) {
35160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35161 }
35162 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35163 {
35164 PyThreadState* __tstate = wxPyBeginAllowThreads();
35165 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35166 wxPyEndAllowThreads(__tstate);
35167 if (PyErr_Occurred()) SWIG_fail;
35168 }
35169 {
35170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35171 }
35172 return resultobj;
35173 fail:
35174 return NULL;
35175 }
35176
35177
35178 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35179 PyObject *resultobj = 0;
35180 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35181 wxTreeItemId *arg2 = 0 ;
35182 bool result;
35183 void *argp1 = 0 ;
35184 int res1 = 0 ;
35185 void *argp2 = 0 ;
35186 int res2 = 0 ;
35187 PyObject * obj0 = 0 ;
35188 PyObject * obj1 = 0 ;
35189 char * kwnames[] = {
35190 (char *) "self",(char *) "item", NULL
35191 };
35192
35193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35195 if (!SWIG_IsOK(res1)) {
35196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35197 }
35198 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35199 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35200 if (!SWIG_IsOK(res2)) {
35201 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35202 }
35203 if (!argp2) {
35204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35205 }
35206 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35207 {
35208 PyThreadState* __tstate = wxPyBeginAllowThreads();
35209 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35210 wxPyEndAllowThreads(__tstate);
35211 if (PyErr_Occurred()) SWIG_fail;
35212 }
35213 {
35214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35215 }
35216 return resultobj;
35217 fail:
35218 return NULL;
35219 }
35220
35221
35222 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35223 PyObject *resultobj = 0;
35224 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35225 wxTreeItemId *arg2 = 0 ;
35226 bool arg3 = (bool) true ;
35227 size_t result;
35228 void *argp1 = 0 ;
35229 int res1 = 0 ;
35230 void *argp2 = 0 ;
35231 int res2 = 0 ;
35232 bool val3 ;
35233 int ecode3 = 0 ;
35234 PyObject * obj0 = 0 ;
35235 PyObject * obj1 = 0 ;
35236 PyObject * obj2 = 0 ;
35237 char * kwnames[] = {
35238 (char *) "self",(char *) "item",(char *) "recursively", NULL
35239 };
35240
35241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35243 if (!SWIG_IsOK(res1)) {
35244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35245 }
35246 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35247 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35248 if (!SWIG_IsOK(res2)) {
35249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35250 }
35251 if (!argp2) {
35252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35253 }
35254 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35255 if (obj2) {
35256 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35257 if (!SWIG_IsOK(ecode3)) {
35258 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35259 }
35260 arg3 = static_cast< bool >(val3);
35261 }
35262 {
35263 PyThreadState* __tstate = wxPyBeginAllowThreads();
35264 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35265 wxPyEndAllowThreads(__tstate);
35266 if (PyErr_Occurred()) SWIG_fail;
35267 }
35268 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35269 return resultobj;
35270 fail:
35271 return NULL;
35272 }
35273
35274
35275 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35276 PyObject *resultobj = 0;
35277 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35278 wxTreeItemId result;
35279 void *argp1 = 0 ;
35280 int res1 = 0 ;
35281 PyObject *swig_obj[1] ;
35282
35283 if (!args) SWIG_fail;
35284 swig_obj[0] = args;
35285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35286 if (!SWIG_IsOK(res1)) {
35287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35288 }
35289 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35290 {
35291 PyThreadState* __tstate = wxPyBeginAllowThreads();
35292 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35293 wxPyEndAllowThreads(__tstate);
35294 if (PyErr_Occurred()) SWIG_fail;
35295 }
35296 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35297 return resultobj;
35298 fail:
35299 return NULL;
35300 }
35301
35302
35303 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35304 PyObject *resultobj = 0;
35305 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35306 wxTreeItemId result;
35307 void *argp1 = 0 ;
35308 int res1 = 0 ;
35309 PyObject *swig_obj[1] ;
35310
35311 if (!args) SWIG_fail;
35312 swig_obj[0] = args;
35313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35314 if (!SWIG_IsOK(res1)) {
35315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35316 }
35317 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35318 {
35319 PyThreadState* __tstate = wxPyBeginAllowThreads();
35320 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35321 wxPyEndAllowThreads(__tstate);
35322 if (PyErr_Occurred()) SWIG_fail;
35323 }
35324 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35325 return resultobj;
35326 fail:
35327 return NULL;
35328 }
35329
35330
35331 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35332 PyObject *resultobj = 0;
35333 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35334 PyObject *result = 0 ;
35335 void *argp1 = 0 ;
35336 int res1 = 0 ;
35337 PyObject *swig_obj[1] ;
35338
35339 if (!args) SWIG_fail;
35340 swig_obj[0] = args;
35341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35342 if (!SWIG_IsOK(res1)) {
35343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35344 }
35345 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35346 {
35347 PyThreadState* __tstate = wxPyBeginAllowThreads();
35348 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35349 wxPyEndAllowThreads(__tstate);
35350 if (PyErr_Occurred()) SWIG_fail;
35351 }
35352 resultobj = result;
35353 return resultobj;
35354 fail:
35355 return NULL;
35356 }
35357
35358
35359 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35360 PyObject *resultobj = 0;
35361 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35362 wxTreeItemId *arg2 = 0 ;
35363 wxTreeItemId result;
35364 void *argp1 = 0 ;
35365 int res1 = 0 ;
35366 void *argp2 = 0 ;
35367 int res2 = 0 ;
35368 PyObject * obj0 = 0 ;
35369 PyObject * obj1 = 0 ;
35370 char * kwnames[] = {
35371 (char *) "self",(char *) "item", NULL
35372 };
35373
35374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35376 if (!SWIG_IsOK(res1)) {
35377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35378 }
35379 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35380 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35381 if (!SWIG_IsOK(res2)) {
35382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35383 }
35384 if (!argp2) {
35385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35386 }
35387 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35388 {
35389 PyThreadState* __tstate = wxPyBeginAllowThreads();
35390 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35391 wxPyEndAllowThreads(__tstate);
35392 if (PyErr_Occurred()) SWIG_fail;
35393 }
35394 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35395 return resultobj;
35396 fail:
35397 return NULL;
35398 }
35399
35400
35401 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35402 PyObject *resultobj = 0;
35403 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35404 wxTreeItemId *arg2 = 0 ;
35405 PyObject *result = 0 ;
35406 void *argp1 = 0 ;
35407 int res1 = 0 ;
35408 void *argp2 = 0 ;
35409 int res2 = 0 ;
35410 PyObject * obj0 = 0 ;
35411 PyObject * obj1 = 0 ;
35412 char * kwnames[] = {
35413 (char *) "self",(char *) "item", NULL
35414 };
35415
35416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35418 if (!SWIG_IsOK(res1)) {
35419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35420 }
35421 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35422 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35423 if (!SWIG_IsOK(res2)) {
35424 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35425 }
35426 if (!argp2) {
35427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35428 }
35429 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35430 {
35431 PyThreadState* __tstate = wxPyBeginAllowThreads();
35432 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35433 wxPyEndAllowThreads(__tstate);
35434 if (PyErr_Occurred()) SWIG_fail;
35435 }
35436 resultobj = result;
35437 return resultobj;
35438 fail:
35439 return NULL;
35440 }
35441
35442
35443 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35444 PyObject *resultobj = 0;
35445 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35446 wxTreeItemId *arg2 = 0 ;
35447 void *arg3 = (void *) 0 ;
35448 PyObject *result = 0 ;
35449 void *argp1 = 0 ;
35450 int res1 = 0 ;
35451 void *argp2 = 0 ;
35452 int res2 = 0 ;
35453 int res3 ;
35454 PyObject * obj0 = 0 ;
35455 PyObject * obj1 = 0 ;
35456 PyObject * obj2 = 0 ;
35457 char * kwnames[] = {
35458 (char *) "self",(char *) "item",(char *) "cookie", NULL
35459 };
35460
35461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35463 if (!SWIG_IsOK(res1)) {
35464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35465 }
35466 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35467 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35468 if (!SWIG_IsOK(res2)) {
35469 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35470 }
35471 if (!argp2) {
35472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35473 }
35474 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35475 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35476 if (!SWIG_IsOK(res3)) {
35477 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35478 }
35479 {
35480 PyThreadState* __tstate = wxPyBeginAllowThreads();
35481 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35482 wxPyEndAllowThreads(__tstate);
35483 if (PyErr_Occurred()) SWIG_fail;
35484 }
35485 resultobj = result;
35486 return resultobj;
35487 fail:
35488 return NULL;
35489 }
35490
35491
35492 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35493 PyObject *resultobj = 0;
35494 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35495 wxTreeItemId *arg2 = 0 ;
35496 wxTreeItemId result;
35497 void *argp1 = 0 ;
35498 int res1 = 0 ;
35499 void *argp2 = 0 ;
35500 int res2 = 0 ;
35501 PyObject * obj0 = 0 ;
35502 PyObject * obj1 = 0 ;
35503 char * kwnames[] = {
35504 (char *) "self",(char *) "item", NULL
35505 };
35506
35507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35509 if (!SWIG_IsOK(res1)) {
35510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35511 }
35512 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35513 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35514 if (!SWIG_IsOK(res2)) {
35515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35516 }
35517 if (!argp2) {
35518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35519 }
35520 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35521 {
35522 PyThreadState* __tstate = wxPyBeginAllowThreads();
35523 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35524 wxPyEndAllowThreads(__tstate);
35525 if (PyErr_Occurred()) SWIG_fail;
35526 }
35527 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35528 return resultobj;
35529 fail:
35530 return NULL;
35531 }
35532
35533
35534 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35535 PyObject *resultobj = 0;
35536 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35537 wxTreeItemId *arg2 = 0 ;
35538 wxTreeItemId result;
35539 void *argp1 = 0 ;
35540 int res1 = 0 ;
35541 void *argp2 = 0 ;
35542 int res2 = 0 ;
35543 PyObject * obj0 = 0 ;
35544 PyObject * obj1 = 0 ;
35545 char * kwnames[] = {
35546 (char *) "self",(char *) "item", NULL
35547 };
35548
35549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35551 if (!SWIG_IsOK(res1)) {
35552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35553 }
35554 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35555 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35556 if (!SWIG_IsOK(res2)) {
35557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35558 }
35559 if (!argp2) {
35560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35561 }
35562 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35563 {
35564 PyThreadState* __tstate = wxPyBeginAllowThreads();
35565 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35566 wxPyEndAllowThreads(__tstate);
35567 if (PyErr_Occurred()) SWIG_fail;
35568 }
35569 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35570 return resultobj;
35571 fail:
35572 return NULL;
35573 }
35574
35575
35576 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35577 PyObject *resultobj = 0;
35578 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35579 wxTreeItemId *arg2 = 0 ;
35580 wxTreeItemId result;
35581 void *argp1 = 0 ;
35582 int res1 = 0 ;
35583 void *argp2 = 0 ;
35584 int res2 = 0 ;
35585 PyObject * obj0 = 0 ;
35586 PyObject * obj1 = 0 ;
35587 char * kwnames[] = {
35588 (char *) "self",(char *) "item", NULL
35589 };
35590
35591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35593 if (!SWIG_IsOK(res1)) {
35594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35595 }
35596 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35597 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35598 if (!SWIG_IsOK(res2)) {
35599 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35600 }
35601 if (!argp2) {
35602 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35603 }
35604 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35605 {
35606 PyThreadState* __tstate = wxPyBeginAllowThreads();
35607 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35608 wxPyEndAllowThreads(__tstate);
35609 if (PyErr_Occurred()) SWIG_fail;
35610 }
35611 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35612 return resultobj;
35613 fail:
35614 return NULL;
35615 }
35616
35617
35618 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35619 PyObject *resultobj = 0;
35620 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35621 wxTreeItemId result;
35622 void *argp1 = 0 ;
35623 int res1 = 0 ;
35624 PyObject *swig_obj[1] ;
35625
35626 if (!args) SWIG_fail;
35627 swig_obj[0] = args;
35628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35629 if (!SWIG_IsOK(res1)) {
35630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35631 }
35632 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35633 {
35634 PyThreadState* __tstate = wxPyBeginAllowThreads();
35635 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35636 wxPyEndAllowThreads(__tstate);
35637 if (PyErr_Occurred()) SWIG_fail;
35638 }
35639 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35640 return resultobj;
35641 fail:
35642 return NULL;
35643 }
35644
35645
35646 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35647 PyObject *resultobj = 0;
35648 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35649 wxTreeItemId *arg2 = 0 ;
35650 wxTreeItemId result;
35651 void *argp1 = 0 ;
35652 int res1 = 0 ;
35653 void *argp2 = 0 ;
35654 int res2 = 0 ;
35655 PyObject * obj0 = 0 ;
35656 PyObject * obj1 = 0 ;
35657 char * kwnames[] = {
35658 (char *) "self",(char *) "item", NULL
35659 };
35660
35661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35663 if (!SWIG_IsOK(res1)) {
35664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35665 }
35666 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35667 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35668 if (!SWIG_IsOK(res2)) {
35669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35670 }
35671 if (!argp2) {
35672 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35673 }
35674 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35675 {
35676 PyThreadState* __tstate = wxPyBeginAllowThreads();
35677 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35678 wxPyEndAllowThreads(__tstate);
35679 if (PyErr_Occurred()) SWIG_fail;
35680 }
35681 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35682 return resultobj;
35683 fail:
35684 return NULL;
35685 }
35686
35687
35688 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35689 PyObject *resultobj = 0;
35690 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35691 wxTreeItemId *arg2 = 0 ;
35692 wxTreeItemId result;
35693 void *argp1 = 0 ;
35694 int res1 = 0 ;
35695 void *argp2 = 0 ;
35696 int res2 = 0 ;
35697 PyObject * obj0 = 0 ;
35698 PyObject * obj1 = 0 ;
35699 char * kwnames[] = {
35700 (char *) "self",(char *) "item", NULL
35701 };
35702
35703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35705 if (!SWIG_IsOK(res1)) {
35706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35707 }
35708 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35709 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35710 if (!SWIG_IsOK(res2)) {
35711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35712 }
35713 if (!argp2) {
35714 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35715 }
35716 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35717 {
35718 PyThreadState* __tstate = wxPyBeginAllowThreads();
35719 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35720 wxPyEndAllowThreads(__tstate);
35721 if (PyErr_Occurred()) SWIG_fail;
35722 }
35723 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35724 return resultobj;
35725 fail:
35726 return NULL;
35727 }
35728
35729
35730 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35731 PyObject *resultobj = 0;
35732 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35733 wxString *arg2 = 0 ;
35734 int arg3 = (int) -1 ;
35735 int arg4 = (int) -1 ;
35736 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35737 wxTreeItemId result;
35738 void *argp1 = 0 ;
35739 int res1 = 0 ;
35740 bool temp2 = false ;
35741 int val3 ;
35742 int ecode3 = 0 ;
35743 int val4 ;
35744 int ecode4 = 0 ;
35745 int res5 = 0 ;
35746 PyObject * obj0 = 0 ;
35747 PyObject * obj1 = 0 ;
35748 PyObject * obj2 = 0 ;
35749 PyObject * obj3 = 0 ;
35750 PyObject * obj4 = 0 ;
35751 char * kwnames[] = {
35752 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35753 };
35754
35755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35757 if (!SWIG_IsOK(res1)) {
35758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35759 }
35760 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35761 {
35762 arg2 = wxString_in_helper(obj1);
35763 if (arg2 == NULL) SWIG_fail;
35764 temp2 = true;
35765 }
35766 if (obj2) {
35767 ecode3 = SWIG_AsVal_int(obj2, &val3);
35768 if (!SWIG_IsOK(ecode3)) {
35769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35770 }
35771 arg3 = static_cast< int >(val3);
35772 }
35773 if (obj3) {
35774 ecode4 = SWIG_AsVal_int(obj3, &val4);
35775 if (!SWIG_IsOK(ecode4)) {
35776 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35777 }
35778 arg4 = static_cast< int >(val4);
35779 }
35780 if (obj4) {
35781 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35782 if (!SWIG_IsOK(res5)) {
35783 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35784 }
35785 }
35786 {
35787 PyThreadState* __tstate = wxPyBeginAllowThreads();
35788 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35789 wxPyEndAllowThreads(__tstate);
35790 if (PyErr_Occurred()) SWIG_fail;
35791 }
35792 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35793 {
35794 if (temp2)
35795 delete arg2;
35796 }
35797 return resultobj;
35798 fail:
35799 {
35800 if (temp2)
35801 delete arg2;
35802 }
35803 return NULL;
35804 }
35805
35806
35807 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35808 PyObject *resultobj = 0;
35809 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35810 wxTreeItemId *arg2 = 0 ;
35811 wxString *arg3 = 0 ;
35812 int arg4 = (int) -1 ;
35813 int arg5 = (int) -1 ;
35814 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35815 wxTreeItemId result;
35816 void *argp1 = 0 ;
35817 int res1 = 0 ;
35818 void *argp2 = 0 ;
35819 int res2 = 0 ;
35820 bool temp3 = false ;
35821 int val4 ;
35822 int ecode4 = 0 ;
35823 int val5 ;
35824 int ecode5 = 0 ;
35825 int res6 = 0 ;
35826 PyObject * obj0 = 0 ;
35827 PyObject * obj1 = 0 ;
35828 PyObject * obj2 = 0 ;
35829 PyObject * obj3 = 0 ;
35830 PyObject * obj4 = 0 ;
35831 PyObject * obj5 = 0 ;
35832 char * kwnames[] = {
35833 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35834 };
35835
35836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35838 if (!SWIG_IsOK(res1)) {
35839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35840 }
35841 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35842 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35843 if (!SWIG_IsOK(res2)) {
35844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35845 }
35846 if (!argp2) {
35847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35848 }
35849 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35850 {
35851 arg3 = wxString_in_helper(obj2);
35852 if (arg3 == NULL) SWIG_fail;
35853 temp3 = true;
35854 }
35855 if (obj3) {
35856 ecode4 = SWIG_AsVal_int(obj3, &val4);
35857 if (!SWIG_IsOK(ecode4)) {
35858 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35859 }
35860 arg4 = static_cast< int >(val4);
35861 }
35862 if (obj4) {
35863 ecode5 = SWIG_AsVal_int(obj4, &val5);
35864 if (!SWIG_IsOK(ecode5)) {
35865 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35866 }
35867 arg5 = static_cast< int >(val5);
35868 }
35869 if (obj5) {
35870 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35871 if (!SWIG_IsOK(res6)) {
35872 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35873 }
35874 }
35875 {
35876 PyThreadState* __tstate = wxPyBeginAllowThreads();
35877 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35878 wxPyEndAllowThreads(__tstate);
35879 if (PyErr_Occurred()) SWIG_fail;
35880 }
35881 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35882 {
35883 if (temp3)
35884 delete arg3;
35885 }
35886 return resultobj;
35887 fail:
35888 {
35889 if (temp3)
35890 delete arg3;
35891 }
35892 return NULL;
35893 }
35894
35895
35896 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35897 PyObject *resultobj = 0;
35898 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35899 wxTreeItemId *arg2 = 0 ;
35900 wxTreeItemId *arg3 = 0 ;
35901 wxString *arg4 = 0 ;
35902 int arg5 = (int) -1 ;
35903 int arg6 = (int) -1 ;
35904 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35905 wxTreeItemId result;
35906 void *argp1 = 0 ;
35907 int res1 = 0 ;
35908 void *argp2 = 0 ;
35909 int res2 = 0 ;
35910 void *argp3 = 0 ;
35911 int res3 = 0 ;
35912 bool temp4 = false ;
35913 int val5 ;
35914 int ecode5 = 0 ;
35915 int val6 ;
35916 int ecode6 = 0 ;
35917 int res7 = 0 ;
35918 PyObject * obj0 = 0 ;
35919 PyObject * obj1 = 0 ;
35920 PyObject * obj2 = 0 ;
35921 PyObject * obj3 = 0 ;
35922 PyObject * obj4 = 0 ;
35923 PyObject * obj5 = 0 ;
35924 PyObject * obj6 = 0 ;
35925 char * kwnames[] = {
35926 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35927 };
35928
35929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35931 if (!SWIG_IsOK(res1)) {
35932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35933 }
35934 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35935 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35936 if (!SWIG_IsOK(res2)) {
35937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35938 }
35939 if (!argp2) {
35940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35941 }
35942 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35943 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35944 if (!SWIG_IsOK(res3)) {
35945 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35946 }
35947 if (!argp3) {
35948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35949 }
35950 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35951 {
35952 arg4 = wxString_in_helper(obj3);
35953 if (arg4 == NULL) SWIG_fail;
35954 temp4 = true;
35955 }
35956 if (obj4) {
35957 ecode5 = SWIG_AsVal_int(obj4, &val5);
35958 if (!SWIG_IsOK(ecode5)) {
35959 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35960 }
35961 arg5 = static_cast< int >(val5);
35962 }
35963 if (obj5) {
35964 ecode6 = SWIG_AsVal_int(obj5, &val6);
35965 if (!SWIG_IsOK(ecode6)) {
35966 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35967 }
35968 arg6 = static_cast< int >(val6);
35969 }
35970 if (obj6) {
35971 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35972 if (!SWIG_IsOK(res7)) {
35973 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35974 }
35975 }
35976 {
35977 PyThreadState* __tstate = wxPyBeginAllowThreads();
35978 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35979 wxPyEndAllowThreads(__tstate);
35980 if (PyErr_Occurred()) SWIG_fail;
35981 }
35982 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35983 {
35984 if (temp4)
35985 delete arg4;
35986 }
35987 return resultobj;
35988 fail:
35989 {
35990 if (temp4)
35991 delete arg4;
35992 }
35993 return NULL;
35994 }
35995
35996
35997 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35998 PyObject *resultobj = 0;
35999 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36000 wxTreeItemId *arg2 = 0 ;
36001 size_t arg3 ;
36002 wxString *arg4 = 0 ;
36003 int arg5 = (int) -1 ;
36004 int arg6 = (int) -1 ;
36005 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36006 wxTreeItemId result;
36007 void *argp1 = 0 ;
36008 int res1 = 0 ;
36009 void *argp2 = 0 ;
36010 int res2 = 0 ;
36011 size_t val3 ;
36012 int ecode3 = 0 ;
36013 bool temp4 = false ;
36014 int val5 ;
36015 int ecode5 = 0 ;
36016 int val6 ;
36017 int ecode6 = 0 ;
36018 int res7 = 0 ;
36019 PyObject * obj0 = 0 ;
36020 PyObject * obj1 = 0 ;
36021 PyObject * obj2 = 0 ;
36022 PyObject * obj3 = 0 ;
36023 PyObject * obj4 = 0 ;
36024 PyObject * obj5 = 0 ;
36025 PyObject * obj6 = 0 ;
36026 char * kwnames[] = {
36027 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36028 };
36029
36030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36032 if (!SWIG_IsOK(res1)) {
36033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36034 }
36035 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36036 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36037 if (!SWIG_IsOK(res2)) {
36038 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36039 }
36040 if (!argp2) {
36041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36042 }
36043 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36044 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36045 if (!SWIG_IsOK(ecode3)) {
36046 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36047 }
36048 arg3 = static_cast< size_t >(val3);
36049 {
36050 arg4 = wxString_in_helper(obj3);
36051 if (arg4 == NULL) SWIG_fail;
36052 temp4 = true;
36053 }
36054 if (obj4) {
36055 ecode5 = SWIG_AsVal_int(obj4, &val5);
36056 if (!SWIG_IsOK(ecode5)) {
36057 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36058 }
36059 arg5 = static_cast< int >(val5);
36060 }
36061 if (obj5) {
36062 ecode6 = SWIG_AsVal_int(obj5, &val6);
36063 if (!SWIG_IsOK(ecode6)) {
36064 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36065 }
36066 arg6 = static_cast< int >(val6);
36067 }
36068 if (obj6) {
36069 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36070 if (!SWIG_IsOK(res7)) {
36071 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36072 }
36073 }
36074 {
36075 PyThreadState* __tstate = wxPyBeginAllowThreads();
36076 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36077 wxPyEndAllowThreads(__tstate);
36078 if (PyErr_Occurred()) SWIG_fail;
36079 }
36080 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36081 {
36082 if (temp4)
36083 delete arg4;
36084 }
36085 return resultobj;
36086 fail:
36087 {
36088 if (temp4)
36089 delete arg4;
36090 }
36091 return NULL;
36092 }
36093
36094
36095 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36096 PyObject *resultobj = 0;
36097 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36098 wxTreeItemId *arg2 = 0 ;
36099 wxString *arg3 = 0 ;
36100 int arg4 = (int) -1 ;
36101 int arg5 = (int) -1 ;
36102 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36103 wxTreeItemId result;
36104 void *argp1 = 0 ;
36105 int res1 = 0 ;
36106 void *argp2 = 0 ;
36107 int res2 = 0 ;
36108 bool temp3 = false ;
36109 int val4 ;
36110 int ecode4 = 0 ;
36111 int val5 ;
36112 int ecode5 = 0 ;
36113 int res6 = 0 ;
36114 PyObject * obj0 = 0 ;
36115 PyObject * obj1 = 0 ;
36116 PyObject * obj2 = 0 ;
36117 PyObject * obj3 = 0 ;
36118 PyObject * obj4 = 0 ;
36119 PyObject * obj5 = 0 ;
36120 char * kwnames[] = {
36121 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36122 };
36123
36124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36126 if (!SWIG_IsOK(res1)) {
36127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36128 }
36129 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36130 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36131 if (!SWIG_IsOK(res2)) {
36132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36133 }
36134 if (!argp2) {
36135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36136 }
36137 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36138 {
36139 arg3 = wxString_in_helper(obj2);
36140 if (arg3 == NULL) SWIG_fail;
36141 temp3 = true;
36142 }
36143 if (obj3) {
36144 ecode4 = SWIG_AsVal_int(obj3, &val4);
36145 if (!SWIG_IsOK(ecode4)) {
36146 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36147 }
36148 arg4 = static_cast< int >(val4);
36149 }
36150 if (obj4) {
36151 ecode5 = SWIG_AsVal_int(obj4, &val5);
36152 if (!SWIG_IsOK(ecode5)) {
36153 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36154 }
36155 arg5 = static_cast< int >(val5);
36156 }
36157 if (obj5) {
36158 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36159 if (!SWIG_IsOK(res6)) {
36160 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36161 }
36162 }
36163 {
36164 PyThreadState* __tstate = wxPyBeginAllowThreads();
36165 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36166 wxPyEndAllowThreads(__tstate);
36167 if (PyErr_Occurred()) SWIG_fail;
36168 }
36169 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36170 {
36171 if (temp3)
36172 delete arg3;
36173 }
36174 return resultobj;
36175 fail:
36176 {
36177 if (temp3)
36178 delete arg3;
36179 }
36180 return NULL;
36181 }
36182
36183
36184 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36185 PyObject *resultobj = 0;
36186 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36187 wxTreeItemId *arg2 = 0 ;
36188 void *argp1 = 0 ;
36189 int res1 = 0 ;
36190 void *argp2 = 0 ;
36191 int res2 = 0 ;
36192 PyObject * obj0 = 0 ;
36193 PyObject * obj1 = 0 ;
36194 char * kwnames[] = {
36195 (char *) "self",(char *) "item", NULL
36196 };
36197
36198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36200 if (!SWIG_IsOK(res1)) {
36201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36202 }
36203 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36205 if (!SWIG_IsOK(res2)) {
36206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36207 }
36208 if (!argp2) {
36209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36210 }
36211 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36212 {
36213 PyThreadState* __tstate = wxPyBeginAllowThreads();
36214 (arg1)->Delete((wxTreeItemId const &)*arg2);
36215 wxPyEndAllowThreads(__tstate);
36216 if (PyErr_Occurred()) SWIG_fail;
36217 }
36218 resultobj = SWIG_Py_Void();
36219 return resultobj;
36220 fail:
36221 return NULL;
36222 }
36223
36224
36225 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36226 PyObject *resultobj = 0;
36227 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36228 wxTreeItemId *arg2 = 0 ;
36229 void *argp1 = 0 ;
36230 int res1 = 0 ;
36231 void *argp2 = 0 ;
36232 int res2 = 0 ;
36233 PyObject * obj0 = 0 ;
36234 PyObject * obj1 = 0 ;
36235 char * kwnames[] = {
36236 (char *) "self",(char *) "item", NULL
36237 };
36238
36239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36241 if (!SWIG_IsOK(res1)) {
36242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36243 }
36244 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36245 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36246 if (!SWIG_IsOK(res2)) {
36247 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36248 }
36249 if (!argp2) {
36250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36251 }
36252 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36253 {
36254 PyThreadState* __tstate = wxPyBeginAllowThreads();
36255 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36256 wxPyEndAllowThreads(__tstate);
36257 if (PyErr_Occurred()) SWIG_fail;
36258 }
36259 resultobj = SWIG_Py_Void();
36260 return resultobj;
36261 fail:
36262 return NULL;
36263 }
36264
36265
36266 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36267 PyObject *resultobj = 0;
36268 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36269 void *argp1 = 0 ;
36270 int res1 = 0 ;
36271 PyObject *swig_obj[1] ;
36272
36273 if (!args) SWIG_fail;
36274 swig_obj[0] = args;
36275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36276 if (!SWIG_IsOK(res1)) {
36277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36278 }
36279 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36280 {
36281 PyThreadState* __tstate = wxPyBeginAllowThreads();
36282 (arg1)->DeleteAllItems();
36283 wxPyEndAllowThreads(__tstate);
36284 if (PyErr_Occurred()) SWIG_fail;
36285 }
36286 resultobj = SWIG_Py_Void();
36287 return resultobj;
36288 fail:
36289 return NULL;
36290 }
36291
36292
36293 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36294 PyObject *resultobj = 0;
36295 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36296 wxTreeItemId *arg2 = 0 ;
36297 void *argp1 = 0 ;
36298 int res1 = 0 ;
36299 void *argp2 = 0 ;
36300 int res2 = 0 ;
36301 PyObject * obj0 = 0 ;
36302 PyObject * obj1 = 0 ;
36303 char * kwnames[] = {
36304 (char *) "self",(char *) "item", NULL
36305 };
36306
36307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36309 if (!SWIG_IsOK(res1)) {
36310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36311 }
36312 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36313 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36314 if (!SWIG_IsOK(res2)) {
36315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36316 }
36317 if (!argp2) {
36318 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36319 }
36320 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36321 {
36322 PyThreadState* __tstate = wxPyBeginAllowThreads();
36323 (arg1)->Expand((wxTreeItemId const &)*arg2);
36324 wxPyEndAllowThreads(__tstate);
36325 if (PyErr_Occurred()) SWIG_fail;
36326 }
36327 resultobj = SWIG_Py_Void();
36328 return resultobj;
36329 fail:
36330 return NULL;
36331 }
36332
36333
36334 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36335 PyObject *resultobj = 0;
36336 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36337 wxTreeItemId *arg2 = 0 ;
36338 void *argp1 = 0 ;
36339 int res1 = 0 ;
36340 void *argp2 = 0 ;
36341 int res2 = 0 ;
36342 PyObject * obj0 = 0 ;
36343 PyObject * obj1 = 0 ;
36344 char * kwnames[] = {
36345 (char *) "self",(char *) "item", NULL
36346 };
36347
36348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36350 if (!SWIG_IsOK(res1)) {
36351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36352 }
36353 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36354 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36355 if (!SWIG_IsOK(res2)) {
36356 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36357 }
36358 if (!argp2) {
36359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36360 }
36361 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36362 {
36363 PyThreadState* __tstate = wxPyBeginAllowThreads();
36364 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36365 wxPyEndAllowThreads(__tstate);
36366 if (PyErr_Occurred()) SWIG_fail;
36367 }
36368 resultobj = SWIG_Py_Void();
36369 return resultobj;
36370 fail:
36371 return NULL;
36372 }
36373
36374
36375 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36376 PyObject *resultobj = 0;
36377 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36378 void *argp1 = 0 ;
36379 int res1 = 0 ;
36380 PyObject *swig_obj[1] ;
36381
36382 if (!args) SWIG_fail;
36383 swig_obj[0] = args;
36384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36385 if (!SWIG_IsOK(res1)) {
36386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36387 }
36388 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36389 {
36390 PyThreadState* __tstate = wxPyBeginAllowThreads();
36391 (arg1)->ExpandAll();
36392 wxPyEndAllowThreads(__tstate);
36393 if (PyErr_Occurred()) SWIG_fail;
36394 }
36395 resultobj = SWIG_Py_Void();
36396 return resultobj;
36397 fail:
36398 return NULL;
36399 }
36400
36401
36402 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36403 PyObject *resultobj = 0;
36404 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36405 wxTreeItemId *arg2 = 0 ;
36406 void *argp1 = 0 ;
36407 int res1 = 0 ;
36408 void *argp2 = 0 ;
36409 int res2 = 0 ;
36410 PyObject * obj0 = 0 ;
36411 PyObject * obj1 = 0 ;
36412 char * kwnames[] = {
36413 (char *) "self",(char *) "item", NULL
36414 };
36415
36416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36418 if (!SWIG_IsOK(res1)) {
36419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36420 }
36421 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36422 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36423 if (!SWIG_IsOK(res2)) {
36424 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36425 }
36426 if (!argp2) {
36427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36428 }
36429 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36430 {
36431 PyThreadState* __tstate = wxPyBeginAllowThreads();
36432 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36433 wxPyEndAllowThreads(__tstate);
36434 if (PyErr_Occurred()) SWIG_fail;
36435 }
36436 resultobj = SWIG_Py_Void();
36437 return resultobj;
36438 fail:
36439 return NULL;
36440 }
36441
36442
36443 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36444 PyObject *resultobj = 0;
36445 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36446 wxTreeItemId *arg2 = 0 ;
36447 void *argp1 = 0 ;
36448 int res1 = 0 ;
36449 void *argp2 = 0 ;
36450 int res2 = 0 ;
36451 PyObject * obj0 = 0 ;
36452 PyObject * obj1 = 0 ;
36453 char * kwnames[] = {
36454 (char *) "self",(char *) "item", NULL
36455 };
36456
36457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36459 if (!SWIG_IsOK(res1)) {
36460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36461 }
36462 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36463 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36464 if (!SWIG_IsOK(res2)) {
36465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36466 }
36467 if (!argp2) {
36468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36469 }
36470 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36471 {
36472 PyThreadState* __tstate = wxPyBeginAllowThreads();
36473 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36474 wxPyEndAllowThreads(__tstate);
36475 if (PyErr_Occurred()) SWIG_fail;
36476 }
36477 resultobj = SWIG_Py_Void();
36478 return resultobj;
36479 fail:
36480 return NULL;
36481 }
36482
36483
36484 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36485 PyObject *resultobj = 0;
36486 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36487 wxTreeItemId *arg2 = 0 ;
36488 void *argp1 = 0 ;
36489 int res1 = 0 ;
36490 void *argp2 = 0 ;
36491 int res2 = 0 ;
36492 PyObject * obj0 = 0 ;
36493 PyObject * obj1 = 0 ;
36494 char * kwnames[] = {
36495 (char *) "self",(char *) "item", NULL
36496 };
36497
36498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36500 if (!SWIG_IsOK(res1)) {
36501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36502 }
36503 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36504 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36505 if (!SWIG_IsOK(res2)) {
36506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36507 }
36508 if (!argp2) {
36509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36510 }
36511 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36512 {
36513 PyThreadState* __tstate = wxPyBeginAllowThreads();
36514 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36515 wxPyEndAllowThreads(__tstate);
36516 if (PyErr_Occurred()) SWIG_fail;
36517 }
36518 resultobj = SWIG_Py_Void();
36519 return resultobj;
36520 fail:
36521 return NULL;
36522 }
36523
36524
36525 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36526 PyObject *resultobj = 0;
36527 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36528 void *argp1 = 0 ;
36529 int res1 = 0 ;
36530 PyObject *swig_obj[1] ;
36531
36532 if (!args) SWIG_fail;
36533 swig_obj[0] = args;
36534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36535 if (!SWIG_IsOK(res1)) {
36536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36537 }
36538 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36539 {
36540 PyThreadState* __tstate = wxPyBeginAllowThreads();
36541 (arg1)->Unselect();
36542 wxPyEndAllowThreads(__tstate);
36543 if (PyErr_Occurred()) SWIG_fail;
36544 }
36545 resultobj = SWIG_Py_Void();
36546 return resultobj;
36547 fail:
36548 return NULL;
36549 }
36550
36551
36552 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36553 PyObject *resultobj = 0;
36554 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36555 wxTreeItemId *arg2 = 0 ;
36556 void *argp1 = 0 ;
36557 int res1 = 0 ;
36558 void *argp2 = 0 ;
36559 int res2 = 0 ;
36560 PyObject * obj0 = 0 ;
36561 PyObject * obj1 = 0 ;
36562 char * kwnames[] = {
36563 (char *) "self",(char *) "item", NULL
36564 };
36565
36566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36568 if (!SWIG_IsOK(res1)) {
36569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36570 }
36571 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36572 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36573 if (!SWIG_IsOK(res2)) {
36574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36575 }
36576 if (!argp2) {
36577 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36578 }
36579 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36580 {
36581 PyThreadState* __tstate = wxPyBeginAllowThreads();
36582 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36583 wxPyEndAllowThreads(__tstate);
36584 if (PyErr_Occurred()) SWIG_fail;
36585 }
36586 resultobj = SWIG_Py_Void();
36587 return resultobj;
36588 fail:
36589 return NULL;
36590 }
36591
36592
36593 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36594 PyObject *resultobj = 0;
36595 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36596 void *argp1 = 0 ;
36597 int res1 = 0 ;
36598 PyObject *swig_obj[1] ;
36599
36600 if (!args) SWIG_fail;
36601 swig_obj[0] = args;
36602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36603 if (!SWIG_IsOK(res1)) {
36604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36605 }
36606 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36607 {
36608 PyThreadState* __tstate = wxPyBeginAllowThreads();
36609 (arg1)->UnselectAll();
36610 wxPyEndAllowThreads(__tstate);
36611 if (PyErr_Occurred()) SWIG_fail;
36612 }
36613 resultobj = SWIG_Py_Void();
36614 return resultobj;
36615 fail:
36616 return NULL;
36617 }
36618
36619
36620 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36621 PyObject *resultobj = 0;
36622 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36623 wxTreeItemId *arg2 = 0 ;
36624 bool arg3 = (bool) true ;
36625 void *argp1 = 0 ;
36626 int res1 = 0 ;
36627 void *argp2 = 0 ;
36628 int res2 = 0 ;
36629 bool val3 ;
36630 int ecode3 = 0 ;
36631 PyObject * obj0 = 0 ;
36632 PyObject * obj1 = 0 ;
36633 PyObject * obj2 = 0 ;
36634 char * kwnames[] = {
36635 (char *) "self",(char *) "item",(char *) "select", NULL
36636 };
36637
36638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36640 if (!SWIG_IsOK(res1)) {
36641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36642 }
36643 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36644 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36645 if (!SWIG_IsOK(res2)) {
36646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36647 }
36648 if (!argp2) {
36649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36650 }
36651 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36652 if (obj2) {
36653 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36654 if (!SWIG_IsOK(ecode3)) {
36655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36656 }
36657 arg3 = static_cast< bool >(val3);
36658 }
36659 {
36660 PyThreadState* __tstate = wxPyBeginAllowThreads();
36661 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36662 wxPyEndAllowThreads(__tstate);
36663 if (PyErr_Occurred()) SWIG_fail;
36664 }
36665 resultobj = SWIG_Py_Void();
36666 return resultobj;
36667 fail:
36668 return NULL;
36669 }
36670
36671
36672 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36673 PyObject *resultobj = 0;
36674 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36675 wxTreeItemId *arg2 = 0 ;
36676 void *argp1 = 0 ;
36677 int res1 = 0 ;
36678 void *argp2 = 0 ;
36679 int res2 = 0 ;
36680 PyObject * obj0 = 0 ;
36681 PyObject * obj1 = 0 ;
36682 char * kwnames[] = {
36683 (char *) "self",(char *) "item", NULL
36684 };
36685
36686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36688 if (!SWIG_IsOK(res1)) {
36689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36690 }
36691 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36692 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36693 if (!SWIG_IsOK(res2)) {
36694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36695 }
36696 if (!argp2) {
36697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36698 }
36699 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36700 {
36701 PyThreadState* __tstate = wxPyBeginAllowThreads();
36702 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36703 wxPyEndAllowThreads(__tstate);
36704 if (PyErr_Occurred()) SWIG_fail;
36705 }
36706 resultobj = SWIG_Py_Void();
36707 return resultobj;
36708 fail:
36709 return NULL;
36710 }
36711
36712
36713 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36714 PyObject *resultobj = 0;
36715 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36716 wxTreeItemId *arg2 = 0 ;
36717 void *argp1 = 0 ;
36718 int res1 = 0 ;
36719 void *argp2 = 0 ;
36720 int res2 = 0 ;
36721 PyObject * obj0 = 0 ;
36722 PyObject * obj1 = 0 ;
36723 char * kwnames[] = {
36724 (char *) "self",(char *) "item", NULL
36725 };
36726
36727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36729 if (!SWIG_IsOK(res1)) {
36730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36731 }
36732 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36733 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36734 if (!SWIG_IsOK(res2)) {
36735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36736 }
36737 if (!argp2) {
36738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36739 }
36740 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36741 {
36742 PyThreadState* __tstate = wxPyBeginAllowThreads();
36743 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36744 wxPyEndAllowThreads(__tstate);
36745 if (PyErr_Occurred()) SWIG_fail;
36746 }
36747 resultobj = SWIG_Py_Void();
36748 return resultobj;
36749 fail:
36750 return NULL;
36751 }
36752
36753
36754 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36755 PyObject *resultobj = 0;
36756 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36757 wxTreeItemId *arg2 = 0 ;
36758 void *argp1 = 0 ;
36759 int res1 = 0 ;
36760 void *argp2 = 0 ;
36761 int res2 = 0 ;
36762 PyObject * obj0 = 0 ;
36763 PyObject * obj1 = 0 ;
36764 char * kwnames[] = {
36765 (char *) "self",(char *) "item", NULL
36766 };
36767
36768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36770 if (!SWIG_IsOK(res1)) {
36771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36772 }
36773 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36774 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36775 if (!SWIG_IsOK(res2)) {
36776 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36777 }
36778 if (!argp2) {
36779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36780 }
36781 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36782 {
36783 PyThreadState* __tstate = wxPyBeginAllowThreads();
36784 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36785 wxPyEndAllowThreads(__tstate);
36786 if (PyErr_Occurred()) SWIG_fail;
36787 }
36788 resultobj = SWIG_Py_Void();
36789 return resultobj;
36790 fail:
36791 return NULL;
36792 }
36793
36794
36795 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36796 PyObject *resultobj = 0;
36797 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36798 wxTreeItemId *arg2 = 0 ;
36799 void *argp1 = 0 ;
36800 int res1 = 0 ;
36801 void *argp2 = 0 ;
36802 int res2 = 0 ;
36803 PyObject * obj0 = 0 ;
36804 PyObject * obj1 = 0 ;
36805 char * kwnames[] = {
36806 (char *) "self",(char *) "item", NULL
36807 };
36808
36809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36811 if (!SWIG_IsOK(res1)) {
36812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36813 }
36814 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36815 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36816 if (!SWIG_IsOK(res2)) {
36817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36818 }
36819 if (!argp2) {
36820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36821 }
36822 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36823 {
36824 PyThreadState* __tstate = wxPyBeginAllowThreads();
36825 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36826 wxPyEndAllowThreads(__tstate);
36827 if (PyErr_Occurred()) SWIG_fail;
36828 }
36829 resultobj = SWIG_Py_Void();
36830 return resultobj;
36831 fail:
36832 return NULL;
36833 }
36834
36835
36836 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36837 PyObject *resultobj = 0;
36838 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36839 wxTextCtrl *result = 0 ;
36840 void *argp1 = 0 ;
36841 int res1 = 0 ;
36842 PyObject *swig_obj[1] ;
36843
36844 if (!args) SWIG_fail;
36845 swig_obj[0] = args;
36846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36847 if (!SWIG_IsOK(res1)) {
36848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36849 }
36850 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36851 {
36852 PyThreadState* __tstate = wxPyBeginAllowThreads();
36853 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36854 wxPyEndAllowThreads(__tstate);
36855 if (PyErr_Occurred()) SWIG_fail;
36856 }
36857 {
36858 resultobj = wxPyMake_wxObject(result, 0);
36859 }
36860 return resultobj;
36861 fail:
36862 return NULL;
36863 }
36864
36865
36866 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36867 PyObject *resultobj = 0;
36868 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36869 wxTreeItemId *arg2 = 0 ;
36870 void *argp1 = 0 ;
36871 int res1 = 0 ;
36872 void *argp2 = 0 ;
36873 int res2 = 0 ;
36874 PyObject * obj0 = 0 ;
36875 PyObject * obj1 = 0 ;
36876 char * kwnames[] = {
36877 (char *) "self",(char *) "item", NULL
36878 };
36879
36880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36882 if (!SWIG_IsOK(res1)) {
36883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36884 }
36885 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36886 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36887 if (!SWIG_IsOK(res2)) {
36888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36889 }
36890 if (!argp2) {
36891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36892 }
36893 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36894 {
36895 PyThreadState* __tstate = wxPyBeginAllowThreads();
36896 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36897 wxPyEndAllowThreads(__tstate);
36898 if (PyErr_Occurred()) SWIG_fail;
36899 }
36900 resultobj = SWIG_Py_Void();
36901 return resultobj;
36902 fail:
36903 return NULL;
36904 }
36905
36906
36907 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36908 PyObject *resultobj = 0;
36909 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36910 wxPoint *arg2 = 0 ;
36911 int *arg3 = 0 ;
36912 wxTreeItemId result;
36913 void *argp1 = 0 ;
36914 int res1 = 0 ;
36915 wxPoint temp2 ;
36916 int temp3 ;
36917 int res3 = SWIG_TMPOBJ ;
36918 PyObject * obj0 = 0 ;
36919 PyObject * obj1 = 0 ;
36920 char * kwnames[] = {
36921 (char *) "self",(char *) "point", NULL
36922 };
36923
36924 arg3 = &temp3;
36925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36927 if (!SWIG_IsOK(res1)) {
36928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36929 }
36930 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36931 {
36932 arg2 = &temp2;
36933 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36934 }
36935 {
36936 PyThreadState* __tstate = wxPyBeginAllowThreads();
36937 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36938 wxPyEndAllowThreads(__tstate);
36939 if (PyErr_Occurred()) SWIG_fail;
36940 }
36941 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36942 if (SWIG_IsTmpObj(res3)) {
36943 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36944 } else {
36945 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36946 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36947 }
36948 return resultobj;
36949 fail:
36950 return NULL;
36951 }
36952
36953
36954 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36955 PyObject *resultobj = 0;
36956 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36957 wxTreeItemId *arg2 = 0 ;
36958 bool arg3 = (bool) false ;
36959 PyObject *result = 0 ;
36960 void *argp1 = 0 ;
36961 int res1 = 0 ;
36962 void *argp2 = 0 ;
36963 int res2 = 0 ;
36964 bool val3 ;
36965 int ecode3 = 0 ;
36966 PyObject * obj0 = 0 ;
36967 PyObject * obj1 = 0 ;
36968 PyObject * obj2 = 0 ;
36969 char * kwnames[] = {
36970 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36971 };
36972
36973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36975 if (!SWIG_IsOK(res1)) {
36976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36977 }
36978 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36979 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36980 if (!SWIG_IsOK(res2)) {
36981 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36982 }
36983 if (!argp2) {
36984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36985 }
36986 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36987 if (obj2) {
36988 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36989 if (!SWIG_IsOK(ecode3)) {
36990 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36991 }
36992 arg3 = static_cast< bool >(val3);
36993 }
36994 {
36995 PyThreadState* __tstate = wxPyBeginAllowThreads();
36996 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36997 wxPyEndAllowThreads(__tstate);
36998 if (PyErr_Occurred()) SWIG_fail;
36999 }
37000 resultobj = result;
37001 return resultobj;
37002 fail:
37003 return NULL;
37004 }
37005
37006
37007 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37008 PyObject *resultobj = 0;
37009 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37010 SwigValueWrapper<wxVisualAttributes > result;
37011 int val1 ;
37012 int ecode1 = 0 ;
37013 PyObject * obj0 = 0 ;
37014 char * kwnames[] = {
37015 (char *) "variant", NULL
37016 };
37017
37018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37019 if (obj0) {
37020 ecode1 = SWIG_AsVal_int(obj0, &val1);
37021 if (!SWIG_IsOK(ecode1)) {
37022 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37023 }
37024 arg1 = static_cast< wxWindowVariant >(val1);
37025 }
37026 {
37027 if (!wxPyCheckForApp()) SWIG_fail;
37028 PyThreadState* __tstate = wxPyBeginAllowThreads();
37029 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37030 wxPyEndAllowThreads(__tstate);
37031 if (PyErr_Occurred()) SWIG_fail;
37032 }
37033 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37034 return resultobj;
37035 fail:
37036 return NULL;
37037 }
37038
37039
37040 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37041 PyObject *resultobj = 0;
37042 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37043 bool arg2 ;
37044 void *argp1 = 0 ;
37045 int res1 = 0 ;
37046 bool val2 ;
37047 int ecode2 = 0 ;
37048 PyObject * obj0 = 0 ;
37049 PyObject * obj1 = 0 ;
37050 char * kwnames[] = {
37051 (char *) "self",(char *) "q", NULL
37052 };
37053
37054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37056 if (!SWIG_IsOK(res1)) {
37057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37058 }
37059 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37060 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37061 if (!SWIG_IsOK(ecode2)) {
37062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37063 }
37064 arg2 = static_cast< bool >(val2);
37065 {
37066 PyThreadState* __tstate = wxPyBeginAllowThreads();
37067 (arg1)->SetQuickBestSize(arg2);
37068 wxPyEndAllowThreads(__tstate);
37069 if (PyErr_Occurred()) SWIG_fail;
37070 }
37071 resultobj = SWIG_Py_Void();
37072 return resultobj;
37073 fail:
37074 return NULL;
37075 }
37076
37077
37078 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37079 PyObject *resultobj = 0;
37080 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37081 bool result;
37082 void *argp1 = 0 ;
37083 int res1 = 0 ;
37084 PyObject *swig_obj[1] ;
37085
37086 if (!args) SWIG_fail;
37087 swig_obj[0] = args;
37088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37089 if (!SWIG_IsOK(res1)) {
37090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37091 }
37092 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37093 {
37094 PyThreadState* __tstate = wxPyBeginAllowThreads();
37095 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37096 wxPyEndAllowThreads(__tstate);
37097 if (PyErr_Occurred()) SWIG_fail;
37098 }
37099 {
37100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37101 }
37102 return resultobj;
37103 fail:
37104 return NULL;
37105 }
37106
37107
37108 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37109 PyObject *obj;
37110 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37111 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37112 return SWIG_Py_Void();
37113 }
37114
37115 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37116 return SWIG_Python_InitShadowInstance(args);
37117 }
37118
37119 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37120 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37121 return 1;
37122 }
37123
37124
37125 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37126 PyObject *pyobj = 0;
37127
37128 {
37129 #if wxUSE_UNICODE
37130 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37131 #else
37132 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37133 #endif
37134 }
37135 return pyobj;
37136 }
37137
37138
37139 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37140 PyObject *resultobj = 0;
37141 wxWindow *arg1 = (wxWindow *) 0 ;
37142 int arg2 = (int) (int)-1 ;
37143 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37144 wxString *arg3 = (wxString *) &arg3_defvalue ;
37145 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37146 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37147 wxSize const &arg5_defvalue = wxDefaultSize ;
37148 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37149 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37150 wxString const &arg7_defvalue = wxPyEmptyString ;
37151 wxString *arg7 = (wxString *) &arg7_defvalue ;
37152 int arg8 = (int) 0 ;
37153 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37154 wxString *arg9 = (wxString *) &arg9_defvalue ;
37155 wxGenericDirCtrl *result = 0 ;
37156 void *argp1 = 0 ;
37157 int res1 = 0 ;
37158 int val2 ;
37159 int ecode2 = 0 ;
37160 bool temp3 = false ;
37161 wxPoint temp4 ;
37162 wxSize temp5 ;
37163 long val6 ;
37164 int ecode6 = 0 ;
37165 bool temp7 = false ;
37166 int val8 ;
37167 int ecode8 = 0 ;
37168 bool temp9 = false ;
37169 PyObject * obj0 = 0 ;
37170 PyObject * obj1 = 0 ;
37171 PyObject * obj2 = 0 ;
37172 PyObject * obj3 = 0 ;
37173 PyObject * obj4 = 0 ;
37174 PyObject * obj5 = 0 ;
37175 PyObject * obj6 = 0 ;
37176 PyObject * obj7 = 0 ;
37177 PyObject * obj8 = 0 ;
37178 char * kwnames[] = {
37179 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37180 };
37181
37182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37184 if (!SWIG_IsOK(res1)) {
37185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37186 }
37187 arg1 = reinterpret_cast< wxWindow * >(argp1);
37188 if (obj1) {
37189 ecode2 = SWIG_AsVal_int(obj1, &val2);
37190 if (!SWIG_IsOK(ecode2)) {
37191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37192 }
37193 arg2 = static_cast< int >(val2);
37194 }
37195 if (obj2) {
37196 {
37197 arg3 = wxString_in_helper(obj2);
37198 if (arg3 == NULL) SWIG_fail;
37199 temp3 = true;
37200 }
37201 }
37202 if (obj3) {
37203 {
37204 arg4 = &temp4;
37205 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37206 }
37207 }
37208 if (obj4) {
37209 {
37210 arg5 = &temp5;
37211 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37212 }
37213 }
37214 if (obj5) {
37215 ecode6 = SWIG_AsVal_long(obj5, &val6);
37216 if (!SWIG_IsOK(ecode6)) {
37217 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37218 }
37219 arg6 = static_cast< long >(val6);
37220 }
37221 if (obj6) {
37222 {
37223 arg7 = wxString_in_helper(obj6);
37224 if (arg7 == NULL) SWIG_fail;
37225 temp7 = true;
37226 }
37227 }
37228 if (obj7) {
37229 ecode8 = SWIG_AsVal_int(obj7, &val8);
37230 if (!SWIG_IsOK(ecode8)) {
37231 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37232 }
37233 arg8 = static_cast< int >(val8);
37234 }
37235 if (obj8) {
37236 {
37237 arg9 = wxString_in_helper(obj8);
37238 if (arg9 == NULL) SWIG_fail;
37239 temp9 = true;
37240 }
37241 }
37242 {
37243 if (!wxPyCheckForApp()) SWIG_fail;
37244 PyThreadState* __tstate = wxPyBeginAllowThreads();
37245 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37246 wxPyEndAllowThreads(__tstate);
37247 if (PyErr_Occurred()) SWIG_fail;
37248 }
37249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37250 {
37251 if (temp3)
37252 delete arg3;
37253 }
37254 {
37255 if (temp7)
37256 delete arg7;
37257 }
37258 {
37259 if (temp9)
37260 delete arg9;
37261 }
37262 return resultobj;
37263 fail:
37264 {
37265 if (temp3)
37266 delete arg3;
37267 }
37268 {
37269 if (temp7)
37270 delete arg7;
37271 }
37272 {
37273 if (temp9)
37274 delete arg9;
37275 }
37276 return NULL;
37277 }
37278
37279
37280 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37281 PyObject *resultobj = 0;
37282 wxGenericDirCtrl *result = 0 ;
37283
37284 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37285 {
37286 if (!wxPyCheckForApp()) SWIG_fail;
37287 PyThreadState* __tstate = wxPyBeginAllowThreads();
37288 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37289 wxPyEndAllowThreads(__tstate);
37290 if (PyErr_Occurred()) SWIG_fail;
37291 }
37292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37293 return resultobj;
37294 fail:
37295 return NULL;
37296 }
37297
37298
37299 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37300 PyObject *resultobj = 0;
37301 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37302 wxWindow *arg2 = (wxWindow *) 0 ;
37303 int arg3 = (int) (int)-1 ;
37304 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37305 wxString *arg4 = (wxString *) &arg4_defvalue ;
37306 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37307 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37308 wxSize const &arg6_defvalue = wxDefaultSize ;
37309 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37310 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37311 wxString const &arg8_defvalue = wxPyEmptyString ;
37312 wxString *arg8 = (wxString *) &arg8_defvalue ;
37313 int arg9 = (int) 0 ;
37314 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37315 wxString *arg10 = (wxString *) &arg10_defvalue ;
37316 bool result;
37317 void *argp1 = 0 ;
37318 int res1 = 0 ;
37319 void *argp2 = 0 ;
37320 int res2 = 0 ;
37321 int val3 ;
37322 int ecode3 = 0 ;
37323 bool temp4 = false ;
37324 wxPoint temp5 ;
37325 wxSize temp6 ;
37326 long val7 ;
37327 int ecode7 = 0 ;
37328 bool temp8 = false ;
37329 int val9 ;
37330 int ecode9 = 0 ;
37331 bool temp10 = false ;
37332 PyObject * obj0 = 0 ;
37333 PyObject * obj1 = 0 ;
37334 PyObject * obj2 = 0 ;
37335 PyObject * obj3 = 0 ;
37336 PyObject * obj4 = 0 ;
37337 PyObject * obj5 = 0 ;
37338 PyObject * obj6 = 0 ;
37339 PyObject * obj7 = 0 ;
37340 PyObject * obj8 = 0 ;
37341 PyObject * obj9 = 0 ;
37342 char * kwnames[] = {
37343 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37344 };
37345
37346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37348 if (!SWIG_IsOK(res1)) {
37349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37350 }
37351 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37352 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37353 if (!SWIG_IsOK(res2)) {
37354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37355 }
37356 arg2 = reinterpret_cast< wxWindow * >(argp2);
37357 if (obj2) {
37358 ecode3 = SWIG_AsVal_int(obj2, &val3);
37359 if (!SWIG_IsOK(ecode3)) {
37360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37361 }
37362 arg3 = static_cast< int >(val3);
37363 }
37364 if (obj3) {
37365 {
37366 arg4 = wxString_in_helper(obj3);
37367 if (arg4 == NULL) SWIG_fail;
37368 temp4 = true;
37369 }
37370 }
37371 if (obj4) {
37372 {
37373 arg5 = &temp5;
37374 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37375 }
37376 }
37377 if (obj5) {
37378 {
37379 arg6 = &temp6;
37380 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37381 }
37382 }
37383 if (obj6) {
37384 ecode7 = SWIG_AsVal_long(obj6, &val7);
37385 if (!SWIG_IsOK(ecode7)) {
37386 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37387 }
37388 arg7 = static_cast< long >(val7);
37389 }
37390 if (obj7) {
37391 {
37392 arg8 = wxString_in_helper(obj7);
37393 if (arg8 == NULL) SWIG_fail;
37394 temp8 = true;
37395 }
37396 }
37397 if (obj8) {
37398 ecode9 = SWIG_AsVal_int(obj8, &val9);
37399 if (!SWIG_IsOK(ecode9)) {
37400 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37401 }
37402 arg9 = static_cast< int >(val9);
37403 }
37404 if (obj9) {
37405 {
37406 arg10 = wxString_in_helper(obj9);
37407 if (arg10 == NULL) SWIG_fail;
37408 temp10 = true;
37409 }
37410 }
37411 {
37412 PyThreadState* __tstate = wxPyBeginAllowThreads();
37413 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37414 wxPyEndAllowThreads(__tstate);
37415 if (PyErr_Occurred()) SWIG_fail;
37416 }
37417 {
37418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37419 }
37420 {
37421 if (temp4)
37422 delete arg4;
37423 }
37424 {
37425 if (temp8)
37426 delete arg8;
37427 }
37428 {
37429 if (temp10)
37430 delete arg10;
37431 }
37432 return resultobj;
37433 fail:
37434 {
37435 if (temp4)
37436 delete arg4;
37437 }
37438 {
37439 if (temp8)
37440 delete arg8;
37441 }
37442 {
37443 if (temp10)
37444 delete arg10;
37445 }
37446 return NULL;
37447 }
37448
37449
37450 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37451 PyObject *resultobj = 0;
37452 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37453 wxString *arg2 = 0 ;
37454 bool result;
37455 void *argp1 = 0 ;
37456 int res1 = 0 ;
37457 bool temp2 = false ;
37458 PyObject * obj0 = 0 ;
37459 PyObject * obj1 = 0 ;
37460 char * kwnames[] = {
37461 (char *) "self",(char *) "path", NULL
37462 };
37463
37464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37466 if (!SWIG_IsOK(res1)) {
37467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37468 }
37469 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37470 {
37471 arg2 = wxString_in_helper(obj1);
37472 if (arg2 == NULL) SWIG_fail;
37473 temp2 = true;
37474 }
37475 {
37476 PyThreadState* __tstate = wxPyBeginAllowThreads();
37477 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37478 wxPyEndAllowThreads(__tstate);
37479 if (PyErr_Occurred()) SWIG_fail;
37480 }
37481 {
37482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37483 }
37484 {
37485 if (temp2)
37486 delete arg2;
37487 }
37488 return resultobj;
37489 fail:
37490 {
37491 if (temp2)
37492 delete arg2;
37493 }
37494 return NULL;
37495 }
37496
37497
37498 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37499 PyObject *resultobj = 0;
37500 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37501 wxString *arg2 = 0 ;
37502 bool result;
37503 void *argp1 = 0 ;
37504 int res1 = 0 ;
37505 bool temp2 = false ;
37506 PyObject * obj0 = 0 ;
37507 PyObject * obj1 = 0 ;
37508 char * kwnames[] = {
37509 (char *) "self",(char *) "path", NULL
37510 };
37511
37512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37514 if (!SWIG_IsOK(res1)) {
37515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37516 }
37517 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37518 {
37519 arg2 = wxString_in_helper(obj1);
37520 if (arg2 == NULL) SWIG_fail;
37521 temp2 = true;
37522 }
37523 {
37524 PyThreadState* __tstate = wxPyBeginAllowThreads();
37525 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37526 wxPyEndAllowThreads(__tstate);
37527 if (PyErr_Occurred()) SWIG_fail;
37528 }
37529 {
37530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37531 }
37532 {
37533 if (temp2)
37534 delete arg2;
37535 }
37536 return resultobj;
37537 fail:
37538 {
37539 if (temp2)
37540 delete arg2;
37541 }
37542 return NULL;
37543 }
37544
37545
37546 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37547 PyObject *resultobj = 0;
37548 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37549 wxString result;
37550 void *argp1 = 0 ;
37551 int res1 = 0 ;
37552 PyObject *swig_obj[1] ;
37553
37554 if (!args) SWIG_fail;
37555 swig_obj[0] = args;
37556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37557 if (!SWIG_IsOK(res1)) {
37558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37559 }
37560 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37561 {
37562 PyThreadState* __tstate = wxPyBeginAllowThreads();
37563 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37564 wxPyEndAllowThreads(__tstate);
37565 if (PyErr_Occurred()) SWIG_fail;
37566 }
37567 {
37568 #if wxUSE_UNICODE
37569 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37570 #else
37571 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37572 #endif
37573 }
37574 return resultobj;
37575 fail:
37576 return NULL;
37577 }
37578
37579
37580 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37581 PyObject *resultobj = 0;
37582 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37583 wxString *arg2 = 0 ;
37584 void *argp1 = 0 ;
37585 int res1 = 0 ;
37586 bool temp2 = false ;
37587 PyObject * obj0 = 0 ;
37588 PyObject * obj1 = 0 ;
37589 char * kwnames[] = {
37590 (char *) "self",(char *) "path", NULL
37591 };
37592
37593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37595 if (!SWIG_IsOK(res1)) {
37596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37597 }
37598 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37599 {
37600 arg2 = wxString_in_helper(obj1);
37601 if (arg2 == NULL) SWIG_fail;
37602 temp2 = true;
37603 }
37604 {
37605 PyThreadState* __tstate = wxPyBeginAllowThreads();
37606 (arg1)->SetDefaultPath((wxString const &)*arg2);
37607 wxPyEndAllowThreads(__tstate);
37608 if (PyErr_Occurred()) SWIG_fail;
37609 }
37610 resultobj = SWIG_Py_Void();
37611 {
37612 if (temp2)
37613 delete arg2;
37614 }
37615 return resultobj;
37616 fail:
37617 {
37618 if (temp2)
37619 delete arg2;
37620 }
37621 return NULL;
37622 }
37623
37624
37625 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37626 PyObject *resultobj = 0;
37627 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37628 wxString result;
37629 void *argp1 = 0 ;
37630 int res1 = 0 ;
37631 PyObject *swig_obj[1] ;
37632
37633 if (!args) SWIG_fail;
37634 swig_obj[0] = args;
37635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37636 if (!SWIG_IsOK(res1)) {
37637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37638 }
37639 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37640 {
37641 PyThreadState* __tstate = wxPyBeginAllowThreads();
37642 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37643 wxPyEndAllowThreads(__tstate);
37644 if (PyErr_Occurred()) SWIG_fail;
37645 }
37646 {
37647 #if wxUSE_UNICODE
37648 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37649 #else
37650 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37651 #endif
37652 }
37653 return resultobj;
37654 fail:
37655 return NULL;
37656 }
37657
37658
37659 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37660 PyObject *resultobj = 0;
37661 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37662 wxString result;
37663 void *argp1 = 0 ;
37664 int res1 = 0 ;
37665 PyObject *swig_obj[1] ;
37666
37667 if (!args) SWIG_fail;
37668 swig_obj[0] = args;
37669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37670 if (!SWIG_IsOK(res1)) {
37671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37672 }
37673 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37674 {
37675 PyThreadState* __tstate = wxPyBeginAllowThreads();
37676 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37677 wxPyEndAllowThreads(__tstate);
37678 if (PyErr_Occurred()) SWIG_fail;
37679 }
37680 {
37681 #if wxUSE_UNICODE
37682 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37683 #else
37684 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37685 #endif
37686 }
37687 return resultobj;
37688 fail:
37689 return NULL;
37690 }
37691
37692
37693 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37694 PyObject *resultobj = 0;
37695 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37696 wxString *arg2 = 0 ;
37697 void *argp1 = 0 ;
37698 int res1 = 0 ;
37699 bool temp2 = false ;
37700 PyObject * obj0 = 0 ;
37701 PyObject * obj1 = 0 ;
37702 char * kwnames[] = {
37703 (char *) "self",(char *) "path", NULL
37704 };
37705
37706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37708 if (!SWIG_IsOK(res1)) {
37709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37710 }
37711 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37712 {
37713 arg2 = wxString_in_helper(obj1);
37714 if (arg2 == NULL) SWIG_fail;
37715 temp2 = true;
37716 }
37717 {
37718 PyThreadState* __tstate = wxPyBeginAllowThreads();
37719 (arg1)->SetPath((wxString const &)*arg2);
37720 wxPyEndAllowThreads(__tstate);
37721 if (PyErr_Occurred()) SWIG_fail;
37722 }
37723 resultobj = SWIG_Py_Void();
37724 {
37725 if (temp2)
37726 delete arg2;
37727 }
37728 return resultobj;
37729 fail:
37730 {
37731 if (temp2)
37732 delete arg2;
37733 }
37734 return NULL;
37735 }
37736
37737
37738 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37739 PyObject *resultobj = 0;
37740 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37741 bool arg2 ;
37742 void *argp1 = 0 ;
37743 int res1 = 0 ;
37744 bool val2 ;
37745 int ecode2 = 0 ;
37746 PyObject * obj0 = 0 ;
37747 PyObject * obj1 = 0 ;
37748 char * kwnames[] = {
37749 (char *) "self",(char *) "show", NULL
37750 };
37751
37752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37754 if (!SWIG_IsOK(res1)) {
37755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37756 }
37757 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37758 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37759 if (!SWIG_IsOK(ecode2)) {
37760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37761 }
37762 arg2 = static_cast< bool >(val2);
37763 {
37764 PyThreadState* __tstate = wxPyBeginAllowThreads();
37765 (arg1)->ShowHidden(arg2);
37766 wxPyEndAllowThreads(__tstate);
37767 if (PyErr_Occurred()) SWIG_fail;
37768 }
37769 resultobj = SWIG_Py_Void();
37770 return resultobj;
37771 fail:
37772 return NULL;
37773 }
37774
37775
37776 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37777 PyObject *resultobj = 0;
37778 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37779 bool result;
37780 void *argp1 = 0 ;
37781 int res1 = 0 ;
37782 PyObject *swig_obj[1] ;
37783
37784 if (!args) SWIG_fail;
37785 swig_obj[0] = args;
37786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37787 if (!SWIG_IsOK(res1)) {
37788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37789 }
37790 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37791 {
37792 PyThreadState* __tstate = wxPyBeginAllowThreads();
37793 result = (bool)(arg1)->GetShowHidden();
37794 wxPyEndAllowThreads(__tstate);
37795 if (PyErr_Occurred()) SWIG_fail;
37796 }
37797 {
37798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37799 }
37800 return resultobj;
37801 fail:
37802 return NULL;
37803 }
37804
37805
37806 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37807 PyObject *resultobj = 0;
37808 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37809 wxString result;
37810 void *argp1 = 0 ;
37811 int res1 = 0 ;
37812 PyObject *swig_obj[1] ;
37813
37814 if (!args) SWIG_fail;
37815 swig_obj[0] = args;
37816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37817 if (!SWIG_IsOK(res1)) {
37818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37819 }
37820 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37821 {
37822 PyThreadState* __tstate = wxPyBeginAllowThreads();
37823 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37824 wxPyEndAllowThreads(__tstate);
37825 if (PyErr_Occurred()) SWIG_fail;
37826 }
37827 {
37828 #if wxUSE_UNICODE
37829 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37830 #else
37831 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37832 #endif
37833 }
37834 return resultobj;
37835 fail:
37836 return NULL;
37837 }
37838
37839
37840 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37841 PyObject *resultobj = 0;
37842 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37843 wxString *arg2 = 0 ;
37844 void *argp1 = 0 ;
37845 int res1 = 0 ;
37846 bool temp2 = false ;
37847 PyObject * obj0 = 0 ;
37848 PyObject * obj1 = 0 ;
37849 char * kwnames[] = {
37850 (char *) "self",(char *) "filter", NULL
37851 };
37852
37853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37855 if (!SWIG_IsOK(res1)) {
37856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37857 }
37858 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37859 {
37860 arg2 = wxString_in_helper(obj1);
37861 if (arg2 == NULL) SWIG_fail;
37862 temp2 = true;
37863 }
37864 {
37865 PyThreadState* __tstate = wxPyBeginAllowThreads();
37866 (arg1)->SetFilter((wxString const &)*arg2);
37867 wxPyEndAllowThreads(__tstate);
37868 if (PyErr_Occurred()) SWIG_fail;
37869 }
37870 resultobj = SWIG_Py_Void();
37871 {
37872 if (temp2)
37873 delete arg2;
37874 }
37875 return resultobj;
37876 fail:
37877 {
37878 if (temp2)
37879 delete arg2;
37880 }
37881 return NULL;
37882 }
37883
37884
37885 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37886 PyObject *resultobj = 0;
37887 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37888 int result;
37889 void *argp1 = 0 ;
37890 int res1 = 0 ;
37891 PyObject *swig_obj[1] ;
37892
37893 if (!args) SWIG_fail;
37894 swig_obj[0] = args;
37895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37896 if (!SWIG_IsOK(res1)) {
37897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37898 }
37899 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37900 {
37901 PyThreadState* __tstate = wxPyBeginAllowThreads();
37902 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37903 wxPyEndAllowThreads(__tstate);
37904 if (PyErr_Occurred()) SWIG_fail;
37905 }
37906 resultobj = SWIG_From_int(static_cast< int >(result));
37907 return resultobj;
37908 fail:
37909 return NULL;
37910 }
37911
37912
37913 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37914 PyObject *resultobj = 0;
37915 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37916 int arg2 ;
37917 void *argp1 = 0 ;
37918 int res1 = 0 ;
37919 int val2 ;
37920 int ecode2 = 0 ;
37921 PyObject * obj0 = 0 ;
37922 PyObject * obj1 = 0 ;
37923 char * kwnames[] = {
37924 (char *) "self",(char *) "n", NULL
37925 };
37926
37927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37929 if (!SWIG_IsOK(res1)) {
37930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37931 }
37932 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37933 ecode2 = SWIG_AsVal_int(obj1, &val2);
37934 if (!SWIG_IsOK(ecode2)) {
37935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37936 }
37937 arg2 = static_cast< int >(val2);
37938 {
37939 PyThreadState* __tstate = wxPyBeginAllowThreads();
37940 (arg1)->SetFilterIndex(arg2);
37941 wxPyEndAllowThreads(__tstate);
37942 if (PyErr_Occurred()) SWIG_fail;
37943 }
37944 resultobj = SWIG_Py_Void();
37945 return resultobj;
37946 fail:
37947 return NULL;
37948 }
37949
37950
37951 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37952 PyObject *resultobj = 0;
37953 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37954 wxTreeItemId result;
37955 void *argp1 = 0 ;
37956 int res1 = 0 ;
37957 PyObject *swig_obj[1] ;
37958
37959 if (!args) SWIG_fail;
37960 swig_obj[0] = args;
37961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37962 if (!SWIG_IsOK(res1)) {
37963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37964 }
37965 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37966 {
37967 PyThreadState* __tstate = wxPyBeginAllowThreads();
37968 result = (arg1)->GetRootId();
37969 wxPyEndAllowThreads(__tstate);
37970 if (PyErr_Occurred()) SWIG_fail;
37971 }
37972 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37973 return resultobj;
37974 fail:
37975 return NULL;
37976 }
37977
37978
37979 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37980 PyObject *resultobj = 0;
37981 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37982 wxPyTreeCtrl *result = 0 ;
37983 void *argp1 = 0 ;
37984 int res1 = 0 ;
37985 PyObject *swig_obj[1] ;
37986
37987 if (!args) SWIG_fail;
37988 swig_obj[0] = args;
37989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37990 if (!SWIG_IsOK(res1)) {
37991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37992 }
37993 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37994 {
37995 PyThreadState* __tstate = wxPyBeginAllowThreads();
37996 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37997 wxPyEndAllowThreads(__tstate);
37998 if (PyErr_Occurred()) SWIG_fail;
37999 }
38000 {
38001 resultobj = wxPyMake_wxObject(result, 0);
38002 }
38003 return resultobj;
38004 fail:
38005 return NULL;
38006 }
38007
38008
38009 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38010 PyObject *resultobj = 0;
38011 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38012 wxDirFilterListCtrl *result = 0 ;
38013 void *argp1 = 0 ;
38014 int res1 = 0 ;
38015 PyObject *swig_obj[1] ;
38016
38017 if (!args) SWIG_fail;
38018 swig_obj[0] = args;
38019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38020 if (!SWIG_IsOK(res1)) {
38021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38022 }
38023 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38024 {
38025 PyThreadState* __tstate = wxPyBeginAllowThreads();
38026 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38027 wxPyEndAllowThreads(__tstate);
38028 if (PyErr_Occurred()) SWIG_fail;
38029 }
38030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38031 return resultobj;
38032 fail:
38033 return NULL;
38034 }
38035
38036
38037 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38038 PyObject *resultobj = 0;
38039 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38040 wxTreeItemId arg2 ;
38041 wxString *arg3 = 0 ;
38042 bool *arg4 = 0 ;
38043 wxTreeItemId result;
38044 void *argp1 = 0 ;
38045 int res1 = 0 ;
38046 void *argp2 ;
38047 int res2 = 0 ;
38048 bool temp3 = false ;
38049 bool temp4 ;
38050 int res4 = SWIG_TMPOBJ ;
38051 PyObject * obj0 = 0 ;
38052 PyObject * obj1 = 0 ;
38053 PyObject * obj2 = 0 ;
38054 char * kwnames[] = {
38055 (char *) "self",(char *) "parentId",(char *) "path", NULL
38056 };
38057
38058 arg4 = &temp4;
38059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38061 if (!SWIG_IsOK(res1)) {
38062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38063 }
38064 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38065 {
38066 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38067 if (!SWIG_IsOK(res2)) {
38068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38069 }
38070 if (!argp2) {
38071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38072 } else {
38073 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38074 arg2 = *temp;
38075 if (SWIG_IsNewObj(res2)) delete temp;
38076 }
38077 }
38078 {
38079 arg3 = wxString_in_helper(obj2);
38080 if (arg3 == NULL) SWIG_fail;
38081 temp3 = true;
38082 }
38083 {
38084 PyThreadState* __tstate = wxPyBeginAllowThreads();
38085 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38086 wxPyEndAllowThreads(__tstate);
38087 if (PyErr_Occurred()) SWIG_fail;
38088 }
38089 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38090 if (SWIG_IsTmpObj(res4)) {
38091 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38092 } else {
38093 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38094 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38095 }
38096 {
38097 if (temp3)
38098 delete arg3;
38099 }
38100 return resultobj;
38101 fail:
38102 {
38103 if (temp3)
38104 delete arg3;
38105 }
38106 return NULL;
38107 }
38108
38109
38110 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38111 PyObject *resultobj = 0;
38112 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38113 void *argp1 = 0 ;
38114 int res1 = 0 ;
38115 PyObject *swig_obj[1] ;
38116
38117 if (!args) SWIG_fail;
38118 swig_obj[0] = args;
38119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38120 if (!SWIG_IsOK(res1)) {
38121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38122 }
38123 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38124 {
38125 PyThreadState* __tstate = wxPyBeginAllowThreads();
38126 (arg1)->DoResize();
38127 wxPyEndAllowThreads(__tstate);
38128 if (PyErr_Occurred()) SWIG_fail;
38129 }
38130 resultobj = SWIG_Py_Void();
38131 return resultobj;
38132 fail:
38133 return NULL;
38134 }
38135
38136
38137 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38138 PyObject *resultobj = 0;
38139 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
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_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38149 }
38150 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38151 {
38152 PyThreadState* __tstate = wxPyBeginAllowThreads();
38153 (arg1)->ReCreateTree();
38154 wxPyEndAllowThreads(__tstate);
38155 if (PyErr_Occurred()) SWIG_fail;
38156 }
38157 resultobj = SWIG_Py_Void();
38158 return resultobj;
38159 fail:
38160 return NULL;
38161 }
38162
38163
38164 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38165 PyObject *obj;
38166 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38167 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38168 return SWIG_Py_Void();
38169 }
38170
38171 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38172 return SWIG_Python_InitShadowInstance(args);
38173 }
38174
38175 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38176 PyObject *resultobj = 0;
38177 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38178 int arg2 = (int) (int)-1 ;
38179 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38180 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38181 wxSize const &arg4_defvalue = wxDefaultSize ;
38182 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38183 long arg5 = (long) 0 ;
38184 wxDirFilterListCtrl *result = 0 ;
38185 void *argp1 = 0 ;
38186 int res1 = 0 ;
38187 int val2 ;
38188 int ecode2 = 0 ;
38189 wxPoint temp3 ;
38190 wxSize temp4 ;
38191 long val5 ;
38192 int ecode5 = 0 ;
38193 PyObject * obj0 = 0 ;
38194 PyObject * obj1 = 0 ;
38195 PyObject * obj2 = 0 ;
38196 PyObject * obj3 = 0 ;
38197 PyObject * obj4 = 0 ;
38198 char * kwnames[] = {
38199 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38200 };
38201
38202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38204 if (!SWIG_IsOK(res1)) {
38205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38206 }
38207 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38208 if (obj1) {
38209 ecode2 = SWIG_AsVal_int(obj1, &val2);
38210 if (!SWIG_IsOK(ecode2)) {
38211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38212 }
38213 arg2 = static_cast< int >(val2);
38214 }
38215 if (obj2) {
38216 {
38217 arg3 = &temp3;
38218 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38219 }
38220 }
38221 if (obj3) {
38222 {
38223 arg4 = &temp4;
38224 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38225 }
38226 }
38227 if (obj4) {
38228 ecode5 = SWIG_AsVal_long(obj4, &val5);
38229 if (!SWIG_IsOK(ecode5)) {
38230 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38231 }
38232 arg5 = static_cast< long >(val5);
38233 }
38234 {
38235 if (!wxPyCheckForApp()) SWIG_fail;
38236 PyThreadState* __tstate = wxPyBeginAllowThreads();
38237 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38238 wxPyEndAllowThreads(__tstate);
38239 if (PyErr_Occurred()) SWIG_fail;
38240 }
38241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38242 return resultobj;
38243 fail:
38244 return NULL;
38245 }
38246
38247
38248 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38249 PyObject *resultobj = 0;
38250 wxDirFilterListCtrl *result = 0 ;
38251
38252 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38253 {
38254 if (!wxPyCheckForApp()) SWIG_fail;
38255 PyThreadState* __tstate = wxPyBeginAllowThreads();
38256 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38257 wxPyEndAllowThreads(__tstate);
38258 if (PyErr_Occurred()) SWIG_fail;
38259 }
38260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38261 return resultobj;
38262 fail:
38263 return NULL;
38264 }
38265
38266
38267 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38268 PyObject *resultobj = 0;
38269 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38270 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38271 int arg3 = (int) (int)-1 ;
38272 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38273 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38274 wxSize const &arg5_defvalue = wxDefaultSize ;
38275 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38276 long arg6 = (long) 0 ;
38277 bool result;
38278 void *argp1 = 0 ;
38279 int res1 = 0 ;
38280 void *argp2 = 0 ;
38281 int res2 = 0 ;
38282 int val3 ;
38283 int ecode3 = 0 ;
38284 wxPoint temp4 ;
38285 wxSize temp5 ;
38286 long val6 ;
38287 int ecode6 = 0 ;
38288 PyObject * obj0 = 0 ;
38289 PyObject * obj1 = 0 ;
38290 PyObject * obj2 = 0 ;
38291 PyObject * obj3 = 0 ;
38292 PyObject * obj4 = 0 ;
38293 PyObject * obj5 = 0 ;
38294 char * kwnames[] = {
38295 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38296 };
38297
38298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38300 if (!SWIG_IsOK(res1)) {
38301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38302 }
38303 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38304 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38305 if (!SWIG_IsOK(res2)) {
38306 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38307 }
38308 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38309 if (obj2) {
38310 ecode3 = SWIG_AsVal_int(obj2, &val3);
38311 if (!SWIG_IsOK(ecode3)) {
38312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38313 }
38314 arg3 = static_cast< int >(val3);
38315 }
38316 if (obj3) {
38317 {
38318 arg4 = &temp4;
38319 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38320 }
38321 }
38322 if (obj4) {
38323 {
38324 arg5 = &temp5;
38325 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38326 }
38327 }
38328 if (obj5) {
38329 ecode6 = SWIG_AsVal_long(obj5, &val6);
38330 if (!SWIG_IsOK(ecode6)) {
38331 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38332 }
38333 arg6 = static_cast< long >(val6);
38334 }
38335 {
38336 PyThreadState* __tstate = wxPyBeginAllowThreads();
38337 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38338 wxPyEndAllowThreads(__tstate);
38339 if (PyErr_Occurred()) SWIG_fail;
38340 }
38341 {
38342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38343 }
38344 return resultobj;
38345 fail:
38346 return NULL;
38347 }
38348
38349
38350 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38351 PyObject *resultobj = 0;
38352 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38353 wxString *arg2 = 0 ;
38354 int arg3 ;
38355 void *argp1 = 0 ;
38356 int res1 = 0 ;
38357 bool temp2 = false ;
38358 int val3 ;
38359 int ecode3 = 0 ;
38360 PyObject * obj0 = 0 ;
38361 PyObject * obj1 = 0 ;
38362 PyObject * obj2 = 0 ;
38363 char * kwnames[] = {
38364 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38365 };
38366
38367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38369 if (!SWIG_IsOK(res1)) {
38370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38371 }
38372 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38373 {
38374 arg2 = wxString_in_helper(obj1);
38375 if (arg2 == NULL) SWIG_fail;
38376 temp2 = true;
38377 }
38378 ecode3 = SWIG_AsVal_int(obj2, &val3);
38379 if (!SWIG_IsOK(ecode3)) {
38380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38381 }
38382 arg3 = static_cast< int >(val3);
38383 {
38384 PyThreadState* __tstate = wxPyBeginAllowThreads();
38385 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38386 wxPyEndAllowThreads(__tstate);
38387 if (PyErr_Occurred()) SWIG_fail;
38388 }
38389 resultobj = SWIG_Py_Void();
38390 {
38391 if (temp2)
38392 delete arg2;
38393 }
38394 return resultobj;
38395 fail:
38396 {
38397 if (temp2)
38398 delete arg2;
38399 }
38400 return NULL;
38401 }
38402
38403
38404 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38405 PyObject *obj;
38406 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38407 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38408 return SWIG_Py_Void();
38409 }
38410
38411 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38412 return SWIG_Python_InitShadowInstance(args);
38413 }
38414
38415 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38416 PyObject *resultobj = 0;
38417 wxWindow *arg1 = (wxWindow *) 0 ;
38418 int arg2 = (int) (int)-1 ;
38419 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38420 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38421 wxSize const &arg4_defvalue = wxDefaultSize ;
38422 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38423 long arg5 = (long) 0 ;
38424 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38425 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38426 wxString const &arg7_defvalue = wxPyControlNameStr ;
38427 wxString *arg7 = (wxString *) &arg7_defvalue ;
38428 wxPyControl *result = 0 ;
38429 void *argp1 = 0 ;
38430 int res1 = 0 ;
38431 int val2 ;
38432 int ecode2 = 0 ;
38433 wxPoint temp3 ;
38434 wxSize temp4 ;
38435 long val5 ;
38436 int ecode5 = 0 ;
38437 void *argp6 = 0 ;
38438 int res6 = 0 ;
38439 bool temp7 = false ;
38440 PyObject * obj0 = 0 ;
38441 PyObject * obj1 = 0 ;
38442 PyObject * obj2 = 0 ;
38443 PyObject * obj3 = 0 ;
38444 PyObject * obj4 = 0 ;
38445 PyObject * obj5 = 0 ;
38446 PyObject * obj6 = 0 ;
38447 char * kwnames[] = {
38448 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38449 };
38450
38451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38453 if (!SWIG_IsOK(res1)) {
38454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38455 }
38456 arg1 = reinterpret_cast< wxWindow * >(argp1);
38457 if (obj1) {
38458 ecode2 = SWIG_AsVal_int(obj1, &val2);
38459 if (!SWIG_IsOK(ecode2)) {
38460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38461 }
38462 arg2 = static_cast< int >(val2);
38463 }
38464 if (obj2) {
38465 {
38466 arg3 = &temp3;
38467 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38468 }
38469 }
38470 if (obj3) {
38471 {
38472 arg4 = &temp4;
38473 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38474 }
38475 }
38476 if (obj4) {
38477 ecode5 = SWIG_AsVal_long(obj4, &val5);
38478 if (!SWIG_IsOK(ecode5)) {
38479 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38480 }
38481 arg5 = static_cast< long >(val5);
38482 }
38483 if (obj5) {
38484 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38485 if (!SWIG_IsOK(res6)) {
38486 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38487 }
38488 if (!argp6) {
38489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38490 }
38491 arg6 = reinterpret_cast< wxValidator * >(argp6);
38492 }
38493 if (obj6) {
38494 {
38495 arg7 = wxString_in_helper(obj6);
38496 if (arg7 == NULL) SWIG_fail;
38497 temp7 = true;
38498 }
38499 }
38500 {
38501 if (!wxPyCheckForApp()) SWIG_fail;
38502 PyThreadState* __tstate = wxPyBeginAllowThreads();
38503 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38504 wxPyEndAllowThreads(__tstate);
38505 if (PyErr_Occurred()) SWIG_fail;
38506 }
38507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38508 {
38509 if (temp7)
38510 delete arg7;
38511 }
38512 return resultobj;
38513 fail:
38514 {
38515 if (temp7)
38516 delete arg7;
38517 }
38518 return NULL;
38519 }
38520
38521
38522 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38523 PyObject *resultobj = 0;
38524 wxPyControl *result = 0 ;
38525
38526 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38527 {
38528 if (!wxPyCheckForApp()) SWIG_fail;
38529 PyThreadState* __tstate = wxPyBeginAllowThreads();
38530 result = (wxPyControl *)new wxPyControl();
38531 wxPyEndAllowThreads(__tstate);
38532 if (PyErr_Occurred()) SWIG_fail;
38533 }
38534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38535 return resultobj;
38536 fail:
38537 return NULL;
38538 }
38539
38540
38541 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38542 PyObject *resultobj = 0;
38543 wxPyControl *arg1 = (wxPyControl *) 0 ;
38544 PyObject *arg2 = (PyObject *) 0 ;
38545 PyObject *arg3 = (PyObject *) 0 ;
38546 void *argp1 = 0 ;
38547 int res1 = 0 ;
38548 PyObject * obj0 = 0 ;
38549 PyObject * obj1 = 0 ;
38550 PyObject * obj2 = 0 ;
38551 char * kwnames[] = {
38552 (char *) "self",(char *) "self",(char *) "_class", NULL
38553 };
38554
38555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38557 if (!SWIG_IsOK(res1)) {
38558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38559 }
38560 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38561 arg2 = obj1;
38562 arg3 = obj2;
38563 {
38564 PyThreadState* __tstate = wxPyBeginAllowThreads();
38565 (arg1)->_setCallbackInfo(arg2,arg3);
38566 wxPyEndAllowThreads(__tstate);
38567 if (PyErr_Occurred()) SWIG_fail;
38568 }
38569 resultobj = SWIG_Py_Void();
38570 return resultobj;
38571 fail:
38572 return NULL;
38573 }
38574
38575
38576 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38577 PyObject *resultobj = 0;
38578 wxPyControl *arg1 = (wxPyControl *) 0 ;
38579 wxSize *arg2 = 0 ;
38580 void *argp1 = 0 ;
38581 int res1 = 0 ;
38582 wxSize temp2 ;
38583 PyObject * obj0 = 0 ;
38584 PyObject * obj1 = 0 ;
38585 char * kwnames[] = {
38586 (char *) "self",(char *) "size", NULL
38587 };
38588
38589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38591 if (!SWIG_IsOK(res1)) {
38592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38593 }
38594 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38595 {
38596 arg2 = &temp2;
38597 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38598 }
38599 {
38600 PyThreadState* __tstate = wxPyBeginAllowThreads();
38601 (arg1)->SetBestSize((wxSize const &)*arg2);
38602 wxPyEndAllowThreads(__tstate);
38603 if (PyErr_Occurred()) SWIG_fail;
38604 }
38605 resultobj = SWIG_Py_Void();
38606 return resultobj;
38607 fail:
38608 return NULL;
38609 }
38610
38611
38612 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38613 PyObject *resultobj = 0;
38614 wxPyControl *arg1 = (wxPyControl *) 0 ;
38615 wxDC *arg2 = (wxDC *) 0 ;
38616 bool result;
38617 void *argp1 = 0 ;
38618 int res1 = 0 ;
38619 void *argp2 = 0 ;
38620 int res2 = 0 ;
38621 PyObject * obj0 = 0 ;
38622 PyObject * obj1 = 0 ;
38623 char * kwnames[] = {
38624 (char *) "self",(char *) "dc", NULL
38625 };
38626
38627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38629 if (!SWIG_IsOK(res1)) {
38630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38631 }
38632 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38633 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38634 if (!SWIG_IsOK(res2)) {
38635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38636 }
38637 arg2 = reinterpret_cast< wxDC * >(argp2);
38638 {
38639 PyThreadState* __tstate = wxPyBeginAllowThreads();
38640 result = (bool)(arg1)->DoEraseBackground(arg2);
38641 wxPyEndAllowThreads(__tstate);
38642 if (PyErr_Occurred()) SWIG_fail;
38643 }
38644 {
38645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38646 }
38647 return resultobj;
38648 fail:
38649 return NULL;
38650 }
38651
38652
38653 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38654 PyObject *resultobj = 0;
38655 wxPyControl *arg1 = (wxPyControl *) 0 ;
38656 int arg2 ;
38657 int arg3 ;
38658 int arg4 ;
38659 int arg5 ;
38660 void *argp1 = 0 ;
38661 int res1 = 0 ;
38662 int val2 ;
38663 int ecode2 = 0 ;
38664 int val3 ;
38665 int ecode3 = 0 ;
38666 int val4 ;
38667 int ecode4 = 0 ;
38668 int val5 ;
38669 int ecode5 = 0 ;
38670 PyObject * obj0 = 0 ;
38671 PyObject * obj1 = 0 ;
38672 PyObject * obj2 = 0 ;
38673 PyObject * obj3 = 0 ;
38674 PyObject * obj4 = 0 ;
38675 char * kwnames[] = {
38676 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38677 };
38678
38679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38681 if (!SWIG_IsOK(res1)) {
38682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38683 }
38684 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38685 ecode2 = SWIG_AsVal_int(obj1, &val2);
38686 if (!SWIG_IsOK(ecode2)) {
38687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38688 }
38689 arg2 = static_cast< int >(val2);
38690 ecode3 = SWIG_AsVal_int(obj2, &val3);
38691 if (!SWIG_IsOK(ecode3)) {
38692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38693 }
38694 arg3 = static_cast< int >(val3);
38695 ecode4 = SWIG_AsVal_int(obj3, &val4);
38696 if (!SWIG_IsOK(ecode4)) {
38697 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38698 }
38699 arg4 = static_cast< int >(val4);
38700 ecode5 = SWIG_AsVal_int(obj4, &val5);
38701 if (!SWIG_IsOK(ecode5)) {
38702 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38703 }
38704 arg5 = static_cast< int >(val5);
38705 {
38706 PyThreadState* __tstate = wxPyBeginAllowThreads();
38707 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38708 wxPyEndAllowThreads(__tstate);
38709 if (PyErr_Occurred()) SWIG_fail;
38710 }
38711 resultobj = SWIG_Py_Void();
38712 return resultobj;
38713 fail:
38714 return NULL;
38715 }
38716
38717
38718 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38719 PyObject *resultobj = 0;
38720 wxPyControl *arg1 = (wxPyControl *) 0 ;
38721 int arg2 ;
38722 int arg3 ;
38723 int arg4 ;
38724 int arg5 ;
38725 int arg6 = (int) wxSIZE_AUTO ;
38726 void *argp1 = 0 ;
38727 int res1 = 0 ;
38728 int val2 ;
38729 int ecode2 = 0 ;
38730 int val3 ;
38731 int ecode3 = 0 ;
38732 int val4 ;
38733 int ecode4 = 0 ;
38734 int val5 ;
38735 int ecode5 = 0 ;
38736 int val6 ;
38737 int ecode6 = 0 ;
38738 PyObject * obj0 = 0 ;
38739 PyObject * obj1 = 0 ;
38740 PyObject * obj2 = 0 ;
38741 PyObject * obj3 = 0 ;
38742 PyObject * obj4 = 0 ;
38743 PyObject * obj5 = 0 ;
38744 char * kwnames[] = {
38745 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38746 };
38747
38748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38750 if (!SWIG_IsOK(res1)) {
38751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38752 }
38753 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38754 ecode2 = SWIG_AsVal_int(obj1, &val2);
38755 if (!SWIG_IsOK(ecode2)) {
38756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38757 }
38758 arg2 = static_cast< int >(val2);
38759 ecode3 = SWIG_AsVal_int(obj2, &val3);
38760 if (!SWIG_IsOK(ecode3)) {
38761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38762 }
38763 arg3 = static_cast< int >(val3);
38764 ecode4 = SWIG_AsVal_int(obj3, &val4);
38765 if (!SWIG_IsOK(ecode4)) {
38766 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38767 }
38768 arg4 = static_cast< int >(val4);
38769 ecode5 = SWIG_AsVal_int(obj4, &val5);
38770 if (!SWIG_IsOK(ecode5)) {
38771 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38772 }
38773 arg5 = static_cast< int >(val5);
38774 if (obj5) {
38775 ecode6 = SWIG_AsVal_int(obj5, &val6);
38776 if (!SWIG_IsOK(ecode6)) {
38777 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38778 }
38779 arg6 = static_cast< int >(val6);
38780 }
38781 {
38782 PyThreadState* __tstate = wxPyBeginAllowThreads();
38783 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38784 wxPyEndAllowThreads(__tstate);
38785 if (PyErr_Occurred()) SWIG_fail;
38786 }
38787 resultobj = SWIG_Py_Void();
38788 return resultobj;
38789 fail:
38790 return NULL;
38791 }
38792
38793
38794 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38795 PyObject *resultobj = 0;
38796 wxPyControl *arg1 = (wxPyControl *) 0 ;
38797 int arg2 ;
38798 int arg3 ;
38799 void *argp1 = 0 ;
38800 int res1 = 0 ;
38801 int val2 ;
38802 int ecode2 = 0 ;
38803 int val3 ;
38804 int ecode3 = 0 ;
38805 PyObject * obj0 = 0 ;
38806 PyObject * obj1 = 0 ;
38807 PyObject * obj2 = 0 ;
38808 char * kwnames[] = {
38809 (char *) "self",(char *) "width",(char *) "height", NULL
38810 };
38811
38812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38814 if (!SWIG_IsOK(res1)) {
38815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38816 }
38817 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38818 ecode2 = SWIG_AsVal_int(obj1, &val2);
38819 if (!SWIG_IsOK(ecode2)) {
38820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38821 }
38822 arg2 = static_cast< int >(val2);
38823 ecode3 = SWIG_AsVal_int(obj2, &val3);
38824 if (!SWIG_IsOK(ecode3)) {
38825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38826 }
38827 arg3 = static_cast< int >(val3);
38828 {
38829 PyThreadState* __tstate = wxPyBeginAllowThreads();
38830 (arg1)->DoSetClientSize(arg2,arg3);
38831 wxPyEndAllowThreads(__tstate);
38832 if (PyErr_Occurred()) SWIG_fail;
38833 }
38834 resultobj = SWIG_Py_Void();
38835 return resultobj;
38836 fail:
38837 return NULL;
38838 }
38839
38840
38841 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38842 PyObject *resultobj = 0;
38843 wxPyControl *arg1 = (wxPyControl *) 0 ;
38844 int arg2 ;
38845 int arg3 ;
38846 void *argp1 = 0 ;
38847 int res1 = 0 ;
38848 int val2 ;
38849 int ecode2 = 0 ;
38850 int val3 ;
38851 int ecode3 = 0 ;
38852 PyObject * obj0 = 0 ;
38853 PyObject * obj1 = 0 ;
38854 PyObject * obj2 = 0 ;
38855 char * kwnames[] = {
38856 (char *) "self",(char *) "x",(char *) "y", NULL
38857 };
38858
38859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38861 if (!SWIG_IsOK(res1)) {
38862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38863 }
38864 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38865 ecode2 = SWIG_AsVal_int(obj1, &val2);
38866 if (!SWIG_IsOK(ecode2)) {
38867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38868 }
38869 arg2 = static_cast< int >(val2);
38870 ecode3 = SWIG_AsVal_int(obj2, &val3);
38871 if (!SWIG_IsOK(ecode3)) {
38872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38873 }
38874 arg3 = static_cast< int >(val3);
38875 {
38876 PyThreadState* __tstate = wxPyBeginAllowThreads();
38877 (arg1)->DoSetVirtualSize(arg2,arg3);
38878 wxPyEndAllowThreads(__tstate);
38879 if (PyErr_Occurred()) SWIG_fail;
38880 }
38881 resultobj = SWIG_Py_Void();
38882 return resultobj;
38883 fail:
38884 return NULL;
38885 }
38886
38887
38888 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38889 PyObject *resultobj = 0;
38890 wxPyControl *arg1 = (wxPyControl *) 0 ;
38891 int *arg2 = (int *) 0 ;
38892 int *arg3 = (int *) 0 ;
38893 void *argp1 = 0 ;
38894 int res1 = 0 ;
38895 int temp2 ;
38896 int res2 = SWIG_TMPOBJ ;
38897 int temp3 ;
38898 int res3 = SWIG_TMPOBJ ;
38899 PyObject *swig_obj[1] ;
38900
38901 arg2 = &temp2;
38902 arg3 = &temp3;
38903 if (!args) SWIG_fail;
38904 swig_obj[0] = args;
38905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38906 if (!SWIG_IsOK(res1)) {
38907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38908 }
38909 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38910 {
38911 PyThreadState* __tstate = wxPyBeginAllowThreads();
38912 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38913 wxPyEndAllowThreads(__tstate);
38914 if (PyErr_Occurred()) SWIG_fail;
38915 }
38916 resultobj = SWIG_Py_Void();
38917 if (SWIG_IsTmpObj(res2)) {
38918 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38919 } else {
38920 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38921 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38922 }
38923 if (SWIG_IsTmpObj(res3)) {
38924 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38925 } else {
38926 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38927 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38928 }
38929 return resultobj;
38930 fail:
38931 return NULL;
38932 }
38933
38934
38935 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38936 PyObject *resultobj = 0;
38937 wxPyControl *arg1 = (wxPyControl *) 0 ;
38938 int *arg2 = (int *) 0 ;
38939 int *arg3 = (int *) 0 ;
38940 void *argp1 = 0 ;
38941 int res1 = 0 ;
38942 int temp2 ;
38943 int res2 = SWIG_TMPOBJ ;
38944 int temp3 ;
38945 int res3 = SWIG_TMPOBJ ;
38946 PyObject *swig_obj[1] ;
38947
38948 arg2 = &temp2;
38949 arg3 = &temp3;
38950 if (!args) SWIG_fail;
38951 swig_obj[0] = args;
38952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38953 if (!SWIG_IsOK(res1)) {
38954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38955 }
38956 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38957 {
38958 PyThreadState* __tstate = wxPyBeginAllowThreads();
38959 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38960 wxPyEndAllowThreads(__tstate);
38961 if (PyErr_Occurred()) SWIG_fail;
38962 }
38963 resultobj = SWIG_Py_Void();
38964 if (SWIG_IsTmpObj(res2)) {
38965 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38966 } else {
38967 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38968 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38969 }
38970 if (SWIG_IsTmpObj(res3)) {
38971 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38972 } else {
38973 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38974 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38975 }
38976 return resultobj;
38977 fail:
38978 return NULL;
38979 }
38980
38981
38982 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38983 PyObject *resultobj = 0;
38984 wxPyControl *arg1 = (wxPyControl *) 0 ;
38985 int *arg2 = (int *) 0 ;
38986 int *arg3 = (int *) 0 ;
38987 void *argp1 = 0 ;
38988 int res1 = 0 ;
38989 int temp2 ;
38990 int res2 = SWIG_TMPOBJ ;
38991 int temp3 ;
38992 int res3 = SWIG_TMPOBJ ;
38993 PyObject *swig_obj[1] ;
38994
38995 arg2 = &temp2;
38996 arg3 = &temp3;
38997 if (!args) SWIG_fail;
38998 swig_obj[0] = args;
38999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39000 if (!SWIG_IsOK(res1)) {
39001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39002 }
39003 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39004 {
39005 PyThreadState* __tstate = wxPyBeginAllowThreads();
39006 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39007 wxPyEndAllowThreads(__tstate);
39008 if (PyErr_Occurred()) SWIG_fail;
39009 }
39010 resultobj = SWIG_Py_Void();
39011 if (SWIG_IsTmpObj(res2)) {
39012 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39013 } else {
39014 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39015 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39016 }
39017 if (SWIG_IsTmpObj(res3)) {
39018 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39019 } else {
39020 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39021 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39022 }
39023 return resultobj;
39024 fail:
39025 return NULL;
39026 }
39027
39028
39029 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39030 PyObject *resultobj = 0;
39031 wxPyControl *arg1 = (wxPyControl *) 0 ;
39032 wxSize result;
39033 void *argp1 = 0 ;
39034 int res1 = 0 ;
39035 PyObject *swig_obj[1] ;
39036
39037 if (!args) SWIG_fail;
39038 swig_obj[0] = args;
39039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39040 if (!SWIG_IsOK(res1)) {
39041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39042 }
39043 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39044 {
39045 PyThreadState* __tstate = wxPyBeginAllowThreads();
39046 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39047 wxPyEndAllowThreads(__tstate);
39048 if (PyErr_Occurred()) SWIG_fail;
39049 }
39050 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39051 return resultobj;
39052 fail:
39053 return NULL;
39054 }
39055
39056
39057 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39058 PyObject *resultobj = 0;
39059 wxPyControl *arg1 = (wxPyControl *) 0 ;
39060 wxSize result;
39061 void *argp1 = 0 ;
39062 int res1 = 0 ;
39063 PyObject *swig_obj[1] ;
39064
39065 if (!args) SWIG_fail;
39066 swig_obj[0] = args;
39067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39068 if (!SWIG_IsOK(res1)) {
39069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39070 }
39071 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39072 {
39073 PyThreadState* __tstate = wxPyBeginAllowThreads();
39074 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39075 wxPyEndAllowThreads(__tstate);
39076 if (PyErr_Occurred()) SWIG_fail;
39077 }
39078 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39079 return resultobj;
39080 fail:
39081 return NULL;
39082 }
39083
39084
39085 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39086 PyObject *resultobj = 0;
39087 wxPyControl *arg1 = (wxPyControl *) 0 ;
39088 SwigValueWrapper<wxVisualAttributes > result;
39089 void *argp1 = 0 ;
39090 int res1 = 0 ;
39091 PyObject *swig_obj[1] ;
39092
39093 if (!args) SWIG_fail;
39094 swig_obj[0] = args;
39095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39096 if (!SWIG_IsOK(res1)) {
39097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39098 }
39099 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39100 {
39101 PyThreadState* __tstate = wxPyBeginAllowThreads();
39102 result = (arg1)->GetDefaultAttributes();
39103 wxPyEndAllowThreads(__tstate);
39104 if (PyErr_Occurred()) SWIG_fail;
39105 }
39106 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39107 return resultobj;
39108 fail:
39109 return NULL;
39110 }
39111
39112
39113 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39114 PyObject *resultobj = 0;
39115 wxPyControl *arg1 = (wxPyControl *) 0 ;
39116 void *argp1 = 0 ;
39117 int res1 = 0 ;
39118 PyObject *swig_obj[1] ;
39119
39120 if (!args) SWIG_fail;
39121 swig_obj[0] = args;
39122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39123 if (!SWIG_IsOK(res1)) {
39124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39125 }
39126 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39127 {
39128 PyThreadState* __tstate = wxPyBeginAllowThreads();
39129 (arg1)->OnInternalIdle();
39130 wxPyEndAllowThreads(__tstate);
39131 if (PyErr_Occurred()) SWIG_fail;
39132 }
39133 resultobj = SWIG_Py_Void();
39134 return resultobj;
39135 fail:
39136 return NULL;
39137 }
39138
39139
39140 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39141 PyObject *obj;
39142 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39143 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39144 return SWIG_Py_Void();
39145 }
39146
39147 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39148 return SWIG_Python_InitShadowInstance(args);
39149 }
39150
39151 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39152 PyObject *resultobj = 0;
39153 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39154 int arg2 = (int) 0 ;
39155 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39156 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39157 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39158 wxHelpEvent *result = 0 ;
39159 int val1 ;
39160 int ecode1 = 0 ;
39161 int val2 ;
39162 int ecode2 = 0 ;
39163 wxPoint temp3 ;
39164 int val4 ;
39165 int ecode4 = 0 ;
39166 PyObject * obj0 = 0 ;
39167 PyObject * obj1 = 0 ;
39168 PyObject * obj2 = 0 ;
39169 PyObject * obj3 = 0 ;
39170 char * kwnames[] = {
39171 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39172 };
39173
39174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39175 if (obj0) {
39176 ecode1 = SWIG_AsVal_int(obj0, &val1);
39177 if (!SWIG_IsOK(ecode1)) {
39178 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39179 }
39180 arg1 = static_cast< wxEventType >(val1);
39181 }
39182 if (obj1) {
39183 ecode2 = SWIG_AsVal_int(obj1, &val2);
39184 if (!SWIG_IsOK(ecode2)) {
39185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39186 }
39187 arg2 = static_cast< int >(val2);
39188 }
39189 if (obj2) {
39190 {
39191 arg3 = &temp3;
39192 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39193 }
39194 }
39195 if (obj3) {
39196 ecode4 = SWIG_AsVal_int(obj3, &val4);
39197 if (!SWIG_IsOK(ecode4)) {
39198 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39199 }
39200 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39201 }
39202 {
39203 PyThreadState* __tstate = wxPyBeginAllowThreads();
39204 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39205 wxPyEndAllowThreads(__tstate);
39206 if (PyErr_Occurred()) SWIG_fail;
39207 }
39208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39209 return resultobj;
39210 fail:
39211 return NULL;
39212 }
39213
39214
39215 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39216 PyObject *resultobj = 0;
39217 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39218 wxPoint result;
39219 void *argp1 = 0 ;
39220 int res1 = 0 ;
39221 PyObject *swig_obj[1] ;
39222
39223 if (!args) SWIG_fail;
39224 swig_obj[0] = args;
39225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39226 if (!SWIG_IsOK(res1)) {
39227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39228 }
39229 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39230 {
39231 PyThreadState* __tstate = wxPyBeginAllowThreads();
39232 result = ((wxHelpEvent const *)arg1)->GetPosition();
39233 wxPyEndAllowThreads(__tstate);
39234 if (PyErr_Occurred()) SWIG_fail;
39235 }
39236 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39237 return resultobj;
39238 fail:
39239 return NULL;
39240 }
39241
39242
39243 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39244 PyObject *resultobj = 0;
39245 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39246 wxPoint *arg2 = 0 ;
39247 void *argp1 = 0 ;
39248 int res1 = 0 ;
39249 wxPoint temp2 ;
39250 PyObject * obj0 = 0 ;
39251 PyObject * obj1 = 0 ;
39252 char * kwnames[] = {
39253 (char *) "self",(char *) "pos", NULL
39254 };
39255
39256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39258 if (!SWIG_IsOK(res1)) {
39259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39260 }
39261 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39262 {
39263 arg2 = &temp2;
39264 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39265 }
39266 {
39267 PyThreadState* __tstate = wxPyBeginAllowThreads();
39268 (arg1)->SetPosition((wxPoint const &)*arg2);
39269 wxPyEndAllowThreads(__tstate);
39270 if (PyErr_Occurred()) SWIG_fail;
39271 }
39272 resultobj = SWIG_Py_Void();
39273 return resultobj;
39274 fail:
39275 return NULL;
39276 }
39277
39278
39279 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39280 PyObject *resultobj = 0;
39281 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39282 wxString *result = 0 ;
39283 void *argp1 = 0 ;
39284 int res1 = 0 ;
39285 PyObject *swig_obj[1] ;
39286
39287 if (!args) SWIG_fail;
39288 swig_obj[0] = args;
39289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39290 if (!SWIG_IsOK(res1)) {
39291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39292 }
39293 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39294 {
39295 PyThreadState* __tstate = wxPyBeginAllowThreads();
39296 {
39297 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39298 result = (wxString *) &_result_ref;
39299 }
39300 wxPyEndAllowThreads(__tstate);
39301 if (PyErr_Occurred()) SWIG_fail;
39302 }
39303 {
39304 #if wxUSE_UNICODE
39305 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39306 #else
39307 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39308 #endif
39309 }
39310 return resultobj;
39311 fail:
39312 return NULL;
39313 }
39314
39315
39316 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39317 PyObject *resultobj = 0;
39318 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39319 wxString *arg2 = 0 ;
39320 void *argp1 = 0 ;
39321 int res1 = 0 ;
39322 bool temp2 = false ;
39323 PyObject * obj0 = 0 ;
39324 PyObject * obj1 = 0 ;
39325 char * kwnames[] = {
39326 (char *) "self",(char *) "link", NULL
39327 };
39328
39329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39331 if (!SWIG_IsOK(res1)) {
39332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39333 }
39334 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39335 {
39336 arg2 = wxString_in_helper(obj1);
39337 if (arg2 == NULL) SWIG_fail;
39338 temp2 = true;
39339 }
39340 {
39341 PyThreadState* __tstate = wxPyBeginAllowThreads();
39342 (arg1)->SetLink((wxString const &)*arg2);
39343 wxPyEndAllowThreads(__tstate);
39344 if (PyErr_Occurred()) SWIG_fail;
39345 }
39346 resultobj = SWIG_Py_Void();
39347 {
39348 if (temp2)
39349 delete arg2;
39350 }
39351 return resultobj;
39352 fail:
39353 {
39354 if (temp2)
39355 delete arg2;
39356 }
39357 return NULL;
39358 }
39359
39360
39361 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39362 PyObject *resultobj = 0;
39363 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39364 wxString *result = 0 ;
39365 void *argp1 = 0 ;
39366 int res1 = 0 ;
39367 PyObject *swig_obj[1] ;
39368
39369 if (!args) SWIG_fail;
39370 swig_obj[0] = args;
39371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39372 if (!SWIG_IsOK(res1)) {
39373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39374 }
39375 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39376 {
39377 PyThreadState* __tstate = wxPyBeginAllowThreads();
39378 {
39379 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39380 result = (wxString *) &_result_ref;
39381 }
39382 wxPyEndAllowThreads(__tstate);
39383 if (PyErr_Occurred()) SWIG_fail;
39384 }
39385 {
39386 #if wxUSE_UNICODE
39387 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39388 #else
39389 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39390 #endif
39391 }
39392 return resultobj;
39393 fail:
39394 return NULL;
39395 }
39396
39397
39398 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39399 PyObject *resultobj = 0;
39400 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39401 wxString *arg2 = 0 ;
39402 void *argp1 = 0 ;
39403 int res1 = 0 ;
39404 bool temp2 = false ;
39405 PyObject * obj0 = 0 ;
39406 PyObject * obj1 = 0 ;
39407 char * kwnames[] = {
39408 (char *) "self",(char *) "target", NULL
39409 };
39410
39411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39413 if (!SWIG_IsOK(res1)) {
39414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39415 }
39416 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39417 {
39418 arg2 = wxString_in_helper(obj1);
39419 if (arg2 == NULL) SWIG_fail;
39420 temp2 = true;
39421 }
39422 {
39423 PyThreadState* __tstate = wxPyBeginAllowThreads();
39424 (arg1)->SetTarget((wxString const &)*arg2);
39425 wxPyEndAllowThreads(__tstate);
39426 if (PyErr_Occurred()) SWIG_fail;
39427 }
39428 resultobj = SWIG_Py_Void();
39429 {
39430 if (temp2)
39431 delete arg2;
39432 }
39433 return resultobj;
39434 fail:
39435 {
39436 if (temp2)
39437 delete arg2;
39438 }
39439 return NULL;
39440 }
39441
39442
39443 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39444 PyObject *resultobj = 0;
39445 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39446 wxHelpEvent::Origin result;
39447 void *argp1 = 0 ;
39448 int res1 = 0 ;
39449 PyObject *swig_obj[1] ;
39450
39451 if (!args) SWIG_fail;
39452 swig_obj[0] = args;
39453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39454 if (!SWIG_IsOK(res1)) {
39455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39456 }
39457 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39458 {
39459 PyThreadState* __tstate = wxPyBeginAllowThreads();
39460 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39461 wxPyEndAllowThreads(__tstate);
39462 if (PyErr_Occurred()) SWIG_fail;
39463 }
39464 resultobj = SWIG_From_int(static_cast< int >(result));
39465 return resultobj;
39466 fail:
39467 return NULL;
39468 }
39469
39470
39471 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39472 PyObject *resultobj = 0;
39473 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39474 wxHelpEvent::Origin arg2 ;
39475 void *argp1 = 0 ;
39476 int res1 = 0 ;
39477 int val2 ;
39478 int ecode2 = 0 ;
39479 PyObject * obj0 = 0 ;
39480 PyObject * obj1 = 0 ;
39481 char * kwnames[] = {
39482 (char *) "self",(char *) "origin", NULL
39483 };
39484
39485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39487 if (!SWIG_IsOK(res1)) {
39488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39489 }
39490 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39491 ecode2 = SWIG_AsVal_int(obj1, &val2);
39492 if (!SWIG_IsOK(ecode2)) {
39493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39494 }
39495 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39496 {
39497 PyThreadState* __tstate = wxPyBeginAllowThreads();
39498 (arg1)->SetOrigin(arg2);
39499 wxPyEndAllowThreads(__tstate);
39500 if (PyErr_Occurred()) SWIG_fail;
39501 }
39502 resultobj = SWIG_Py_Void();
39503 return resultobj;
39504 fail:
39505 return NULL;
39506 }
39507
39508
39509 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39510 PyObject *obj;
39511 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39512 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39513 return SWIG_Py_Void();
39514 }
39515
39516 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39517 return SWIG_Python_InitShadowInstance(args);
39518 }
39519
39520 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39521 PyObject *resultobj = 0;
39522 wxWindow *arg1 = (wxWindow *) NULL ;
39523 bool arg2 = (bool) true ;
39524 wxContextHelp *result = 0 ;
39525 void *argp1 = 0 ;
39526 int res1 = 0 ;
39527 bool val2 ;
39528 int ecode2 = 0 ;
39529 PyObject * obj0 = 0 ;
39530 PyObject * obj1 = 0 ;
39531 char * kwnames[] = {
39532 (char *) "window",(char *) "doNow", NULL
39533 };
39534
39535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39536 if (obj0) {
39537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39538 if (!SWIG_IsOK(res1)) {
39539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39540 }
39541 arg1 = reinterpret_cast< wxWindow * >(argp1);
39542 }
39543 if (obj1) {
39544 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39545 if (!SWIG_IsOK(ecode2)) {
39546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39547 }
39548 arg2 = static_cast< bool >(val2);
39549 }
39550 {
39551 if (!wxPyCheckForApp()) SWIG_fail;
39552 PyThreadState* __tstate = wxPyBeginAllowThreads();
39553 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39554 wxPyEndAllowThreads(__tstate);
39555 if (PyErr_Occurred()) SWIG_fail;
39556 }
39557 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39558 return resultobj;
39559 fail:
39560 return NULL;
39561 }
39562
39563
39564 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39565 PyObject *resultobj = 0;
39566 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39567 void *argp1 = 0 ;
39568 int res1 = 0 ;
39569 PyObject *swig_obj[1] ;
39570
39571 if (!args) SWIG_fail;
39572 swig_obj[0] = args;
39573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39574 if (!SWIG_IsOK(res1)) {
39575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39576 }
39577 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39578 {
39579 PyThreadState* __tstate = wxPyBeginAllowThreads();
39580 delete arg1;
39581
39582 wxPyEndAllowThreads(__tstate);
39583 if (PyErr_Occurred()) SWIG_fail;
39584 }
39585 resultobj = SWIG_Py_Void();
39586 return resultobj;
39587 fail:
39588 return NULL;
39589 }
39590
39591
39592 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39593 PyObject *resultobj = 0;
39594 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39595 wxWindow *arg2 = (wxWindow *) NULL ;
39596 bool result;
39597 void *argp1 = 0 ;
39598 int res1 = 0 ;
39599 void *argp2 = 0 ;
39600 int res2 = 0 ;
39601 PyObject * obj0 = 0 ;
39602 PyObject * obj1 = 0 ;
39603 char * kwnames[] = {
39604 (char *) "self",(char *) "window", NULL
39605 };
39606
39607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39609 if (!SWIG_IsOK(res1)) {
39610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39611 }
39612 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39613 if (obj1) {
39614 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39615 if (!SWIG_IsOK(res2)) {
39616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39617 }
39618 arg2 = reinterpret_cast< wxWindow * >(argp2);
39619 }
39620 {
39621 PyThreadState* __tstate = wxPyBeginAllowThreads();
39622 result = (bool)(arg1)->BeginContextHelp(arg2);
39623 wxPyEndAllowThreads(__tstate);
39624 if (PyErr_Occurred()) SWIG_fail;
39625 }
39626 {
39627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39628 }
39629 return resultobj;
39630 fail:
39631 return NULL;
39632 }
39633
39634
39635 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39636 PyObject *resultobj = 0;
39637 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39638 bool result;
39639 void *argp1 = 0 ;
39640 int res1 = 0 ;
39641 PyObject *swig_obj[1] ;
39642
39643 if (!args) SWIG_fail;
39644 swig_obj[0] = args;
39645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39646 if (!SWIG_IsOK(res1)) {
39647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39648 }
39649 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39650 {
39651 PyThreadState* __tstate = wxPyBeginAllowThreads();
39652 result = (bool)(arg1)->EndContextHelp();
39653 wxPyEndAllowThreads(__tstate);
39654 if (PyErr_Occurred()) SWIG_fail;
39655 }
39656 {
39657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39658 }
39659 return resultobj;
39660 fail:
39661 return NULL;
39662 }
39663
39664
39665 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39666 PyObject *obj;
39667 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39668 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39669 return SWIG_Py_Void();
39670 }
39671
39672 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39673 return SWIG_Python_InitShadowInstance(args);
39674 }
39675
39676 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39677 PyObject *resultobj = 0;
39678 wxWindow *arg1 = (wxWindow *) 0 ;
39679 int arg2 = (int) wxID_CONTEXT_HELP ;
39680 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39681 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39682 wxSize const &arg4_defvalue = wxDefaultSize ;
39683 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39684 long arg5 = (long) wxBU_AUTODRAW ;
39685 wxContextHelpButton *result = 0 ;
39686 void *argp1 = 0 ;
39687 int res1 = 0 ;
39688 int val2 ;
39689 int ecode2 = 0 ;
39690 wxPoint temp3 ;
39691 wxSize temp4 ;
39692 long val5 ;
39693 int ecode5 = 0 ;
39694 PyObject * obj0 = 0 ;
39695 PyObject * obj1 = 0 ;
39696 PyObject * obj2 = 0 ;
39697 PyObject * obj3 = 0 ;
39698 PyObject * obj4 = 0 ;
39699 char * kwnames[] = {
39700 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39701 };
39702
39703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39705 if (!SWIG_IsOK(res1)) {
39706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39707 }
39708 arg1 = reinterpret_cast< wxWindow * >(argp1);
39709 if (obj1) {
39710 ecode2 = SWIG_AsVal_int(obj1, &val2);
39711 if (!SWIG_IsOK(ecode2)) {
39712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39713 }
39714 arg2 = static_cast< int >(val2);
39715 }
39716 if (obj2) {
39717 {
39718 arg3 = &temp3;
39719 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39720 }
39721 }
39722 if (obj3) {
39723 {
39724 arg4 = &temp4;
39725 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39726 }
39727 }
39728 if (obj4) {
39729 ecode5 = SWIG_AsVal_long(obj4, &val5);
39730 if (!SWIG_IsOK(ecode5)) {
39731 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39732 }
39733 arg5 = static_cast< long >(val5);
39734 }
39735 {
39736 if (!wxPyCheckForApp()) SWIG_fail;
39737 PyThreadState* __tstate = wxPyBeginAllowThreads();
39738 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39739 wxPyEndAllowThreads(__tstate);
39740 if (PyErr_Occurred()) SWIG_fail;
39741 }
39742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39743 return resultobj;
39744 fail:
39745 return NULL;
39746 }
39747
39748
39749 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39750 PyObject *obj;
39751 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39752 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39753 return SWIG_Py_Void();
39754 }
39755
39756 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39757 return SWIG_Python_InitShadowInstance(args);
39758 }
39759
39760 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39761 PyObject *resultobj = 0;
39762 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39763 void *argp1 = 0 ;
39764 int res1 = 0 ;
39765 PyObject *swig_obj[1] ;
39766
39767 if (!args) SWIG_fail;
39768 swig_obj[0] = args;
39769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39770 if (!SWIG_IsOK(res1)) {
39771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39772 }
39773 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39774 {
39775 PyThreadState* __tstate = wxPyBeginAllowThreads();
39776 delete arg1;
39777
39778 wxPyEndAllowThreads(__tstate);
39779 if (PyErr_Occurred()) SWIG_fail;
39780 }
39781 resultobj = SWIG_Py_Void();
39782 return resultobj;
39783 fail:
39784 return NULL;
39785 }
39786
39787
39788 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39789 PyObject *resultobj = 0;
39790 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39791 wxHelpProvider *result = 0 ;
39792 int res1 = 0 ;
39793 PyObject * obj0 = 0 ;
39794 char * kwnames[] = {
39795 (char *) "helpProvider", NULL
39796 };
39797
39798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39799 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39800 if (!SWIG_IsOK(res1)) {
39801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39802 }
39803 {
39804 PyThreadState* __tstate = wxPyBeginAllowThreads();
39805 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39806 wxPyEndAllowThreads(__tstate);
39807 if (PyErr_Occurred()) SWIG_fail;
39808 }
39809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39810 return resultobj;
39811 fail:
39812 return NULL;
39813 }
39814
39815
39816 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39817 PyObject *resultobj = 0;
39818 wxHelpProvider *result = 0 ;
39819
39820 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39821 {
39822 PyThreadState* __tstate = wxPyBeginAllowThreads();
39823 result = (wxHelpProvider *)wxHelpProvider::Get();
39824 wxPyEndAllowThreads(__tstate);
39825 if (PyErr_Occurred()) SWIG_fail;
39826 }
39827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39828 return resultobj;
39829 fail:
39830 return NULL;
39831 }
39832
39833
39834 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39835 PyObject *resultobj = 0;
39836 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39837 wxWindow *arg2 = (wxWindow *) 0 ;
39838 wxString result;
39839 void *argp1 = 0 ;
39840 int res1 = 0 ;
39841 void *argp2 = 0 ;
39842 int res2 = 0 ;
39843 PyObject * obj0 = 0 ;
39844 PyObject * obj1 = 0 ;
39845 char * kwnames[] = {
39846 (char *) "self",(char *) "window", NULL
39847 };
39848
39849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39851 if (!SWIG_IsOK(res1)) {
39852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39853 }
39854 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39855 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39856 if (!SWIG_IsOK(res2)) {
39857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39858 }
39859 arg2 = reinterpret_cast< wxWindow * >(argp2);
39860 {
39861 PyThreadState* __tstate = wxPyBeginAllowThreads();
39862 result = (arg1)->GetHelp((wxWindow const *)arg2);
39863 wxPyEndAllowThreads(__tstate);
39864 if (PyErr_Occurred()) SWIG_fail;
39865 }
39866 {
39867 #if wxUSE_UNICODE
39868 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39869 #else
39870 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39871 #endif
39872 }
39873 return resultobj;
39874 fail:
39875 return NULL;
39876 }
39877
39878
39879 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39880 PyObject *resultobj = 0;
39881 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39882 wxWindow *arg2 = (wxWindow *) 0 ;
39883 bool result;
39884 void *argp1 = 0 ;
39885 int res1 = 0 ;
39886 void *argp2 = 0 ;
39887 int res2 = 0 ;
39888 PyObject * obj0 = 0 ;
39889 PyObject * obj1 = 0 ;
39890 char * kwnames[] = {
39891 (char *) "self",(char *) "window", NULL
39892 };
39893
39894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39896 if (!SWIG_IsOK(res1)) {
39897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39898 }
39899 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39900 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39901 if (!SWIG_IsOK(res2)) {
39902 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39903 }
39904 arg2 = reinterpret_cast< wxWindow * >(argp2);
39905 {
39906 PyThreadState* __tstate = wxPyBeginAllowThreads();
39907 result = (bool)(arg1)->ShowHelp(arg2);
39908 wxPyEndAllowThreads(__tstate);
39909 if (PyErr_Occurred()) SWIG_fail;
39910 }
39911 {
39912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39913 }
39914 return resultobj;
39915 fail:
39916 return NULL;
39917 }
39918
39919
39920 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39921 PyObject *resultobj = 0;
39922 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39923 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
39924 wxPoint *arg3 = 0 ;
39925 wxHelpEvent::Origin arg4 ;
39926 bool result;
39927 void *argp1 = 0 ;
39928 int res1 = 0 ;
39929 void *argp2 = 0 ;
39930 int res2 = 0 ;
39931 wxPoint temp3 ;
39932 int val4 ;
39933 int ecode4 = 0 ;
39934 PyObject * obj0 = 0 ;
39935 PyObject * obj1 = 0 ;
39936 PyObject * obj2 = 0 ;
39937 PyObject * obj3 = 0 ;
39938 char * kwnames[] = {
39939 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
39940 };
39941
39942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39944 if (!SWIG_IsOK(res1)) {
39945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39946 }
39947 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39948 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
39949 if (!SWIG_IsOK(res2)) {
39950 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
39951 }
39952 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
39953 {
39954 arg3 = &temp3;
39955 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39956 }
39957 ecode4 = SWIG_AsVal_int(obj3, &val4);
39958 if (!SWIG_IsOK(ecode4)) {
39959 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39960 }
39961 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39962 {
39963 PyThreadState* __tstate = wxPyBeginAllowThreads();
39964 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
39965 wxPyEndAllowThreads(__tstate);
39966 if (PyErr_Occurred()) SWIG_fail;
39967 }
39968 {
39969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39970 }
39971 return resultobj;
39972 fail:
39973 return NULL;
39974 }
39975
39976
39977 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39978 PyObject *resultobj = 0;
39979 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39980 wxWindow *arg2 = (wxWindow *) 0 ;
39981 wxString *arg3 = 0 ;
39982 void *argp1 = 0 ;
39983 int res1 = 0 ;
39984 void *argp2 = 0 ;
39985 int res2 = 0 ;
39986 bool temp3 = false ;
39987 PyObject * obj0 = 0 ;
39988 PyObject * obj1 = 0 ;
39989 PyObject * obj2 = 0 ;
39990 char * kwnames[] = {
39991 (char *) "self",(char *) "window",(char *) "text", NULL
39992 };
39993
39994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39996 if (!SWIG_IsOK(res1)) {
39997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39998 }
39999 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40000 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40001 if (!SWIG_IsOK(res2)) {
40002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40003 }
40004 arg2 = reinterpret_cast< wxWindow * >(argp2);
40005 {
40006 arg3 = wxString_in_helper(obj2);
40007 if (arg3 == NULL) SWIG_fail;
40008 temp3 = true;
40009 }
40010 {
40011 PyThreadState* __tstate = wxPyBeginAllowThreads();
40012 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40013 wxPyEndAllowThreads(__tstate);
40014 if (PyErr_Occurred()) SWIG_fail;
40015 }
40016 resultobj = SWIG_Py_Void();
40017 {
40018 if (temp3)
40019 delete arg3;
40020 }
40021 return resultobj;
40022 fail:
40023 {
40024 if (temp3)
40025 delete arg3;
40026 }
40027 return NULL;
40028 }
40029
40030
40031 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40032 PyObject *resultobj = 0;
40033 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40034 int arg2 ;
40035 wxString *arg3 = 0 ;
40036 void *argp1 = 0 ;
40037 int res1 = 0 ;
40038 int val2 ;
40039 int ecode2 = 0 ;
40040 bool temp3 = false ;
40041 PyObject * obj0 = 0 ;
40042 PyObject * obj1 = 0 ;
40043 PyObject * obj2 = 0 ;
40044 char * kwnames[] = {
40045 (char *) "self",(char *) "id",(char *) "text", NULL
40046 };
40047
40048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40050 if (!SWIG_IsOK(res1)) {
40051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40052 }
40053 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40054 ecode2 = SWIG_AsVal_int(obj1, &val2);
40055 if (!SWIG_IsOK(ecode2)) {
40056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40057 }
40058 arg2 = static_cast< int >(val2);
40059 {
40060 arg3 = wxString_in_helper(obj2);
40061 if (arg3 == NULL) SWIG_fail;
40062 temp3 = true;
40063 }
40064 {
40065 PyThreadState* __tstate = wxPyBeginAllowThreads();
40066 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40067 wxPyEndAllowThreads(__tstate);
40068 if (PyErr_Occurred()) SWIG_fail;
40069 }
40070 resultobj = SWIG_Py_Void();
40071 {
40072 if (temp3)
40073 delete arg3;
40074 }
40075 return resultobj;
40076 fail:
40077 {
40078 if (temp3)
40079 delete arg3;
40080 }
40081 return NULL;
40082 }
40083
40084
40085 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40086 PyObject *resultobj = 0;
40087 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40088 wxWindow *arg2 = (wxWindow *) 0 ;
40089 void *argp1 = 0 ;
40090 int res1 = 0 ;
40091 void *argp2 = 0 ;
40092 int res2 = 0 ;
40093 PyObject * obj0 = 0 ;
40094 PyObject * obj1 = 0 ;
40095 char * kwnames[] = {
40096 (char *) "self",(char *) "window", NULL
40097 };
40098
40099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40101 if (!SWIG_IsOK(res1)) {
40102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40103 }
40104 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40105 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40106 if (!SWIG_IsOK(res2)) {
40107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40108 }
40109 arg2 = reinterpret_cast< wxWindow * >(argp2);
40110 {
40111 PyThreadState* __tstate = wxPyBeginAllowThreads();
40112 (arg1)->RemoveHelp(arg2);
40113 wxPyEndAllowThreads(__tstate);
40114 if (PyErr_Occurred()) SWIG_fail;
40115 }
40116 resultobj = SWIG_Py_Void();
40117 return resultobj;
40118 fail:
40119 return NULL;
40120 }
40121
40122
40123 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40124 PyObject *resultobj = 0;
40125 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40126 void *argp1 = 0 ;
40127 int res1 = 0 ;
40128 PyObject *swig_obj[1] ;
40129
40130 if (!args) SWIG_fail;
40131 swig_obj[0] = args;
40132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40133 if (!SWIG_IsOK(res1)) {
40134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40135 }
40136 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40137 {
40138 PyThreadState* __tstate = wxPyBeginAllowThreads();
40139 wxHelpProvider_Destroy(arg1);
40140 wxPyEndAllowThreads(__tstate);
40141 if (PyErr_Occurred()) SWIG_fail;
40142 }
40143 resultobj = SWIG_Py_Void();
40144 return resultobj;
40145 fail:
40146 return NULL;
40147 }
40148
40149
40150 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40151 PyObject *obj;
40152 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40153 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40154 return SWIG_Py_Void();
40155 }
40156
40157 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40158 PyObject *resultobj = 0;
40159 wxSimpleHelpProvider *result = 0 ;
40160
40161 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40162 {
40163 PyThreadState* __tstate = wxPyBeginAllowThreads();
40164 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40165 wxPyEndAllowThreads(__tstate);
40166 if (PyErr_Occurred()) SWIG_fail;
40167 }
40168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40169 return resultobj;
40170 fail:
40171 return NULL;
40172 }
40173
40174
40175 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40176 PyObject *obj;
40177 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40178 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40179 return SWIG_Py_Void();
40180 }
40181
40182 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40183 return SWIG_Python_InitShadowInstance(args);
40184 }
40185
40186 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40187 PyObject *resultobj = 0;
40188 wxBitmap *arg1 = 0 ;
40189 wxCursor const &arg2_defvalue = wxNullCursor ;
40190 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40191 wxGenericDragImage *result = 0 ;
40192 void *argp1 = 0 ;
40193 int res1 = 0 ;
40194 void *argp2 = 0 ;
40195 int res2 = 0 ;
40196 PyObject * obj0 = 0 ;
40197 PyObject * obj1 = 0 ;
40198 char * kwnames[] = {
40199 (char *) "image",(char *) "cursor", NULL
40200 };
40201
40202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40203 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40204 if (!SWIG_IsOK(res1)) {
40205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40206 }
40207 if (!argp1) {
40208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40209 }
40210 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40211 if (obj1) {
40212 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40213 if (!SWIG_IsOK(res2)) {
40214 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40215 }
40216 if (!argp2) {
40217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40218 }
40219 arg2 = reinterpret_cast< wxCursor * >(argp2);
40220 }
40221 {
40222 if (!wxPyCheckForApp()) SWIG_fail;
40223 PyThreadState* __tstate = wxPyBeginAllowThreads();
40224 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40225 wxPyEndAllowThreads(__tstate);
40226 if (PyErr_Occurred()) SWIG_fail;
40227 }
40228 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40229 return resultobj;
40230 fail:
40231 return NULL;
40232 }
40233
40234
40235 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40236 PyObject *resultobj = 0;
40237 wxIcon *arg1 = 0 ;
40238 wxCursor const &arg2_defvalue = wxNullCursor ;
40239 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40240 wxGenericDragImage *result = 0 ;
40241 void *argp1 = 0 ;
40242 int res1 = 0 ;
40243 void *argp2 = 0 ;
40244 int res2 = 0 ;
40245 PyObject * obj0 = 0 ;
40246 PyObject * obj1 = 0 ;
40247 char * kwnames[] = {
40248 (char *) "image",(char *) "cursor", NULL
40249 };
40250
40251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40252 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40253 if (!SWIG_IsOK(res1)) {
40254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40255 }
40256 if (!argp1) {
40257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40258 }
40259 arg1 = reinterpret_cast< wxIcon * >(argp1);
40260 if (obj1) {
40261 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40262 if (!SWIG_IsOK(res2)) {
40263 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40264 }
40265 if (!argp2) {
40266 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40267 }
40268 arg2 = reinterpret_cast< wxCursor * >(argp2);
40269 }
40270 {
40271 if (!wxPyCheckForApp()) SWIG_fail;
40272 PyThreadState* __tstate = wxPyBeginAllowThreads();
40273 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40274 wxPyEndAllowThreads(__tstate);
40275 if (PyErr_Occurred()) SWIG_fail;
40276 }
40277 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40278 return resultobj;
40279 fail:
40280 return NULL;
40281 }
40282
40283
40284 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40285 PyObject *resultobj = 0;
40286 wxString *arg1 = 0 ;
40287 wxCursor const &arg2_defvalue = wxNullCursor ;
40288 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40289 wxGenericDragImage *result = 0 ;
40290 bool temp1 = false ;
40291 void *argp2 = 0 ;
40292 int res2 = 0 ;
40293 PyObject * obj0 = 0 ;
40294 PyObject * obj1 = 0 ;
40295 char * kwnames[] = {
40296 (char *) "str",(char *) "cursor", NULL
40297 };
40298
40299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40300 {
40301 arg1 = wxString_in_helper(obj0);
40302 if (arg1 == NULL) SWIG_fail;
40303 temp1 = true;
40304 }
40305 if (obj1) {
40306 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40307 if (!SWIG_IsOK(res2)) {
40308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40309 }
40310 if (!argp2) {
40311 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40312 }
40313 arg2 = reinterpret_cast< wxCursor * >(argp2);
40314 }
40315 {
40316 if (!wxPyCheckForApp()) SWIG_fail;
40317 PyThreadState* __tstate = wxPyBeginAllowThreads();
40318 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40319 wxPyEndAllowThreads(__tstate);
40320 if (PyErr_Occurred()) SWIG_fail;
40321 }
40322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40323 {
40324 if (temp1)
40325 delete arg1;
40326 }
40327 return resultobj;
40328 fail:
40329 {
40330 if (temp1)
40331 delete arg1;
40332 }
40333 return NULL;
40334 }
40335
40336
40337 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40338 PyObject *resultobj = 0;
40339 wxPyTreeCtrl *arg1 = 0 ;
40340 wxTreeItemId *arg2 = 0 ;
40341 wxGenericDragImage *result = 0 ;
40342 void *argp1 = 0 ;
40343 int res1 = 0 ;
40344 void *argp2 = 0 ;
40345 int res2 = 0 ;
40346 PyObject * obj0 = 0 ;
40347 PyObject * obj1 = 0 ;
40348 char * kwnames[] = {
40349 (char *) "treeCtrl",(char *) "id", NULL
40350 };
40351
40352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40353 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40354 if (!SWIG_IsOK(res1)) {
40355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40356 }
40357 if (!argp1) {
40358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40359 }
40360 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40361 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40362 if (!SWIG_IsOK(res2)) {
40363 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40364 }
40365 if (!argp2) {
40366 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40367 }
40368 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40369 {
40370 if (!wxPyCheckForApp()) SWIG_fail;
40371 PyThreadState* __tstate = wxPyBeginAllowThreads();
40372 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40373 wxPyEndAllowThreads(__tstate);
40374 if (PyErr_Occurred()) SWIG_fail;
40375 }
40376 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40377 return resultobj;
40378 fail:
40379 return NULL;
40380 }
40381
40382
40383 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40384 PyObject *resultobj = 0;
40385 wxPyListCtrl *arg1 = 0 ;
40386 long arg2 ;
40387 wxGenericDragImage *result = 0 ;
40388 void *argp1 = 0 ;
40389 int res1 = 0 ;
40390 long val2 ;
40391 int ecode2 = 0 ;
40392 PyObject * obj0 = 0 ;
40393 PyObject * obj1 = 0 ;
40394 char * kwnames[] = {
40395 (char *) "listCtrl",(char *) "id", NULL
40396 };
40397
40398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40399 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40400 if (!SWIG_IsOK(res1)) {
40401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40402 }
40403 if (!argp1) {
40404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40405 }
40406 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40407 ecode2 = SWIG_AsVal_long(obj1, &val2);
40408 if (!SWIG_IsOK(ecode2)) {
40409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40410 }
40411 arg2 = static_cast< long >(val2);
40412 {
40413 if (!wxPyCheckForApp()) SWIG_fail;
40414 PyThreadState* __tstate = wxPyBeginAllowThreads();
40415 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40416 wxPyEndAllowThreads(__tstate);
40417 if (PyErr_Occurred()) SWIG_fail;
40418 }
40419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40420 return resultobj;
40421 fail:
40422 return NULL;
40423 }
40424
40425
40426 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40427 PyObject *resultobj = 0;
40428 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40429 void *argp1 = 0 ;
40430 int res1 = 0 ;
40431 PyObject *swig_obj[1] ;
40432
40433 if (!args) SWIG_fail;
40434 swig_obj[0] = args;
40435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40436 if (!SWIG_IsOK(res1)) {
40437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40438 }
40439 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40440 {
40441 PyThreadState* __tstate = wxPyBeginAllowThreads();
40442 delete arg1;
40443
40444 wxPyEndAllowThreads(__tstate);
40445 if (PyErr_Occurred()) SWIG_fail;
40446 }
40447 resultobj = SWIG_Py_Void();
40448 return resultobj;
40449 fail:
40450 return NULL;
40451 }
40452
40453
40454 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40455 PyObject *resultobj = 0;
40456 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40457 wxBitmap *arg2 = (wxBitmap *) 0 ;
40458 void *argp1 = 0 ;
40459 int res1 = 0 ;
40460 void *argp2 = 0 ;
40461 int res2 = 0 ;
40462 PyObject * obj0 = 0 ;
40463 PyObject * obj1 = 0 ;
40464 char * kwnames[] = {
40465 (char *) "self",(char *) "bitmap", NULL
40466 };
40467
40468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40470 if (!SWIG_IsOK(res1)) {
40471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40472 }
40473 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40474 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40475 if (!SWIG_IsOK(res2)) {
40476 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40477 }
40478 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40479 {
40480 PyThreadState* __tstate = wxPyBeginAllowThreads();
40481 (arg1)->SetBackingBitmap(arg2);
40482 wxPyEndAllowThreads(__tstate);
40483 if (PyErr_Occurred()) SWIG_fail;
40484 }
40485 resultobj = SWIG_Py_Void();
40486 return resultobj;
40487 fail:
40488 return NULL;
40489 }
40490
40491
40492 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40493 PyObject *resultobj = 0;
40494 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40495 wxPoint *arg2 = 0 ;
40496 wxWindow *arg3 = (wxWindow *) 0 ;
40497 bool arg4 = (bool) false ;
40498 wxRect *arg5 = (wxRect *) NULL ;
40499 bool result;
40500 void *argp1 = 0 ;
40501 int res1 = 0 ;
40502 wxPoint temp2 ;
40503 void *argp3 = 0 ;
40504 int res3 = 0 ;
40505 bool val4 ;
40506 int ecode4 = 0 ;
40507 void *argp5 = 0 ;
40508 int res5 = 0 ;
40509 PyObject * obj0 = 0 ;
40510 PyObject * obj1 = 0 ;
40511 PyObject * obj2 = 0 ;
40512 PyObject * obj3 = 0 ;
40513 PyObject * obj4 = 0 ;
40514 char * kwnames[] = {
40515 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40516 };
40517
40518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40520 if (!SWIG_IsOK(res1)) {
40521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40522 }
40523 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40524 {
40525 arg2 = &temp2;
40526 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40527 }
40528 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40529 if (!SWIG_IsOK(res3)) {
40530 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40531 }
40532 arg3 = reinterpret_cast< wxWindow * >(argp3);
40533 if (obj3) {
40534 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40535 if (!SWIG_IsOK(ecode4)) {
40536 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40537 }
40538 arg4 = static_cast< bool >(val4);
40539 }
40540 if (obj4) {
40541 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40542 if (!SWIG_IsOK(res5)) {
40543 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40544 }
40545 arg5 = reinterpret_cast< wxRect * >(argp5);
40546 }
40547 {
40548 PyThreadState* __tstate = wxPyBeginAllowThreads();
40549 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40550 wxPyEndAllowThreads(__tstate);
40551 if (PyErr_Occurred()) SWIG_fail;
40552 }
40553 {
40554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40555 }
40556 return resultobj;
40557 fail:
40558 return NULL;
40559 }
40560
40561
40562 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40563 PyObject *resultobj = 0;
40564 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40565 wxPoint *arg2 = 0 ;
40566 wxWindow *arg3 = (wxWindow *) 0 ;
40567 wxWindow *arg4 = (wxWindow *) 0 ;
40568 bool result;
40569 void *argp1 = 0 ;
40570 int res1 = 0 ;
40571 wxPoint temp2 ;
40572 void *argp3 = 0 ;
40573 int res3 = 0 ;
40574 void *argp4 = 0 ;
40575 int res4 = 0 ;
40576 PyObject * obj0 = 0 ;
40577 PyObject * obj1 = 0 ;
40578 PyObject * obj2 = 0 ;
40579 PyObject * obj3 = 0 ;
40580 char * kwnames[] = {
40581 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40582 };
40583
40584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40586 if (!SWIG_IsOK(res1)) {
40587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40588 }
40589 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40590 {
40591 arg2 = &temp2;
40592 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40593 }
40594 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40595 if (!SWIG_IsOK(res3)) {
40596 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40597 }
40598 arg3 = reinterpret_cast< wxWindow * >(argp3);
40599 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40600 if (!SWIG_IsOK(res4)) {
40601 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40602 }
40603 arg4 = reinterpret_cast< wxWindow * >(argp4);
40604 {
40605 PyThreadState* __tstate = wxPyBeginAllowThreads();
40606 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40607 wxPyEndAllowThreads(__tstate);
40608 if (PyErr_Occurred()) SWIG_fail;
40609 }
40610 {
40611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40612 }
40613 return resultobj;
40614 fail:
40615 return NULL;
40616 }
40617
40618
40619 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40620 PyObject *resultobj = 0;
40621 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40622 bool result;
40623 void *argp1 = 0 ;
40624 int res1 = 0 ;
40625 PyObject *swig_obj[1] ;
40626
40627 if (!args) SWIG_fail;
40628 swig_obj[0] = args;
40629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40630 if (!SWIG_IsOK(res1)) {
40631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40632 }
40633 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40634 {
40635 PyThreadState* __tstate = wxPyBeginAllowThreads();
40636 result = (bool)(arg1)->EndDrag();
40637 wxPyEndAllowThreads(__tstate);
40638 if (PyErr_Occurred()) SWIG_fail;
40639 }
40640 {
40641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40642 }
40643 return resultobj;
40644 fail:
40645 return NULL;
40646 }
40647
40648
40649 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40650 PyObject *resultobj = 0;
40651 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40652 wxPoint *arg2 = 0 ;
40653 bool result;
40654 void *argp1 = 0 ;
40655 int res1 = 0 ;
40656 wxPoint temp2 ;
40657 PyObject * obj0 = 0 ;
40658 PyObject * obj1 = 0 ;
40659 char * kwnames[] = {
40660 (char *) "self",(char *) "pt", NULL
40661 };
40662
40663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40665 if (!SWIG_IsOK(res1)) {
40666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40667 }
40668 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40669 {
40670 arg2 = &temp2;
40671 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40672 }
40673 {
40674 PyThreadState* __tstate = wxPyBeginAllowThreads();
40675 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40676 wxPyEndAllowThreads(__tstate);
40677 if (PyErr_Occurred()) SWIG_fail;
40678 }
40679 {
40680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40681 }
40682 return resultobj;
40683 fail:
40684 return NULL;
40685 }
40686
40687
40688 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40689 PyObject *resultobj = 0;
40690 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40691 bool result;
40692 void *argp1 = 0 ;
40693 int res1 = 0 ;
40694 PyObject *swig_obj[1] ;
40695
40696 if (!args) SWIG_fail;
40697 swig_obj[0] = args;
40698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40699 if (!SWIG_IsOK(res1)) {
40700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40701 }
40702 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40703 {
40704 PyThreadState* __tstate = wxPyBeginAllowThreads();
40705 result = (bool)(arg1)->Show();
40706 wxPyEndAllowThreads(__tstate);
40707 if (PyErr_Occurred()) SWIG_fail;
40708 }
40709 {
40710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40711 }
40712 return resultobj;
40713 fail:
40714 return NULL;
40715 }
40716
40717
40718 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40719 PyObject *resultobj = 0;
40720 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40721 bool result;
40722 void *argp1 = 0 ;
40723 int res1 = 0 ;
40724 PyObject *swig_obj[1] ;
40725
40726 if (!args) SWIG_fail;
40727 swig_obj[0] = args;
40728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40729 if (!SWIG_IsOK(res1)) {
40730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40731 }
40732 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40733 {
40734 PyThreadState* __tstate = wxPyBeginAllowThreads();
40735 result = (bool)(arg1)->Hide();
40736 wxPyEndAllowThreads(__tstate);
40737 if (PyErr_Occurred()) SWIG_fail;
40738 }
40739 {
40740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40741 }
40742 return resultobj;
40743 fail:
40744 return NULL;
40745 }
40746
40747
40748 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40749 PyObject *resultobj = 0;
40750 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40751 wxPoint *arg2 = 0 ;
40752 wxRect result;
40753 void *argp1 = 0 ;
40754 int res1 = 0 ;
40755 wxPoint temp2 ;
40756 PyObject * obj0 = 0 ;
40757 PyObject * obj1 = 0 ;
40758 char * kwnames[] = {
40759 (char *) "self",(char *) "pos", NULL
40760 };
40761
40762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40764 if (!SWIG_IsOK(res1)) {
40765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40766 }
40767 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40768 {
40769 arg2 = &temp2;
40770 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40771 }
40772 {
40773 PyThreadState* __tstate = wxPyBeginAllowThreads();
40774 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40775 wxPyEndAllowThreads(__tstate);
40776 if (PyErr_Occurred()) SWIG_fail;
40777 }
40778 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40779 return resultobj;
40780 fail:
40781 return NULL;
40782 }
40783
40784
40785 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40786 PyObject *resultobj = 0;
40787 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40788 wxDC *arg2 = 0 ;
40789 wxPoint *arg3 = 0 ;
40790 bool result;
40791 void *argp1 = 0 ;
40792 int res1 = 0 ;
40793 void *argp2 = 0 ;
40794 int res2 = 0 ;
40795 wxPoint temp3 ;
40796 PyObject * obj0 = 0 ;
40797 PyObject * obj1 = 0 ;
40798 PyObject * obj2 = 0 ;
40799 char * kwnames[] = {
40800 (char *) "self",(char *) "dc",(char *) "pos", NULL
40801 };
40802
40803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40805 if (!SWIG_IsOK(res1)) {
40806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40807 }
40808 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40809 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40810 if (!SWIG_IsOK(res2)) {
40811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40812 }
40813 if (!argp2) {
40814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40815 }
40816 arg2 = reinterpret_cast< wxDC * >(argp2);
40817 {
40818 arg3 = &temp3;
40819 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40820 }
40821 {
40822 PyThreadState* __tstate = wxPyBeginAllowThreads();
40823 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40824 wxPyEndAllowThreads(__tstate);
40825 if (PyErr_Occurred()) SWIG_fail;
40826 }
40827 {
40828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40829 }
40830 return resultobj;
40831 fail:
40832 return NULL;
40833 }
40834
40835
40836 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40837 PyObject *resultobj = 0;
40838 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40839 wxDC *arg2 = 0 ;
40840 wxMemoryDC *arg3 = 0 ;
40841 wxRect *arg4 = 0 ;
40842 wxRect *arg5 = 0 ;
40843 bool result;
40844 void *argp1 = 0 ;
40845 int res1 = 0 ;
40846 void *argp2 = 0 ;
40847 int res2 = 0 ;
40848 void *argp3 = 0 ;
40849 int res3 = 0 ;
40850 wxRect temp4 ;
40851 wxRect temp5 ;
40852 PyObject * obj0 = 0 ;
40853 PyObject * obj1 = 0 ;
40854 PyObject * obj2 = 0 ;
40855 PyObject * obj3 = 0 ;
40856 PyObject * obj4 = 0 ;
40857 char * kwnames[] = {
40858 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40859 };
40860
40861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40863 if (!SWIG_IsOK(res1)) {
40864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40865 }
40866 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40867 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40868 if (!SWIG_IsOK(res2)) {
40869 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40870 }
40871 if (!argp2) {
40872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40873 }
40874 arg2 = reinterpret_cast< wxDC * >(argp2);
40875 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40876 if (!SWIG_IsOK(res3)) {
40877 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40878 }
40879 if (!argp3) {
40880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40881 }
40882 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40883 {
40884 arg4 = &temp4;
40885 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40886 }
40887 {
40888 arg5 = &temp5;
40889 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40890 }
40891 {
40892 PyThreadState* __tstate = wxPyBeginAllowThreads();
40893 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40894 wxPyEndAllowThreads(__tstate);
40895 if (PyErr_Occurred()) SWIG_fail;
40896 }
40897 {
40898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40899 }
40900 return resultobj;
40901 fail:
40902 return NULL;
40903 }
40904
40905
40906 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40907 PyObject *resultobj = 0;
40908 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40909 wxPoint *arg2 = 0 ;
40910 wxPoint *arg3 = 0 ;
40911 bool arg4 ;
40912 bool arg5 ;
40913 bool result;
40914 void *argp1 = 0 ;
40915 int res1 = 0 ;
40916 wxPoint temp2 ;
40917 wxPoint temp3 ;
40918 bool val4 ;
40919 int ecode4 = 0 ;
40920 bool val5 ;
40921 int ecode5 = 0 ;
40922 PyObject * obj0 = 0 ;
40923 PyObject * obj1 = 0 ;
40924 PyObject * obj2 = 0 ;
40925 PyObject * obj3 = 0 ;
40926 PyObject * obj4 = 0 ;
40927 char * kwnames[] = {
40928 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40929 };
40930
40931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40933 if (!SWIG_IsOK(res1)) {
40934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40935 }
40936 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40937 {
40938 arg2 = &temp2;
40939 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40940 }
40941 {
40942 arg3 = &temp3;
40943 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40944 }
40945 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40946 if (!SWIG_IsOK(ecode4)) {
40947 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40948 }
40949 arg4 = static_cast< bool >(val4);
40950 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40951 if (!SWIG_IsOK(ecode5)) {
40952 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40953 }
40954 arg5 = static_cast< bool >(val5);
40955 {
40956 PyThreadState* __tstate = wxPyBeginAllowThreads();
40957 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40958 wxPyEndAllowThreads(__tstate);
40959 if (PyErr_Occurred()) SWIG_fail;
40960 }
40961 {
40962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40963 }
40964 return resultobj;
40965 fail:
40966 return NULL;
40967 }
40968
40969
40970 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40971 PyObject *obj;
40972 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40973 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40974 return SWIG_Py_Void();
40975 }
40976
40977 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40978 return SWIG_Python_InitShadowInstance(args);
40979 }
40980
40981 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40982 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40983 return 1;
40984 }
40985
40986
40987 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40988 PyObject *pyobj = 0;
40989
40990 {
40991 #if wxUSE_UNICODE
40992 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40993 #else
40994 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40995 #endif
40996 }
40997 return pyobj;
40998 }
40999
41000
41001 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41002 PyObject *resultobj = 0;
41003 wxWindow *arg1 = (wxWindow *) 0 ;
41004 int arg2 = (int) -1 ;
41005 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41006 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41007 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41008 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41009 wxSize const &arg5_defvalue = wxDefaultSize ;
41010 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41011 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41012 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41013 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41014 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41015 wxString *arg8 = (wxString *) &arg8_defvalue ;
41016 wxDatePickerCtrl *result = 0 ;
41017 void *argp1 = 0 ;
41018 int res1 = 0 ;
41019 int val2 ;
41020 int ecode2 = 0 ;
41021 void *argp3 = 0 ;
41022 int res3 = 0 ;
41023 wxPoint temp4 ;
41024 wxSize temp5 ;
41025 long val6 ;
41026 int ecode6 = 0 ;
41027 void *argp7 = 0 ;
41028 int res7 = 0 ;
41029 bool temp8 = false ;
41030 PyObject * obj0 = 0 ;
41031 PyObject * obj1 = 0 ;
41032 PyObject * obj2 = 0 ;
41033 PyObject * obj3 = 0 ;
41034 PyObject * obj4 = 0 ;
41035 PyObject * obj5 = 0 ;
41036 PyObject * obj6 = 0 ;
41037 PyObject * obj7 = 0 ;
41038 char * kwnames[] = {
41039 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41040 };
41041
41042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41044 if (!SWIG_IsOK(res1)) {
41045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41046 }
41047 arg1 = reinterpret_cast< wxWindow * >(argp1);
41048 if (obj1) {
41049 ecode2 = SWIG_AsVal_int(obj1, &val2);
41050 if (!SWIG_IsOK(ecode2)) {
41051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41052 }
41053 arg2 = static_cast< int >(val2);
41054 }
41055 if (obj2) {
41056 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41057 if (!SWIG_IsOK(res3)) {
41058 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41059 }
41060 if (!argp3) {
41061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41062 }
41063 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41064 }
41065 if (obj3) {
41066 {
41067 arg4 = &temp4;
41068 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41069 }
41070 }
41071 if (obj4) {
41072 {
41073 arg5 = &temp5;
41074 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41075 }
41076 }
41077 if (obj5) {
41078 ecode6 = SWIG_AsVal_long(obj5, &val6);
41079 if (!SWIG_IsOK(ecode6)) {
41080 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41081 }
41082 arg6 = static_cast< long >(val6);
41083 }
41084 if (obj6) {
41085 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41086 if (!SWIG_IsOK(res7)) {
41087 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41088 }
41089 if (!argp7) {
41090 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41091 }
41092 arg7 = reinterpret_cast< wxValidator * >(argp7);
41093 }
41094 if (obj7) {
41095 {
41096 arg8 = wxString_in_helper(obj7);
41097 if (arg8 == NULL) SWIG_fail;
41098 temp8 = true;
41099 }
41100 }
41101 {
41102 if (!wxPyCheckForApp()) SWIG_fail;
41103 PyThreadState* __tstate = wxPyBeginAllowThreads();
41104 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41105 wxPyEndAllowThreads(__tstate);
41106 if (PyErr_Occurred()) SWIG_fail;
41107 }
41108 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41109 {
41110 if (temp8)
41111 delete arg8;
41112 }
41113 return resultobj;
41114 fail:
41115 {
41116 if (temp8)
41117 delete arg8;
41118 }
41119 return NULL;
41120 }
41121
41122
41123 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41124 PyObject *resultobj = 0;
41125 wxDatePickerCtrl *result = 0 ;
41126
41127 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41128 {
41129 if (!wxPyCheckForApp()) SWIG_fail;
41130 PyThreadState* __tstate = wxPyBeginAllowThreads();
41131 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41132 wxPyEndAllowThreads(__tstate);
41133 if (PyErr_Occurred()) SWIG_fail;
41134 }
41135 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41136 return resultobj;
41137 fail:
41138 return NULL;
41139 }
41140
41141
41142 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41143 PyObject *resultobj = 0;
41144 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41145 wxWindow *arg2 = (wxWindow *) 0 ;
41146 int arg3 = (int) -1 ;
41147 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41148 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41149 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41150 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41151 wxSize const &arg6_defvalue = wxDefaultSize ;
41152 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41153 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41154 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41155 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41156 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41157 wxString *arg9 = (wxString *) &arg9_defvalue ;
41158 bool result;
41159 void *argp1 = 0 ;
41160 int res1 = 0 ;
41161 void *argp2 = 0 ;
41162 int res2 = 0 ;
41163 int val3 ;
41164 int ecode3 = 0 ;
41165 void *argp4 = 0 ;
41166 int res4 = 0 ;
41167 wxPoint temp5 ;
41168 wxSize temp6 ;
41169 long val7 ;
41170 int ecode7 = 0 ;
41171 void *argp8 = 0 ;
41172 int res8 = 0 ;
41173 bool temp9 = false ;
41174 PyObject * obj0 = 0 ;
41175 PyObject * obj1 = 0 ;
41176 PyObject * obj2 = 0 ;
41177 PyObject * obj3 = 0 ;
41178 PyObject * obj4 = 0 ;
41179 PyObject * obj5 = 0 ;
41180 PyObject * obj6 = 0 ;
41181 PyObject * obj7 = 0 ;
41182 PyObject * obj8 = 0 ;
41183 char * kwnames[] = {
41184 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41185 };
41186
41187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41189 if (!SWIG_IsOK(res1)) {
41190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41191 }
41192 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41193 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41194 if (!SWIG_IsOK(res2)) {
41195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41196 }
41197 arg2 = reinterpret_cast< wxWindow * >(argp2);
41198 if (obj2) {
41199 ecode3 = SWIG_AsVal_int(obj2, &val3);
41200 if (!SWIG_IsOK(ecode3)) {
41201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41202 }
41203 arg3 = static_cast< int >(val3);
41204 }
41205 if (obj3) {
41206 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41207 if (!SWIG_IsOK(res4)) {
41208 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41209 }
41210 if (!argp4) {
41211 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41212 }
41213 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41214 }
41215 if (obj4) {
41216 {
41217 arg5 = &temp5;
41218 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41219 }
41220 }
41221 if (obj5) {
41222 {
41223 arg6 = &temp6;
41224 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41225 }
41226 }
41227 if (obj6) {
41228 ecode7 = SWIG_AsVal_long(obj6, &val7);
41229 if (!SWIG_IsOK(ecode7)) {
41230 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41231 }
41232 arg7 = static_cast< long >(val7);
41233 }
41234 if (obj7) {
41235 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41236 if (!SWIG_IsOK(res8)) {
41237 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41238 }
41239 if (!argp8) {
41240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41241 }
41242 arg8 = reinterpret_cast< wxValidator * >(argp8);
41243 }
41244 if (obj8) {
41245 {
41246 arg9 = wxString_in_helper(obj8);
41247 if (arg9 == NULL) SWIG_fail;
41248 temp9 = true;
41249 }
41250 }
41251 {
41252 PyThreadState* __tstate = wxPyBeginAllowThreads();
41253 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41254 wxPyEndAllowThreads(__tstate);
41255 if (PyErr_Occurred()) SWIG_fail;
41256 }
41257 {
41258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41259 }
41260 {
41261 if (temp9)
41262 delete arg9;
41263 }
41264 return resultobj;
41265 fail:
41266 {
41267 if (temp9)
41268 delete arg9;
41269 }
41270 return NULL;
41271 }
41272
41273
41274 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41275 PyObject *resultobj = 0;
41276 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41277 wxDateTime *arg2 = 0 ;
41278 void *argp1 = 0 ;
41279 int res1 = 0 ;
41280 void *argp2 = 0 ;
41281 int res2 = 0 ;
41282 PyObject * obj0 = 0 ;
41283 PyObject * obj1 = 0 ;
41284 char * kwnames[] = {
41285 (char *) "self",(char *) "dt", NULL
41286 };
41287
41288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41290 if (!SWIG_IsOK(res1)) {
41291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41292 }
41293 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41294 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41295 if (!SWIG_IsOK(res2)) {
41296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41297 }
41298 if (!argp2) {
41299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41300 }
41301 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41302 {
41303 PyThreadState* __tstate = wxPyBeginAllowThreads();
41304 (arg1)->SetValue((wxDateTime const &)*arg2);
41305 wxPyEndAllowThreads(__tstate);
41306 if (PyErr_Occurred()) SWIG_fail;
41307 }
41308 resultobj = SWIG_Py_Void();
41309 return resultobj;
41310 fail:
41311 return NULL;
41312 }
41313
41314
41315 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41316 PyObject *resultobj = 0;
41317 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41318 wxDateTime result;
41319 void *argp1 = 0 ;
41320 int res1 = 0 ;
41321 PyObject *swig_obj[1] ;
41322
41323 if (!args) SWIG_fail;
41324 swig_obj[0] = args;
41325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41326 if (!SWIG_IsOK(res1)) {
41327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41328 }
41329 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41330 {
41331 PyThreadState* __tstate = wxPyBeginAllowThreads();
41332 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41333 wxPyEndAllowThreads(__tstate);
41334 if (PyErr_Occurred()) SWIG_fail;
41335 }
41336 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41337 return resultobj;
41338 fail:
41339 return NULL;
41340 }
41341
41342
41343 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41344 PyObject *resultobj = 0;
41345 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41346 wxDateTime *arg2 = 0 ;
41347 wxDateTime *arg3 = 0 ;
41348 void *argp1 = 0 ;
41349 int res1 = 0 ;
41350 void *argp2 = 0 ;
41351 int res2 = 0 ;
41352 void *argp3 = 0 ;
41353 int res3 = 0 ;
41354 PyObject * obj0 = 0 ;
41355 PyObject * obj1 = 0 ;
41356 PyObject * obj2 = 0 ;
41357 char * kwnames[] = {
41358 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41359 };
41360
41361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41363 if (!SWIG_IsOK(res1)) {
41364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41365 }
41366 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41367 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41368 if (!SWIG_IsOK(res2)) {
41369 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41370 }
41371 if (!argp2) {
41372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41373 }
41374 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41375 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41376 if (!SWIG_IsOK(res3)) {
41377 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41378 }
41379 if (!argp3) {
41380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41381 }
41382 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41383 {
41384 PyThreadState* __tstate = wxPyBeginAllowThreads();
41385 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41386 wxPyEndAllowThreads(__tstate);
41387 if (PyErr_Occurred()) SWIG_fail;
41388 }
41389 resultobj = SWIG_Py_Void();
41390 return resultobj;
41391 fail:
41392 return NULL;
41393 }
41394
41395
41396 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41397 PyObject *resultobj = 0;
41398 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41399 wxDateTime result;
41400 void *argp1 = 0 ;
41401 int res1 = 0 ;
41402 PyObject *swig_obj[1] ;
41403
41404 if (!args) SWIG_fail;
41405 swig_obj[0] = args;
41406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41407 if (!SWIG_IsOK(res1)) {
41408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41409 }
41410 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41411 {
41412 PyThreadState* __tstate = wxPyBeginAllowThreads();
41413 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41414 wxPyEndAllowThreads(__tstate);
41415 if (PyErr_Occurred()) SWIG_fail;
41416 }
41417 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41418 return resultobj;
41419 fail:
41420 return NULL;
41421 }
41422
41423
41424 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41425 PyObject *resultobj = 0;
41426 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41427 wxDateTime result;
41428 void *argp1 = 0 ;
41429 int res1 = 0 ;
41430 PyObject *swig_obj[1] ;
41431
41432 if (!args) SWIG_fail;
41433 swig_obj[0] = args;
41434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41435 if (!SWIG_IsOK(res1)) {
41436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41437 }
41438 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41439 {
41440 PyThreadState* __tstate = wxPyBeginAllowThreads();
41441 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41442 wxPyEndAllowThreads(__tstate);
41443 if (PyErr_Occurred()) SWIG_fail;
41444 }
41445 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41446 return resultobj;
41447 fail:
41448 return NULL;
41449 }
41450
41451
41452 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41453 PyObject *obj;
41454 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41455 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41456 return SWIG_Py_Void();
41457 }
41458
41459 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41460 return SWIG_Python_InitShadowInstance(args);
41461 }
41462
41463 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41464 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41465 return 1;
41466 }
41467
41468
41469 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41470 PyObject *pyobj = 0;
41471
41472 {
41473 #if wxUSE_UNICODE
41474 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41475 #else
41476 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41477 #endif
41478 }
41479 return pyobj;
41480 }
41481
41482
41483 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41484 PyObject *resultobj = 0;
41485 wxWindow *arg1 = (wxWindow *) 0 ;
41486 int arg2 ;
41487 wxString *arg3 = 0 ;
41488 wxString *arg4 = 0 ;
41489 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41490 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41491 wxSize const &arg6_defvalue = wxDefaultSize ;
41492 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41493 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41494 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41495 wxString *arg8 = (wxString *) &arg8_defvalue ;
41496 wxHyperlinkCtrl *result = 0 ;
41497 void *argp1 = 0 ;
41498 int res1 = 0 ;
41499 int val2 ;
41500 int ecode2 = 0 ;
41501 bool temp3 = false ;
41502 bool temp4 = false ;
41503 wxPoint temp5 ;
41504 wxSize temp6 ;
41505 long val7 ;
41506 int ecode7 = 0 ;
41507 bool temp8 = false ;
41508 PyObject * obj0 = 0 ;
41509 PyObject * obj1 = 0 ;
41510 PyObject * obj2 = 0 ;
41511 PyObject * obj3 = 0 ;
41512 PyObject * obj4 = 0 ;
41513 PyObject * obj5 = 0 ;
41514 PyObject * obj6 = 0 ;
41515 PyObject * obj7 = 0 ;
41516 char * kwnames[] = {
41517 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41518 };
41519
41520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41522 if (!SWIG_IsOK(res1)) {
41523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41524 }
41525 arg1 = reinterpret_cast< wxWindow * >(argp1);
41526 ecode2 = SWIG_AsVal_int(obj1, &val2);
41527 if (!SWIG_IsOK(ecode2)) {
41528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41529 }
41530 arg2 = static_cast< int >(val2);
41531 {
41532 arg3 = wxString_in_helper(obj2);
41533 if (arg3 == NULL) SWIG_fail;
41534 temp3 = true;
41535 }
41536 {
41537 arg4 = wxString_in_helper(obj3);
41538 if (arg4 == NULL) SWIG_fail;
41539 temp4 = true;
41540 }
41541 if (obj4) {
41542 {
41543 arg5 = &temp5;
41544 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41545 }
41546 }
41547 if (obj5) {
41548 {
41549 arg6 = &temp6;
41550 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41551 }
41552 }
41553 if (obj6) {
41554 ecode7 = SWIG_AsVal_long(obj6, &val7);
41555 if (!SWIG_IsOK(ecode7)) {
41556 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41557 }
41558 arg7 = static_cast< long >(val7);
41559 }
41560 if (obj7) {
41561 {
41562 arg8 = wxString_in_helper(obj7);
41563 if (arg8 == NULL) SWIG_fail;
41564 temp8 = true;
41565 }
41566 }
41567 {
41568 if (!wxPyCheckForApp()) SWIG_fail;
41569 PyThreadState* __tstate = wxPyBeginAllowThreads();
41570 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41571 wxPyEndAllowThreads(__tstate);
41572 if (PyErr_Occurred()) SWIG_fail;
41573 }
41574 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41575 {
41576 if (temp3)
41577 delete arg3;
41578 }
41579 {
41580 if (temp4)
41581 delete arg4;
41582 }
41583 {
41584 if (temp8)
41585 delete arg8;
41586 }
41587 return resultobj;
41588 fail:
41589 {
41590 if (temp3)
41591 delete arg3;
41592 }
41593 {
41594 if (temp4)
41595 delete arg4;
41596 }
41597 {
41598 if (temp8)
41599 delete arg8;
41600 }
41601 return NULL;
41602 }
41603
41604
41605 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41606 PyObject *resultobj = 0;
41607 wxHyperlinkCtrl *result = 0 ;
41608
41609 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41610 {
41611 if (!wxPyCheckForApp()) SWIG_fail;
41612 PyThreadState* __tstate = wxPyBeginAllowThreads();
41613 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41614 wxPyEndAllowThreads(__tstate);
41615 if (PyErr_Occurred()) SWIG_fail;
41616 }
41617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41618 return resultobj;
41619 fail:
41620 return NULL;
41621 }
41622
41623
41624 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41625 PyObject *resultobj = 0;
41626 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41627 wxWindow *arg2 = (wxWindow *) 0 ;
41628 int arg3 ;
41629 wxString *arg4 = 0 ;
41630 wxString *arg5 = 0 ;
41631 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41632 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41633 wxSize const &arg7_defvalue = wxDefaultSize ;
41634 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41635 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41636 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41637 wxString *arg9 = (wxString *) &arg9_defvalue ;
41638 bool result;
41639 void *argp1 = 0 ;
41640 int res1 = 0 ;
41641 void *argp2 = 0 ;
41642 int res2 = 0 ;
41643 int val3 ;
41644 int ecode3 = 0 ;
41645 bool temp4 = false ;
41646 bool temp5 = false ;
41647 wxPoint temp6 ;
41648 wxSize temp7 ;
41649 long val8 ;
41650 int ecode8 = 0 ;
41651 bool temp9 = false ;
41652 PyObject * obj0 = 0 ;
41653 PyObject * obj1 = 0 ;
41654 PyObject * obj2 = 0 ;
41655 PyObject * obj3 = 0 ;
41656 PyObject * obj4 = 0 ;
41657 PyObject * obj5 = 0 ;
41658 PyObject * obj6 = 0 ;
41659 PyObject * obj7 = 0 ;
41660 PyObject * obj8 = 0 ;
41661 char * kwnames[] = {
41662 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41663 };
41664
41665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41667 if (!SWIG_IsOK(res1)) {
41668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41669 }
41670 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41671 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41672 if (!SWIG_IsOK(res2)) {
41673 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41674 }
41675 arg2 = reinterpret_cast< wxWindow * >(argp2);
41676 ecode3 = SWIG_AsVal_int(obj2, &val3);
41677 if (!SWIG_IsOK(ecode3)) {
41678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41679 }
41680 arg3 = static_cast< int >(val3);
41681 {
41682 arg4 = wxString_in_helper(obj3);
41683 if (arg4 == NULL) SWIG_fail;
41684 temp4 = true;
41685 }
41686 {
41687 arg5 = wxString_in_helper(obj4);
41688 if (arg5 == NULL) SWIG_fail;
41689 temp5 = true;
41690 }
41691 if (obj5) {
41692 {
41693 arg6 = &temp6;
41694 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41695 }
41696 }
41697 if (obj6) {
41698 {
41699 arg7 = &temp7;
41700 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41701 }
41702 }
41703 if (obj7) {
41704 ecode8 = SWIG_AsVal_long(obj7, &val8);
41705 if (!SWIG_IsOK(ecode8)) {
41706 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41707 }
41708 arg8 = static_cast< long >(val8);
41709 }
41710 if (obj8) {
41711 {
41712 arg9 = wxString_in_helper(obj8);
41713 if (arg9 == NULL) SWIG_fail;
41714 temp9 = true;
41715 }
41716 }
41717 {
41718 PyThreadState* __tstate = wxPyBeginAllowThreads();
41719 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41720 wxPyEndAllowThreads(__tstate);
41721 if (PyErr_Occurred()) SWIG_fail;
41722 }
41723 {
41724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41725 }
41726 {
41727 if (temp4)
41728 delete arg4;
41729 }
41730 {
41731 if (temp5)
41732 delete arg5;
41733 }
41734 {
41735 if (temp9)
41736 delete arg9;
41737 }
41738 return resultobj;
41739 fail:
41740 {
41741 if (temp4)
41742 delete arg4;
41743 }
41744 {
41745 if (temp5)
41746 delete arg5;
41747 }
41748 {
41749 if (temp9)
41750 delete arg9;
41751 }
41752 return NULL;
41753 }
41754
41755
41756 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41757 PyObject *resultobj = 0;
41758 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41759 wxColour result;
41760 void *argp1 = 0 ;
41761 int res1 = 0 ;
41762 PyObject *swig_obj[1] ;
41763
41764 if (!args) SWIG_fail;
41765 swig_obj[0] = args;
41766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41767 if (!SWIG_IsOK(res1)) {
41768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41769 }
41770 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41771 {
41772 PyThreadState* __tstate = wxPyBeginAllowThreads();
41773 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41774 wxPyEndAllowThreads(__tstate);
41775 if (PyErr_Occurred()) SWIG_fail;
41776 }
41777 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41778 return resultobj;
41779 fail:
41780 return NULL;
41781 }
41782
41783
41784 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41785 PyObject *resultobj = 0;
41786 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41787 wxColour *arg2 = 0 ;
41788 void *argp1 = 0 ;
41789 int res1 = 0 ;
41790 wxColour temp2 ;
41791 PyObject * obj0 = 0 ;
41792 PyObject * obj1 = 0 ;
41793 char * kwnames[] = {
41794 (char *) "self",(char *) "colour", NULL
41795 };
41796
41797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41799 if (!SWIG_IsOK(res1)) {
41800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41801 }
41802 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41803 {
41804 arg2 = &temp2;
41805 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41806 }
41807 {
41808 PyThreadState* __tstate = wxPyBeginAllowThreads();
41809 (arg1)->SetHoverColour((wxColour const &)*arg2);
41810 wxPyEndAllowThreads(__tstate);
41811 if (PyErr_Occurred()) SWIG_fail;
41812 }
41813 resultobj = SWIG_Py_Void();
41814 return resultobj;
41815 fail:
41816 return NULL;
41817 }
41818
41819
41820 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41821 PyObject *resultobj = 0;
41822 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41823 wxColour result;
41824 void *argp1 = 0 ;
41825 int res1 = 0 ;
41826 PyObject *swig_obj[1] ;
41827
41828 if (!args) SWIG_fail;
41829 swig_obj[0] = args;
41830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41831 if (!SWIG_IsOK(res1)) {
41832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41833 }
41834 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41835 {
41836 PyThreadState* __tstate = wxPyBeginAllowThreads();
41837 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
41838 wxPyEndAllowThreads(__tstate);
41839 if (PyErr_Occurred()) SWIG_fail;
41840 }
41841 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41842 return resultobj;
41843 fail:
41844 return NULL;
41845 }
41846
41847
41848 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41849 PyObject *resultobj = 0;
41850 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41851 wxColour *arg2 = 0 ;
41852 void *argp1 = 0 ;
41853 int res1 = 0 ;
41854 wxColour temp2 ;
41855 PyObject * obj0 = 0 ;
41856 PyObject * obj1 = 0 ;
41857 char * kwnames[] = {
41858 (char *) "self",(char *) "colour", NULL
41859 };
41860
41861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
41862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41863 if (!SWIG_IsOK(res1)) {
41864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41865 }
41866 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41867 {
41868 arg2 = &temp2;
41869 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41870 }
41871 {
41872 PyThreadState* __tstate = wxPyBeginAllowThreads();
41873 (arg1)->SetNormalColour((wxColour const &)*arg2);
41874 wxPyEndAllowThreads(__tstate);
41875 if (PyErr_Occurred()) SWIG_fail;
41876 }
41877 resultobj = SWIG_Py_Void();
41878 return resultobj;
41879 fail:
41880 return NULL;
41881 }
41882
41883
41884 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41885 PyObject *resultobj = 0;
41886 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41887 wxColour result;
41888 void *argp1 = 0 ;
41889 int res1 = 0 ;
41890 PyObject *swig_obj[1] ;
41891
41892 if (!args) SWIG_fail;
41893 swig_obj[0] = args;
41894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41895 if (!SWIG_IsOK(res1)) {
41896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41897 }
41898 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41899 {
41900 PyThreadState* __tstate = wxPyBeginAllowThreads();
41901 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
41902 wxPyEndAllowThreads(__tstate);
41903 if (PyErr_Occurred()) SWIG_fail;
41904 }
41905 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41906 return resultobj;
41907 fail:
41908 return NULL;
41909 }
41910
41911
41912 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41913 PyObject *resultobj = 0;
41914 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41915 wxColour *arg2 = 0 ;
41916 void *argp1 = 0 ;
41917 int res1 = 0 ;
41918 wxColour temp2 ;
41919 PyObject * obj0 = 0 ;
41920 PyObject * obj1 = 0 ;
41921 char * kwnames[] = {
41922 (char *) "self",(char *) "colour", NULL
41923 };
41924
41925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
41926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41927 if (!SWIG_IsOK(res1)) {
41928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41929 }
41930 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41931 {
41932 arg2 = &temp2;
41933 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41934 }
41935 {
41936 PyThreadState* __tstate = wxPyBeginAllowThreads();
41937 (arg1)->SetVisitedColour((wxColour const &)*arg2);
41938 wxPyEndAllowThreads(__tstate);
41939 if (PyErr_Occurred()) SWIG_fail;
41940 }
41941 resultobj = SWIG_Py_Void();
41942 return resultobj;
41943 fail:
41944 return NULL;
41945 }
41946
41947
41948 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41949 PyObject *resultobj = 0;
41950 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41951 wxString result;
41952 void *argp1 = 0 ;
41953 int res1 = 0 ;
41954 PyObject *swig_obj[1] ;
41955
41956 if (!args) SWIG_fail;
41957 swig_obj[0] = args;
41958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41959 if (!SWIG_IsOK(res1)) {
41960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41961 }
41962 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41963 {
41964 PyThreadState* __tstate = wxPyBeginAllowThreads();
41965 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
41966 wxPyEndAllowThreads(__tstate);
41967 if (PyErr_Occurred()) SWIG_fail;
41968 }
41969 {
41970 #if wxUSE_UNICODE
41971 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
41972 #else
41973 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
41974 #endif
41975 }
41976 return resultobj;
41977 fail:
41978 return NULL;
41979 }
41980
41981
41982 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41983 PyObject *resultobj = 0;
41984 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41985 wxString *arg2 = 0 ;
41986 void *argp1 = 0 ;
41987 int res1 = 0 ;
41988 bool temp2 = false ;
41989 PyObject * obj0 = 0 ;
41990 PyObject * obj1 = 0 ;
41991 char * kwnames[] = {
41992 (char *) "self",(char *) "url", NULL
41993 };
41994
41995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
41996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41997 if (!SWIG_IsOK(res1)) {
41998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41999 }
42000 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42001 {
42002 arg2 = wxString_in_helper(obj1);
42003 if (arg2 == NULL) SWIG_fail;
42004 temp2 = true;
42005 }
42006 {
42007 PyThreadState* __tstate = wxPyBeginAllowThreads();
42008 (arg1)->SetURL((wxString const &)*arg2);
42009 wxPyEndAllowThreads(__tstate);
42010 if (PyErr_Occurred()) SWIG_fail;
42011 }
42012 resultobj = SWIG_Py_Void();
42013 {
42014 if (temp2)
42015 delete arg2;
42016 }
42017 return resultobj;
42018 fail:
42019 {
42020 if (temp2)
42021 delete arg2;
42022 }
42023 return NULL;
42024 }
42025
42026
42027 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42028 PyObject *resultobj = 0;
42029 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42030 bool arg2 = (bool) true ;
42031 void *argp1 = 0 ;
42032 int res1 = 0 ;
42033 bool val2 ;
42034 int ecode2 = 0 ;
42035 PyObject * obj0 = 0 ;
42036 PyObject * obj1 = 0 ;
42037 char * kwnames[] = {
42038 (char *) "self",(char *) "visited", NULL
42039 };
42040
42041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42043 if (!SWIG_IsOK(res1)) {
42044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42045 }
42046 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42047 if (obj1) {
42048 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42049 if (!SWIG_IsOK(ecode2)) {
42050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42051 }
42052 arg2 = static_cast< bool >(val2);
42053 }
42054 {
42055 PyThreadState* __tstate = wxPyBeginAllowThreads();
42056 (arg1)->SetVisited(arg2);
42057 wxPyEndAllowThreads(__tstate);
42058 if (PyErr_Occurred()) SWIG_fail;
42059 }
42060 resultobj = SWIG_Py_Void();
42061 return resultobj;
42062 fail:
42063 return NULL;
42064 }
42065
42066
42067 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42068 PyObject *resultobj = 0;
42069 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42070 bool result;
42071 void *argp1 = 0 ;
42072 int res1 = 0 ;
42073 PyObject *swig_obj[1] ;
42074
42075 if (!args) SWIG_fail;
42076 swig_obj[0] = args;
42077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42078 if (!SWIG_IsOK(res1)) {
42079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42080 }
42081 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42082 {
42083 PyThreadState* __tstate = wxPyBeginAllowThreads();
42084 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42085 wxPyEndAllowThreads(__tstate);
42086 if (PyErr_Occurred()) SWIG_fail;
42087 }
42088 {
42089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42090 }
42091 return resultobj;
42092 fail:
42093 return NULL;
42094 }
42095
42096
42097 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42098 PyObject *obj;
42099 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42100 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42101 return SWIG_Py_Void();
42102 }
42103
42104 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42105 return SWIG_Python_InitShadowInstance(args);
42106 }
42107
42108 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42109 PyObject *resultobj = 0;
42110 wxObject *arg1 = (wxObject *) 0 ;
42111 int arg2 ;
42112 wxString *arg3 = 0 ;
42113 wxHyperlinkEvent *result = 0 ;
42114 void *argp1 = 0 ;
42115 int res1 = 0 ;
42116 int val2 ;
42117 int ecode2 = 0 ;
42118 bool temp3 = false ;
42119 PyObject * obj0 = 0 ;
42120 PyObject * obj1 = 0 ;
42121 PyObject * obj2 = 0 ;
42122 char * kwnames[] = {
42123 (char *) "generator",(char *) "id",(char *) "url", NULL
42124 };
42125
42126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42128 if (!SWIG_IsOK(res1)) {
42129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42130 }
42131 arg1 = reinterpret_cast< wxObject * >(argp1);
42132 ecode2 = SWIG_AsVal_int(obj1, &val2);
42133 if (!SWIG_IsOK(ecode2)) {
42134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42135 }
42136 arg2 = static_cast< int >(val2);
42137 {
42138 arg3 = wxString_in_helper(obj2);
42139 if (arg3 == NULL) SWIG_fail;
42140 temp3 = true;
42141 }
42142 {
42143 PyThreadState* __tstate = wxPyBeginAllowThreads();
42144 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42145 wxPyEndAllowThreads(__tstate);
42146 if (PyErr_Occurred()) SWIG_fail;
42147 }
42148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42149 {
42150 if (temp3)
42151 delete arg3;
42152 }
42153 return resultobj;
42154 fail:
42155 {
42156 if (temp3)
42157 delete arg3;
42158 }
42159 return NULL;
42160 }
42161
42162
42163 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42164 PyObject *resultobj = 0;
42165 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 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_wxHyperlinkEvent, 0 | 0 );
42174 if (!SWIG_IsOK(res1)) {
42175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42176 }
42177 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42178 {
42179 PyThreadState* __tstate = wxPyBeginAllowThreads();
42180 result = ((wxHyperlinkEvent 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_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42198 PyObject *resultobj = 0;
42199 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 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:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42212 if (!SWIG_IsOK(res1)) {
42213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42214 }
42215 arg1 = reinterpret_cast< wxHyperlinkEvent * >(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 *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42243 PyObject *obj;
42244 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42245 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42246 return SWIG_Py_Void();
42247 }
42248
42249 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42250 return SWIG_Python_InitShadowInstance(args);
42251 }
42252
42253 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42254 PyObject *resultobj = 0;
42255 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42256 wxWindow *arg2 = (wxWindow *) 0 ;
42257 int arg3 ;
42258 wxString const &arg4_defvalue = wxEmptyString ;
42259 wxString *arg4 = (wxString *) &arg4_defvalue ;
42260 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42261 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42262 wxSize const &arg6_defvalue = wxDefaultSize ;
42263 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42264 long arg7 = (long) 0 ;
42265 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42266 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42267 wxString const &arg9_defvalue = wxButtonNameStr ;
42268 wxString *arg9 = (wxString *) &arg9_defvalue ;
42269 bool result;
42270 void *argp1 = 0 ;
42271 int res1 = 0 ;
42272 void *argp2 = 0 ;
42273 int res2 = 0 ;
42274 int val3 ;
42275 int ecode3 = 0 ;
42276 bool temp4 = false ;
42277 wxPoint temp5 ;
42278 wxSize temp6 ;
42279 long val7 ;
42280 int ecode7 = 0 ;
42281 void *argp8 = 0 ;
42282 int res8 = 0 ;
42283 bool temp9 = false ;
42284 PyObject * obj0 = 0 ;
42285 PyObject * obj1 = 0 ;
42286 PyObject * obj2 = 0 ;
42287 PyObject * obj3 = 0 ;
42288 PyObject * obj4 = 0 ;
42289 PyObject * obj5 = 0 ;
42290 PyObject * obj6 = 0 ;
42291 PyObject * obj7 = 0 ;
42292 PyObject * obj8 = 0 ;
42293 char * kwnames[] = {
42294 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42295 };
42296
42297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42299 if (!SWIG_IsOK(res1)) {
42300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42301 }
42302 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42303 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42304 if (!SWIG_IsOK(res2)) {
42305 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42306 }
42307 arg2 = reinterpret_cast< wxWindow * >(argp2);
42308 ecode3 = SWIG_AsVal_int(obj2, &val3);
42309 if (!SWIG_IsOK(ecode3)) {
42310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42311 }
42312 arg3 = static_cast< int >(val3);
42313 if (obj3) {
42314 {
42315 arg4 = wxString_in_helper(obj3);
42316 if (arg4 == NULL) SWIG_fail;
42317 temp4 = true;
42318 }
42319 }
42320 if (obj4) {
42321 {
42322 arg5 = &temp5;
42323 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42324 }
42325 }
42326 if (obj5) {
42327 {
42328 arg6 = &temp6;
42329 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42330 }
42331 }
42332 if (obj6) {
42333 ecode7 = SWIG_AsVal_long(obj6, &val7);
42334 if (!SWIG_IsOK(ecode7)) {
42335 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42336 }
42337 arg7 = static_cast< long >(val7);
42338 }
42339 if (obj7) {
42340 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42341 if (!SWIG_IsOK(res8)) {
42342 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42343 }
42344 if (!argp8) {
42345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42346 }
42347 arg8 = reinterpret_cast< wxValidator * >(argp8);
42348 }
42349 if (obj8) {
42350 {
42351 arg9 = wxString_in_helper(obj8);
42352 if (arg9 == NULL) SWIG_fail;
42353 temp9 = true;
42354 }
42355 }
42356 {
42357 PyThreadState* __tstate = wxPyBeginAllowThreads();
42358 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42359 wxPyEndAllowThreads(__tstate);
42360 if (PyErr_Occurred()) SWIG_fail;
42361 }
42362 {
42363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42364 }
42365 {
42366 if (temp4)
42367 delete arg4;
42368 }
42369 {
42370 if (temp9)
42371 delete arg9;
42372 }
42373 return resultobj;
42374 fail:
42375 {
42376 if (temp4)
42377 delete arg4;
42378 }
42379 {
42380 if (temp9)
42381 delete arg9;
42382 }
42383 return NULL;
42384 }
42385
42386
42387 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42388 PyObject *resultobj = 0;
42389 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42390 int arg2 ;
42391 void *argp1 = 0 ;
42392 int res1 = 0 ;
42393 int val2 ;
42394 int ecode2 = 0 ;
42395 PyObject * obj0 = 0 ;
42396 PyObject * obj1 = 0 ;
42397 char * kwnames[] = {
42398 (char *) "self",(char *) "newmargin", NULL
42399 };
42400
42401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42403 if (!SWIG_IsOK(res1)) {
42404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42405 }
42406 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42407 ecode2 = SWIG_AsVal_int(obj1, &val2);
42408 if (!SWIG_IsOK(ecode2)) {
42409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42410 }
42411 arg2 = static_cast< int >(val2);
42412 {
42413 PyThreadState* __tstate = wxPyBeginAllowThreads();
42414 (arg1)->SetInternalMargin(arg2);
42415 wxPyEndAllowThreads(__tstate);
42416 if (PyErr_Occurred()) SWIG_fail;
42417 }
42418 resultobj = SWIG_Py_Void();
42419 return resultobj;
42420 fail:
42421 return NULL;
42422 }
42423
42424
42425 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42426 PyObject *resultobj = 0;
42427 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42428 int result;
42429 void *argp1 = 0 ;
42430 int res1 = 0 ;
42431 PyObject *swig_obj[1] ;
42432
42433 if (!args) SWIG_fail;
42434 swig_obj[0] = args;
42435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42436 if (!SWIG_IsOK(res1)) {
42437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42438 }
42439 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42440 {
42441 PyThreadState* __tstate = wxPyBeginAllowThreads();
42442 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42443 wxPyEndAllowThreads(__tstate);
42444 if (PyErr_Occurred()) SWIG_fail;
42445 }
42446 resultobj = SWIG_From_int(static_cast< int >(result));
42447 return resultobj;
42448 fail:
42449 return NULL;
42450 }
42451
42452
42453 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42454 PyObject *resultobj = 0;
42455 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42456 int arg2 ;
42457 void *argp1 = 0 ;
42458 int res1 = 0 ;
42459 int val2 ;
42460 int ecode2 = 0 ;
42461 PyObject * obj0 = 0 ;
42462 PyObject * obj1 = 0 ;
42463 char * kwnames[] = {
42464 (char *) "self",(char *) "prop", NULL
42465 };
42466
42467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42469 if (!SWIG_IsOK(res1)) {
42470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42471 }
42472 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42473 ecode2 = SWIG_AsVal_int(obj1, &val2);
42474 if (!SWIG_IsOK(ecode2)) {
42475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42476 }
42477 arg2 = static_cast< int >(val2);
42478 {
42479 PyThreadState* __tstate = wxPyBeginAllowThreads();
42480 (arg1)->SetTextCtrlProportion(arg2);
42481 wxPyEndAllowThreads(__tstate);
42482 if (PyErr_Occurred()) SWIG_fail;
42483 }
42484 resultobj = SWIG_Py_Void();
42485 return resultobj;
42486 fail:
42487 return NULL;
42488 }
42489
42490
42491 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42492 PyObject *resultobj = 0;
42493 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42494 int result;
42495 void *argp1 = 0 ;
42496 int res1 = 0 ;
42497 PyObject *swig_obj[1] ;
42498
42499 if (!args) SWIG_fail;
42500 swig_obj[0] = args;
42501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42502 if (!SWIG_IsOK(res1)) {
42503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42504 }
42505 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42506 {
42507 PyThreadState* __tstate = wxPyBeginAllowThreads();
42508 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42509 wxPyEndAllowThreads(__tstate);
42510 if (PyErr_Occurred()) SWIG_fail;
42511 }
42512 resultobj = SWIG_From_int(static_cast< int >(result));
42513 return resultobj;
42514 fail:
42515 return NULL;
42516 }
42517
42518
42519 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42520 PyObject *resultobj = 0;
42521 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42522 int arg2 ;
42523 void *argp1 = 0 ;
42524 int res1 = 0 ;
42525 int val2 ;
42526 int ecode2 = 0 ;
42527 PyObject * obj0 = 0 ;
42528 PyObject * obj1 = 0 ;
42529 char * kwnames[] = {
42530 (char *) "self",(char *) "prop", NULL
42531 };
42532
42533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42535 if (!SWIG_IsOK(res1)) {
42536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42537 }
42538 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42539 ecode2 = SWIG_AsVal_int(obj1, &val2);
42540 if (!SWIG_IsOK(ecode2)) {
42541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42542 }
42543 arg2 = static_cast< int >(val2);
42544 {
42545 PyThreadState* __tstate = wxPyBeginAllowThreads();
42546 (arg1)->SetPickerCtrlProportion(arg2);
42547 wxPyEndAllowThreads(__tstate);
42548 if (PyErr_Occurred()) SWIG_fail;
42549 }
42550 resultobj = SWIG_Py_Void();
42551 return resultobj;
42552 fail:
42553 return NULL;
42554 }
42555
42556
42557 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42558 PyObject *resultobj = 0;
42559 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42560 int result;
42561 void *argp1 = 0 ;
42562 int res1 = 0 ;
42563 PyObject *swig_obj[1] ;
42564
42565 if (!args) SWIG_fail;
42566 swig_obj[0] = args;
42567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42568 if (!SWIG_IsOK(res1)) {
42569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42570 }
42571 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42572 {
42573 PyThreadState* __tstate = wxPyBeginAllowThreads();
42574 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42575 wxPyEndAllowThreads(__tstate);
42576 if (PyErr_Occurred()) SWIG_fail;
42577 }
42578 resultobj = SWIG_From_int(static_cast< int >(result));
42579 return resultobj;
42580 fail:
42581 return NULL;
42582 }
42583
42584
42585 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42586 PyObject *resultobj = 0;
42587 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42588 bool result;
42589 void *argp1 = 0 ;
42590 int res1 = 0 ;
42591 PyObject *swig_obj[1] ;
42592
42593 if (!args) SWIG_fail;
42594 swig_obj[0] = args;
42595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42596 if (!SWIG_IsOK(res1)) {
42597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42598 }
42599 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42600 {
42601 PyThreadState* __tstate = wxPyBeginAllowThreads();
42602 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42603 wxPyEndAllowThreads(__tstate);
42604 if (PyErr_Occurred()) SWIG_fail;
42605 }
42606 {
42607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42608 }
42609 return resultobj;
42610 fail:
42611 return NULL;
42612 }
42613
42614
42615 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42616 PyObject *resultobj = 0;
42617 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42618 bool arg2 = (bool) true ;
42619 void *argp1 = 0 ;
42620 int res1 = 0 ;
42621 bool val2 ;
42622 int ecode2 = 0 ;
42623 PyObject * obj0 = 0 ;
42624 PyObject * obj1 = 0 ;
42625 char * kwnames[] = {
42626 (char *) "self",(char *) "grow", NULL
42627 };
42628
42629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42631 if (!SWIG_IsOK(res1)) {
42632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42633 }
42634 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42635 if (obj1) {
42636 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42637 if (!SWIG_IsOK(ecode2)) {
42638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42639 }
42640 arg2 = static_cast< bool >(val2);
42641 }
42642 {
42643 PyThreadState* __tstate = wxPyBeginAllowThreads();
42644 (arg1)->SetTextCtrlGrowable(arg2);
42645 wxPyEndAllowThreads(__tstate);
42646 if (PyErr_Occurred()) SWIG_fail;
42647 }
42648 resultobj = SWIG_Py_Void();
42649 return resultobj;
42650 fail:
42651 return NULL;
42652 }
42653
42654
42655 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42656 PyObject *resultobj = 0;
42657 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42658 bool result;
42659 void *argp1 = 0 ;
42660 int res1 = 0 ;
42661 PyObject *swig_obj[1] ;
42662
42663 if (!args) SWIG_fail;
42664 swig_obj[0] = args;
42665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42666 if (!SWIG_IsOK(res1)) {
42667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42668 }
42669 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42670 {
42671 PyThreadState* __tstate = wxPyBeginAllowThreads();
42672 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42673 wxPyEndAllowThreads(__tstate);
42674 if (PyErr_Occurred()) SWIG_fail;
42675 }
42676 {
42677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42678 }
42679 return resultobj;
42680 fail:
42681 return NULL;
42682 }
42683
42684
42685 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42686 PyObject *resultobj = 0;
42687 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42688 bool arg2 = (bool) true ;
42689 void *argp1 = 0 ;
42690 int res1 = 0 ;
42691 bool val2 ;
42692 int ecode2 = 0 ;
42693 PyObject * obj0 = 0 ;
42694 PyObject * obj1 = 0 ;
42695 char * kwnames[] = {
42696 (char *) "self",(char *) "grow", NULL
42697 };
42698
42699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42701 if (!SWIG_IsOK(res1)) {
42702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42703 }
42704 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42705 if (obj1) {
42706 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42707 if (!SWIG_IsOK(ecode2)) {
42708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42709 }
42710 arg2 = static_cast< bool >(val2);
42711 }
42712 {
42713 PyThreadState* __tstate = wxPyBeginAllowThreads();
42714 (arg1)->SetPickerCtrlGrowable(arg2);
42715 wxPyEndAllowThreads(__tstate);
42716 if (PyErr_Occurred()) SWIG_fail;
42717 }
42718 resultobj = SWIG_Py_Void();
42719 return resultobj;
42720 fail:
42721 return NULL;
42722 }
42723
42724
42725 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42726 PyObject *resultobj = 0;
42727 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42728 bool result;
42729 void *argp1 = 0 ;
42730 int res1 = 0 ;
42731 PyObject *swig_obj[1] ;
42732
42733 if (!args) SWIG_fail;
42734 swig_obj[0] = args;
42735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42736 if (!SWIG_IsOK(res1)) {
42737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42738 }
42739 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42740 {
42741 PyThreadState* __tstate = wxPyBeginAllowThreads();
42742 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42743 wxPyEndAllowThreads(__tstate);
42744 if (PyErr_Occurred()) SWIG_fail;
42745 }
42746 {
42747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42748 }
42749 return resultobj;
42750 fail:
42751 return NULL;
42752 }
42753
42754
42755 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42756 PyObject *resultobj = 0;
42757 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42758 wxTextCtrl *result = 0 ;
42759 void *argp1 = 0 ;
42760 int res1 = 0 ;
42761 PyObject *swig_obj[1] ;
42762
42763 if (!args) SWIG_fail;
42764 swig_obj[0] = args;
42765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42766 if (!SWIG_IsOK(res1)) {
42767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42768 }
42769 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42770 {
42771 PyThreadState* __tstate = wxPyBeginAllowThreads();
42772 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42773 wxPyEndAllowThreads(__tstate);
42774 if (PyErr_Occurred()) SWIG_fail;
42775 }
42776 {
42777 resultobj = wxPyMake_wxObject(result, 0);
42778 }
42779 return resultobj;
42780 fail:
42781 return NULL;
42782 }
42783
42784
42785 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42786 PyObject *resultobj = 0;
42787 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42788 wxControl *result = 0 ;
42789 void *argp1 = 0 ;
42790 int res1 = 0 ;
42791 PyObject *swig_obj[1] ;
42792
42793 if (!args) SWIG_fail;
42794 swig_obj[0] = args;
42795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42796 if (!SWIG_IsOK(res1)) {
42797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42798 }
42799 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42800 {
42801 PyThreadState* __tstate = wxPyBeginAllowThreads();
42802 result = (wxControl *)(arg1)->GetPickerCtrl();
42803 wxPyEndAllowThreads(__tstate);
42804 if (PyErr_Occurred()) SWIG_fail;
42805 }
42806 {
42807 resultobj = wxPyMake_wxObject(result, 0);
42808 }
42809 return resultobj;
42810 fail:
42811 return NULL;
42812 }
42813
42814
42815 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42816 PyObject *obj;
42817 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42818 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
42819 return SWIG_Py_Void();
42820 }
42821
42822 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
42823 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
42824 return 1;
42825 }
42826
42827
42828 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
42829 PyObject *pyobj = 0;
42830
42831 {
42832 #if wxUSE_UNICODE
42833 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42834 #else
42835 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42836 #endif
42837 }
42838 return pyobj;
42839 }
42840
42841
42842 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42843 PyObject *resultobj = 0;
42844 wxWindow *arg1 = (wxWindow *) 0 ;
42845 int arg2 = (int) -1 ;
42846 wxColour const &arg3_defvalue = *wxBLACK ;
42847 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
42848 wxPoint const &arg4_defvalue = wxDefaultPosition ;
42849 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
42850 wxSize const &arg5_defvalue = wxDefaultSize ;
42851 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
42852 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
42853 wxValidator const &arg7_defvalue = wxDefaultValidator ;
42854 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
42855 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
42856 wxString *arg8 = (wxString *) &arg8_defvalue ;
42857 wxColourPickerCtrl *result = 0 ;
42858 void *argp1 = 0 ;
42859 int res1 = 0 ;
42860 int val2 ;
42861 int ecode2 = 0 ;
42862 wxColour temp3 ;
42863 wxPoint temp4 ;
42864 wxSize temp5 ;
42865 long val6 ;
42866 int ecode6 = 0 ;
42867 void *argp7 = 0 ;
42868 int res7 = 0 ;
42869 bool temp8 = false ;
42870 PyObject * obj0 = 0 ;
42871 PyObject * obj1 = 0 ;
42872 PyObject * obj2 = 0 ;
42873 PyObject * obj3 = 0 ;
42874 PyObject * obj4 = 0 ;
42875 PyObject * obj5 = 0 ;
42876 PyObject * obj6 = 0 ;
42877 PyObject * obj7 = 0 ;
42878 char * kwnames[] = {
42879 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42880 };
42881
42882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42884 if (!SWIG_IsOK(res1)) {
42885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42886 }
42887 arg1 = reinterpret_cast< wxWindow * >(argp1);
42888 if (obj1) {
42889 ecode2 = SWIG_AsVal_int(obj1, &val2);
42890 if (!SWIG_IsOK(ecode2)) {
42891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
42892 }
42893 arg2 = static_cast< int >(val2);
42894 }
42895 if (obj2) {
42896 {
42897 arg3 = &temp3;
42898 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
42899 }
42900 }
42901 if (obj3) {
42902 {
42903 arg4 = &temp4;
42904 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
42905 }
42906 }
42907 if (obj4) {
42908 {
42909 arg5 = &temp5;
42910 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
42911 }
42912 }
42913 if (obj5) {
42914 ecode6 = SWIG_AsVal_long(obj5, &val6);
42915 if (!SWIG_IsOK(ecode6)) {
42916 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
42917 }
42918 arg6 = static_cast< long >(val6);
42919 }
42920 if (obj6) {
42921 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
42922 if (!SWIG_IsOK(res7)) {
42923 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42924 }
42925 if (!argp7) {
42926 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42927 }
42928 arg7 = reinterpret_cast< wxValidator * >(argp7);
42929 }
42930 if (obj7) {
42931 {
42932 arg8 = wxString_in_helper(obj7);
42933 if (arg8 == NULL) SWIG_fail;
42934 temp8 = true;
42935 }
42936 }
42937 {
42938 if (!wxPyCheckForApp()) SWIG_fail;
42939 PyThreadState* __tstate = wxPyBeginAllowThreads();
42940 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
42941 wxPyEndAllowThreads(__tstate);
42942 if (PyErr_Occurred()) SWIG_fail;
42943 }
42944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
42945 {
42946 if (temp8)
42947 delete arg8;
42948 }
42949 return resultobj;
42950 fail:
42951 {
42952 if (temp8)
42953 delete arg8;
42954 }
42955 return NULL;
42956 }
42957
42958
42959 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42960 PyObject *resultobj = 0;
42961 wxColourPickerCtrl *result = 0 ;
42962
42963 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
42964 {
42965 if (!wxPyCheckForApp()) SWIG_fail;
42966 PyThreadState* __tstate = wxPyBeginAllowThreads();
42967 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
42968 wxPyEndAllowThreads(__tstate);
42969 if (PyErr_Occurred()) SWIG_fail;
42970 }
42971 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
42972 return resultobj;
42973 fail:
42974 return NULL;
42975 }
42976
42977
42978 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42979 PyObject *resultobj = 0;
42980 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
42981 wxWindow *arg2 = (wxWindow *) 0 ;
42982 int arg3 ;
42983 wxColour const &arg4_defvalue = *wxBLACK ;
42984 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
42985 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42986 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42987 wxSize const &arg6_defvalue = wxDefaultSize ;
42988 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42989 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
42990 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42991 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42992 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
42993 wxString *arg9 = (wxString *) &arg9_defvalue ;
42994 bool result;
42995 void *argp1 = 0 ;
42996 int res1 = 0 ;
42997 void *argp2 = 0 ;
42998 int res2 = 0 ;
42999 int val3 ;
43000 int ecode3 = 0 ;
43001 wxColour temp4 ;
43002 wxPoint temp5 ;
43003 wxSize temp6 ;
43004 long val7 ;
43005 int ecode7 = 0 ;
43006 void *argp8 = 0 ;
43007 int res8 = 0 ;
43008 bool temp9 = false ;
43009 PyObject * obj0 = 0 ;
43010 PyObject * obj1 = 0 ;
43011 PyObject * obj2 = 0 ;
43012 PyObject * obj3 = 0 ;
43013 PyObject * obj4 = 0 ;
43014 PyObject * obj5 = 0 ;
43015 PyObject * obj6 = 0 ;
43016 PyObject * obj7 = 0 ;
43017 PyObject * obj8 = 0 ;
43018 char * kwnames[] = {
43019 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43020 };
43021
43022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43024 if (!SWIG_IsOK(res1)) {
43025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43026 }
43027 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43028 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43029 if (!SWIG_IsOK(res2)) {
43030 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43031 }
43032 arg2 = reinterpret_cast< wxWindow * >(argp2);
43033 ecode3 = SWIG_AsVal_int(obj2, &val3);
43034 if (!SWIG_IsOK(ecode3)) {
43035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43036 }
43037 arg3 = static_cast< int >(val3);
43038 if (obj3) {
43039 {
43040 arg4 = &temp4;
43041 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43042 }
43043 }
43044 if (obj4) {
43045 {
43046 arg5 = &temp5;
43047 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43048 }
43049 }
43050 if (obj5) {
43051 {
43052 arg6 = &temp6;
43053 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43054 }
43055 }
43056 if (obj6) {
43057 ecode7 = SWIG_AsVal_long(obj6, &val7);
43058 if (!SWIG_IsOK(ecode7)) {
43059 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43060 }
43061 arg7 = static_cast< long >(val7);
43062 }
43063 if (obj7) {
43064 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43065 if (!SWIG_IsOK(res8)) {
43066 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43067 }
43068 if (!argp8) {
43069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43070 }
43071 arg8 = reinterpret_cast< wxValidator * >(argp8);
43072 }
43073 if (obj8) {
43074 {
43075 arg9 = wxString_in_helper(obj8);
43076 if (arg9 == NULL) SWIG_fail;
43077 temp9 = true;
43078 }
43079 }
43080 {
43081 PyThreadState* __tstate = wxPyBeginAllowThreads();
43082 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43083 wxPyEndAllowThreads(__tstate);
43084 if (PyErr_Occurred()) SWIG_fail;
43085 }
43086 {
43087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43088 }
43089 {
43090 if (temp9)
43091 delete arg9;
43092 }
43093 return resultobj;
43094 fail:
43095 {
43096 if (temp9)
43097 delete arg9;
43098 }
43099 return NULL;
43100 }
43101
43102
43103 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43104 PyObject *resultobj = 0;
43105 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43106 wxColour result;
43107 void *argp1 = 0 ;
43108 int res1 = 0 ;
43109 PyObject *swig_obj[1] ;
43110
43111 if (!args) SWIG_fail;
43112 swig_obj[0] = args;
43113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43114 if (!SWIG_IsOK(res1)) {
43115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43116 }
43117 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43118 {
43119 PyThreadState* __tstate = wxPyBeginAllowThreads();
43120 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43121 wxPyEndAllowThreads(__tstate);
43122 if (PyErr_Occurred()) SWIG_fail;
43123 }
43124 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43125 return resultobj;
43126 fail:
43127 return NULL;
43128 }
43129
43130
43131 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43132 PyObject *resultobj = 0;
43133 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43134 wxColour *arg2 = 0 ;
43135 void *argp1 = 0 ;
43136 int res1 = 0 ;
43137 wxColour temp2 ;
43138 PyObject * obj0 = 0 ;
43139 PyObject * obj1 = 0 ;
43140 char * kwnames[] = {
43141 (char *) "self",(char *) "col", NULL
43142 };
43143
43144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43146 if (!SWIG_IsOK(res1)) {
43147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43148 }
43149 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43150 {
43151 arg2 = &temp2;
43152 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43153 }
43154 {
43155 PyThreadState* __tstate = wxPyBeginAllowThreads();
43156 (arg1)->SetColour((wxColour const &)*arg2);
43157 wxPyEndAllowThreads(__tstate);
43158 if (PyErr_Occurred()) SWIG_fail;
43159 }
43160 resultobj = SWIG_Py_Void();
43161 return resultobj;
43162 fail:
43163 return NULL;
43164 }
43165
43166
43167 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43168 PyObject *obj;
43169 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43170 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43171 return SWIG_Py_Void();
43172 }
43173
43174 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43175 return SWIG_Python_InitShadowInstance(args);
43176 }
43177
43178 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43179 PyObject *resultobj = 0;
43180 wxObject *arg1 = (wxObject *) 0 ;
43181 int arg2 ;
43182 wxColour *arg3 = 0 ;
43183 wxColourPickerEvent *result = 0 ;
43184 void *argp1 = 0 ;
43185 int res1 = 0 ;
43186 int val2 ;
43187 int ecode2 = 0 ;
43188 wxColour temp3 ;
43189 PyObject * obj0 = 0 ;
43190 PyObject * obj1 = 0 ;
43191 PyObject * obj2 = 0 ;
43192 char * kwnames[] = {
43193 (char *) "generator",(char *) "id",(char *) "col", NULL
43194 };
43195
43196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43198 if (!SWIG_IsOK(res1)) {
43199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43200 }
43201 arg1 = reinterpret_cast< wxObject * >(argp1);
43202 ecode2 = SWIG_AsVal_int(obj1, &val2);
43203 if (!SWIG_IsOK(ecode2)) {
43204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43205 }
43206 arg2 = static_cast< int >(val2);
43207 {
43208 arg3 = &temp3;
43209 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43210 }
43211 {
43212 PyThreadState* __tstate = wxPyBeginAllowThreads();
43213 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43214 wxPyEndAllowThreads(__tstate);
43215 if (PyErr_Occurred()) SWIG_fail;
43216 }
43217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43218 return resultobj;
43219 fail:
43220 return NULL;
43221 }
43222
43223
43224 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43225 PyObject *resultobj = 0;
43226 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43227 wxColour result;
43228 void *argp1 = 0 ;
43229 int res1 = 0 ;
43230 PyObject *swig_obj[1] ;
43231
43232 if (!args) SWIG_fail;
43233 swig_obj[0] = args;
43234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43235 if (!SWIG_IsOK(res1)) {
43236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43237 }
43238 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43239 {
43240 PyThreadState* __tstate = wxPyBeginAllowThreads();
43241 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43242 wxPyEndAllowThreads(__tstate);
43243 if (PyErr_Occurred()) SWIG_fail;
43244 }
43245 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43246 return resultobj;
43247 fail:
43248 return NULL;
43249 }
43250
43251
43252 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43253 PyObject *resultobj = 0;
43254 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43255 wxColour *arg2 = 0 ;
43256 void *argp1 = 0 ;
43257 int res1 = 0 ;
43258 wxColour temp2 ;
43259 PyObject * obj0 = 0 ;
43260 PyObject * obj1 = 0 ;
43261 char * kwnames[] = {
43262 (char *) "self",(char *) "c", NULL
43263 };
43264
43265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43267 if (!SWIG_IsOK(res1)) {
43268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43269 }
43270 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43271 {
43272 arg2 = &temp2;
43273 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43274 }
43275 {
43276 PyThreadState* __tstate = wxPyBeginAllowThreads();
43277 (arg1)->SetColour((wxColour const &)*arg2);
43278 wxPyEndAllowThreads(__tstate);
43279 if (PyErr_Occurred()) SWIG_fail;
43280 }
43281 resultobj = SWIG_Py_Void();
43282 return resultobj;
43283 fail:
43284 return NULL;
43285 }
43286
43287
43288 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43289 PyObject *obj;
43290 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43291 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43292 return SWIG_Py_Void();
43293 }
43294
43295 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43296 return SWIG_Python_InitShadowInstance(args);
43297 }
43298
43299 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43300 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43301 return 1;
43302 }
43303
43304
43305 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43306 PyObject *pyobj = 0;
43307
43308 {
43309 #if wxUSE_UNICODE
43310 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43311 #else
43312 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43313 #endif
43314 }
43315 return pyobj;
43316 }
43317
43318
43319 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43320 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43321 return 1;
43322 }
43323
43324
43325 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43326 PyObject *pyobj = 0;
43327
43328 {
43329 #if wxUSE_UNICODE
43330 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43331 #else
43332 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43333 #endif
43334 }
43335 return pyobj;
43336 }
43337
43338
43339 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43340 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43341 return 1;
43342 }
43343
43344
43345 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43346 PyObject *pyobj = 0;
43347
43348 {
43349 #if wxUSE_UNICODE
43350 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43351 #else
43352 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43353 #endif
43354 }
43355 return pyobj;
43356 }
43357
43358
43359 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43360 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43361 return 1;
43362 }
43363
43364
43365 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43366 PyObject *pyobj = 0;
43367
43368 {
43369 #if wxUSE_UNICODE
43370 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43371 #else
43372 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43373 #endif
43374 }
43375 return pyobj;
43376 }
43377
43378
43379 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43380 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43381 return 1;
43382 }
43383
43384
43385 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43386 PyObject *pyobj = 0;
43387
43388 {
43389 #if wxUSE_UNICODE
43390 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43391 #else
43392 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43393 #endif
43394 }
43395 return pyobj;
43396 }
43397
43398
43399 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43400 PyObject *resultobj = 0;
43401 wxWindow *arg1 = (wxWindow *) 0 ;
43402 int arg2 = (int) -1 ;
43403 wxString const &arg3_defvalue = wxPyEmptyString ;
43404 wxString *arg3 = (wxString *) &arg3_defvalue ;
43405 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43406 wxString *arg4 = (wxString *) &arg4_defvalue ;
43407 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43408 wxString *arg5 = (wxString *) &arg5_defvalue ;
43409 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43410 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43411 wxSize const &arg7_defvalue = wxDefaultSize ;
43412 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43413 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43414 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43415 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43416 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43417 wxString *arg10 = (wxString *) &arg10_defvalue ;
43418 wxFilePickerCtrl *result = 0 ;
43419 void *argp1 = 0 ;
43420 int res1 = 0 ;
43421 int val2 ;
43422 int ecode2 = 0 ;
43423 bool temp3 = false ;
43424 bool temp4 = false ;
43425 bool temp5 = false ;
43426 wxPoint temp6 ;
43427 wxSize temp7 ;
43428 long val8 ;
43429 int ecode8 = 0 ;
43430 void *argp9 = 0 ;
43431 int res9 = 0 ;
43432 bool temp10 = false ;
43433 PyObject * obj0 = 0 ;
43434 PyObject * obj1 = 0 ;
43435 PyObject * obj2 = 0 ;
43436 PyObject * obj3 = 0 ;
43437 PyObject * obj4 = 0 ;
43438 PyObject * obj5 = 0 ;
43439 PyObject * obj6 = 0 ;
43440 PyObject * obj7 = 0 ;
43441 PyObject * obj8 = 0 ;
43442 PyObject * obj9 = 0 ;
43443 char * kwnames[] = {
43444 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43445 };
43446
43447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43449 if (!SWIG_IsOK(res1)) {
43450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43451 }
43452 arg1 = reinterpret_cast< wxWindow * >(argp1);
43453 if (obj1) {
43454 ecode2 = SWIG_AsVal_int(obj1, &val2);
43455 if (!SWIG_IsOK(ecode2)) {
43456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43457 }
43458 arg2 = static_cast< int >(val2);
43459 }
43460 if (obj2) {
43461 {
43462 arg3 = wxString_in_helper(obj2);
43463 if (arg3 == NULL) SWIG_fail;
43464 temp3 = true;
43465 }
43466 }
43467 if (obj3) {
43468 {
43469 arg4 = wxString_in_helper(obj3);
43470 if (arg4 == NULL) SWIG_fail;
43471 temp4 = true;
43472 }
43473 }
43474 if (obj4) {
43475 {
43476 arg5 = wxString_in_helper(obj4);
43477 if (arg5 == NULL) SWIG_fail;
43478 temp5 = true;
43479 }
43480 }
43481 if (obj5) {
43482 {
43483 arg6 = &temp6;
43484 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43485 }
43486 }
43487 if (obj6) {
43488 {
43489 arg7 = &temp7;
43490 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43491 }
43492 }
43493 if (obj7) {
43494 ecode8 = SWIG_AsVal_long(obj7, &val8);
43495 if (!SWIG_IsOK(ecode8)) {
43496 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43497 }
43498 arg8 = static_cast< long >(val8);
43499 }
43500 if (obj8) {
43501 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43502 if (!SWIG_IsOK(res9)) {
43503 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43504 }
43505 if (!argp9) {
43506 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43507 }
43508 arg9 = reinterpret_cast< wxValidator * >(argp9);
43509 }
43510 if (obj9) {
43511 {
43512 arg10 = wxString_in_helper(obj9);
43513 if (arg10 == NULL) SWIG_fail;
43514 temp10 = true;
43515 }
43516 }
43517 {
43518 if (!wxPyCheckForApp()) SWIG_fail;
43519 PyThreadState* __tstate = wxPyBeginAllowThreads();
43520 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);
43521 wxPyEndAllowThreads(__tstate);
43522 if (PyErr_Occurred()) SWIG_fail;
43523 }
43524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43525 {
43526 if (temp3)
43527 delete arg3;
43528 }
43529 {
43530 if (temp4)
43531 delete arg4;
43532 }
43533 {
43534 if (temp5)
43535 delete arg5;
43536 }
43537 {
43538 if (temp10)
43539 delete arg10;
43540 }
43541 return resultobj;
43542 fail:
43543 {
43544 if (temp3)
43545 delete arg3;
43546 }
43547 {
43548 if (temp4)
43549 delete arg4;
43550 }
43551 {
43552 if (temp5)
43553 delete arg5;
43554 }
43555 {
43556 if (temp10)
43557 delete arg10;
43558 }
43559 return NULL;
43560 }
43561
43562
43563 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43564 PyObject *resultobj = 0;
43565 wxFilePickerCtrl *result = 0 ;
43566
43567 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43568 {
43569 if (!wxPyCheckForApp()) SWIG_fail;
43570 PyThreadState* __tstate = wxPyBeginAllowThreads();
43571 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43572 wxPyEndAllowThreads(__tstate);
43573 if (PyErr_Occurred()) SWIG_fail;
43574 }
43575 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43576 return resultobj;
43577 fail:
43578 return NULL;
43579 }
43580
43581
43582 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43583 PyObject *resultobj = 0;
43584 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43585 wxWindow *arg2 = (wxWindow *) 0 ;
43586 int arg3 = (int) -1 ;
43587 wxString const &arg4_defvalue = wxPyEmptyString ;
43588 wxString *arg4 = (wxString *) &arg4_defvalue ;
43589 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43590 wxString *arg5 = (wxString *) &arg5_defvalue ;
43591 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43592 wxString *arg6 = (wxString *) &arg6_defvalue ;
43593 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43594 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43595 wxSize const &arg8_defvalue = wxDefaultSize ;
43596 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43597 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43598 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43599 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43600 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43601 wxString *arg11 = (wxString *) &arg11_defvalue ;
43602 bool result;
43603 void *argp1 = 0 ;
43604 int res1 = 0 ;
43605 void *argp2 = 0 ;
43606 int res2 = 0 ;
43607 int val3 ;
43608 int ecode3 = 0 ;
43609 bool temp4 = false ;
43610 bool temp5 = false ;
43611 bool temp6 = false ;
43612 wxPoint temp7 ;
43613 wxSize temp8 ;
43614 long val9 ;
43615 int ecode9 = 0 ;
43616 void *argp10 = 0 ;
43617 int res10 = 0 ;
43618 bool temp11 = false ;
43619 PyObject * obj0 = 0 ;
43620 PyObject * obj1 = 0 ;
43621 PyObject * obj2 = 0 ;
43622 PyObject * obj3 = 0 ;
43623 PyObject * obj4 = 0 ;
43624 PyObject * obj5 = 0 ;
43625 PyObject * obj6 = 0 ;
43626 PyObject * obj7 = 0 ;
43627 PyObject * obj8 = 0 ;
43628 PyObject * obj9 = 0 ;
43629 PyObject * obj10 = 0 ;
43630 char * kwnames[] = {
43631 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43632 };
43633
43634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43636 if (!SWIG_IsOK(res1)) {
43637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43638 }
43639 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43640 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43641 if (!SWIG_IsOK(res2)) {
43642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43643 }
43644 arg2 = reinterpret_cast< wxWindow * >(argp2);
43645 if (obj2) {
43646 ecode3 = SWIG_AsVal_int(obj2, &val3);
43647 if (!SWIG_IsOK(ecode3)) {
43648 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43649 }
43650 arg3 = static_cast< int >(val3);
43651 }
43652 if (obj3) {
43653 {
43654 arg4 = wxString_in_helper(obj3);
43655 if (arg4 == NULL) SWIG_fail;
43656 temp4 = true;
43657 }
43658 }
43659 if (obj4) {
43660 {
43661 arg5 = wxString_in_helper(obj4);
43662 if (arg5 == NULL) SWIG_fail;
43663 temp5 = true;
43664 }
43665 }
43666 if (obj5) {
43667 {
43668 arg6 = wxString_in_helper(obj5);
43669 if (arg6 == NULL) SWIG_fail;
43670 temp6 = true;
43671 }
43672 }
43673 if (obj6) {
43674 {
43675 arg7 = &temp7;
43676 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43677 }
43678 }
43679 if (obj7) {
43680 {
43681 arg8 = &temp8;
43682 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43683 }
43684 }
43685 if (obj8) {
43686 ecode9 = SWIG_AsVal_long(obj8, &val9);
43687 if (!SWIG_IsOK(ecode9)) {
43688 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43689 }
43690 arg9 = static_cast< long >(val9);
43691 }
43692 if (obj9) {
43693 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43694 if (!SWIG_IsOK(res10)) {
43695 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43696 }
43697 if (!argp10) {
43698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43699 }
43700 arg10 = reinterpret_cast< wxValidator * >(argp10);
43701 }
43702 if (obj10) {
43703 {
43704 arg11 = wxString_in_helper(obj10);
43705 if (arg11 == NULL) SWIG_fail;
43706 temp11 = true;
43707 }
43708 }
43709 {
43710 PyThreadState* __tstate = wxPyBeginAllowThreads();
43711 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);
43712 wxPyEndAllowThreads(__tstate);
43713 if (PyErr_Occurred()) SWIG_fail;
43714 }
43715 {
43716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43717 }
43718 {
43719 if (temp4)
43720 delete arg4;
43721 }
43722 {
43723 if (temp5)
43724 delete arg5;
43725 }
43726 {
43727 if (temp6)
43728 delete arg6;
43729 }
43730 {
43731 if (temp11)
43732 delete arg11;
43733 }
43734 return resultobj;
43735 fail:
43736 {
43737 if (temp4)
43738 delete arg4;
43739 }
43740 {
43741 if (temp5)
43742 delete arg5;
43743 }
43744 {
43745 if (temp6)
43746 delete arg6;
43747 }
43748 {
43749 if (temp11)
43750 delete arg11;
43751 }
43752 return NULL;
43753 }
43754
43755
43756 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43757 PyObject *resultobj = 0;
43758 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43759 wxString result;
43760 void *argp1 = 0 ;
43761 int res1 = 0 ;
43762 PyObject *swig_obj[1] ;
43763
43764 if (!args) SWIG_fail;
43765 swig_obj[0] = args;
43766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43767 if (!SWIG_IsOK(res1)) {
43768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43769 }
43770 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43771 {
43772 PyThreadState* __tstate = wxPyBeginAllowThreads();
43773 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43774 wxPyEndAllowThreads(__tstate);
43775 if (PyErr_Occurred()) SWIG_fail;
43776 }
43777 {
43778 #if wxUSE_UNICODE
43779 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43780 #else
43781 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43782 #endif
43783 }
43784 return resultobj;
43785 fail:
43786 return NULL;
43787 }
43788
43789
43790 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43791 PyObject *resultobj = 0;
43792 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43793 wxString *arg2 = 0 ;
43794 void *argp1 = 0 ;
43795 int res1 = 0 ;
43796 bool temp2 = false ;
43797 PyObject * obj0 = 0 ;
43798 PyObject * obj1 = 0 ;
43799 char * kwnames[] = {
43800 (char *) "self",(char *) "str", NULL
43801 };
43802
43803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
43804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43805 if (!SWIG_IsOK(res1)) {
43806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43807 }
43808 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43809 {
43810 arg2 = wxString_in_helper(obj1);
43811 if (arg2 == NULL) SWIG_fail;
43812 temp2 = true;
43813 }
43814 {
43815 PyThreadState* __tstate = wxPyBeginAllowThreads();
43816 (arg1)->SetPath((wxString const &)*arg2);
43817 wxPyEndAllowThreads(__tstate);
43818 if (PyErr_Occurred()) SWIG_fail;
43819 }
43820 resultobj = SWIG_Py_Void();
43821 {
43822 if (temp2)
43823 delete arg2;
43824 }
43825 return resultobj;
43826 fail:
43827 {
43828 if (temp2)
43829 delete arg2;
43830 }
43831 return NULL;
43832 }
43833
43834
43835 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43836 PyObject *resultobj = 0;
43837 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43838 wxString *arg2 = 0 ;
43839 bool result;
43840 void *argp1 = 0 ;
43841 int res1 = 0 ;
43842 bool temp2 = false ;
43843 PyObject * obj0 = 0 ;
43844 PyObject * obj1 = 0 ;
43845 char * kwnames[] = {
43846 (char *) "self",(char *) "path", NULL
43847 };
43848
43849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) 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_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43853 }
43854 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43855 {
43856 arg2 = wxString_in_helper(obj1);
43857 if (arg2 == NULL) SWIG_fail;
43858 temp2 = true;
43859 }
43860 {
43861 PyThreadState* __tstate = wxPyBeginAllowThreads();
43862 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
43863 wxPyEndAllowThreads(__tstate);
43864 if (PyErr_Occurred()) SWIG_fail;
43865 }
43866 {
43867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43868 }
43869 {
43870 if (temp2)
43871 delete arg2;
43872 }
43873 return resultobj;
43874 fail:
43875 {
43876 if (temp2)
43877 delete arg2;
43878 }
43879 return NULL;
43880 }
43881
43882
43883 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43884 PyObject *resultobj = 0;
43885 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43886 wxString result;
43887 void *argp1 = 0 ;
43888 int res1 = 0 ;
43889 PyObject *swig_obj[1] ;
43890
43891 if (!args) SWIG_fail;
43892 swig_obj[0] = args;
43893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43894 if (!SWIG_IsOK(res1)) {
43895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43896 }
43897 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43898 {
43899 PyThreadState* __tstate = wxPyBeginAllowThreads();
43900 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
43901 wxPyEndAllowThreads(__tstate);
43902 if (PyErr_Occurred()) SWIG_fail;
43903 }
43904 {
43905 #if wxUSE_UNICODE
43906 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43907 #else
43908 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43909 #endif
43910 }
43911 return resultobj;
43912 fail:
43913 return NULL;
43914 }
43915
43916
43917 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43918 PyObject *obj;
43919 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43920 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
43921 return SWIG_Py_Void();
43922 }
43923
43924 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43925 return SWIG_Python_InitShadowInstance(args);
43926 }
43927
43928 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43929 PyObject *resultobj = 0;
43930 wxWindow *arg1 = (wxWindow *) 0 ;
43931 int arg2 = (int) -1 ;
43932 wxString const &arg3_defvalue = wxPyEmptyString ;
43933 wxString *arg3 = (wxString *) &arg3_defvalue ;
43934 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
43935 wxString *arg4 = (wxString *) &arg4_defvalue ;
43936 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43937 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43938 wxSize const &arg6_defvalue = wxDefaultSize ;
43939 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43940 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
43941 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43942 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43943 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
43944 wxString *arg9 = (wxString *) &arg9_defvalue ;
43945 wxDirPickerCtrl *result = 0 ;
43946 void *argp1 = 0 ;
43947 int res1 = 0 ;
43948 int val2 ;
43949 int ecode2 = 0 ;
43950 bool temp3 = false ;
43951 bool temp4 = false ;
43952 wxPoint temp5 ;
43953 wxSize temp6 ;
43954 long val7 ;
43955 int ecode7 = 0 ;
43956 void *argp8 = 0 ;
43957 int res8 = 0 ;
43958 bool temp9 = false ;
43959 PyObject * obj0 = 0 ;
43960 PyObject * obj1 = 0 ;
43961 PyObject * obj2 = 0 ;
43962 PyObject * obj3 = 0 ;
43963 PyObject * obj4 = 0 ;
43964 PyObject * obj5 = 0 ;
43965 PyObject * obj6 = 0 ;
43966 PyObject * obj7 = 0 ;
43967 PyObject * obj8 = 0 ;
43968 char * kwnames[] = {
43969 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43970 };
43971
43972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43974 if (!SWIG_IsOK(res1)) {
43975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43976 }
43977 arg1 = reinterpret_cast< wxWindow * >(argp1);
43978 if (obj1) {
43979 ecode2 = SWIG_AsVal_int(obj1, &val2);
43980 if (!SWIG_IsOK(ecode2)) {
43981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43982 }
43983 arg2 = static_cast< int >(val2);
43984 }
43985 if (obj2) {
43986 {
43987 arg3 = wxString_in_helper(obj2);
43988 if (arg3 == NULL) SWIG_fail;
43989 temp3 = true;
43990 }
43991 }
43992 if (obj3) {
43993 {
43994 arg4 = wxString_in_helper(obj3);
43995 if (arg4 == NULL) SWIG_fail;
43996 temp4 = true;
43997 }
43998 }
43999 if (obj4) {
44000 {
44001 arg5 = &temp5;
44002 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44003 }
44004 }
44005 if (obj5) {
44006 {
44007 arg6 = &temp6;
44008 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44009 }
44010 }
44011 if (obj6) {
44012 ecode7 = SWIG_AsVal_long(obj6, &val7);
44013 if (!SWIG_IsOK(ecode7)) {
44014 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44015 }
44016 arg7 = static_cast< long >(val7);
44017 }
44018 if (obj7) {
44019 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44020 if (!SWIG_IsOK(res8)) {
44021 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44022 }
44023 if (!argp8) {
44024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44025 }
44026 arg8 = reinterpret_cast< wxValidator * >(argp8);
44027 }
44028 if (obj8) {
44029 {
44030 arg9 = wxString_in_helper(obj8);
44031 if (arg9 == NULL) SWIG_fail;
44032 temp9 = true;
44033 }
44034 }
44035 {
44036 if (!wxPyCheckForApp()) SWIG_fail;
44037 PyThreadState* __tstate = wxPyBeginAllowThreads();
44038 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);
44039 wxPyEndAllowThreads(__tstate);
44040 if (PyErr_Occurred()) SWIG_fail;
44041 }
44042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44043 {
44044 if (temp3)
44045 delete arg3;
44046 }
44047 {
44048 if (temp4)
44049 delete arg4;
44050 }
44051 {
44052 if (temp9)
44053 delete arg9;
44054 }
44055 return resultobj;
44056 fail:
44057 {
44058 if (temp3)
44059 delete arg3;
44060 }
44061 {
44062 if (temp4)
44063 delete arg4;
44064 }
44065 {
44066 if (temp9)
44067 delete arg9;
44068 }
44069 return NULL;
44070 }
44071
44072
44073 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44074 PyObject *resultobj = 0;
44075 wxDirPickerCtrl *result = 0 ;
44076
44077 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44078 {
44079 if (!wxPyCheckForApp()) SWIG_fail;
44080 PyThreadState* __tstate = wxPyBeginAllowThreads();
44081 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44082 wxPyEndAllowThreads(__tstate);
44083 if (PyErr_Occurred()) SWIG_fail;
44084 }
44085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44086 return resultobj;
44087 fail:
44088 return NULL;
44089 }
44090
44091
44092 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44093 PyObject *resultobj = 0;
44094 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44095 wxWindow *arg2 = (wxWindow *) 0 ;
44096 int arg3 = (int) -1 ;
44097 wxString const &arg4_defvalue = wxPyEmptyString ;
44098 wxString *arg4 = (wxString *) &arg4_defvalue ;
44099 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44100 wxString *arg5 = (wxString *) &arg5_defvalue ;
44101 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44102 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44103 wxSize const &arg7_defvalue = wxDefaultSize ;
44104 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44105 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44106 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44107 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44108 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44109 wxString *arg10 = (wxString *) &arg10_defvalue ;
44110 bool result;
44111 void *argp1 = 0 ;
44112 int res1 = 0 ;
44113 void *argp2 = 0 ;
44114 int res2 = 0 ;
44115 int val3 ;
44116 int ecode3 = 0 ;
44117 bool temp4 = false ;
44118 bool temp5 = false ;
44119 wxPoint temp6 ;
44120 wxSize temp7 ;
44121 long val8 ;
44122 int ecode8 = 0 ;
44123 void *argp9 = 0 ;
44124 int res9 = 0 ;
44125 bool temp10 = false ;
44126 PyObject * obj0 = 0 ;
44127 PyObject * obj1 = 0 ;
44128 PyObject * obj2 = 0 ;
44129 PyObject * obj3 = 0 ;
44130 PyObject * obj4 = 0 ;
44131 PyObject * obj5 = 0 ;
44132 PyObject * obj6 = 0 ;
44133 PyObject * obj7 = 0 ;
44134 PyObject * obj8 = 0 ;
44135 PyObject * obj9 = 0 ;
44136 char * kwnames[] = {
44137 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44138 };
44139
44140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44142 if (!SWIG_IsOK(res1)) {
44143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44144 }
44145 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44146 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44147 if (!SWIG_IsOK(res2)) {
44148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44149 }
44150 arg2 = reinterpret_cast< wxWindow * >(argp2);
44151 if (obj2) {
44152 ecode3 = SWIG_AsVal_int(obj2, &val3);
44153 if (!SWIG_IsOK(ecode3)) {
44154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44155 }
44156 arg3 = static_cast< int >(val3);
44157 }
44158 if (obj3) {
44159 {
44160 arg4 = wxString_in_helper(obj3);
44161 if (arg4 == NULL) SWIG_fail;
44162 temp4 = true;
44163 }
44164 }
44165 if (obj4) {
44166 {
44167 arg5 = wxString_in_helper(obj4);
44168 if (arg5 == NULL) SWIG_fail;
44169 temp5 = true;
44170 }
44171 }
44172 if (obj5) {
44173 {
44174 arg6 = &temp6;
44175 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44176 }
44177 }
44178 if (obj6) {
44179 {
44180 arg7 = &temp7;
44181 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44182 }
44183 }
44184 if (obj7) {
44185 ecode8 = SWIG_AsVal_long(obj7, &val8);
44186 if (!SWIG_IsOK(ecode8)) {
44187 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44188 }
44189 arg8 = static_cast< long >(val8);
44190 }
44191 if (obj8) {
44192 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44193 if (!SWIG_IsOK(res9)) {
44194 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44195 }
44196 if (!argp9) {
44197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44198 }
44199 arg9 = reinterpret_cast< wxValidator * >(argp9);
44200 }
44201 if (obj9) {
44202 {
44203 arg10 = wxString_in_helper(obj9);
44204 if (arg10 == NULL) SWIG_fail;
44205 temp10 = true;
44206 }
44207 }
44208 {
44209 PyThreadState* __tstate = wxPyBeginAllowThreads();
44210 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);
44211 wxPyEndAllowThreads(__tstate);
44212 if (PyErr_Occurred()) SWIG_fail;
44213 }
44214 {
44215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44216 }
44217 {
44218 if (temp4)
44219 delete arg4;
44220 }
44221 {
44222 if (temp5)
44223 delete arg5;
44224 }
44225 {
44226 if (temp10)
44227 delete arg10;
44228 }
44229 return resultobj;
44230 fail:
44231 {
44232 if (temp4)
44233 delete arg4;
44234 }
44235 {
44236 if (temp5)
44237 delete arg5;
44238 }
44239 {
44240 if (temp10)
44241 delete arg10;
44242 }
44243 return NULL;
44244 }
44245
44246
44247 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44248 PyObject *resultobj = 0;
44249 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44250 wxString result;
44251 void *argp1 = 0 ;
44252 int res1 = 0 ;
44253 PyObject *swig_obj[1] ;
44254
44255 if (!args) SWIG_fail;
44256 swig_obj[0] = args;
44257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44258 if (!SWIG_IsOK(res1)) {
44259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44260 }
44261 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44262 {
44263 PyThreadState* __tstate = wxPyBeginAllowThreads();
44264 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44265 wxPyEndAllowThreads(__tstate);
44266 if (PyErr_Occurred()) SWIG_fail;
44267 }
44268 {
44269 #if wxUSE_UNICODE
44270 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44271 #else
44272 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44273 #endif
44274 }
44275 return resultobj;
44276 fail:
44277 return NULL;
44278 }
44279
44280
44281 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44282 PyObject *resultobj = 0;
44283 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44284 wxString *arg2 = 0 ;
44285 void *argp1 = 0 ;
44286 int res1 = 0 ;
44287 bool temp2 = false ;
44288 PyObject * obj0 = 0 ;
44289 PyObject * obj1 = 0 ;
44290 char * kwnames[] = {
44291 (char *) "self",(char *) "str", NULL
44292 };
44293
44294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44296 if (!SWIG_IsOK(res1)) {
44297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44298 }
44299 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44300 {
44301 arg2 = wxString_in_helper(obj1);
44302 if (arg2 == NULL) SWIG_fail;
44303 temp2 = true;
44304 }
44305 {
44306 PyThreadState* __tstate = wxPyBeginAllowThreads();
44307 (arg1)->SetPath((wxString const &)*arg2);
44308 wxPyEndAllowThreads(__tstate);
44309 if (PyErr_Occurred()) SWIG_fail;
44310 }
44311 resultobj = SWIG_Py_Void();
44312 {
44313 if (temp2)
44314 delete arg2;
44315 }
44316 return resultobj;
44317 fail:
44318 {
44319 if (temp2)
44320 delete arg2;
44321 }
44322 return NULL;
44323 }
44324
44325
44326 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44327 PyObject *resultobj = 0;
44328 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44329 wxString *arg2 = 0 ;
44330 bool result;
44331 void *argp1 = 0 ;
44332 int res1 = 0 ;
44333 bool temp2 = false ;
44334 PyObject * obj0 = 0 ;
44335 PyObject * obj1 = 0 ;
44336 char * kwnames[] = {
44337 (char *) "self",(char *) "path", NULL
44338 };
44339
44340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44342 if (!SWIG_IsOK(res1)) {
44343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44344 }
44345 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44346 {
44347 arg2 = wxString_in_helper(obj1);
44348 if (arg2 == NULL) SWIG_fail;
44349 temp2 = true;
44350 }
44351 {
44352 PyThreadState* __tstate = wxPyBeginAllowThreads();
44353 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44354 wxPyEndAllowThreads(__tstate);
44355 if (PyErr_Occurred()) SWIG_fail;
44356 }
44357 {
44358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44359 }
44360 {
44361 if (temp2)
44362 delete arg2;
44363 }
44364 return resultobj;
44365 fail:
44366 {
44367 if (temp2)
44368 delete arg2;
44369 }
44370 return NULL;
44371 }
44372
44373
44374 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44375 PyObject *resultobj = 0;
44376 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44377 wxString result;
44378 void *argp1 = 0 ;
44379 int res1 = 0 ;
44380 PyObject *swig_obj[1] ;
44381
44382 if (!args) SWIG_fail;
44383 swig_obj[0] = args;
44384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44385 if (!SWIG_IsOK(res1)) {
44386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44387 }
44388 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44389 {
44390 PyThreadState* __tstate = wxPyBeginAllowThreads();
44391 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44392 wxPyEndAllowThreads(__tstate);
44393 if (PyErr_Occurred()) SWIG_fail;
44394 }
44395 {
44396 #if wxUSE_UNICODE
44397 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44398 #else
44399 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44400 #endif
44401 }
44402 return resultobj;
44403 fail:
44404 return NULL;
44405 }
44406
44407
44408 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44409 PyObject *obj;
44410 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44411 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44412 return SWIG_Py_Void();
44413 }
44414
44415 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44416 return SWIG_Python_InitShadowInstance(args);
44417 }
44418
44419 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44420 PyObject *resultobj = 0;
44421 wxEventType arg1 ;
44422 wxObject *arg2 = (wxObject *) 0 ;
44423 int arg3 ;
44424 wxString *arg4 = 0 ;
44425 wxFileDirPickerEvent *result = 0 ;
44426 int val1 ;
44427 int ecode1 = 0 ;
44428 void *argp2 = 0 ;
44429 int res2 = 0 ;
44430 int val3 ;
44431 int ecode3 = 0 ;
44432 bool temp4 = false ;
44433 PyObject * obj0 = 0 ;
44434 PyObject * obj1 = 0 ;
44435 PyObject * obj2 = 0 ;
44436 PyObject * obj3 = 0 ;
44437 char * kwnames[] = {
44438 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44439 };
44440
44441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44442 ecode1 = SWIG_AsVal_int(obj0, &val1);
44443 if (!SWIG_IsOK(ecode1)) {
44444 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44445 }
44446 arg1 = static_cast< wxEventType >(val1);
44447 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44448 if (!SWIG_IsOK(res2)) {
44449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44450 }
44451 arg2 = reinterpret_cast< wxObject * >(argp2);
44452 ecode3 = SWIG_AsVal_int(obj2, &val3);
44453 if (!SWIG_IsOK(ecode3)) {
44454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44455 }
44456 arg3 = static_cast< int >(val3);
44457 {
44458 arg4 = wxString_in_helper(obj3);
44459 if (arg4 == NULL) SWIG_fail;
44460 temp4 = true;
44461 }
44462 {
44463 PyThreadState* __tstate = wxPyBeginAllowThreads();
44464 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44465 wxPyEndAllowThreads(__tstate);
44466 if (PyErr_Occurred()) SWIG_fail;
44467 }
44468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44469 {
44470 if (temp4)
44471 delete arg4;
44472 }
44473 return resultobj;
44474 fail:
44475 {
44476 if (temp4)
44477 delete arg4;
44478 }
44479 return NULL;
44480 }
44481
44482
44483 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44484 PyObject *resultobj = 0;
44485 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44486 wxString result;
44487 void *argp1 = 0 ;
44488 int res1 = 0 ;
44489 PyObject *swig_obj[1] ;
44490
44491 if (!args) SWIG_fail;
44492 swig_obj[0] = args;
44493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44494 if (!SWIG_IsOK(res1)) {
44495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44496 }
44497 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44498 {
44499 PyThreadState* __tstate = wxPyBeginAllowThreads();
44500 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44501 wxPyEndAllowThreads(__tstate);
44502 if (PyErr_Occurred()) SWIG_fail;
44503 }
44504 {
44505 #if wxUSE_UNICODE
44506 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44507 #else
44508 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44509 #endif
44510 }
44511 return resultobj;
44512 fail:
44513 return NULL;
44514 }
44515
44516
44517 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44518 PyObject *resultobj = 0;
44519 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44520 wxString *arg2 = 0 ;
44521 void *argp1 = 0 ;
44522 int res1 = 0 ;
44523 bool temp2 = false ;
44524 PyObject * obj0 = 0 ;
44525 PyObject * obj1 = 0 ;
44526 char * kwnames[] = {
44527 (char *) "self",(char *) "p", NULL
44528 };
44529
44530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44532 if (!SWIG_IsOK(res1)) {
44533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44534 }
44535 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44536 {
44537 arg2 = wxString_in_helper(obj1);
44538 if (arg2 == NULL) SWIG_fail;
44539 temp2 = true;
44540 }
44541 {
44542 PyThreadState* __tstate = wxPyBeginAllowThreads();
44543 (arg1)->SetPath((wxString const &)*arg2);
44544 wxPyEndAllowThreads(__tstate);
44545 if (PyErr_Occurred()) SWIG_fail;
44546 }
44547 resultobj = SWIG_Py_Void();
44548 {
44549 if (temp2)
44550 delete arg2;
44551 }
44552 return resultobj;
44553 fail:
44554 {
44555 if (temp2)
44556 delete arg2;
44557 }
44558 return NULL;
44559 }
44560
44561
44562 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44563 PyObject *obj;
44564 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44565 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44566 return SWIG_Py_Void();
44567 }
44568
44569 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44570 return SWIG_Python_InitShadowInstance(args);
44571 }
44572
44573 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44574 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44575 return 1;
44576 }
44577
44578
44579 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44580 PyObject *pyobj = 0;
44581
44582 {
44583 #if wxUSE_UNICODE
44584 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44585 #else
44586 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44587 #endif
44588 }
44589 return pyobj;
44590 }
44591
44592
44593 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44594 PyObject *resultobj = 0;
44595 wxWindow *arg1 = (wxWindow *) 0 ;
44596 int arg2 = (int) -1 ;
44597 wxFont const &arg3_defvalue = *wxNORMAL_FONT ;
44598 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44599 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44600 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44601 wxSize const &arg5_defvalue = wxDefaultSize ;
44602 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44603 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44604 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44605 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44606 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44607 wxString *arg8 = (wxString *) &arg8_defvalue ;
44608 wxFontPickerCtrl *result = 0 ;
44609 void *argp1 = 0 ;
44610 int res1 = 0 ;
44611 int val2 ;
44612 int ecode2 = 0 ;
44613 void *argp3 = 0 ;
44614 int res3 = 0 ;
44615 wxPoint temp4 ;
44616 wxSize temp5 ;
44617 long val6 ;
44618 int ecode6 = 0 ;
44619 void *argp7 = 0 ;
44620 int res7 = 0 ;
44621 bool temp8 = false ;
44622 PyObject * obj0 = 0 ;
44623 PyObject * obj1 = 0 ;
44624 PyObject * obj2 = 0 ;
44625 PyObject * obj3 = 0 ;
44626 PyObject * obj4 = 0 ;
44627 PyObject * obj5 = 0 ;
44628 PyObject * obj6 = 0 ;
44629 PyObject * obj7 = 0 ;
44630 char * kwnames[] = {
44631 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44632 };
44633
44634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44636 if (!SWIG_IsOK(res1)) {
44637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44638 }
44639 arg1 = reinterpret_cast< wxWindow * >(argp1);
44640 if (obj1) {
44641 ecode2 = SWIG_AsVal_int(obj1, &val2);
44642 if (!SWIG_IsOK(ecode2)) {
44643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44644 }
44645 arg2 = static_cast< int >(val2);
44646 }
44647 if (obj2) {
44648 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44649 if (!SWIG_IsOK(res3)) {
44650 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44651 }
44652 if (!argp3) {
44653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44654 }
44655 arg3 = reinterpret_cast< wxFont * >(argp3);
44656 }
44657 if (obj3) {
44658 {
44659 arg4 = &temp4;
44660 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44661 }
44662 }
44663 if (obj4) {
44664 {
44665 arg5 = &temp5;
44666 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44667 }
44668 }
44669 if (obj5) {
44670 ecode6 = SWIG_AsVal_long(obj5, &val6);
44671 if (!SWIG_IsOK(ecode6)) {
44672 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44673 }
44674 arg6 = static_cast< long >(val6);
44675 }
44676 if (obj6) {
44677 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44678 if (!SWIG_IsOK(res7)) {
44679 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44680 }
44681 if (!argp7) {
44682 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44683 }
44684 arg7 = reinterpret_cast< wxValidator * >(argp7);
44685 }
44686 if (obj7) {
44687 {
44688 arg8 = wxString_in_helper(obj7);
44689 if (arg8 == NULL) SWIG_fail;
44690 temp8 = true;
44691 }
44692 }
44693 {
44694 if (!wxPyCheckForApp()) SWIG_fail;
44695 PyThreadState* __tstate = wxPyBeginAllowThreads();
44696 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44697 wxPyEndAllowThreads(__tstate);
44698 if (PyErr_Occurred()) SWIG_fail;
44699 }
44700 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44701 {
44702 if (temp8)
44703 delete arg8;
44704 }
44705 return resultobj;
44706 fail:
44707 {
44708 if (temp8)
44709 delete arg8;
44710 }
44711 return NULL;
44712 }
44713
44714
44715 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44716 PyObject *resultobj = 0;
44717 wxFontPickerCtrl *result = 0 ;
44718
44719 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44720 {
44721 if (!wxPyCheckForApp()) SWIG_fail;
44722 PyThreadState* __tstate = wxPyBeginAllowThreads();
44723 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44724 wxPyEndAllowThreads(__tstate);
44725 if (PyErr_Occurred()) SWIG_fail;
44726 }
44727 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44728 return resultobj;
44729 fail:
44730 return NULL;
44731 }
44732
44733
44734 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44735 PyObject *resultobj = 0;
44736 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44737 wxWindow *arg2 = (wxWindow *) 0 ;
44738 int arg3 = (int) -1 ;
44739 wxFont const &arg4_defvalue = *wxNORMAL_FONT ;
44740 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44741 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44742 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44743 wxSize const &arg6_defvalue = wxDefaultSize ;
44744 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44745 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44746 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44747 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44748 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44749 wxString *arg9 = (wxString *) &arg9_defvalue ;
44750 bool result;
44751 void *argp1 = 0 ;
44752 int res1 = 0 ;
44753 void *argp2 = 0 ;
44754 int res2 = 0 ;
44755 int val3 ;
44756 int ecode3 = 0 ;
44757 void *argp4 = 0 ;
44758 int res4 = 0 ;
44759 wxPoint temp5 ;
44760 wxSize temp6 ;
44761 long val7 ;
44762 int ecode7 = 0 ;
44763 void *argp8 = 0 ;
44764 int res8 = 0 ;
44765 bool temp9 = false ;
44766 PyObject * obj0 = 0 ;
44767 PyObject * obj1 = 0 ;
44768 PyObject * obj2 = 0 ;
44769 PyObject * obj3 = 0 ;
44770 PyObject * obj4 = 0 ;
44771 PyObject * obj5 = 0 ;
44772 PyObject * obj6 = 0 ;
44773 PyObject * obj7 = 0 ;
44774 PyObject * obj8 = 0 ;
44775 char * kwnames[] = {
44776 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44777 };
44778
44779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44781 if (!SWIG_IsOK(res1)) {
44782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44783 }
44784 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44785 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44786 if (!SWIG_IsOK(res2)) {
44787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44788 }
44789 arg2 = reinterpret_cast< wxWindow * >(argp2);
44790 if (obj2) {
44791 ecode3 = SWIG_AsVal_int(obj2, &val3);
44792 if (!SWIG_IsOK(ecode3)) {
44793 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44794 }
44795 arg3 = static_cast< int >(val3);
44796 }
44797 if (obj3) {
44798 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
44799 if (!SWIG_IsOK(res4)) {
44800 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44801 }
44802 if (!argp4) {
44803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44804 }
44805 arg4 = reinterpret_cast< wxFont * >(argp4);
44806 }
44807 if (obj4) {
44808 {
44809 arg5 = &temp5;
44810 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44811 }
44812 }
44813 if (obj5) {
44814 {
44815 arg6 = &temp6;
44816 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44817 }
44818 }
44819 if (obj6) {
44820 ecode7 = SWIG_AsVal_long(obj6, &val7);
44821 if (!SWIG_IsOK(ecode7)) {
44822 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
44823 }
44824 arg7 = static_cast< long >(val7);
44825 }
44826 if (obj7) {
44827 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44828 if (!SWIG_IsOK(res8)) {
44829 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44830 }
44831 if (!argp8) {
44832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44833 }
44834 arg8 = reinterpret_cast< wxValidator * >(argp8);
44835 }
44836 if (obj8) {
44837 {
44838 arg9 = wxString_in_helper(obj8);
44839 if (arg9 == NULL) SWIG_fail;
44840 temp9 = true;
44841 }
44842 }
44843 {
44844 PyThreadState* __tstate = wxPyBeginAllowThreads();
44845 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
44846 wxPyEndAllowThreads(__tstate);
44847 if (PyErr_Occurred()) SWIG_fail;
44848 }
44849 {
44850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44851 }
44852 {
44853 if (temp9)
44854 delete arg9;
44855 }
44856 return resultobj;
44857 fail:
44858 {
44859 if (temp9)
44860 delete arg9;
44861 }
44862 return NULL;
44863 }
44864
44865
44866 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44867 PyObject *resultobj = 0;
44868 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44869 wxFont result;
44870 void *argp1 = 0 ;
44871 int res1 = 0 ;
44872 PyObject *swig_obj[1] ;
44873
44874 if (!args) SWIG_fail;
44875 swig_obj[0] = args;
44876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44877 if (!SWIG_IsOK(res1)) {
44878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44879 }
44880 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44881 {
44882 PyThreadState* __tstate = wxPyBeginAllowThreads();
44883 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
44884 wxPyEndAllowThreads(__tstate);
44885 if (PyErr_Occurred()) SWIG_fail;
44886 }
44887 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
44888 return resultobj;
44889 fail:
44890 return NULL;
44891 }
44892
44893
44894 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44895 PyObject *resultobj = 0;
44896 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44897 wxFont *arg2 = 0 ;
44898 void *argp1 = 0 ;
44899 int res1 = 0 ;
44900 void *argp2 = 0 ;
44901 int res2 = 0 ;
44902 PyObject * obj0 = 0 ;
44903 PyObject * obj1 = 0 ;
44904 char * kwnames[] = {
44905 (char *) "self",(char *) "f", NULL
44906 };
44907
44908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
44909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44910 if (!SWIG_IsOK(res1)) {
44911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44912 }
44913 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44914 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
44915 if (!SWIG_IsOK(res2)) {
44916 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44917 }
44918 if (!argp2) {
44919 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44920 }
44921 arg2 = reinterpret_cast< wxFont * >(argp2);
44922 {
44923 PyThreadState* __tstate = wxPyBeginAllowThreads();
44924 (arg1)->SetSelectedFont((wxFont const &)*arg2);
44925 wxPyEndAllowThreads(__tstate);
44926 if (PyErr_Occurred()) SWIG_fail;
44927 }
44928 resultobj = SWIG_Py_Void();
44929 return resultobj;
44930 fail:
44931 return NULL;
44932 }
44933
44934
44935 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44936 PyObject *resultobj = 0;
44937 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44938 unsigned int arg2 ;
44939 void *argp1 = 0 ;
44940 int res1 = 0 ;
44941 unsigned int val2 ;
44942 int ecode2 = 0 ;
44943 PyObject * obj0 = 0 ;
44944 PyObject * obj1 = 0 ;
44945 char * kwnames[] = {
44946 (char *) "self",(char *) "max", NULL
44947 };
44948
44949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
44950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44951 if (!SWIG_IsOK(res1)) {
44952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44953 }
44954 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44955 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
44956 if (!SWIG_IsOK(ecode2)) {
44957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
44958 }
44959 arg2 = static_cast< unsigned int >(val2);
44960 {
44961 PyThreadState* __tstate = wxPyBeginAllowThreads();
44962 (arg1)->SetMaxPointSize(arg2);
44963 wxPyEndAllowThreads(__tstate);
44964 if (PyErr_Occurred()) SWIG_fail;
44965 }
44966 resultobj = SWIG_Py_Void();
44967 return resultobj;
44968 fail:
44969 return NULL;
44970 }
44971
44972
44973 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44974 PyObject *resultobj = 0;
44975 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44976 unsigned int result;
44977 void *argp1 = 0 ;
44978 int res1 = 0 ;
44979 PyObject *swig_obj[1] ;
44980
44981 if (!args) SWIG_fail;
44982 swig_obj[0] = args;
44983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44984 if (!SWIG_IsOK(res1)) {
44985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44986 }
44987 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44988 {
44989 PyThreadState* __tstate = wxPyBeginAllowThreads();
44990 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
44991 wxPyEndAllowThreads(__tstate);
44992 if (PyErr_Occurred()) SWIG_fail;
44993 }
44994 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
44995 return resultobj;
44996 fail:
44997 return NULL;
44998 }
44999
45000
45001 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45002 PyObject *obj;
45003 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45004 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45005 return SWIG_Py_Void();
45006 }
45007
45008 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45009 return SWIG_Python_InitShadowInstance(args);
45010 }
45011
45012 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45013 PyObject *resultobj = 0;
45014 wxObject *arg1 = (wxObject *) 0 ;
45015 int arg2 ;
45016 wxFont *arg3 = 0 ;
45017 wxFontPickerEvent *result = 0 ;
45018 void *argp1 = 0 ;
45019 int res1 = 0 ;
45020 int val2 ;
45021 int ecode2 = 0 ;
45022 void *argp3 = 0 ;
45023 int res3 = 0 ;
45024 PyObject * obj0 = 0 ;
45025 PyObject * obj1 = 0 ;
45026 PyObject * obj2 = 0 ;
45027 char * kwnames[] = {
45028 (char *) "generator",(char *) "id",(char *) "f", NULL
45029 };
45030
45031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45033 if (!SWIG_IsOK(res1)) {
45034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45035 }
45036 arg1 = reinterpret_cast< wxObject * >(argp1);
45037 ecode2 = SWIG_AsVal_int(obj1, &val2);
45038 if (!SWIG_IsOK(ecode2)) {
45039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45040 }
45041 arg2 = static_cast< int >(val2);
45042 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45043 if (!SWIG_IsOK(res3)) {
45044 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45045 }
45046 if (!argp3) {
45047 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45048 }
45049 arg3 = reinterpret_cast< wxFont * >(argp3);
45050 {
45051 PyThreadState* __tstate = wxPyBeginAllowThreads();
45052 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45053 wxPyEndAllowThreads(__tstate);
45054 if (PyErr_Occurred()) SWIG_fail;
45055 }
45056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45057 return resultobj;
45058 fail:
45059 return NULL;
45060 }
45061
45062
45063 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45064 PyObject *resultobj = 0;
45065 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45066 wxFont result;
45067 void *argp1 = 0 ;
45068 int res1 = 0 ;
45069 PyObject *swig_obj[1] ;
45070
45071 if (!args) SWIG_fail;
45072 swig_obj[0] = args;
45073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45074 if (!SWIG_IsOK(res1)) {
45075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45076 }
45077 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45078 {
45079 PyThreadState* __tstate = wxPyBeginAllowThreads();
45080 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45081 wxPyEndAllowThreads(__tstate);
45082 if (PyErr_Occurred()) SWIG_fail;
45083 }
45084 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45085 return resultobj;
45086 fail:
45087 return NULL;
45088 }
45089
45090
45091 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45092 PyObject *resultobj = 0;
45093 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45094 wxFont *arg2 = 0 ;
45095 void *argp1 = 0 ;
45096 int res1 = 0 ;
45097 void *argp2 = 0 ;
45098 int res2 = 0 ;
45099 PyObject * obj0 = 0 ;
45100 PyObject * obj1 = 0 ;
45101 char * kwnames[] = {
45102 (char *) "self",(char *) "c", NULL
45103 };
45104
45105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45107 if (!SWIG_IsOK(res1)) {
45108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45109 }
45110 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45111 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45112 if (!SWIG_IsOK(res2)) {
45113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45114 }
45115 if (!argp2) {
45116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45117 }
45118 arg2 = reinterpret_cast< wxFont * >(argp2);
45119 {
45120 PyThreadState* __tstate = wxPyBeginAllowThreads();
45121 (arg1)->SetFont((wxFont const &)*arg2);
45122 wxPyEndAllowThreads(__tstate);
45123 if (PyErr_Occurred()) SWIG_fail;
45124 }
45125 resultobj = SWIG_Py_Void();
45126 return resultobj;
45127 fail:
45128 return NULL;
45129 }
45130
45131
45132 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45133 PyObject *obj;
45134 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45135 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45136 return SWIG_Py_Void();
45137 }
45138
45139 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45140 return SWIG_Python_InitShadowInstance(args);
45141 }
45142
45143 static PyMethodDef SwigMethods[] = {
45144 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45145 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45146 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45147 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45148 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45149 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45150 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45151 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45152 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45153 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45154 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45155 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45156 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45157 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45158 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45159 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45160 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45161 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45162 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45163 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45164 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45165 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45166 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45167 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45168 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45169 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45170 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45171 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45172 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45173 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45174 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45175 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45176 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45177 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45178 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45179 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45180 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45181 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45182 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45183 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45184 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45185 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45186 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45187 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45188 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45189 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45190 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45191 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45192 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45193 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45194 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45195 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45196 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45197 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45198 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45199 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45200 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45201 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45202 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45203 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45204 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45205 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45206 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45207 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45208 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45209 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45210 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45211 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45212 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45213 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45214 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45215 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45216 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45217 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45218 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45219 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45220 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45221 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45222 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45223 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45224 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45225 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45226 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45227 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
45228 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
45229 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45230 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45231 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45232 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45233 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45234 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45235 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45236 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45237 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45238 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45239 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45240 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45241 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45242 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45243 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45244 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45245 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45246 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45247 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45248 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45249 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45250 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45251 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45252 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45253 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45254 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45255 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45256 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45257 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45258 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45259 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45260 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45261 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45262 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45263 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45264 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45265 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45266 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45267 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45268 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45269 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45270 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45271 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45272 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45273 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45274 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45275 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45276 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45277 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45278 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45279 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45280 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45281 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45282 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45283 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45284 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45285 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45286 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45287 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45288 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45289 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45290 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45291 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45292 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45293 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45294 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45295 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45296 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45297 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45298 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45299 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45300 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45301 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45302 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45303 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45304 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45305 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45306 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45307 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45308 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45309 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45310 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45311 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45312 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45313 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45314 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45315 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45316 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45317 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45318 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45319 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45320 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45321 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45322 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45323 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45324 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45325 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45326 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45327 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45328 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45329 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45330 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45331 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45332 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45333 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45334 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45335 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45336 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45337 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45338 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45339 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45340 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45341 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45342 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45343 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45344 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45345 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45346 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45347 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45348 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45349 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45350 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45351 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45352 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45353 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
45354 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
45355 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45356 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45357 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45358 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45359 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45360 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45361 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45362 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45363 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45364 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45365 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45366 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45367 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45368 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45369 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45370 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45371 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45372 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45373 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45374 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45375 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45376 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45377 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45378 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45379 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45380 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45381 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45382 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45383 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45384 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45385 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45386 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45387 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45388 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45389 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45390 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45391 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45392 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45393 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45394 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45395 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45396 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45397 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45398 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45399 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45400 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45401 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45402 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45403 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45404 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45405 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45406 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45407 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45408 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45409 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45410 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45411 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45412 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45413 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45414 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45415 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45416 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45417 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45418 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45419 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45420 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45421 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45422 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45423 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45424 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45425 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45426 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45427 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45428 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45429 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45430 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45431 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45432 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45433 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45434 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45435 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45436 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45437 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45438 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45439 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45440 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45441 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45442 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45443 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45444 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45445 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45446 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45447 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45448 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45449 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45450 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45451 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45452 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45453 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45454 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45455 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45456 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45457 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45458 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45459 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45460 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45461 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45462 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45463 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45464 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45465 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45466 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45467 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45468 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45469 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45470 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45471 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45472 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45473 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45474 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45475 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45476 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45477 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45478 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45479 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45480 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45481 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45482 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45483 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45484 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45485 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45486 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45487 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45488 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
45489 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
45490 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
45491 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
45492 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
45493 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
45494 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
45495 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
45496 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45497 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45498 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
45499 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
45500 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
45501 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
45502 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45503 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45504 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
45505 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45506 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
45507 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
45508 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
45509 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
45510 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
45511 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
45512 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45513 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45514 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45515 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45516 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
45517 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45518 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45519 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45520 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
45521 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
45522 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
45523 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
45524 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
45525 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
45526 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
45527 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
45528 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
45529 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
45530 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
45531 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
45532 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
45533 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
45534 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45535 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45536 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45537 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45538 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
45539 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45540 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
45541 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45542 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
45543 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45544 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
45545 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
45546 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
45547 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
45548 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45549 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
45550 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
45551 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
45552 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
45553 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45554 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
45555 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
45556 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45557 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
45558 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
45559 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
45560 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
45561 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45562 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
45563 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
45564 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
45565 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45566 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
45567 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
45568 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
45569 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
45570 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45571 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
45572 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
45573 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
45574 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45575 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
45576 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
45577 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
45578 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
45579 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45580 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45581 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45582 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45583 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
45584 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
45585 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
45586 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
45587 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
45588 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
45589 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45590 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
45591 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
45592 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
45593 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
45594 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45595 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
45596 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
45597 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
45598 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
45599 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45600 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
45601 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
45602 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
45603 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
45604 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
45605 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
45606 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
45607 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
45608 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
45609 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
45610 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
45611 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
45612 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
45613 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
45614 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
45615 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
45616 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
45617 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
45618 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
45619 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45620 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
45621 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45622 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45623 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45624 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45625 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45626 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45627 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
45628 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
45629 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
45630 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45631 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
45632 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
45633 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
45634 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45635 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45636 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
45637 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
45638 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
45639 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
45640 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
45641 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
45642 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
45643 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
45644 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
45645 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
45646 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
45647 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
45648 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45649 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45650 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45651 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
45652 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
45653 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45654 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45655 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45656 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45657 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45658 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
45659 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45660 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
45661 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
45662 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
45663 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
45664 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
45665 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
45666 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
45667 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
45668 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
45669 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
45670 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
45671 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
45672 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
45673 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45674 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
45675 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
45676 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
45677 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
45678 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
45679 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
45680 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45681 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45682 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
45683 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
45684 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45685 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
45686 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45687 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45688 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45689 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
45690 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
45691 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
45692 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
45693 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
45694 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
45695 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
45696 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
45697 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
45698 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
45699 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
45700 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
45701 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
45702 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
45703 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45704 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45705 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45706 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
45707 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
45708 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45709 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
45710 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45711 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45712 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
45713 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45714 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45715 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45716 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
45717 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
45718 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
45719 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
45720 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
45721 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
45722 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
45723 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
45724 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
45725 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
45726 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
45727 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
45728 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
45729 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
45730 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
45731 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
45732 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
45733 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
45734 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
45735 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
45736 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
45737 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
45738 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
45739 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
45740 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
45741 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
45742 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
45743 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
45744 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
45745 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
45746 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
45747 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
45748 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
45749 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
45750 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
45751 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
45752 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45753 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
45754 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
45755 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
45756 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
45757 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
45758 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
45759 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
45760 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
45761 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
45762 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
45763 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
45764 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
45765 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
45766 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
45767 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
45768 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
45769 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
45770 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
45771 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
45772 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
45773 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
45774 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
45775 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
45776 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
45777 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45778 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
45779 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
45780 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45781 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
45782 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45783 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45784 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45785 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45786 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45787 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45788 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
45789 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
45790 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
45791 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45792 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45793 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45794 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45795 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45796 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45797 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45798 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45799 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45800 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45801 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45802 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45803 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
45804 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45805 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
45806 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
45807 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
45808 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45809 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
45810 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
45811 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45812 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
45813 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45814 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45815 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45816 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45817 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45818 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
45819 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
45820 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
45821 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
45822 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
45823 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
45824 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
45825 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45826 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
45827 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
45828 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45829 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45830 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
45831 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45832 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
45833 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45834 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
45835 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45836 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45837 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
45838 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45839 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
45840 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45841 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
45842 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
45843 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45844 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45845 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45846 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45847 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45848 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45849 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
45850 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
45851 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45852 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
45853 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
45854 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
45855 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
45856 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45857 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45858 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
45859 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
45860 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45861 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
45862 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45863 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45864 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45865 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
45866 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
45867 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
45868 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
45869 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
45870 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
45871 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
45872 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
45873 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
45874 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
45875 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
45876 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45877 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
45878 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
45879 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45880 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
45881 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45882 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
45883 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
45884 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
45885 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
45886 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
45887 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45888 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
45889 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
45890 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
45891 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45892 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
45893 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
45894 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45895 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
45896 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45897 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
45898 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45899 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45900 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
45901 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
45902 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
45903 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45904 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
45905 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45906 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45907 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
45908 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
45909 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45910 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
45911 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45912 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
45913 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
45914 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45915 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45916 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45917 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45918 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45919 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45920 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45921 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45922 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45923 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45924 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45925 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45926 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45927 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45928 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45929 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45930 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
45931 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
45932 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45933 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45934 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45935 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45936 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45937 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45938 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45939 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
45940 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
45941 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
45942 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
45943 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
45944 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
45945 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
45946 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
45947 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
45948 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
45949 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
45950 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
45951 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45952 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45953 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
45954 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
45955 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45956 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
45957 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
45958 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
45959 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45960 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
45961 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
45962 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45963 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
45964 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
45965 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
45966 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
45967 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
45968 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
45969 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
45970 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
45971 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45972 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45973 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
45974 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45975 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
45976 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45977 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45978 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
45979 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45980 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
45981 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
45982 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
45983 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
45984 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45985 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
45986 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45987 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
45988 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
45989 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
45990 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
45991 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
45992 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
45993 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
45994 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
45995 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
45996 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
45997 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
45998 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
45999 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
46000 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
46001 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
46002 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
46003 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
46004 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
46005 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
46006 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
46007 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
46008 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46009 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
46010 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46011 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
46012 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
46013 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
46014 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
46015 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
46016 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46017 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46018 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
46019 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46020 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46021 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46022 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46023 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
46024 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
46025 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
46026 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
46027 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
46028 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
46029 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
46030 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
46031 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
46032 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46033 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
46034 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46035 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
46036 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
46037 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
46038 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
46039 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
46040 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
46041 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
46042 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
46043 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46044 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
46045 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46046 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
46047 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
46048 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
46049 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46050 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46051 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
46052 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
46053 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46054 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46055 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46056 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46057 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46058 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46059 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46060 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46061 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46062 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46063 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46064 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46065 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46066 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46067 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46068 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46069 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46070 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46071 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46072 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46073 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46074 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46075 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46076 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46077 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46078 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46079 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46080 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46081 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46082 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46083 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46084 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46085 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46086 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46087 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46088 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46089 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46090 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46091 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46092 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46093 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46094 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
46095 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46096 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46097 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46098 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46099 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46100 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46101 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46102 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46103 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46104 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46105 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46106 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46107 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46108 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46109 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46110 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46111 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46112 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46113 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46114 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
46115 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46116 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46117 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46118 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46119 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
46120 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46121 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
46122 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46123 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46124 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46125 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46126 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46127 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46128 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46129 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46130 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46131 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46132 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46133 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46134 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46135 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46136 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46137 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46138 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46139 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46140 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46141 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46142 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46143 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46144 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46145 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46146 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46147 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46148 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
46149 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46150 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46151 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46152 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46153 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46154 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46155 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46156 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46157 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
46158 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46159 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46160 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46161 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46162 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46163 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46164 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46165 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46166 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46167 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46168 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46169 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46170 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46171 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46172 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46173 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46174 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46175 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46176 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46177 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46178 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
46179 { NULL, NULL, 0, NULL }
46180 };
46181
46182
46183 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46184
46185 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46186 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46187 }
46188 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46189 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46190 }
46191 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46192 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46193 }
46194 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46195 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46196 }
46197 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46198 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46199 }
46200 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46201 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46202 }
46203 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46204 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46205 }
46206 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46207 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46208 }
46209 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46210 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46211 }
46212 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46213 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46214 }
46215 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46216 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46217 }
46218 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46219 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46220 }
46221 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46222 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46223 }
46224 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46225 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46226 }
46227 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46228 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46229 }
46230 static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
46231 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
46232 }
46233 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46234 return (void *)((wxEvent *) ((wxPyEvent *) x));
46235 }
46236 static void *_p_wxListEventTo_p_wxEvent(void *x) {
46237 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46238 }
46239 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46240 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46241 }
46242 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46243 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46244 }
46245 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46246 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46247 }
46248 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46249 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46250 }
46251 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46252 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46253 }
46254 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46255 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46256 }
46257 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46258 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46259 }
46260 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46261 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46262 }
46263 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46264 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46265 }
46266 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46267 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46268 }
46269 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46270 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46271 }
46272 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46273 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46274 }
46275 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46276 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46277 }
46278 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46279 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46280 }
46281 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46282 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46283 }
46284 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46285 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46286 }
46287 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46288 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46289 }
46290 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46291 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46292 }
46293 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46294 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46295 }
46296 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46297 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46298 }
46299 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46300 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46301 }
46302 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46303 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46304 }
46305 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46306 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46307 }
46308 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46309 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46310 }
46311 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46312 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46313 }
46314 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46315 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46316 }
46317 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46318 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46319 }
46320 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46321 return (void *)((wxEvent *) ((wxShowEvent *) x));
46322 }
46323 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46324 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46325 }
46326 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46327 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46328 }
46329 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46330 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46331 }
46332 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46333 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46334 }
46335 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46336 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46337 }
46338 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46339 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46340 }
46341 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46342 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46343 }
46344 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46345 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46346 }
46347 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46348 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46349 }
46350 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46351 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46352 }
46353 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46354 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46355 }
46356 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46357 return (void *)((wxItemContainer *) ((wxComboBox *) x));
46358 }
46359 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46360 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46361 }
46362 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46363 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46364 }
46365 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46366 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46367 }
46368 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46369 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46370 }
46371 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46372 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46373 }
46374 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46375 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46376 }
46377 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46378 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46379 }
46380 static void *_p_wxToolBarTo_p_wxControl(void *x) {
46381 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46382 }
46383 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46384 return (void *)((wxControl *) ((wxPickerBase *) x));
46385 }
46386 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46387 return (void *)((wxControl *) ((wxToggleButton *) x));
46388 }
46389 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46390 return (void *)((wxControl *) ((wxRadioButton *) x));
46391 }
46392 static void *_p_wxToolbookTo_p_wxControl(void *x) {
46393 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46394 }
46395 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46396 return (void *)((wxControl *) ((wxToolBarBase *) x));
46397 }
46398 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46399 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46400 }
46401 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46402 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46403 }
46404 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46405 return (void *)((wxControl *) ((wxComboBox *) x));
46406 }
46407 static void *_p_wxPyControlTo_p_wxControl(void *x) {
46408 return (void *)((wxControl *) ((wxPyControl *) x));
46409 }
46410 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46411 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46412 }
46413 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46414 return (void *)((wxControl *) ((wxScrollBar *) x));
46415 }
46416 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46417 return (void *)((wxControl *) ((wxControlWithItems *) x));
46418 }
46419 static void *_p_wxGaugeTo_p_wxControl(void *x) {
46420 return (void *)((wxControl *) ((wxGauge *) x));
46421 }
46422 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46423 return (void *)((wxControl *) ((wxStaticLine *) x));
46424 }
46425 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46426 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46427 }
46428 static void *_p_wxListbookTo_p_wxControl(void *x) {
46429 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46430 }
46431 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46432 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46433 }
46434 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46435 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46436 }
46437 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46438 return (void *)((wxControl *) ((wxCheckBox *) x));
46439 }
46440 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46441 return (void *)((wxControl *) ((wxRadioBox *) x));
46442 }
46443 static void *_p_wxChoiceTo_p_wxControl(void *x) {
46444 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46445 }
46446 static void *_p_wxListBoxTo_p_wxControl(void *x) {
46447 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46448 }
46449 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46450 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46451 }
46452 static void *_p_wxListViewTo_p_wxControl(void *x) {
46453 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46454 }
46455 static void *_p_wxNotebookTo_p_wxControl(void *x) {
46456 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46457 }
46458 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46459 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46460 }
46461 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46462 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46463 }
46464 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46465 return (void *)((wxControl *) ((wxStaticText *) x));
46466 }
46467 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46468 return (void *)((wxControl *) ((wxStaticBox *) x));
46469 }
46470 static void *_p_wxSliderTo_p_wxControl(void *x) {
46471 return (void *)((wxControl *) ((wxSlider *) x));
46472 }
46473 static void *_p_wxTreebookTo_p_wxControl(void *x) {
46474 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46475 }
46476 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46477 return (void *)((wxControl *) ((wxSpinButton *) x));
46478 }
46479 static void *_p_wxButtonTo_p_wxControl(void *x) {
46480 return (void *)((wxControl *) ((wxButton *) x));
46481 }
46482 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
46483 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
46484 }
46485 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
46486 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46487 }
46488 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
46489 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
46490 }
46491 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
46492 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
46493 }
46494 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
46495 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
46496 }
46497 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
46498 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
46499 }
46500 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
46501 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
46502 }
46503 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
46504 return (void *)((wxControl *) ((wxTextCtrl *) x));
46505 }
46506 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
46507 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
46508 }
46509 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
46510 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
46511 }
46512 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
46513 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46514 }
46515 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
46516 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
46517 }
46518 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
46519 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
46520 }
46521 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
46522 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
46523 }
46524 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
46525 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46526 }
46527 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
46528 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46529 }
46530 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
46531 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46532 }
46533 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
46534 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46535 }
46536 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
46537 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46538 }
46539 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
46540 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
46541 }
46542 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
46543 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
46544 }
46545 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
46546 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
46547 }
46548 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
46549 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
46550 }
46551 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
46552 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
46553 }
46554 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46555 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46556 }
46557 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
46558 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46559 }
46560 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46561 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46562 }
46563 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46564 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46565 }
46566 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
46567 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46568 }
46569 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
46570 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
46571 }
46572 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46573 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46574 }
46575 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
46576 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
46577 }
46578 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
46579 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
46580 }
46581 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
46582 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46583 }
46584 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46585 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46586 }
46587 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46588 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46589 }
46590 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
46591 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
46592 }
46593 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
46594 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46595 }
46596 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
46597 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46598 }
46599 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
46600 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46601 }
46602 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
46603 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
46604 }
46605 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46606 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46607 }
46608 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
46609 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46610 }
46611 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
46612 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
46613 }
46614 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46615 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46616 }
46617 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
46618 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
46619 }
46620 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
46621 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
46622 }
46623 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
46624 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46625 }
46626 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
46627 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46628 }
46629 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
46630 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46631 }
46632 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
46633 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46634 }
46635 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
46636 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
46637 }
46638 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
46639 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
46640 }
46641 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
46642 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46643 }
46644 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
46645 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46646 }
46647 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
46648 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46649 }
46650 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
46651 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46652 }
46653 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
46654 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46655 }
46656 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
46657 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46658 }
46659 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
46660 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46661 }
46662 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
46663 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
46664 }
46665 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
46666 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
46667 }
46668 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
46669 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
46670 }
46671 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
46672 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46673 }
46674 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
46675 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
46676 }
46677 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
46678 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
46679 }
46680 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
46681 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46682 }
46683 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
46684 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46685 }
46686 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
46687 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46688 }
46689 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
46690 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46691 }
46692 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
46693 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46694 }
46695 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
46696 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46697 }
46698 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
46699 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46700 }
46701 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
46702 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46703 }
46704 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
46705 return (void *)((wxListBox *) ((wxCheckListBox *) x));
46706 }
46707 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
46708 return (void *)((wxButton *) ((wxBitmapButton *) x));
46709 }
46710 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
46711 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
46712 }
46713 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
46714 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
46715 }
46716 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
46717 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
46718 }
46719 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46720 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46721 }
46722 static void *_p_wxToolbookTo_p_wxObject(void *x) {
46723 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46724 }
46725 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
46726 return (void *)((wxObject *) ((wxSizerItem *) x));
46727 }
46728 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
46729 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
46730 }
46731 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
46732 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
46733 }
46734 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
46735 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
46736 }
46737 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
46738 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
46739 }
46740 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
46741 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
46742 }
46743 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
46744 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
46745 }
46746 static void *_p_wxSizerTo_p_wxObject(void *x) {
46747 return (void *)((wxObject *) ((wxSizer *) x));
46748 }
46749 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
46750 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46751 }
46752 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
46753 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
46754 }
46755 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
46756 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46757 }
46758 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
46759 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
46760 }
46761 static void *_p_wxEventTo_p_wxObject(void *x) {
46762 return (void *)((wxObject *) ((wxEvent *) x));
46763 }
46764 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
46765 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
46766 }
46767 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
46768 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
46769 }
46770 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
46771 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
46772 }
46773 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
46774 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46775 }
46776 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
46777 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
46778 }
46779 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
46780 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46781 }
46782 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
46783 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46784 }
46785 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
46786 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
46787 }
46788 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
46789 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
46790 }
46791 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
46792 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
46793 }
46794 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
46795 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
46796 }
46797 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
46798 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
46799 }
46800 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
46801 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46802 }
46803 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
46804 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
46805 }
46806 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
46807 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
46808 }
46809 static void *_p_wxControlTo_p_wxObject(void *x) {
46810 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
46811 }
46812 static void *_p_wxPyControlTo_p_wxObject(void *x) {
46813 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
46814 }
46815 static void *_p_wxGaugeTo_p_wxObject(void *x) {
46816 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
46817 }
46818 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
46819 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
46820 }
46821 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
46822 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
46823 }
46824 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
46825 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46826 }
46827 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
46828 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
46829 }
46830 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
46831 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
46832 }
46833 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
46834 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46835 }
46836 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
46837 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
46838 }
46839 static void *_p_wxChoiceTo_p_wxObject(void *x) {
46840 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46841 }
46842 static void *_p_wxFSFileTo_p_wxObject(void *x) {
46843 return (void *)((wxObject *) ((wxFSFile *) x));
46844 }
46845 static void *_p_wxPySizerTo_p_wxObject(void *x) {
46846 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
46847 }
46848 static void *_p_wxTreebookTo_p_wxObject(void *x) {
46849 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46850 }
46851 static void *_p_wxListViewTo_p_wxObject(void *x) {
46852 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46853 }
46854 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
46855 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
46856 }
46857 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
46858 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46859 }
46860 static void *_p_wxNotebookTo_p_wxObject(void *x) {
46861 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46862 }
46863 static void *_p_wxPyEventTo_p_wxObject(void *x) {
46864 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
46865 }
46866 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
46867 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
46868 }
46869 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
46870 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46871 }
46872 static void *_p_wxListbookTo_p_wxObject(void *x) {
46873 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46874 }
46875 static void *_p_wxShowEventTo_p_wxObject(void *x) {
46876 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
46877 }
46878 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
46879 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46880 }
46881 static void *_p_wxSliderTo_p_wxObject(void *x) {
46882 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
46883 }
46884 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
46885 return (void *)((wxObject *) ((wxMenuItem *) x));
46886 }
46887 static void *_p_wxDateEventTo_p_wxObject(void *x) {
46888 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
46889 }
46890 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
46891 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
46892 }
46893 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
46894 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
46895 }
46896 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
46897 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
46898 }
46899 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
46900 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
46901 }
46902 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
46903 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
46904 }
46905 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
46906 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
46907 }
46908 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
46909 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
46910 }
46911 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
46912 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
46913 }
46914 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
46915 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
46916 }
46917 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
46918 return (void *)((wxObject *) ((wxContextHelp *) x));
46919 }
46920 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
46921 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46922 }
46923 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
46924 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
46925 }
46926 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
46927 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
46928 }
46929 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
46930 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
46931 }
46932 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
46933 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
46934 }
46935 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
46936 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
46937 }
46938 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
46939 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
46940 }
46941 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
46942 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
46943 }
46944 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
46945 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
46946 }
46947 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
46948 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
46949 }
46950 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
46951 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
46952 }
46953 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
46954 return (void *)((wxObject *) ((wxImageHandler *) x));
46955 }
46956 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
46957 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
46958 }
46959 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
46960 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
46961 }
46962 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
46963 return (void *)((wxObject *) ((wxEvtHandler *) x));
46964 }
46965 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
46966 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
46967 }
46968 static void *_p_wxListEventTo_p_wxObject(void *x) {
46969 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46970 }
46971 static void *_p_wxListBoxTo_p_wxObject(void *x) {
46972 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46973 }
46974 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
46975 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46976 }
46977 static void *_p_wxButtonTo_p_wxObject(void *x) {
46978 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
46979 }
46980 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
46981 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46982 }
46983 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
46984 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
46985 }
46986 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
46987 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46988 }
46989 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
46990 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
46991 }
46992 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
46993 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
46994 }
46995 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
46996 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
46997 }
46998 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
46999 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
47000 }
47001 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
47002 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
47003 }
47004 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
47005 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
47006 }
47007 static void *_p_wxListItemTo_p_wxObject(void *x) {
47008 return (void *)((wxObject *) ((wxListItem *) x));
47009 }
47010 static void *_p_wxImageTo_p_wxObject(void *x) {
47011 return (void *)((wxObject *) ((wxImage *) x));
47012 }
47013 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
47014 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
47015 }
47016 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
47017 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47018 }
47019 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
47020 return (void *)((wxObject *) ((wxGenericDragImage *) x));
47021 }
47022 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
47023 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47024 }
47025 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
47026 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47027 }
47028 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
47029 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47030 }
47031 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
47032 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47033 }
47034 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
47035 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47036 }
47037 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
47038 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47039 }
47040 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
47041 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47042 }
47043 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
47044 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
47045 }
47046 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
47047 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
47048 }
47049 static void *_p_wxWindowTo_p_wxObject(void *x) {
47050 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47051 }
47052 static void *_p_wxMenuTo_p_wxObject(void *x) {
47053 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47054 }
47055 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47056 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47057 }
47058 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47059 return (void *)((wxObject *) ((wxFileSystem *) x));
47060 }
47061 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47062 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47063 }
47064 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47065 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47066 }
47067 static void *_p_wxPyAppTo_p_wxObject(void *x) {
47068 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47069 }
47070 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47071 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47072 }
47073 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47074 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47075 }
47076 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47077 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47078 }
47079 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47080 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47081 }
47082 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47083 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47084 }
47085 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47086 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47087 }
47088 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47089 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47090 }
47091 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47092 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47093 }
47094 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47095 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47096 }
47097 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47098 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47099 }
47100 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47101 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47102 }
47103 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47104 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47105 }
47106 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47107 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47108 }
47109 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
47110 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47111 }
47112 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
47113 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47114 }
47115 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
47116 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47117 }
47118 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47119 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47120 }
47121 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
47122 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47123 }
47124 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47125 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47126 }
47127 static void *_p_wxToolBarTo_p_wxObject(void *x) {
47128 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47129 }
47130 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47131 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47132 }
47133 static void *_p_wxValidatorTo_p_wxObject(void *x) {
47134 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47135 }
47136 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47137 return (void *)((wxWindow *) ((wxMenuBar *) x));
47138 }
47139 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47140 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47141 }
47142 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47143 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47144 }
47145 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47146 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47147 }
47148 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47149 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47150 }
47151 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47152 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47153 }
47154 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47155 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47156 }
47157 static void *_p_wxControlTo_p_wxWindow(void *x) {
47158 return (void *)((wxWindow *) ((wxControl *) x));
47159 }
47160 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47161 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47162 }
47163 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47164 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47165 }
47166 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47167 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
47168 }
47169 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47170 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47171 }
47172 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47173 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47174 }
47175 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47176 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47177 }
47178 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47179 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47180 }
47181 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47182 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47183 }
47184 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47185 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47186 }
47187 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47188 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47189 }
47190 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47191 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47192 }
47193 static void *_p_wxListbookTo_p_wxWindow(void *x) {
47194 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47195 }
47196 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47197 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47198 }
47199 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47200 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47201 }
47202 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47203 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47204 }
47205 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47206 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47207 }
47208 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47209 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47210 }
47211 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47212 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47213 }
47214 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47215 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47216 }
47217 static void *_p_wxListViewTo_p_wxWindow(void *x) {
47218 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47219 }
47220 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47221 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47222 }
47223 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47224 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47225 }
47226 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47227 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47228 }
47229 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47230 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47231 }
47232 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47233 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47234 }
47235 static void *_p_wxSliderTo_p_wxWindow(void *x) {
47236 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47237 }
47238 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47239 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47240 }
47241 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47242 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47243 }
47244 static void *_p_wxButtonTo_p_wxWindow(void *x) {
47245 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47246 }
47247 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47248 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47249 }
47250 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47251 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47252 }
47253 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47254 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47255 }
47256 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47257 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47258 }
47259 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47260 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47261 }
47262 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47263 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47264 }
47265 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47266 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47267 }
47268 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47269 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47270 }
47271 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47272 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47273 }
47274 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47275 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47276 }
47277 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47278 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47279 }
47280 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47281 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47282 }
47283 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47284 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47285 }
47286 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47287 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47288 }
47289 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47290 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47291 }
47292 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47293 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47294 }
47295 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47296 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47297 }
47298 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47299 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47300 }
47301 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47302 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47303 }
47304 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47305 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47306 }
47307 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47308 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47309 }
47310 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47311 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47312 }
47313 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47314 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47315 }
47316 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47317 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47318 }
47319 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47320 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47321 }
47322 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47323 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47324 }
47325 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47326 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47327 }
47328 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47329 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47330 }
47331 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47332 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47333 }
47334 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47335 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47336 }
47337 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47338 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47339 }
47340 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47341 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47342 }
47343 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47344 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47345 }
47346 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47347 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47348 }
47349 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47350 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47351 }
47352 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47353 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47354 }
47355 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47356 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47357 }
47358 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47359 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47360 }
47361 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47362 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47363 }
47364 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47365 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47366 }
47367 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47368 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47369 }
47370 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47371 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47372 }
47373 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47374 return (void *)((wxValidator *) ((wxPyValidator *) x));
47375 }
47376 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47377 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47378 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};
47379 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47380 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47381 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47382 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47383 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47384 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47385 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47386 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47387 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47388 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47389 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47390 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47391 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47392 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47393 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47394 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47395 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47396 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47397 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
47398 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47399 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
47400 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47401 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47402 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
47403 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
47404 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47405 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47406 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47407 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47408 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47409 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47410 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47411 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47412 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47413 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47414 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47415 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47416 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47417 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47418 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47419 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
47420 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
47421 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47422 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47423 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47424 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47425 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47426 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47427 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47428 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
47429 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
47430 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47431 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47432 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47433 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47434 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47435 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
47436 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
47437 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47438 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47439 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47440 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47441 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47442 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47443 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47444 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47445 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47446 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47447 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47448 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47449 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47450 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47451 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47452 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
47453 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47454 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
47455 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
47456 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47457 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
47458 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47459 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47460 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47461 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47462 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
47463 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47464 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
47465 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47466 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47467 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47468 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47469 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47470 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47471 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47472 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47473 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47474 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47475 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47476 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
47477 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
47478 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
47479 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
47480 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
47481 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
47482 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
47483 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
47484 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
47485 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
47486 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
47487 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
47488 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
47489 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
47490 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
47491 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
47492 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
47493 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
47494 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
47495 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
47496 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
47497 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
47498 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
47499 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
47500 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
47501 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
47502 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
47503 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
47504 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
47505 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
47506 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
47507 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
47508 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
47509 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
47510 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
47511 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
47512 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
47513 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
47514 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
47515 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
47516 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
47517 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
47518 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
47519 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
47520 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
47521 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
47522 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
47523 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
47524 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
47525 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
47526 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
47527 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
47528 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
47529 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
47530 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
47531 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
47532 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
47533 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
47534 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
47535 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
47536 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
47537 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
47538 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
47539 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
47540 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
47541 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
47542 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
47543 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
47544 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
47545 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
47546 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
47547 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
47548 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
47549 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
47550 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
47551
47552 static swig_type_info *swig_type_initial[] = {
47553 &_swigt__p_bool,
47554 &_swigt__p_char,
47555 &_swigt__p_form_ops_t,
47556 &_swigt__p_int,
47557 &_swigt__p_long,
47558 &_swigt__p_unsigned_char,
47559 &_swigt__p_unsigned_int,
47560 &_swigt__p_unsigned_long,
47561 &_swigt__p_void,
47562 &_swigt__p_wxANIHandler,
47563 &_swigt__p_wxAcceleratorTable,
47564 &_swigt__p_wxActivateEvent,
47565 &_swigt__p_wxArrayInt,
47566 &_swigt__p_wxArrayString,
47567 &_swigt__p_wxBMPHandler,
47568 &_swigt__p_wxBitmap,
47569 &_swigt__p_wxBitmapButton,
47570 &_swigt__p_wxBookCtrlBase,
47571 &_swigt__p_wxBookCtrlBaseEvent,
47572 &_swigt__p_wxBoxSizer,
47573 &_swigt__p_wxButton,
47574 &_swigt__p_wxCURHandler,
47575 &_swigt__p_wxCheckBox,
47576 &_swigt__p_wxCheckListBox,
47577 &_swigt__p_wxChildFocusEvent,
47578 &_swigt__p_wxChoice,
47579 &_swigt__p_wxChoicebook,
47580 &_swigt__p_wxChoicebookEvent,
47581 &_swigt__p_wxClipboardTextEvent,
47582 &_swigt__p_wxCloseEvent,
47583 &_swigt__p_wxColour,
47584 &_swigt__p_wxColourPickerCtrl,
47585 &_swigt__p_wxColourPickerEvent,
47586 &_swigt__p_wxComboBox,
47587 &_swigt__p_wxCommandEvent,
47588 &_swigt__p_wxContextHelp,
47589 &_swigt__p_wxContextHelpButton,
47590 &_swigt__p_wxContextMenuEvent,
47591 &_swigt__p_wxControl,
47592 &_swigt__p_wxControlWithItems,
47593 &_swigt__p_wxCursor,
47594 &_swigt__p_wxDC,
47595 &_swigt__p_wxDateEvent,
47596 &_swigt__p_wxDatePickerCtrl,
47597 &_swigt__p_wxDateTime,
47598 &_swigt__p_wxDirFilterListCtrl,
47599 &_swigt__p_wxDirPickerCtrl,
47600 &_swigt__p_wxDisplayChangedEvent,
47601 &_swigt__p_wxDropFilesEvent,
47602 &_swigt__p_wxDuplexMode,
47603 &_swigt__p_wxEraseEvent,
47604 &_swigt__p_wxEvent,
47605 &_swigt__p_wxEvtHandler,
47606 &_swigt__p_wxFSFile,
47607 &_swigt__p_wxFileDirPickerEvent,
47608 &_swigt__p_wxFilePickerCtrl,
47609 &_swigt__p_wxFileSystem,
47610 &_swigt__p_wxFlexGridSizer,
47611 &_swigt__p_wxFocusEvent,
47612 &_swigt__p_wxFont,
47613 &_swigt__p_wxFontPickerCtrl,
47614 &_swigt__p_wxFontPickerEvent,
47615 &_swigt__p_wxGBSizerItem,
47616 &_swigt__p_wxGIFHandler,
47617 &_swigt__p_wxGauge,
47618 &_swigt__p_wxGenericDirCtrl,
47619 &_swigt__p_wxGenericDragImage,
47620 &_swigt__p_wxGridBagSizer,
47621 &_swigt__p_wxGridSizer,
47622 &_swigt__p_wxHelpEvent,
47623 &_swigt__p_wxHelpProvider,
47624 &_swigt__p_wxHyperlinkCtrl,
47625 &_swigt__p_wxHyperlinkEvent,
47626 &_swigt__p_wxICOHandler,
47627 &_swigt__p_wxIcon,
47628 &_swigt__p_wxIconizeEvent,
47629 &_swigt__p_wxIdleEvent,
47630 &_swigt__p_wxImage,
47631 &_swigt__p_wxImageHandler,
47632 &_swigt__p_wxImageList,
47633 &_swigt__p_wxIndividualLayoutConstraint,
47634 &_swigt__p_wxInitDialogEvent,
47635 &_swigt__p_wxItemContainer,
47636 &_swigt__p_wxJPEGHandler,
47637 &_swigt__p_wxKeyEvent,
47638 &_swigt__p_wxLayoutConstraints,
47639 &_swigt__p_wxListBox,
47640 &_swigt__p_wxListEvent,
47641 &_swigt__p_wxListItem,
47642 &_swigt__p_wxListItemAttr,
47643 &_swigt__p_wxListView,
47644 &_swigt__p_wxListbook,
47645 &_swigt__p_wxListbookEvent,
47646 &_swigt__p_wxMaximizeEvent,
47647 &_swigt__p_wxMemoryDC,
47648 &_swigt__p_wxMenu,
47649 &_swigt__p_wxMenuBar,
47650 &_swigt__p_wxMenuEvent,
47651 &_swigt__p_wxMenuItem,
47652 &_swigt__p_wxMouseCaptureChangedEvent,
47653 &_swigt__p_wxMouseCaptureLostEvent,
47654 &_swigt__p_wxMouseEvent,
47655 &_swigt__p_wxMoveEvent,
47656 &_swigt__p_wxNavigationKeyEvent,
47657 &_swigt__p_wxNcPaintEvent,
47658 &_swigt__p_wxNotebook,
47659 &_swigt__p_wxNotebookEvent,
47660 &_swigt__p_wxNotifyEvent,
47661 &_swigt__p_wxObject,
47662 &_swigt__p_wxPCXHandler,
47663 &_swigt__p_wxPNGHandler,
47664 &_swigt__p_wxPNMHandler,
47665 &_swigt__p_wxPaintEvent,
47666 &_swigt__p_wxPaletteChangedEvent,
47667 &_swigt__p_wxPaperSize,
47668 &_swigt__p_wxPickerBase,
47669 &_swigt__p_wxPoint,
47670 &_swigt__p_wxPyApp,
47671 &_swigt__p_wxPyCommandEvent,
47672 &_swigt__p_wxPyControl,
47673 &_swigt__p_wxPyEvent,
47674 &_swigt__p_wxPyImageHandler,
47675 &_swigt__p_wxPyListCtrl,
47676 &_swigt__p_wxPySizer,
47677 &_swigt__p_wxPyTreeCtrl,
47678 &_swigt__p_wxPyTreeItemData,
47679 &_swigt__p_wxPyValidator,
47680 &_swigt__p_wxQueryNewPaletteEvent,
47681 &_swigt__p_wxRadioBox,
47682 &_swigt__p_wxRadioButton,
47683 &_swigt__p_wxRect,
47684 &_swigt__p_wxScrollBar,
47685 &_swigt__p_wxScrollEvent,
47686 &_swigt__p_wxScrollWinEvent,
47687 &_swigt__p_wxSetCursorEvent,
47688 &_swigt__p_wxShowEvent,
47689 &_swigt__p_wxSimpleHelpProvider,
47690 &_swigt__p_wxSize,
47691 &_swigt__p_wxSizeEvent,
47692 &_swigt__p_wxSizer,
47693 &_swigt__p_wxSizerItem,
47694 &_swigt__p_wxSlider,
47695 &_swigt__p_wxSpinButton,
47696 &_swigt__p_wxSpinCtrl,
47697 &_swigt__p_wxSpinEvent,
47698 &_swigt__p_wxStaticBitmap,
47699 &_swigt__p_wxStaticBox,
47700 &_swigt__p_wxStaticBoxSizer,
47701 &_swigt__p_wxStaticLine,
47702 &_swigt__p_wxStaticText,
47703 &_swigt__p_wxStdDialogButtonSizer,
47704 &_swigt__p_wxString,
47705 &_swigt__p_wxSysColourChangedEvent,
47706 &_swigt__p_wxTIFFHandler,
47707 &_swigt__p_wxTextAttr,
47708 &_swigt__p_wxTextCtrl,
47709 &_swigt__p_wxTextUrlEvent,
47710 &_swigt__p_wxToggleButton,
47711 &_swigt__p_wxToolBar,
47712 &_swigt__p_wxToolBarBase,
47713 &_swigt__p_wxToolBarToolBase,
47714 &_swigt__p_wxToolbook,
47715 &_swigt__p_wxToolbookEvent,
47716 &_swigt__p_wxTreeEvent,
47717 &_swigt__p_wxTreeItemId,
47718 &_swigt__p_wxTreebook,
47719 &_swigt__p_wxTreebookEvent,
47720 &_swigt__p_wxUpdateUIEvent,
47721 &_swigt__p_wxValidator,
47722 &_swigt__p_wxVisualAttributes,
47723 &_swigt__p_wxWindow,
47724 &_swigt__p_wxWindowBase,
47725 &_swigt__p_wxWindowCreateEvent,
47726 &_swigt__p_wxWindowDestroyEvent,
47727 &_swigt__p_wxXPMHandler,
47728 };
47729
47730 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
47731 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
47732 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
47733 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
47734 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
47735 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
47736 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
47737 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
47738 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
47739 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
47740 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
47741 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
47742 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}};
47743 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}};
47744 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}};
47745 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}};
47746 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
47747 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
47748 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}};
47749 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
47750 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47751 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
47752 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47753 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47754 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
47755 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
47756 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
47757 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
47758 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
47759 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47760 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47761 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
47762 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
47763 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
47764 static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
47765 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
47766 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
47767 static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
47768 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}};
47769 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
47770 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
47771 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47772 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
47773 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
47774 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47775 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
47776 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47777 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
47778 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
47779 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
47780 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
47781 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
47782 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
47783 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
47784 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47785 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47786 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
47787 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47788 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
47789 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
47790 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47791 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47792 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47793 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47794 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47795 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47796 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
47797 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47798 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
47799 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47800 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
47801 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_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}};
47802 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
47803 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
47804 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
47805 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
47806 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
47807 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47808 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47809 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
47810 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47811 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47812 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
47813 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
47814 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
47815 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
47816 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}};
47817 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
47818 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
47819 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
47820 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
47821 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}};
47822 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47823 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}};
47824 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
47825 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
47826 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
47827 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
47828 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
47829 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47830 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
47831 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
47832 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
47833 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47834 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}};
47835 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
47836 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
47837 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
47838 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
47839 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47840 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47841 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
47842 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
47843 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47844 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47845 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
47846 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
47847 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
47848 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
47849 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
47850 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
47851 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
47852 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
47853 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
47854 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
47855 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
47856 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
47857 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
47858 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
47859 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
47860 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
47861 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
47862 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
47863 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
47864 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
47865 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_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_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_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}};
47866 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
47867 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}};
47868 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
47869 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
47870 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}};
47871 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
47872 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
47873 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
47874 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
47875 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
47876 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
47877 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
47878 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
47879 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
47880 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
47881 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
47882 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
47883 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
47884 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
47885 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
47886 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
47887 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
47888 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
47889 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
47890 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
47891 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
47892 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
47893 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}};
47894 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
47895 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
47896 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47897 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
47898 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
47899 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
47900 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47901 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}};
47902 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
47903 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
47904 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
47905
47906 static swig_cast_info *swig_cast_initial[] = {
47907 _swigc__p_bool,
47908 _swigc__p_char,
47909 _swigc__p_form_ops_t,
47910 _swigc__p_int,
47911 _swigc__p_long,
47912 _swigc__p_unsigned_char,
47913 _swigc__p_unsigned_int,
47914 _swigc__p_unsigned_long,
47915 _swigc__p_void,
47916 _swigc__p_wxANIHandler,
47917 _swigc__p_wxAcceleratorTable,
47918 _swigc__p_wxActivateEvent,
47919 _swigc__p_wxArrayInt,
47920 _swigc__p_wxArrayString,
47921 _swigc__p_wxBMPHandler,
47922 _swigc__p_wxBitmap,
47923 _swigc__p_wxBitmapButton,
47924 _swigc__p_wxBookCtrlBase,
47925 _swigc__p_wxBookCtrlBaseEvent,
47926 _swigc__p_wxBoxSizer,
47927 _swigc__p_wxButton,
47928 _swigc__p_wxCURHandler,
47929 _swigc__p_wxCheckBox,
47930 _swigc__p_wxCheckListBox,
47931 _swigc__p_wxChildFocusEvent,
47932 _swigc__p_wxChoice,
47933 _swigc__p_wxChoicebook,
47934 _swigc__p_wxChoicebookEvent,
47935 _swigc__p_wxClipboardTextEvent,
47936 _swigc__p_wxCloseEvent,
47937 _swigc__p_wxColour,
47938 _swigc__p_wxColourPickerCtrl,
47939 _swigc__p_wxColourPickerEvent,
47940 _swigc__p_wxComboBox,
47941 _swigc__p_wxCommandEvent,
47942 _swigc__p_wxContextHelp,
47943 _swigc__p_wxContextHelpButton,
47944 _swigc__p_wxContextMenuEvent,
47945 _swigc__p_wxControl,
47946 _swigc__p_wxControlWithItems,
47947 _swigc__p_wxCursor,
47948 _swigc__p_wxDC,
47949 _swigc__p_wxDateEvent,
47950 _swigc__p_wxDatePickerCtrl,
47951 _swigc__p_wxDateTime,
47952 _swigc__p_wxDirFilterListCtrl,
47953 _swigc__p_wxDirPickerCtrl,
47954 _swigc__p_wxDisplayChangedEvent,
47955 _swigc__p_wxDropFilesEvent,
47956 _swigc__p_wxDuplexMode,
47957 _swigc__p_wxEraseEvent,
47958 _swigc__p_wxEvent,
47959 _swigc__p_wxEvtHandler,
47960 _swigc__p_wxFSFile,
47961 _swigc__p_wxFileDirPickerEvent,
47962 _swigc__p_wxFilePickerCtrl,
47963 _swigc__p_wxFileSystem,
47964 _swigc__p_wxFlexGridSizer,
47965 _swigc__p_wxFocusEvent,
47966 _swigc__p_wxFont,
47967 _swigc__p_wxFontPickerCtrl,
47968 _swigc__p_wxFontPickerEvent,
47969 _swigc__p_wxGBSizerItem,
47970 _swigc__p_wxGIFHandler,
47971 _swigc__p_wxGauge,
47972 _swigc__p_wxGenericDirCtrl,
47973 _swigc__p_wxGenericDragImage,
47974 _swigc__p_wxGridBagSizer,
47975 _swigc__p_wxGridSizer,
47976 _swigc__p_wxHelpEvent,
47977 _swigc__p_wxHelpProvider,
47978 _swigc__p_wxHyperlinkCtrl,
47979 _swigc__p_wxHyperlinkEvent,
47980 _swigc__p_wxICOHandler,
47981 _swigc__p_wxIcon,
47982 _swigc__p_wxIconizeEvent,
47983 _swigc__p_wxIdleEvent,
47984 _swigc__p_wxImage,
47985 _swigc__p_wxImageHandler,
47986 _swigc__p_wxImageList,
47987 _swigc__p_wxIndividualLayoutConstraint,
47988 _swigc__p_wxInitDialogEvent,
47989 _swigc__p_wxItemContainer,
47990 _swigc__p_wxJPEGHandler,
47991 _swigc__p_wxKeyEvent,
47992 _swigc__p_wxLayoutConstraints,
47993 _swigc__p_wxListBox,
47994 _swigc__p_wxListEvent,
47995 _swigc__p_wxListItem,
47996 _swigc__p_wxListItemAttr,
47997 _swigc__p_wxListView,
47998 _swigc__p_wxListbook,
47999 _swigc__p_wxListbookEvent,
48000 _swigc__p_wxMaximizeEvent,
48001 _swigc__p_wxMemoryDC,
48002 _swigc__p_wxMenu,
48003 _swigc__p_wxMenuBar,
48004 _swigc__p_wxMenuEvent,
48005 _swigc__p_wxMenuItem,
48006 _swigc__p_wxMouseCaptureChangedEvent,
48007 _swigc__p_wxMouseCaptureLostEvent,
48008 _swigc__p_wxMouseEvent,
48009 _swigc__p_wxMoveEvent,
48010 _swigc__p_wxNavigationKeyEvent,
48011 _swigc__p_wxNcPaintEvent,
48012 _swigc__p_wxNotebook,
48013 _swigc__p_wxNotebookEvent,
48014 _swigc__p_wxNotifyEvent,
48015 _swigc__p_wxObject,
48016 _swigc__p_wxPCXHandler,
48017 _swigc__p_wxPNGHandler,
48018 _swigc__p_wxPNMHandler,
48019 _swigc__p_wxPaintEvent,
48020 _swigc__p_wxPaletteChangedEvent,
48021 _swigc__p_wxPaperSize,
48022 _swigc__p_wxPickerBase,
48023 _swigc__p_wxPoint,
48024 _swigc__p_wxPyApp,
48025 _swigc__p_wxPyCommandEvent,
48026 _swigc__p_wxPyControl,
48027 _swigc__p_wxPyEvent,
48028 _swigc__p_wxPyImageHandler,
48029 _swigc__p_wxPyListCtrl,
48030 _swigc__p_wxPySizer,
48031 _swigc__p_wxPyTreeCtrl,
48032 _swigc__p_wxPyTreeItemData,
48033 _swigc__p_wxPyValidator,
48034 _swigc__p_wxQueryNewPaletteEvent,
48035 _swigc__p_wxRadioBox,
48036 _swigc__p_wxRadioButton,
48037 _swigc__p_wxRect,
48038 _swigc__p_wxScrollBar,
48039 _swigc__p_wxScrollEvent,
48040 _swigc__p_wxScrollWinEvent,
48041 _swigc__p_wxSetCursorEvent,
48042 _swigc__p_wxShowEvent,
48043 _swigc__p_wxSimpleHelpProvider,
48044 _swigc__p_wxSize,
48045 _swigc__p_wxSizeEvent,
48046 _swigc__p_wxSizer,
48047 _swigc__p_wxSizerItem,
48048 _swigc__p_wxSlider,
48049 _swigc__p_wxSpinButton,
48050 _swigc__p_wxSpinCtrl,
48051 _swigc__p_wxSpinEvent,
48052 _swigc__p_wxStaticBitmap,
48053 _swigc__p_wxStaticBox,
48054 _swigc__p_wxStaticBoxSizer,
48055 _swigc__p_wxStaticLine,
48056 _swigc__p_wxStaticText,
48057 _swigc__p_wxStdDialogButtonSizer,
48058 _swigc__p_wxString,
48059 _swigc__p_wxSysColourChangedEvent,
48060 _swigc__p_wxTIFFHandler,
48061 _swigc__p_wxTextAttr,
48062 _swigc__p_wxTextCtrl,
48063 _swigc__p_wxTextUrlEvent,
48064 _swigc__p_wxToggleButton,
48065 _swigc__p_wxToolBar,
48066 _swigc__p_wxToolBarBase,
48067 _swigc__p_wxToolBarToolBase,
48068 _swigc__p_wxToolbook,
48069 _swigc__p_wxToolbookEvent,
48070 _swigc__p_wxTreeEvent,
48071 _swigc__p_wxTreeItemId,
48072 _swigc__p_wxTreebook,
48073 _swigc__p_wxTreebookEvent,
48074 _swigc__p_wxUpdateUIEvent,
48075 _swigc__p_wxValidator,
48076 _swigc__p_wxVisualAttributes,
48077 _swigc__p_wxWindow,
48078 _swigc__p_wxWindowBase,
48079 _swigc__p_wxWindowCreateEvent,
48080 _swigc__p_wxWindowDestroyEvent,
48081 _swigc__p_wxXPMHandler,
48082 };
48083
48084
48085 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48086
48087 static swig_const_info swig_const_table[] = {
48088 {0, 0, 0, 0.0, 0, 0}};
48089
48090 #ifdef __cplusplus
48091 }
48092 #endif
48093 /* -----------------------------------------------------------------------------
48094 * Type initialization:
48095 * This problem is tough by the requirement that no dynamic
48096 * memory is used. Also, since swig_type_info structures store pointers to
48097 * swig_cast_info structures and swig_cast_info structures store pointers back
48098 * to swig_type_info structures, we need some lookup code at initialization.
48099 * The idea is that swig generates all the structures that are needed.
48100 * The runtime then collects these partially filled structures.
48101 * The SWIG_InitializeModule function takes these initial arrays out of
48102 * swig_module, and does all the lookup, filling in the swig_module.types
48103 * array with the correct data and linking the correct swig_cast_info
48104 * structures together.
48105 *
48106 * The generated swig_type_info structures are assigned staticly to an initial
48107 * array. We just loop though that array, and handle each type individually.
48108 * First we lookup if this type has been already loaded, and if so, use the
48109 * loaded structure instead of the generated one. Then we have to fill in the
48110 * cast linked list. The cast data is initially stored in something like a
48111 * two-dimensional array. Each row corresponds to a type (there are the same
48112 * number of rows as there are in the swig_type_initial array). Each entry in
48113 * a column is one of the swig_cast_info structures for that type.
48114 * The cast_initial array is actually an array of arrays, because each row has
48115 * a variable number of columns. So to actually build the cast linked list,
48116 * we find the array of casts associated with the type, and loop through it
48117 * adding the casts to the list. The one last trick we need to do is making
48118 * sure the type pointer in the swig_cast_info struct is correct.
48119 *
48120 * First off, we lookup the cast->type name to see if it is already loaded.
48121 * There are three cases to handle:
48122 * 1) If the cast->type has already been loaded AND the type we are adding
48123 * casting info to has not been loaded (it is in this module), THEN we
48124 * replace the cast->type pointer with the type pointer that has already
48125 * been loaded.
48126 * 2) If BOTH types (the one we are adding casting info to, and the
48127 * cast->type) are loaded, THEN the cast info has already been loaded by
48128 * the previous module so we just ignore it.
48129 * 3) Finally, if cast->type has not already been loaded, then we add that
48130 * swig_cast_info to the linked list (because the cast->type) pointer will
48131 * be correct.
48132 * ----------------------------------------------------------------------------- */
48133
48134 #ifdef __cplusplus
48135 extern "C" {
48136 #if 0
48137 } /* c-mode */
48138 #endif
48139 #endif
48140
48141 #if 0
48142 #define SWIGRUNTIME_DEBUG
48143 #endif
48144
48145 SWIGRUNTIME void
48146 SWIG_InitializeModule(void *clientdata) {
48147 size_t i;
48148 swig_module_info *module_head;
48149 static int init_run = 0;
48150
48151 clientdata = clientdata;
48152
48153 if (init_run) return;
48154 init_run = 1;
48155
48156 /* Initialize the swig_module */
48157 swig_module.type_initial = swig_type_initial;
48158 swig_module.cast_initial = swig_cast_initial;
48159
48160 /* Try and load any already created modules */
48161 module_head = SWIG_GetModule(clientdata);
48162 if (module_head) {
48163 swig_module.next = module_head->next;
48164 module_head->next = &swig_module;
48165 } else {
48166 /* This is the first module loaded */
48167 swig_module.next = &swig_module;
48168 SWIG_SetModule(clientdata, &swig_module);
48169 }
48170
48171 /* Now work on filling in swig_module.types */
48172 #ifdef SWIGRUNTIME_DEBUG
48173 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48174 #endif
48175 for (i = 0; i < swig_module.size; ++i) {
48176 swig_type_info *type = 0;
48177 swig_type_info *ret;
48178 swig_cast_info *cast;
48179
48180 #ifdef SWIGRUNTIME_DEBUG
48181 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48182 #endif
48183
48184 /* if there is another module already loaded */
48185 if (swig_module.next != &swig_module) {
48186 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
48187 }
48188 if (type) {
48189 /* Overwrite clientdata field */
48190 #ifdef SWIGRUNTIME_DEBUG
48191 printf("SWIG_InitializeModule: found type %s\n", type->name);
48192 #endif
48193 if (swig_module.type_initial[i]->clientdata) {
48194 type->clientdata = swig_module.type_initial[i]->clientdata;
48195 #ifdef SWIGRUNTIME_DEBUG
48196 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48197 #endif
48198 }
48199 } else {
48200 type = swig_module.type_initial[i];
48201 }
48202
48203 /* Insert casting types */
48204 cast = swig_module.cast_initial[i];
48205 while (cast->type) {
48206 /* Don't need to add information already in the list */
48207 ret = 0;
48208 #ifdef SWIGRUNTIME_DEBUG
48209 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48210 #endif
48211 if (swig_module.next != &swig_module) {
48212 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48213 #ifdef SWIGRUNTIME_DEBUG
48214 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48215 #endif
48216 }
48217 if (ret) {
48218 if (type == swig_module.type_initial[i]) {
48219 #ifdef SWIGRUNTIME_DEBUG
48220 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48221 #endif
48222 cast->type = ret;
48223 ret = 0;
48224 } else {
48225 /* Check for casting already in the list */
48226 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48227 #ifdef SWIGRUNTIME_DEBUG
48228 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48229 #endif
48230 if (!ocast) ret = 0;
48231 }
48232 }
48233
48234 if (!ret) {
48235 #ifdef SWIGRUNTIME_DEBUG
48236 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48237 #endif
48238 if (type->cast) {
48239 type->cast->prev = cast;
48240 cast->next = type->cast;
48241 }
48242 type->cast = cast;
48243 }
48244 cast++;
48245 }
48246 /* Set entry in modules->types array equal to the type */
48247 swig_module.types[i] = type;
48248 }
48249 swig_module.types[i] = 0;
48250
48251 #ifdef SWIGRUNTIME_DEBUG
48252 printf("**** SWIG_InitializeModule: Cast List ******\n");
48253 for (i = 0; i < swig_module.size; ++i) {
48254 int j = 0;
48255 swig_cast_info *cast = swig_module.cast_initial[i];
48256 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48257 while (cast->type) {
48258 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48259 cast++;
48260 ++j;
48261 }
48262 printf("---- Total casts: %d\n",j);
48263 }
48264 printf("**** SWIG_InitializeModule: Cast List ******\n");
48265 #endif
48266 }
48267
48268 /* This function will propagate the clientdata field of type to
48269 * any new swig_type_info structures that have been added into the list
48270 * of equivalent types. It is like calling
48271 * SWIG_TypeClientData(type, clientdata) a second time.
48272 */
48273 SWIGRUNTIME void
48274 SWIG_PropagateClientData(void) {
48275 size_t i;
48276 swig_cast_info *equiv;
48277 static int init_run = 0;
48278
48279 if (init_run) return;
48280 init_run = 1;
48281
48282 for (i = 0; i < swig_module.size; i++) {
48283 if (swig_module.types[i]->clientdata) {
48284 equiv = swig_module.types[i]->cast;
48285 while (equiv) {
48286 if (!equiv->converter) {
48287 if (equiv->type && !equiv->type->clientdata)
48288 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48289 }
48290 equiv = equiv->next;
48291 }
48292 }
48293 }
48294 }
48295
48296 #ifdef __cplusplus
48297 #if 0
48298 {
48299 /* c-mode */
48300 #endif
48301 }
48302 #endif
48303
48304
48305
48306 #ifdef __cplusplus
48307 extern "C" {
48308 #endif
48309
48310 /* Python-specific SWIG API */
48311 #define SWIG_newvarlink() SWIG_Python_newvarlink()
48312 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48313 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48314
48315 /* -----------------------------------------------------------------------------
48316 * global variable support code.
48317 * ----------------------------------------------------------------------------- */
48318
48319 typedef struct swig_globalvar {
48320 char *name; /* Name of global variable */
48321 PyObject *(*get_attr)(void); /* Return the current value */
48322 int (*set_attr)(PyObject *); /* Set the value */
48323 struct swig_globalvar *next;
48324 } swig_globalvar;
48325
48326 typedef struct swig_varlinkobject {
48327 PyObject_HEAD
48328 swig_globalvar *vars;
48329 } swig_varlinkobject;
48330
48331 SWIGINTERN PyObject *
48332 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48333 return PyString_FromString("<Swig global variables>");
48334 }
48335
48336 SWIGINTERN PyObject *
48337 swig_varlink_str(swig_varlinkobject *v) {
48338 PyObject *str = PyString_FromString("(");
48339 swig_globalvar *var;
48340 for (var = v->vars; var; var=var->next) {
48341 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48342 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48343 }
48344 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48345 return str;
48346 }
48347
48348 SWIGINTERN int
48349 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48350 PyObject *str = swig_varlink_str(v);
48351 fprintf(fp,"Swig global variables ");
48352 fprintf(fp,"%s\n", PyString_AsString(str));
48353 Py_DECREF(str);
48354 return 0;
48355 }
48356
48357 SWIGINTERN void
48358 swig_varlink_dealloc(swig_varlinkobject *v) {
48359 swig_globalvar *var = v->vars;
48360 while (var) {
48361 swig_globalvar *n = var->next;
48362 free(var->name);
48363 free(var);
48364 var = n;
48365 }
48366 }
48367
48368 SWIGINTERN PyObject *
48369 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48370 PyObject *res = NULL;
48371 swig_globalvar *var = v->vars;
48372 while (var) {
48373 if (strcmp(var->name,n) == 0) {
48374 res = (*var->get_attr)();
48375 break;
48376 }
48377 var = var->next;
48378 }
48379 if (res == NULL && !PyErr_Occurred()) {
48380 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
48381 }
48382 return res;
48383 }
48384
48385 SWIGINTERN int
48386 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48387 int res = 1;
48388 swig_globalvar *var = v->vars;
48389 while (var) {
48390 if (strcmp(var->name,n) == 0) {
48391 res = (*var->set_attr)(p);
48392 break;
48393 }
48394 var = var->next;
48395 }
48396 if (res == 1 && !PyErr_Occurred()) {
48397 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
48398 }
48399 return res;
48400 }
48401
48402 SWIGINTERN PyTypeObject*
48403 swig_varlink_type(void) {
48404 static char varlink__doc__[] = "Swig var link object";
48405 static PyTypeObject varlink_type;
48406 static int type_init = 0;
48407 if (!type_init) {
48408 const PyTypeObject tmp
48409 = {
48410 PyObject_HEAD_INIT(NULL)
48411 0, /* Number of items in variable part (ob_size) */
48412 (char *)"swigvarlink", /* Type name (tp_name) */
48413 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48414 0, /* Itemsize (tp_itemsize) */
48415 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48416 (printfunc) swig_varlink_print, /* Print (tp_print) */
48417 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48418 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48419 0, /* tp_compare */
48420 (reprfunc) swig_varlink_repr, /* tp_repr */
48421 0, /* tp_as_number */
48422 0, /* tp_as_sequence */
48423 0, /* tp_as_mapping */
48424 0, /* tp_hash */
48425 0, /* tp_call */
48426 (reprfunc)swig_varlink_str, /* tp_str */
48427 0, /* tp_getattro */
48428 0, /* tp_setattro */
48429 0, /* tp_as_buffer */
48430 0, /* tp_flags */
48431 varlink__doc__, /* tp_doc */
48432 0, /* tp_traverse */
48433 0, /* tp_clear */
48434 0, /* tp_richcompare */
48435 0, /* tp_weaklistoffset */
48436 #if PY_VERSION_HEX >= 0x02020000
48437 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48438 #endif
48439 #if PY_VERSION_HEX >= 0x02030000
48440 0, /* tp_del */
48441 #endif
48442 #ifdef COUNT_ALLOCS
48443 0,0,0,0 /* tp_alloc -> tp_next */
48444 #endif
48445 };
48446 varlink_type = tmp;
48447 varlink_type.ob_type = &PyType_Type;
48448 type_init = 1;
48449 }
48450 return &varlink_type;
48451 }
48452
48453 /* Create a variable linking object for use later */
48454 SWIGINTERN PyObject *
48455 SWIG_Python_newvarlink(void) {
48456 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48457 if (result) {
48458 result->vars = 0;
48459 }
48460 return ((PyObject*) result);
48461 }
48462
48463 SWIGINTERN void
48464 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48465 swig_varlinkobject *v = (swig_varlinkobject *) p;
48466 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48467 if (gv) {
48468 size_t size = strlen(name)+1;
48469 gv->name = (char *)malloc(size);
48470 if (gv->name) {
48471 strncpy(gv->name,name,size);
48472 gv->get_attr = get_attr;
48473 gv->set_attr = set_attr;
48474 gv->next = v->vars;
48475 }
48476 }
48477 v->vars = gv;
48478 }
48479
48480 SWIGINTERN PyObject *
48481 SWIG_globals() {
48482 static PyObject *_SWIG_globals = 0;
48483 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
48484 return _SWIG_globals;
48485 }
48486
48487 /* -----------------------------------------------------------------------------
48488 * constants/methods manipulation
48489 * ----------------------------------------------------------------------------- */
48490
48491 /* Install Constants */
48492 SWIGINTERN void
48493 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
48494 PyObject *obj = 0;
48495 size_t i;
48496 for (i = 0; constants[i].type; ++i) {
48497 switch(constants[i].type) {
48498 case SWIG_PY_POINTER:
48499 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
48500 break;
48501 case SWIG_PY_BINARY:
48502 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
48503 break;
48504 default:
48505 obj = 0;
48506 break;
48507 }
48508 if (obj) {
48509 PyDict_SetItemString(d, constants[i].name, obj);
48510 Py_DECREF(obj);
48511 }
48512 }
48513 }
48514
48515 /* -----------------------------------------------------------------------------*/
48516 /* Fix SwigMethods to carry the callback ptrs when needed */
48517 /* -----------------------------------------------------------------------------*/
48518
48519 SWIGINTERN void
48520 SWIG_Python_FixMethods(PyMethodDef *methods,
48521 swig_const_info *const_table,
48522 swig_type_info **types,
48523 swig_type_info **types_initial) {
48524 size_t i;
48525 for (i = 0; methods[i].ml_name; ++i) {
48526 const char *c = methods[i].ml_doc;
48527 if (c && (c = strstr(c, "swig_ptr: "))) {
48528 int j;
48529 swig_const_info *ci = 0;
48530 const char *name = c + 10;
48531 for (j = 0; const_table[j].type; ++j) {
48532 if (strncmp(const_table[j].name, name,
48533 strlen(const_table[j].name)) == 0) {
48534 ci = &(const_table[j]);
48535 break;
48536 }
48537 }
48538 if (ci) {
48539 size_t shift = (ci->ptype) - types;
48540 swig_type_info *ty = types_initial[shift];
48541 size_t ldoc = (c - methods[i].ml_doc);
48542 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
48543 char *ndoc = (char*)malloc(ldoc + lptr + 10);
48544 if (ndoc) {
48545 char *buff = ndoc;
48546 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
48547 if (ptr) {
48548 strncpy(buff, methods[i].ml_doc, ldoc);
48549 buff += ldoc;
48550 strncpy(buff, "swig_ptr: ", 10);
48551 buff += 10;
48552 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
48553 methods[i].ml_doc = ndoc;
48554 }
48555 }
48556 }
48557 }
48558 }
48559 }
48560
48561 #ifdef __cplusplus
48562 }
48563 #endif
48564
48565 /* -----------------------------------------------------------------------------*
48566 * Partial Init method
48567 * -----------------------------------------------------------------------------*/
48568
48569 #ifdef __cplusplus
48570 extern "C"
48571 #endif
48572 SWIGEXPORT void SWIG_init(void) {
48573 PyObject *m, *d;
48574
48575 /* Fix SwigMethods to carry the callback ptrs when needed */
48576 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
48577
48578 m = Py_InitModule((char *) SWIG_name, SwigMethods);
48579 d = PyModule_GetDict(m);
48580
48581 SWIG_InitializeModule(0);
48582 SWIG_InstallConstants(d,swig_const_table);
48583
48584
48585 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
48586 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
48587 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
48588 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
48589 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
48590 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
48591 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
48592 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
48593 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
48594 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
48595 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
48596 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
48597 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
48598 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
48599 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
48600 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
48601 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
48602 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
48603 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
48604 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
48605 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
48606 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
48607 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
48608 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
48609 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
48610 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
48611 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
48612 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
48613 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
48614 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
48615 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
48616 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
48617 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
48618 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
48619 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
48620 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
48621 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
48622 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
48623 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
48624 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
48625 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
48626 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
48627 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
48628 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
48629 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
48630 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
48631 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
48632 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
48633 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
48634 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
48635 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
48636 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
48637 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
48638 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
48639 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
48640 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
48641 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
48642 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
48643 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
48644 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
48645 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
48646 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
48647 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
48648 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
48649 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
48650 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
48651 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
48652 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
48653 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
48654 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
48655 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
48656 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
48657 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
48658 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
48659 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
48660 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
48661 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
48662 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
48663 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
48664 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
48665 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
48666 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
48667 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
48668 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
48669 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
48670 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
48671 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
48672 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
48673 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
48674 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
48675 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
48676 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
48677 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
48678 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
48679 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
48680 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
48681 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
48682 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
48683 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
48684 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
48685 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
48686 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
48687 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
48688 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
48689 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
48690 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
48691 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
48692 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
48693 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
48694 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
48695 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
48696 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
48697 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
48698 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
48699 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
48700 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
48701 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
48702 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
48703 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
48704 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
48705 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
48706 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
48707 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
48708 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
48709 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
48710 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
48711 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
48712 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
48713 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
48714 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
48715 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
48716 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
48717 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
48718 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
48719 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
48720 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
48721 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
48722 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
48723 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
48724 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
48725 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
48726 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
48727 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
48728 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
48729 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
48730 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
48731 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
48732 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
48733 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
48734 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
48735 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
48736 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
48737 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
48738 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
48739 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
48740 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
48741 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
48742 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
48743 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
48744 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
48745 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
48746 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
48747 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
48748 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
48749 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
48750 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
48751 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
48752 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
48753 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
48754 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
48755 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
48756 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
48757 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
48758 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
48759 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
48760 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
48761 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
48762 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
48763 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
48764 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
48765 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
48766 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
48767 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
48768 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
48769 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
48770 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
48771 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
48772 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
48773 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
48774 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
48775 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
48776 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
48777 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
48778 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
48779 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
48780 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
48781 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
48782 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
48783 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
48784 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
48785 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
48786 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
48787 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
48788 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
48789 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
48790 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
48791 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
48792 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
48793 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
48794 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
48795 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
48796 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
48797 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
48798 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
48799 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
48800 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
48801 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
48802 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
48803 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
48804 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
48805 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
48806 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
48807 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
48808 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
48809 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
48810 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
48811 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
48812 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
48813 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
48814 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
48815 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
48816 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
48817 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
48818 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
48819 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
48820 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
48821 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
48822 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
48823 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
48824 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
48825 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
48826 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
48827 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
48828 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
48829 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
48830 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
48831 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
48832 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
48833 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
48834 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
48835 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
48836 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
48837 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
48838 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
48839 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
48840 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
48841 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
48842
48843 // Map renamed classes back to their common name for OOR
48844 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
48845
48846 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
48847 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
48848 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
48849 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
48850 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
48851 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
48852 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
48853 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
48854 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
48855 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
48856 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
48857 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
48858 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
48859 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
48860 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
48861 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
48862 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
48863 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
48864 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
48865 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
48866 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
48867 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
48868 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
48869 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
48870 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
48871 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
48872 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
48873 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
48874 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
48875 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
48876 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
48877 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
48878 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
48879 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
48880 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
48881 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
48882 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
48883 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
48884 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
48885 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
48886 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
48887 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
48888 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
48889 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
48890 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
48891 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
48892 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
48893 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
48894 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
48895 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
48896 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
48897 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
48898 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
48899 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
48900 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
48901 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
48902
48903 // Map renamed classes back to their common name for OOR
48904 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
48905 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
48906
48907 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
48908 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
48909 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
48910 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
48911 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
48912 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
48913 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
48914 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
48915 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
48916 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
48917 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
48918
48919 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
48920
48921 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
48922 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
48923 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
48924 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
48925 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
48926 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
48927 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
48928 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
48929 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
48930 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
48931 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
48932 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
48933 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
48934 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
48935 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
48936 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
48937 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
48938 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
48939 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
48940 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
48941 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
48942 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
48943 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
48944 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
48945 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
48946 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
48947 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
48948 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
48949 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
48950 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
48951 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
48952 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
48953 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
48954 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
48955 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
48956 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
48957 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
48958 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
48959 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
48960 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
48961 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
48962 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
48963 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
48964 }
48965