]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
fixed typo in code for setting alternative locale name
[wxWidgets.git] / wxPython / src / msw / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_bool swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_form_ops_t swig_types[2]
2469 #define SWIGTYPE_p_int swig_types[3]
2470 #define SWIGTYPE_p_long swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2479 #define SWIGTYPE_p_wxArrayString swig_types[13]
2480 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481 #define SWIGTYPE_p_wxBitmap swig_types[15]
2482 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486 #define SWIGTYPE_p_wxButton swig_types[20]
2487 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2488 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2489 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxChoice swig_types[25]
2492 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2493 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2494 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496 #define SWIGTYPE_p_wxCollapsiblePane swig_types[30]
2497 #define SWIGTYPE_p_wxCollapsiblePaneEvent swig_types[31]
2498 #define SWIGTYPE_p_wxColour swig_types[32]
2499 #define SWIGTYPE_p_wxColourPickerCtrl swig_types[33]
2500 #define SWIGTYPE_p_wxColourPickerEvent swig_types[34]
2501 #define SWIGTYPE_p_wxComboBox swig_types[35]
2502 #define SWIGTYPE_p_wxCommandEvent swig_types[36]
2503 #define SWIGTYPE_p_wxContextHelp swig_types[37]
2504 #define SWIGTYPE_p_wxContextHelpButton swig_types[38]
2505 #define SWIGTYPE_p_wxContextMenuEvent swig_types[39]
2506 #define SWIGTYPE_p_wxControl swig_types[40]
2507 #define SWIGTYPE_p_wxControlWithItems swig_types[41]
2508 #define SWIGTYPE_p_wxCursor swig_types[42]
2509 #define SWIGTYPE_p_wxDC swig_types[43]
2510 #define SWIGTYPE_p_wxDateEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[45]
2512 #define SWIGTYPE_p_wxDateTime swig_types[46]
2513 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[47]
2514 #define SWIGTYPE_p_wxDirPickerCtrl swig_types[48]
2515 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[49]
2516 #define SWIGTYPE_p_wxDropFilesEvent swig_types[50]
2517 #define SWIGTYPE_p_wxDuplexMode swig_types[51]
2518 #define SWIGTYPE_p_wxEraseEvent swig_types[52]
2519 #define SWIGTYPE_p_wxEvent swig_types[53]
2520 #define SWIGTYPE_p_wxEvtHandler swig_types[54]
2521 #define SWIGTYPE_p_wxFSFile swig_types[55]
2522 #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[56]
2523 #define SWIGTYPE_p_wxFilePickerCtrl swig_types[57]
2524 #define SWIGTYPE_p_wxFileSystem swig_types[58]
2525 #define SWIGTYPE_p_wxFlexGridSizer swig_types[59]
2526 #define SWIGTYPE_p_wxFocusEvent swig_types[60]
2527 #define SWIGTYPE_p_wxFont swig_types[61]
2528 #define SWIGTYPE_p_wxFontPickerCtrl swig_types[62]
2529 #define SWIGTYPE_p_wxFontPickerEvent swig_types[63]
2530 #define SWIGTYPE_p_wxGBSizerItem swig_types[64]
2531 #define SWIGTYPE_p_wxGIFHandler swig_types[65]
2532 #define SWIGTYPE_p_wxGauge swig_types[66]
2533 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[67]
2534 #define SWIGTYPE_p_wxGenericDragImage swig_types[68]
2535 #define SWIGTYPE_p_wxGridBagSizer swig_types[69]
2536 #define SWIGTYPE_p_wxGridSizer swig_types[70]
2537 #define SWIGTYPE_p_wxHelpEvent swig_types[71]
2538 #define SWIGTYPE_p_wxHelpProvider swig_types[72]
2539 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[73]
2540 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[74]
2541 #define SWIGTYPE_p_wxICOHandler swig_types[75]
2542 #define SWIGTYPE_p_wxIcon swig_types[76]
2543 #define SWIGTYPE_p_wxIconizeEvent swig_types[77]
2544 #define SWIGTYPE_p_wxIdleEvent swig_types[78]
2545 #define SWIGTYPE_p_wxImage swig_types[79]
2546 #define SWIGTYPE_p_wxImageHandler swig_types[80]
2547 #define SWIGTYPE_p_wxImageList swig_types[81]
2548 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[82]
2549 #define SWIGTYPE_p_wxInitDialogEvent swig_types[83]
2550 #define SWIGTYPE_p_wxItemContainer swig_types[84]
2551 #define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552 #define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553 #define SWIGTYPE_p_wxLayoutConstraints swig_types[87]
2554 #define SWIGTYPE_p_wxListBox swig_types[88]
2555 #define SWIGTYPE_p_wxListEvent swig_types[89]
2556 #define SWIGTYPE_p_wxListItem swig_types[90]
2557 #define SWIGTYPE_p_wxListItemAttr swig_types[91]
2558 #define SWIGTYPE_p_wxListView swig_types[92]
2559 #define SWIGTYPE_p_wxListbook swig_types[93]
2560 #define SWIGTYPE_p_wxListbookEvent swig_types[94]
2561 #define SWIGTYPE_p_wxMaximizeEvent swig_types[95]
2562 #define SWIGTYPE_p_wxMemoryDC swig_types[96]
2563 #define SWIGTYPE_p_wxMenu swig_types[97]
2564 #define SWIGTYPE_p_wxMenuBar swig_types[98]
2565 #define SWIGTYPE_p_wxMenuEvent swig_types[99]
2566 #define SWIGTYPE_p_wxMenuItem swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[105]
2572 #define SWIGTYPE_p_wxNcPaintEvent swig_types[106]
2573 #define SWIGTYPE_p_wxNotebook swig_types[107]
2574 #define SWIGTYPE_p_wxNotebookEvent swig_types[108]
2575 #define SWIGTYPE_p_wxNotifyEvent swig_types[109]
2576 #define SWIGTYPE_p_wxObject swig_types[110]
2577 #define SWIGTYPE_p_wxPCXHandler swig_types[111]
2578 #define SWIGTYPE_p_wxPNGHandler swig_types[112]
2579 #define SWIGTYPE_p_wxPNMHandler swig_types[113]
2580 #define SWIGTYPE_p_wxPaintEvent swig_types[114]
2581 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[115]
2582 #define SWIGTYPE_p_wxPaperSize swig_types[116]
2583 #define SWIGTYPE_p_wxPickerBase swig_types[117]
2584 #define SWIGTYPE_p_wxPoint swig_types[118]
2585 #define SWIGTYPE_p_wxPyApp swig_types[119]
2586 #define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPyControl swig_types[121]
2588 #define SWIGTYPE_p_wxPyEvent swig_types[122]
2589 #define SWIGTYPE_p_wxPyImageHandler swig_types[123]
2590 #define SWIGTYPE_p_wxPyListCtrl swig_types[124]
2591 #define SWIGTYPE_p_wxPySizer swig_types[125]
2592 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[126]
2593 #define SWIGTYPE_p_wxPyTreeItemData swig_types[127]
2594 #define SWIGTYPE_p_wxPyValidator swig_types[128]
2595 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596 #define SWIGTYPE_p_wxRadioBox swig_types[130]
2597 #define SWIGTYPE_p_wxRadioButton swig_types[131]
2598 #define SWIGTYPE_p_wxRect swig_types[132]
2599 #define SWIGTYPE_p_wxScrollBar swig_types[133]
2600 #define SWIGTYPE_p_wxScrollEvent swig_types[134]
2601 #define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
2602 #define SWIGTYPE_p_wxSearchCtrl swig_types[136]
2603 #define SWIGTYPE_p_wxSetCursorEvent swig_types[137]
2604 #define SWIGTYPE_p_wxShowEvent swig_types[138]
2605 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[139]
2606 #define SWIGTYPE_p_wxSize swig_types[140]
2607 #define SWIGTYPE_p_wxSizeEvent swig_types[141]
2608 #define SWIGTYPE_p_wxSizer swig_types[142]
2609 #define SWIGTYPE_p_wxSizerItem swig_types[143]
2610 #define SWIGTYPE_p_wxSlider swig_types[144]
2611 #define SWIGTYPE_p_wxSpinButton swig_types[145]
2612 #define SWIGTYPE_p_wxSpinCtrl swig_types[146]
2613 #define SWIGTYPE_p_wxSpinEvent swig_types[147]
2614 #define SWIGTYPE_p_wxStaticBitmap swig_types[148]
2615 #define SWIGTYPE_p_wxStaticBox swig_types[149]
2616 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[150]
2617 #define SWIGTYPE_p_wxStaticLine swig_types[151]
2618 #define SWIGTYPE_p_wxStaticText swig_types[152]
2619 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[153]
2620 #define SWIGTYPE_p_wxString swig_types[154]
2621 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[155]
2622 #define SWIGTYPE_p_wxTGAHandler swig_types[156]
2623 #define SWIGTYPE_p_wxTIFFHandler swig_types[157]
2624 #define SWIGTYPE_p_wxTextAttr swig_types[158]
2625 #define SWIGTYPE_p_wxTextCtrl swig_types[159]
2626 #define SWIGTYPE_p_wxTextUrlEvent swig_types[160]
2627 #define SWIGTYPE_p_wxToggleButton swig_types[161]
2628 #define SWIGTYPE_p_wxToolBar swig_types[162]
2629 #define SWIGTYPE_p_wxToolBarBase swig_types[163]
2630 #define SWIGTYPE_p_wxToolBarToolBase swig_types[164]
2631 #define SWIGTYPE_p_wxToolbook swig_types[165]
2632 #define SWIGTYPE_p_wxToolbookEvent swig_types[166]
2633 #define SWIGTYPE_p_wxTreeEvent swig_types[167]
2634 #define SWIGTYPE_p_wxTreeItemId swig_types[168]
2635 #define SWIGTYPE_p_wxTreebook swig_types[169]
2636 #define SWIGTYPE_p_wxTreebookEvent swig_types[170]
2637 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[171]
2638 #define SWIGTYPE_p_wxValidator swig_types[172]
2639 #define SWIGTYPE_p_wxVisualAttributes swig_types[173]
2640 #define SWIGTYPE_p_wxWindow swig_types[174]
2641 #define SWIGTYPE_p_wxWindowBase swig_types[175]
2642 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[176]
2643 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[177]
2644 #define SWIGTYPE_p_wxXPMHandler swig_types[178]
2645 static swig_type_info *swig_types[180];
2646 static swig_module_info swig_module = {swig_types, 179, 0, 0, 0, 0};
2647 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2648 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2649
2650 /* -------- TYPES TABLE (END) -------- */
2651
2652 #if (PY_VERSION_HEX <= 0x02000000)
2653 # if !defined(SWIG_PYTHON_CLASSIC)
2654 # error "This python version requires to use swig with the '-classic' option"
2655 # endif
2656 #endif
2657 #if (PY_VERSION_HEX <= 0x02020000)
2658 # error "This python version requires to use swig with the '-nomodern' option"
2659 #endif
2660 #if (PY_VERSION_HEX <= 0x02020000)
2661 # error "This python version requires to use swig with the '-nomodernargs' option"
2662 #endif
2663 #ifndef METH_O
2664 # error "This python version requires to use swig with the '-nofastunpack' option"
2665 #endif
2666
2667 /*-----------------------------------------------
2668 @(target):= _controls_.so
2669 ------------------------------------------------*/
2670 #define SWIG_init init_controls_
2671
2672 #define SWIG_name "_controls_"
2673
2674 #define SWIGVERSION 0x010329
2675
2676
2677 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2678 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2679
2680
2681 #include <stdexcept>
2682
2683
2684 namespace swig {
2685 class PyObject_ptr {
2686 protected:
2687 PyObject *_obj;
2688
2689 public:
2690 PyObject_ptr() :_obj(0)
2691 {
2692 }
2693
2694 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2695 {
2696 Py_XINCREF(_obj);
2697 }
2698
2699 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2700 {
2701 if (initial_ref) Py_XINCREF(_obj);
2702 }
2703
2704 PyObject_ptr & operator=(const PyObject_ptr& item)
2705 {
2706 Py_XINCREF(item._obj);
2707 Py_XDECREF(_obj);
2708 _obj = item._obj;
2709 return *this;
2710 }
2711
2712 ~PyObject_ptr()
2713 {
2714 Py_XDECREF(_obj);
2715 }
2716
2717 operator PyObject *() const
2718 {
2719 return _obj;
2720 }
2721
2722 PyObject *operator->() const
2723 {
2724 return _obj;
2725 }
2726 };
2727 }
2728
2729
2730 namespace swig {
2731 struct PyObject_var : PyObject_ptr {
2732 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2733
2734 PyObject_var & operator = (PyObject* obj)
2735 {
2736 Py_XDECREF(_obj);
2737 _obj = obj;
2738 return *this;
2739 }
2740 };
2741 }
2742
2743
2744 #include "wx/wxPython/wxPython.h"
2745 #include "wx/wxPython/pyclasses.h"
2746
2747 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2748 static const wxString wxPyEmptyString(wxEmptyString);
2749 static const wxString wxPyControlNameStr(wxControlNameStr);
2750
2751 const wxArrayString wxPyEmptyStringArray;
2752
2753 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2754
2755 #define SWIG_From_long PyInt_FromLong
2756
2757
2758 SWIGINTERNINLINE PyObject *
2759 SWIG_From_int (int value)
2760 {
2761 return SWIG_From_long (value);
2762 }
2763
2764
2765 #include <limits.h>
2766 #ifndef LLONG_MIN
2767 # define LLONG_MIN LONG_LONG_MIN
2768 #endif
2769 #ifndef LLONG_MAX
2770 # define LLONG_MAX LONG_LONG_MAX
2771 #endif
2772 #ifndef ULLONG_MAX
2773 # define ULLONG_MAX ULONG_LONG_MAX
2774 #endif
2775
2776
2777 SWIGINTERN int
2778 SWIG_AsVal_long (PyObject* obj, long* val)
2779 {
2780 if (PyNumber_Check(obj)) {
2781 if (val) *val = PyInt_AsLong(obj);
2782 return SWIG_OK;
2783 }
2784 return SWIG_TypeError;
2785 }
2786
2787
2788 SWIGINTERN int
2789 SWIG_AsVal_int (PyObject * obj, int *val)
2790 {
2791 long v;
2792 int res = SWIG_AsVal_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v < INT_MIN || v > INT_MAX)) {
2795 return SWIG_OverflowError;
2796 } else {
2797 if (val) *val = static_cast< int >(v);
2798 }
2799 }
2800 return res;
2801 }
2802
2803 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2804
2805 SWIGINTERN int
2806 SWIG_AsVal_bool (PyObject *obj, bool *val)
2807 {
2808 if (obj == Py_True) {
2809 if (val) *val = true;
2810 return SWIG_OK;
2811 } else if (obj == Py_False) {
2812 if (val) *val = false;
2813 return SWIG_OK;
2814 } else {
2815 long v = 0;
2816 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2817 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2818 return res;
2819 }
2820 }
2821
2822 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2823 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2824 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2825 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2826 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2827 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2828 static const wxString wxPyStaticLineNameStr(wxStaticLineNameStr);
2829
2830 #include <wx/checklst.h>
2831
2832 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2833 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2834 if (clientData)
2835 {
2836 wxPyClientData* data = new wxPyClientData(clientData);
2837 self->Insert(item, pos, data);
2838 }
2839 else
2840 self->Insert(item, pos);
2841 }
2842
2843 SWIGINTERN int
2844 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2845 {
2846 long v = 0;
2847 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2848 return SWIG_TypeError;
2849 }
2850 else if (val)
2851 *val = (unsigned long)v;
2852 return SWIG_OK;
2853 }
2854
2855
2856 SWIGINTERN int
2857 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2858 {
2859 unsigned long v;
2860 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2861 if (SWIG_IsOK(res)) {
2862 if ((v > UINT_MAX)) {
2863 return SWIG_OverflowError;
2864 } else {
2865 if (val) *val = static_cast< unsigned int >(v);
2866 }
2867 }
2868 return res;
2869 }
2870
2871 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2872 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2873 wxArrayInt lst;
2874 self->GetSelections(lst);
2875 PyObject *tup = PyTuple_New(lst.GetCount());
2876 for (size_t i=0; i<lst.GetCount(); i++)
2877 {
2878 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2879 }
2880 wxPyEndBlockThreads(blocked);
2881 return tup;
2882 }
2883 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2884 #ifdef __WXMSW__
2885 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2886 self->GetItem(item)->SetTextColour(c);
2887 #endif
2888 }
2889 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2890 #ifdef __WXMSW__
2891 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2892 self->GetItem(item)->SetBackgroundColour(c);
2893 #endif
2894 }
2895 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2896 #ifdef __WXMSW__
2897 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2898 self->GetItem(item)->SetFont(f);
2899 #endif
2900 }
2901 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2902 SWIGINTERN void wxTextCtrl_MacCheckSpelling(wxTextCtrl *self,bool check){}
2903 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2904 self->AppendText(text);
2905 }
2906 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2907 return self->GetValue().Mid(from, to - from);
2908 }
2909 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2910 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2911 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2912 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2913 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2914
2915 SWIGINTERNINLINE PyObject*
2916 SWIG_From_unsigned_SS_long (unsigned long value)
2917 {
2918 return (value > LONG_MAX) ?
2919 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2920 }
2921
2922
2923 SWIGINTERNINLINE PyObject *
2924 SWIG_From_size_t (size_t value)
2925 {
2926 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2927 }
2928
2929
2930 SWIGINTERNINLINE PyObject *
2931 SWIG_From_unsigned_SS_int (unsigned int value)
2932 {
2933 return SWIG_From_unsigned_SS_long (value);
2934 }
2935
2936
2937 #include <wx/slider.h>
2938
2939
2940 static const wxString wxPySliderNameStr(wxSliderNameStr);
2941 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2942
2943 #if !wxUSE_TOGGLEBTN
2944 // implement dummy items for platforms that don't have this class
2945
2946 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2947
2948 class wxToggleButton : public wxControl
2949 {
2950 public:
2951 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2952 const wxPoint&, const wxSize&, long,
2953 const wxValidator&, const wxString&)
2954 { wxPyRaiseNotImplemented(); }
2955
2956 wxToggleButton()
2957 { wxPyRaiseNotImplemented(); }
2958 };
2959 #endif
2960
2961 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2962
2963 SWIGINTERNINLINE int
2964 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2965 {
2966 unsigned long v;
2967 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2968 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2969 return res;
2970 }
2971
2972 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2973 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2974 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2975 if (udata) {
2976 Py_INCREF(udata->m_obj);
2977 return udata->m_obj;
2978 } else {
2979 Py_INCREF(Py_None);
2980 return Py_None;
2981 }
2982 }
2983 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2984 self->SetClientData(new wxPyUserData(clientData));
2985 }
2986 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){
2987 wxPyUserData* udata = NULL;
2988 if (clientData && clientData != Py_None)
2989 udata = new wxPyUserData(clientData);
2990 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2991 shortHelp, longHelp, udata);
2992 }
2993 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){
2994 wxPyUserData* udata = NULL;
2995 if (clientData && clientData != Py_None)
2996 udata = new wxPyUserData(clientData);
2997 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2998 shortHelp, longHelp, udata);
2999 }
3000 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
3001 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
3002 if (udata) {
3003 Py_INCREF(udata->m_obj);
3004 return udata->m_obj;
3005 } else {
3006 Py_INCREF(Py_None);
3007 return Py_None;
3008 }
3009 }
3010 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3011 self->SetToolClientData(id, new wxPyUserData(clientData));
3012 }
3013
3014 #include <wx/listctrl.h>
3015
3016 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3017 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3018 // Python aware sorting function for wxPyListCtrl
3019 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3020 int retval = 0;
3021 PyObject* func = (PyObject*)funcPtr;
3022 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3023
3024 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3025 PyObject* result = PyEval_CallObject(func, args);
3026 Py_DECREF(args);
3027 if (result) {
3028 retval = PyInt_AsLong(result);
3029 Py_DECREF(result);
3030 }
3031
3032 wxPyEndBlockThreads(blocked);
3033 return retval;
3034 }
3035
3036 // C++ Version of a Python aware class
3037 class wxPyListCtrl : public wxListCtrl {
3038 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3039 public:
3040 wxPyListCtrl() : wxListCtrl() {}
3041 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3042 const wxPoint& pos,
3043 const wxSize& size,
3044 long style,
3045 const wxValidator& validator,
3046 const wxString& name) :
3047 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3048
3049 bool Create(wxWindow* parent, wxWindowID id,
3050 const wxPoint& pos,
3051 const wxSize& size,
3052 long style,
3053 const wxValidator& validator,
3054 const wxString& name) {
3055 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3056 }
3057
3058 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3059 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3060
3061 // use the virtual version to avoid a confusing assert in the base class
3062 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3063 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3064
3065 PYPRIVATE;
3066 };
3067
3068 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3069
3070 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3071 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3072 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3073 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3074
3075
3076 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3077 wxListItem item;
3078 item.SetMask( wxLIST_MASK_STATE |
3079 wxLIST_MASK_TEXT |
3080 wxLIST_MASK_IMAGE |
3081 wxLIST_MASK_DATA |
3082 wxLIST_SET_ITEM |
3083 wxLIST_MASK_WIDTH |
3084 wxLIST_MASK_FORMAT
3085 );
3086 if (self->GetColumn(col, item))
3087 return new wxListItem(item);
3088 else
3089 return NULL;
3090 }
3091 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3092 wxListItem* info = new wxListItem;
3093 info->m_itemId = itemId;
3094 info->m_col = col;
3095 info->m_mask = 0xFFFF;
3096 self->GetItem(*info);
3097 return info;
3098 }
3099 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3100 wxPoint pos;
3101 self->GetItemPosition(item, pos);
3102 return pos;
3103 }
3104 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3105 wxRect rect;
3106 self->GetItemRect(item, rect, code);
3107 return rect;
3108 }
3109 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3110 if (!PyCallable_Check(func))
3111 return false;
3112 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3113 }
3114 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3115
3116 return self;
3117
3118
3119
3120 }
3121
3122 #include <wx/treectrl.h>
3123 #include "wx/wxPython/pytree.h"
3124
3125 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3126 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3127 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3128 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3129
3130 static wxTreeItemId wxNullTreeItemId;
3131
3132 // C++ version of Python aware wxTreeCtrl
3133 class wxPyTreeCtrl : public wxTreeCtrl {
3134 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3135 public:
3136 wxPyTreeCtrl() : wxTreeCtrl() {}
3137 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3138 const wxPoint& pos,
3139 const wxSize& size,
3140 long style,
3141 const wxValidator& validator,
3142 const wxString& name) :
3143 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3144
3145 bool Create(wxWindow *parent, wxWindowID id,
3146 const wxPoint& pos,
3147 const wxSize& size,
3148 long style,
3149 const wxValidator& validator,
3150 const wxString& name) {
3151 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3152 }
3153
3154
3155 int OnCompareItems(const wxTreeItemId& item1,
3156 const wxTreeItemId& item2) {
3157 int rval = 0;
3158 bool found;
3159 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3160 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3161 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3162 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3163 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3164 Py_DECREF(o1);
3165 Py_DECREF(o2);
3166 }
3167 wxPyEndBlockThreads(blocked);
3168 if (! found)
3169 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3170 return rval;
3171 }
3172 PYPRIVATE;
3173 };
3174
3175 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3176
3177
3178 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3179 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3180 if (data == NULL) {
3181 data = new wxPyTreeItemData();
3182 data->SetId(item); // set the id
3183 self->SetItemData(item, data);
3184 }
3185 return data;
3186 }
3187 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3188 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3189 if (data == NULL) {
3190 data = new wxPyTreeItemData();
3191 data->SetId(item); // set the id
3192 self->SetItemData(item, data);
3193 }
3194 return data->GetData();
3195 }
3196 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3197 data->SetId(item); // set the id
3198 self->SetItemData(item, data);
3199 }
3200 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3201 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3202 if (data == NULL) {
3203 data = new wxPyTreeItemData(obj);
3204 data->SetId(item); // set the id
3205 self->SetItemData(item, data);
3206 } else
3207 data->SetData(obj);
3208 }
3209 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3210 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3211 PyObject* rval = PyList_New(0);
3212 wxArrayTreeItemIds array;
3213 size_t num, x;
3214 num = self->GetSelections(array);
3215 for (x=0; x < num; x++) {
3216 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3217 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3218 PyList_Append(rval, item);
3219 Py_DECREF(item);
3220 }
3221 wxPyEndBlockThreads(blocked);
3222 return rval;
3223 }
3224 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3225 void* cookie = 0;
3226 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3227 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3228 PyObject* tup = PyTuple_New(2);
3229 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3230 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3231 wxPyEndBlockThreads(blocked);
3232 return tup;
3233 }
3234 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3235 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3236 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3237 PyObject* tup = PyTuple_New(2);
3238 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3239 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3240 wxPyEndBlockThreads(blocked);
3241 return tup;
3242 }
3243 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3244 wxRect rect;
3245 if (self->GetBoundingRect(item, rect, textOnly)) {
3246 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3247 wxRect* r = new wxRect(rect);
3248 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3249 wxPyEndBlockThreads(blocked);
3250 return val;
3251 }
3252 else
3253 RETURN_NONE();
3254 }
3255 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3256
3257 SWIGINTERNINLINE PyObject*
3258 SWIG_From_bool (bool value)
3259 {
3260 return PyBool_FromLong(value ? 1 : 0);
3261 }
3262
3263 // C++ version of Python aware wxControl
3264 class wxPyControl : public wxControl
3265 {
3266 DECLARE_DYNAMIC_CLASS(wxPyControl)
3267 public:
3268 wxPyControl() : wxControl() {}
3269 wxPyControl(wxWindow* parent, const wxWindowID id,
3270 const wxPoint& pos = wxDefaultPosition,
3271 const wxSize& size = wxDefaultSize,
3272 long style = 0,
3273 const wxValidator& validator=wxDefaultValidator,
3274 const wxString& name = wxPyControlNameStr)
3275 : wxControl(parent, id, pos, size, style, validator, name) {}
3276
3277
3278 bool DoEraseBackground(wxDC* dc) {
3279 #ifdef __WXMSW__
3280 return wxWindow::DoEraseBackground(dc->GetHDC());
3281 #else
3282 dc->SetBackground(wxBrush(GetBackgroundColour()));
3283 dc->Clear();
3284 return true;
3285 #endif
3286 }
3287
3288 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3289 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3290 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3291 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3292
3293 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3294 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3295 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3296
3297 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3298 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3299
3300 DEC_PYCALLBACK__(InitDialog);
3301 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3302 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3303 DEC_PYCALLBACK_BOOL_(Validate);
3304
3305 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3306 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3307 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3308
3309 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3310 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3311
3312 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3313 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3314
3315 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3316
3317 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3318
3319 PYPRIVATE;
3320 };
3321
3322 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3323
3324 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3325 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3326 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3327 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3328
3329 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3330 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3331 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3332
3333 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3334 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3335
3336 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3337 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3338 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3339 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3340
3341 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3342 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3343 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3344
3345 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3346 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3347
3348 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3349 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3350
3351 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3352
3353 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3354
3355
3356
3357 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3358
3359 #include <wx/generic/dragimgg.h>
3360
3361 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3362 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3363 wxDateTime rv;
3364 self->GetRange(&rv, NULL);
3365 return rv;
3366 }
3367 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3368 wxDateTime rv;
3369 self->GetRange(NULL, &rv);
3370 return rv;
3371 }
3372 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3373 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3374 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3375 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3376 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3377 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3378 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3379 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3380 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
3381 static const wxString wxPySearchCtrlNameStr(wxSearchCtrlNameStr);
3382
3383 #if !defined(wxUSE_SEARCHCTRL) || !wxUSE_SEARCHCTRL
3384 // define a dummy class for builds that don't have wxSearchCtrl
3385
3386 enum {
3387 wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN,
3388 wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN
3389 };
3390
3391 class wxSearchCtrl : public wxTextCtrl
3392 {
3393 public:
3394 wxSearchCtrl() { wxPyRaiseNotImplemented(); }
3395 wxSearchCtrl(wxWindow*, wxWindowID,
3396 const wxString&,
3397 const wxPoint&,
3398 const wxSize&,
3399 long style,
3400 const wxValidator&,
3401 const wxString& name)
3402 { wxPyRaiseNotImplemented(); }
3403
3404 bool Create( wxWindow*, wxWindowID,
3405 const wxString&,
3406 const wxPoint&,
3407 const wxSize&,
3408 long style,
3409 const wxValidator&,
3410 const wxString& name) {}
3411
3412 virtual void SetMenu( wxMenu* ) {}
3413 virtual wxMenu* GetMenu() { return NULL; }
3414
3415 // get/set search options
3416 // ----------------------
3417 virtual void ShowSearchButton( bool ) {}
3418 virtual bool IsSearchButtonVisible() const { return false; }
3419
3420 virtual void ShowCancelButton( bool ) {}
3421 virtual bool IsCancelButtonVisible() const { return false; }
3422
3423 virtual void SetDescriptiveText(const wxString& text);
3424 virtual wxString GetDescriptiveText() const;
3425 };
3426 #endif
3427
3428 #ifdef __cplusplus
3429 extern "C" {
3430 #endif
3431 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3432 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3433 return 1;
3434 }
3435
3436
3437 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3438 PyObject *pyobj = 0;
3439
3440 {
3441 #if wxUSE_UNICODE
3442 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3443 #else
3444 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3445 #endif
3446 }
3447 return pyobj;
3448 }
3449
3450
3451 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3452 PyObject *resultobj = 0;
3453 wxWindow *arg1 = (wxWindow *) 0 ;
3454 int arg2 = (int) -1 ;
3455 wxString const &arg3_defvalue = wxPyEmptyString ;
3456 wxString *arg3 = (wxString *) &arg3_defvalue ;
3457 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3458 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3459 wxSize const &arg5_defvalue = wxDefaultSize ;
3460 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3461 long arg6 = (long) 0 ;
3462 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3463 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3464 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3465 wxString *arg8 = (wxString *) &arg8_defvalue ;
3466 wxButton *result = 0 ;
3467 void *argp1 = 0 ;
3468 int res1 = 0 ;
3469 int val2 ;
3470 int ecode2 = 0 ;
3471 bool temp3 = false ;
3472 wxPoint temp4 ;
3473 wxSize temp5 ;
3474 long val6 ;
3475 int ecode6 = 0 ;
3476 void *argp7 = 0 ;
3477 int res7 = 0 ;
3478 bool temp8 = false ;
3479 PyObject * obj0 = 0 ;
3480 PyObject * obj1 = 0 ;
3481 PyObject * obj2 = 0 ;
3482 PyObject * obj3 = 0 ;
3483 PyObject * obj4 = 0 ;
3484 PyObject * obj5 = 0 ;
3485 PyObject * obj6 = 0 ;
3486 PyObject * obj7 = 0 ;
3487 char * kwnames[] = {
3488 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3489 };
3490
3491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3493 if (!SWIG_IsOK(res1)) {
3494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3495 }
3496 arg1 = reinterpret_cast< wxWindow * >(argp1);
3497 if (obj1) {
3498 ecode2 = SWIG_AsVal_int(obj1, &val2);
3499 if (!SWIG_IsOK(ecode2)) {
3500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3501 }
3502 arg2 = static_cast< int >(val2);
3503 }
3504 if (obj2) {
3505 {
3506 arg3 = wxString_in_helper(obj2);
3507 if (arg3 == NULL) SWIG_fail;
3508 temp3 = true;
3509 }
3510 }
3511 if (obj3) {
3512 {
3513 arg4 = &temp4;
3514 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3515 }
3516 }
3517 if (obj4) {
3518 {
3519 arg5 = &temp5;
3520 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3521 }
3522 }
3523 if (obj5) {
3524 ecode6 = SWIG_AsVal_long(obj5, &val6);
3525 if (!SWIG_IsOK(ecode6)) {
3526 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3527 }
3528 arg6 = static_cast< long >(val6);
3529 }
3530 if (obj6) {
3531 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3532 if (!SWIG_IsOK(res7)) {
3533 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3534 }
3535 if (!argp7) {
3536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3537 }
3538 arg7 = reinterpret_cast< wxValidator * >(argp7);
3539 }
3540 if (obj7) {
3541 {
3542 arg8 = wxString_in_helper(obj7);
3543 if (arg8 == NULL) SWIG_fail;
3544 temp8 = true;
3545 }
3546 }
3547 {
3548 if (!wxPyCheckForApp()) SWIG_fail;
3549 PyThreadState* __tstate = wxPyBeginAllowThreads();
3550 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3551 wxPyEndAllowThreads(__tstate);
3552 if (PyErr_Occurred()) SWIG_fail;
3553 }
3554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3555 {
3556 if (temp3)
3557 delete arg3;
3558 }
3559 {
3560 if (temp8)
3561 delete arg8;
3562 }
3563 return resultobj;
3564 fail:
3565 {
3566 if (temp3)
3567 delete arg3;
3568 }
3569 {
3570 if (temp8)
3571 delete arg8;
3572 }
3573 return NULL;
3574 }
3575
3576
3577 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3578 PyObject *resultobj = 0;
3579 wxButton *result = 0 ;
3580
3581 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3582 {
3583 if (!wxPyCheckForApp()) SWIG_fail;
3584 PyThreadState* __tstate = wxPyBeginAllowThreads();
3585 result = (wxButton *)new wxButton();
3586 wxPyEndAllowThreads(__tstate);
3587 if (PyErr_Occurred()) SWIG_fail;
3588 }
3589 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3590 return resultobj;
3591 fail:
3592 return NULL;
3593 }
3594
3595
3596 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3597 PyObject *resultobj = 0;
3598 wxButton *arg1 = (wxButton *) 0 ;
3599 wxWindow *arg2 = (wxWindow *) 0 ;
3600 int arg3 = (int) -1 ;
3601 wxString const &arg4_defvalue = wxPyEmptyString ;
3602 wxString *arg4 = (wxString *) &arg4_defvalue ;
3603 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3604 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3605 wxSize const &arg6_defvalue = wxDefaultSize ;
3606 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3607 long arg7 = (long) 0 ;
3608 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3609 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3610 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3611 wxString *arg9 = (wxString *) &arg9_defvalue ;
3612 bool result;
3613 void *argp1 = 0 ;
3614 int res1 = 0 ;
3615 void *argp2 = 0 ;
3616 int res2 = 0 ;
3617 int val3 ;
3618 int ecode3 = 0 ;
3619 bool temp4 = false ;
3620 wxPoint temp5 ;
3621 wxSize temp6 ;
3622 long val7 ;
3623 int ecode7 = 0 ;
3624 void *argp8 = 0 ;
3625 int res8 = 0 ;
3626 bool temp9 = false ;
3627 PyObject * obj0 = 0 ;
3628 PyObject * obj1 = 0 ;
3629 PyObject * obj2 = 0 ;
3630 PyObject * obj3 = 0 ;
3631 PyObject * obj4 = 0 ;
3632 PyObject * obj5 = 0 ;
3633 PyObject * obj6 = 0 ;
3634 PyObject * obj7 = 0 ;
3635 PyObject * obj8 = 0 ;
3636 char * kwnames[] = {
3637 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3638 };
3639
3640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3642 if (!SWIG_IsOK(res1)) {
3643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3644 }
3645 arg1 = reinterpret_cast< wxButton * >(argp1);
3646 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3647 if (!SWIG_IsOK(res2)) {
3648 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3649 }
3650 arg2 = reinterpret_cast< wxWindow * >(argp2);
3651 if (obj2) {
3652 ecode3 = SWIG_AsVal_int(obj2, &val3);
3653 if (!SWIG_IsOK(ecode3)) {
3654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3655 }
3656 arg3 = static_cast< int >(val3);
3657 }
3658 if (obj3) {
3659 {
3660 arg4 = wxString_in_helper(obj3);
3661 if (arg4 == NULL) SWIG_fail;
3662 temp4 = true;
3663 }
3664 }
3665 if (obj4) {
3666 {
3667 arg5 = &temp5;
3668 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3669 }
3670 }
3671 if (obj5) {
3672 {
3673 arg6 = &temp6;
3674 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3675 }
3676 }
3677 if (obj6) {
3678 ecode7 = SWIG_AsVal_long(obj6, &val7);
3679 if (!SWIG_IsOK(ecode7)) {
3680 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3681 }
3682 arg7 = static_cast< long >(val7);
3683 }
3684 if (obj7) {
3685 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3686 if (!SWIG_IsOK(res8)) {
3687 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3688 }
3689 if (!argp8) {
3690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3691 }
3692 arg8 = reinterpret_cast< wxValidator * >(argp8);
3693 }
3694 if (obj8) {
3695 {
3696 arg9 = wxString_in_helper(obj8);
3697 if (arg9 == NULL) SWIG_fail;
3698 temp9 = true;
3699 }
3700 }
3701 {
3702 PyThreadState* __tstate = wxPyBeginAllowThreads();
3703 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3704 wxPyEndAllowThreads(__tstate);
3705 if (PyErr_Occurred()) SWIG_fail;
3706 }
3707 {
3708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3709 }
3710 {
3711 if (temp4)
3712 delete arg4;
3713 }
3714 {
3715 if (temp9)
3716 delete arg9;
3717 }
3718 return resultobj;
3719 fail:
3720 {
3721 if (temp4)
3722 delete arg4;
3723 }
3724 {
3725 if (temp9)
3726 delete arg9;
3727 }
3728 return NULL;
3729 }
3730
3731
3732 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3733 PyObject *resultobj = 0;
3734 wxButton *arg1 = (wxButton *) 0 ;
3735 void *argp1 = 0 ;
3736 int res1 = 0 ;
3737 PyObject *swig_obj[1] ;
3738
3739 if (!args) SWIG_fail;
3740 swig_obj[0] = args;
3741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3742 if (!SWIG_IsOK(res1)) {
3743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3744 }
3745 arg1 = reinterpret_cast< wxButton * >(argp1);
3746 {
3747 PyThreadState* __tstate = wxPyBeginAllowThreads();
3748 (arg1)->SetDefault();
3749 wxPyEndAllowThreads(__tstate);
3750 if (PyErr_Occurred()) SWIG_fail;
3751 }
3752 resultobj = SWIG_Py_Void();
3753 return resultobj;
3754 fail:
3755 return NULL;
3756 }
3757
3758
3759 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3760 PyObject *resultobj = 0;
3761 wxSize result;
3762
3763 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3764 {
3765 PyThreadState* __tstate = wxPyBeginAllowThreads();
3766 result = wxButton::GetDefaultSize();
3767 wxPyEndAllowThreads(__tstate);
3768 if (PyErr_Occurred()) SWIG_fail;
3769 }
3770 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3771 return resultobj;
3772 fail:
3773 return NULL;
3774 }
3775
3776
3777 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3778 PyObject *resultobj = 0;
3779 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3780 SwigValueWrapper<wxVisualAttributes > result;
3781 int val1 ;
3782 int ecode1 = 0 ;
3783 PyObject * obj0 = 0 ;
3784 char * kwnames[] = {
3785 (char *) "variant", NULL
3786 };
3787
3788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3789 if (obj0) {
3790 ecode1 = SWIG_AsVal_int(obj0, &val1);
3791 if (!SWIG_IsOK(ecode1)) {
3792 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3793 }
3794 arg1 = static_cast< wxWindowVariant >(val1);
3795 }
3796 {
3797 if (!wxPyCheckForApp()) SWIG_fail;
3798 PyThreadState* __tstate = wxPyBeginAllowThreads();
3799 result = wxButton::GetClassDefaultAttributes(arg1);
3800 wxPyEndAllowThreads(__tstate);
3801 if (PyErr_Occurred()) SWIG_fail;
3802 }
3803 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3804 return resultobj;
3805 fail:
3806 return NULL;
3807 }
3808
3809
3810 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3811 PyObject *obj;
3812 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3813 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3814 return SWIG_Py_Void();
3815 }
3816
3817 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3818 return SWIG_Python_InitShadowInstance(args);
3819 }
3820
3821 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3822 PyObject *resultobj = 0;
3823 wxWindow *arg1 = (wxWindow *) 0 ;
3824 int arg2 = (int) -1 ;
3825 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3826 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3827 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3828 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3829 wxSize const &arg5_defvalue = wxDefaultSize ;
3830 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3831 long arg6 = (long) wxBU_AUTODRAW ;
3832 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3833 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3834 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3835 wxString *arg8 = (wxString *) &arg8_defvalue ;
3836 wxBitmapButton *result = 0 ;
3837 void *argp1 = 0 ;
3838 int res1 = 0 ;
3839 int val2 ;
3840 int ecode2 = 0 ;
3841 void *argp3 = 0 ;
3842 int res3 = 0 ;
3843 wxPoint temp4 ;
3844 wxSize temp5 ;
3845 long val6 ;
3846 int ecode6 = 0 ;
3847 void *argp7 = 0 ;
3848 int res7 = 0 ;
3849 bool temp8 = false ;
3850 PyObject * obj0 = 0 ;
3851 PyObject * obj1 = 0 ;
3852 PyObject * obj2 = 0 ;
3853 PyObject * obj3 = 0 ;
3854 PyObject * obj4 = 0 ;
3855 PyObject * obj5 = 0 ;
3856 PyObject * obj6 = 0 ;
3857 PyObject * obj7 = 0 ;
3858 char * kwnames[] = {
3859 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3860 };
3861
3862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3864 if (!SWIG_IsOK(res1)) {
3865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3866 }
3867 arg1 = reinterpret_cast< wxWindow * >(argp1);
3868 if (obj1) {
3869 ecode2 = SWIG_AsVal_int(obj1, &val2);
3870 if (!SWIG_IsOK(ecode2)) {
3871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3872 }
3873 arg2 = static_cast< int >(val2);
3874 }
3875 if (obj2) {
3876 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3877 if (!SWIG_IsOK(res3)) {
3878 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3879 }
3880 if (!argp3) {
3881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3882 }
3883 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3884 }
3885 if (obj3) {
3886 {
3887 arg4 = &temp4;
3888 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3889 }
3890 }
3891 if (obj4) {
3892 {
3893 arg5 = &temp5;
3894 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3895 }
3896 }
3897 if (obj5) {
3898 ecode6 = SWIG_AsVal_long(obj5, &val6);
3899 if (!SWIG_IsOK(ecode6)) {
3900 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3901 }
3902 arg6 = static_cast< long >(val6);
3903 }
3904 if (obj6) {
3905 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3906 if (!SWIG_IsOK(res7)) {
3907 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3908 }
3909 if (!argp7) {
3910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3911 }
3912 arg7 = reinterpret_cast< wxValidator * >(argp7);
3913 }
3914 if (obj7) {
3915 {
3916 arg8 = wxString_in_helper(obj7);
3917 if (arg8 == NULL) SWIG_fail;
3918 temp8 = true;
3919 }
3920 }
3921 {
3922 if (!wxPyCheckForApp()) SWIG_fail;
3923 PyThreadState* __tstate = wxPyBeginAllowThreads();
3924 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3925 wxPyEndAllowThreads(__tstate);
3926 if (PyErr_Occurred()) SWIG_fail;
3927 }
3928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3929 {
3930 if (temp8)
3931 delete arg8;
3932 }
3933 return resultobj;
3934 fail:
3935 {
3936 if (temp8)
3937 delete arg8;
3938 }
3939 return NULL;
3940 }
3941
3942
3943 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3944 PyObject *resultobj = 0;
3945 wxBitmapButton *result = 0 ;
3946
3947 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3948 {
3949 if (!wxPyCheckForApp()) SWIG_fail;
3950 PyThreadState* __tstate = wxPyBeginAllowThreads();
3951 result = (wxBitmapButton *)new wxBitmapButton();
3952 wxPyEndAllowThreads(__tstate);
3953 if (PyErr_Occurred()) SWIG_fail;
3954 }
3955 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3956 return resultobj;
3957 fail:
3958 return NULL;
3959 }
3960
3961
3962 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3963 PyObject *resultobj = 0;
3964 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3965 wxWindow *arg2 = (wxWindow *) 0 ;
3966 int arg3 = (int) -1 ;
3967 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3968 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3969 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3970 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3971 wxSize const &arg6_defvalue = wxDefaultSize ;
3972 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3973 long arg7 = (long) wxBU_AUTODRAW ;
3974 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3975 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3976 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3977 wxString *arg9 = (wxString *) &arg9_defvalue ;
3978 bool result;
3979 void *argp1 = 0 ;
3980 int res1 = 0 ;
3981 void *argp2 = 0 ;
3982 int res2 = 0 ;
3983 int val3 ;
3984 int ecode3 = 0 ;
3985 void *argp4 = 0 ;
3986 int res4 = 0 ;
3987 wxPoint temp5 ;
3988 wxSize temp6 ;
3989 long val7 ;
3990 int ecode7 = 0 ;
3991 void *argp8 = 0 ;
3992 int res8 = 0 ;
3993 bool temp9 = false ;
3994 PyObject * obj0 = 0 ;
3995 PyObject * obj1 = 0 ;
3996 PyObject * obj2 = 0 ;
3997 PyObject * obj3 = 0 ;
3998 PyObject * obj4 = 0 ;
3999 PyObject * obj5 = 0 ;
4000 PyObject * obj6 = 0 ;
4001 PyObject * obj7 = 0 ;
4002 PyObject * obj8 = 0 ;
4003 char * kwnames[] = {
4004 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4005 };
4006
4007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4009 if (!SWIG_IsOK(res1)) {
4010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4011 }
4012 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4013 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4014 if (!SWIG_IsOK(res2)) {
4015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4016 }
4017 arg2 = reinterpret_cast< wxWindow * >(argp2);
4018 if (obj2) {
4019 ecode3 = SWIG_AsVal_int(obj2, &val3);
4020 if (!SWIG_IsOK(ecode3)) {
4021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
4022 }
4023 arg3 = static_cast< int >(val3);
4024 }
4025 if (obj3) {
4026 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
4027 if (!SWIG_IsOK(res4)) {
4028 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
4029 }
4030 if (!argp4) {
4031 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
4032 }
4033 arg4 = reinterpret_cast< wxBitmap * >(argp4);
4034 }
4035 if (obj4) {
4036 {
4037 arg5 = &temp5;
4038 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4039 }
4040 }
4041 if (obj5) {
4042 {
4043 arg6 = &temp6;
4044 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4045 }
4046 }
4047 if (obj6) {
4048 ecode7 = SWIG_AsVal_long(obj6, &val7);
4049 if (!SWIG_IsOK(ecode7)) {
4050 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4051 }
4052 arg7 = static_cast< long >(val7);
4053 }
4054 if (obj7) {
4055 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4056 if (!SWIG_IsOK(res8)) {
4057 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4058 }
4059 if (!argp8) {
4060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4061 }
4062 arg8 = reinterpret_cast< wxValidator * >(argp8);
4063 }
4064 if (obj8) {
4065 {
4066 arg9 = wxString_in_helper(obj8);
4067 if (arg9 == NULL) SWIG_fail;
4068 temp9 = true;
4069 }
4070 }
4071 {
4072 PyThreadState* __tstate = wxPyBeginAllowThreads();
4073 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4074 wxPyEndAllowThreads(__tstate);
4075 if (PyErr_Occurred()) SWIG_fail;
4076 }
4077 {
4078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4079 }
4080 {
4081 if (temp9)
4082 delete arg9;
4083 }
4084 return resultobj;
4085 fail:
4086 {
4087 if (temp9)
4088 delete arg9;
4089 }
4090 return NULL;
4091 }
4092
4093
4094 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4095 PyObject *resultobj = 0;
4096 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4097 wxBitmap result;
4098 void *argp1 = 0 ;
4099 int res1 = 0 ;
4100 PyObject *swig_obj[1] ;
4101
4102 if (!args) SWIG_fail;
4103 swig_obj[0] = args;
4104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4105 if (!SWIG_IsOK(res1)) {
4106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4107 }
4108 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4109 {
4110 PyThreadState* __tstate = wxPyBeginAllowThreads();
4111 result = (arg1)->GetBitmapLabel();
4112 wxPyEndAllowThreads(__tstate);
4113 if (PyErr_Occurred()) SWIG_fail;
4114 }
4115 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4116 return resultobj;
4117 fail:
4118 return NULL;
4119 }
4120
4121
4122 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4123 PyObject *resultobj = 0;
4124 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4125 wxBitmap result;
4126 void *argp1 = 0 ;
4127 int res1 = 0 ;
4128 PyObject *swig_obj[1] ;
4129
4130 if (!args) SWIG_fail;
4131 swig_obj[0] = args;
4132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4133 if (!SWIG_IsOK(res1)) {
4134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4135 }
4136 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4137 {
4138 PyThreadState* __tstate = wxPyBeginAllowThreads();
4139 result = (arg1)->GetBitmapDisabled();
4140 wxPyEndAllowThreads(__tstate);
4141 if (PyErr_Occurred()) SWIG_fail;
4142 }
4143 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4144 return resultobj;
4145 fail:
4146 return NULL;
4147 }
4148
4149
4150 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4151 PyObject *resultobj = 0;
4152 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4153 wxBitmap result;
4154 void *argp1 = 0 ;
4155 int res1 = 0 ;
4156 PyObject *swig_obj[1] ;
4157
4158 if (!args) SWIG_fail;
4159 swig_obj[0] = args;
4160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4161 if (!SWIG_IsOK(res1)) {
4162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4163 }
4164 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4165 {
4166 PyThreadState* __tstate = wxPyBeginAllowThreads();
4167 result = (arg1)->GetBitmapFocus();
4168 wxPyEndAllowThreads(__tstate);
4169 if (PyErr_Occurred()) SWIG_fail;
4170 }
4171 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4172 return resultobj;
4173 fail:
4174 return NULL;
4175 }
4176
4177
4178 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4179 PyObject *resultobj = 0;
4180 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4181 wxBitmap result;
4182 void *argp1 = 0 ;
4183 int res1 = 0 ;
4184 PyObject *swig_obj[1] ;
4185
4186 if (!args) SWIG_fail;
4187 swig_obj[0] = args;
4188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4189 if (!SWIG_IsOK(res1)) {
4190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4191 }
4192 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4193 {
4194 PyThreadState* __tstate = wxPyBeginAllowThreads();
4195 result = (arg1)->GetBitmapSelected();
4196 wxPyEndAllowThreads(__tstate);
4197 if (PyErr_Occurred()) SWIG_fail;
4198 }
4199 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4200 return resultobj;
4201 fail:
4202 return NULL;
4203 }
4204
4205
4206 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4207 PyObject *resultobj = 0;
4208 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4209 wxBitmap result;
4210 void *argp1 = 0 ;
4211 int res1 = 0 ;
4212 PyObject *swig_obj[1] ;
4213
4214 if (!args) SWIG_fail;
4215 swig_obj[0] = args;
4216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4217 if (!SWIG_IsOK(res1)) {
4218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4219 }
4220 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4221 {
4222 PyThreadState* __tstate = wxPyBeginAllowThreads();
4223 result = (arg1)->GetBitmapHover();
4224 wxPyEndAllowThreads(__tstate);
4225 if (PyErr_Occurred()) SWIG_fail;
4226 }
4227 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4228 return resultobj;
4229 fail:
4230 return NULL;
4231 }
4232
4233
4234 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4235 PyObject *resultobj = 0;
4236 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4237 wxBitmap *arg2 = 0 ;
4238 void *argp1 = 0 ;
4239 int res1 = 0 ;
4240 void *argp2 = 0 ;
4241 int res2 = 0 ;
4242 PyObject * obj0 = 0 ;
4243 PyObject * obj1 = 0 ;
4244 char * kwnames[] = {
4245 (char *) "self",(char *) "bitmap", NULL
4246 };
4247
4248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4250 if (!SWIG_IsOK(res1)) {
4251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4252 }
4253 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4254 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4255 if (!SWIG_IsOK(res2)) {
4256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4257 }
4258 if (!argp2) {
4259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4260 }
4261 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4262 {
4263 PyThreadState* __tstate = wxPyBeginAllowThreads();
4264 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4265 wxPyEndAllowThreads(__tstate);
4266 if (PyErr_Occurred()) SWIG_fail;
4267 }
4268 resultobj = SWIG_Py_Void();
4269 return resultobj;
4270 fail:
4271 return NULL;
4272 }
4273
4274
4275 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4276 PyObject *resultobj = 0;
4277 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4278 wxBitmap *arg2 = 0 ;
4279 void *argp1 = 0 ;
4280 int res1 = 0 ;
4281 void *argp2 = 0 ;
4282 int res2 = 0 ;
4283 PyObject * obj0 = 0 ;
4284 PyObject * obj1 = 0 ;
4285 char * kwnames[] = {
4286 (char *) "self",(char *) "bitmap", NULL
4287 };
4288
4289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4291 if (!SWIG_IsOK(res1)) {
4292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4293 }
4294 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4295 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4296 if (!SWIG_IsOK(res2)) {
4297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4298 }
4299 if (!argp2) {
4300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4301 }
4302 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4303 {
4304 PyThreadState* __tstate = wxPyBeginAllowThreads();
4305 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4306 wxPyEndAllowThreads(__tstate);
4307 if (PyErr_Occurred()) SWIG_fail;
4308 }
4309 resultobj = SWIG_Py_Void();
4310 return resultobj;
4311 fail:
4312 return NULL;
4313 }
4314
4315
4316 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4317 PyObject *resultobj = 0;
4318 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4319 wxBitmap *arg2 = 0 ;
4320 void *argp1 = 0 ;
4321 int res1 = 0 ;
4322 void *argp2 = 0 ;
4323 int res2 = 0 ;
4324 PyObject * obj0 = 0 ;
4325 PyObject * obj1 = 0 ;
4326 char * kwnames[] = {
4327 (char *) "self",(char *) "bitmap", NULL
4328 };
4329
4330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4332 if (!SWIG_IsOK(res1)) {
4333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4334 }
4335 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4337 if (!SWIG_IsOK(res2)) {
4338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4339 }
4340 if (!argp2) {
4341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4342 }
4343 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4344 {
4345 PyThreadState* __tstate = wxPyBeginAllowThreads();
4346 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4347 wxPyEndAllowThreads(__tstate);
4348 if (PyErr_Occurred()) SWIG_fail;
4349 }
4350 resultobj = SWIG_Py_Void();
4351 return resultobj;
4352 fail:
4353 return NULL;
4354 }
4355
4356
4357 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4358 PyObject *resultobj = 0;
4359 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4360 wxBitmap *arg2 = 0 ;
4361 void *argp1 = 0 ;
4362 int res1 = 0 ;
4363 void *argp2 = 0 ;
4364 int res2 = 0 ;
4365 PyObject * obj0 = 0 ;
4366 PyObject * obj1 = 0 ;
4367 char * kwnames[] = {
4368 (char *) "self",(char *) "bitmap", NULL
4369 };
4370
4371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4373 if (!SWIG_IsOK(res1)) {
4374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4375 }
4376 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4377 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4378 if (!SWIG_IsOK(res2)) {
4379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4380 }
4381 if (!argp2) {
4382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4383 }
4384 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4385 {
4386 PyThreadState* __tstate = wxPyBeginAllowThreads();
4387 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4388 wxPyEndAllowThreads(__tstate);
4389 if (PyErr_Occurred()) SWIG_fail;
4390 }
4391 resultobj = SWIG_Py_Void();
4392 return resultobj;
4393 fail:
4394 return NULL;
4395 }
4396
4397
4398 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4399 PyObject *resultobj = 0;
4400 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4401 wxBitmap *arg2 = 0 ;
4402 void *argp1 = 0 ;
4403 int res1 = 0 ;
4404 void *argp2 = 0 ;
4405 int res2 = 0 ;
4406 PyObject * obj0 = 0 ;
4407 PyObject * obj1 = 0 ;
4408 char * kwnames[] = {
4409 (char *) "self",(char *) "hover", NULL
4410 };
4411
4412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4414 if (!SWIG_IsOK(res1)) {
4415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4416 }
4417 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4418 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4419 if (!SWIG_IsOK(res2)) {
4420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4421 }
4422 if (!argp2) {
4423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4424 }
4425 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4426 {
4427 PyThreadState* __tstate = wxPyBeginAllowThreads();
4428 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4429 wxPyEndAllowThreads(__tstate);
4430 if (PyErr_Occurred()) SWIG_fail;
4431 }
4432 resultobj = SWIG_Py_Void();
4433 return resultobj;
4434 fail:
4435 return NULL;
4436 }
4437
4438
4439 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4440 PyObject *resultobj = 0;
4441 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4442 int arg2 ;
4443 int arg3 ;
4444 void *argp1 = 0 ;
4445 int res1 = 0 ;
4446 int val2 ;
4447 int ecode2 = 0 ;
4448 int val3 ;
4449 int ecode3 = 0 ;
4450 PyObject * obj0 = 0 ;
4451 PyObject * obj1 = 0 ;
4452 PyObject * obj2 = 0 ;
4453 char * kwnames[] = {
4454 (char *) "self",(char *) "x",(char *) "y", NULL
4455 };
4456
4457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4459 if (!SWIG_IsOK(res1)) {
4460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4461 }
4462 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4463 ecode2 = SWIG_AsVal_int(obj1, &val2);
4464 if (!SWIG_IsOK(ecode2)) {
4465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4466 }
4467 arg2 = static_cast< int >(val2);
4468 ecode3 = SWIG_AsVal_int(obj2, &val3);
4469 if (!SWIG_IsOK(ecode3)) {
4470 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4471 }
4472 arg3 = static_cast< int >(val3);
4473 {
4474 PyThreadState* __tstate = wxPyBeginAllowThreads();
4475 (arg1)->SetMargins(arg2,arg3);
4476 wxPyEndAllowThreads(__tstate);
4477 if (PyErr_Occurred()) SWIG_fail;
4478 }
4479 resultobj = SWIG_Py_Void();
4480 return resultobj;
4481 fail:
4482 return NULL;
4483 }
4484
4485
4486 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4487 PyObject *resultobj = 0;
4488 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4489 int result;
4490 void *argp1 = 0 ;
4491 int res1 = 0 ;
4492 PyObject *swig_obj[1] ;
4493
4494 if (!args) SWIG_fail;
4495 swig_obj[0] = args;
4496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4497 if (!SWIG_IsOK(res1)) {
4498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4499 }
4500 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4501 {
4502 PyThreadState* __tstate = wxPyBeginAllowThreads();
4503 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4504 wxPyEndAllowThreads(__tstate);
4505 if (PyErr_Occurred()) SWIG_fail;
4506 }
4507 resultobj = SWIG_From_int(static_cast< int >(result));
4508 return resultobj;
4509 fail:
4510 return NULL;
4511 }
4512
4513
4514 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4515 PyObject *resultobj = 0;
4516 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4517 int result;
4518 void *argp1 = 0 ;
4519 int res1 = 0 ;
4520 PyObject *swig_obj[1] ;
4521
4522 if (!args) SWIG_fail;
4523 swig_obj[0] = args;
4524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4525 if (!SWIG_IsOK(res1)) {
4526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4527 }
4528 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4529 {
4530 PyThreadState* __tstate = wxPyBeginAllowThreads();
4531 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4532 wxPyEndAllowThreads(__tstate);
4533 if (PyErr_Occurred()) SWIG_fail;
4534 }
4535 resultobj = SWIG_From_int(static_cast< int >(result));
4536 return resultobj;
4537 fail:
4538 return NULL;
4539 }
4540
4541
4542 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4543 PyObject *obj;
4544 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4545 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4546 return SWIG_Py_Void();
4547 }
4548
4549 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4550 return SWIG_Python_InitShadowInstance(args);
4551 }
4552
4553 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4554 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4555 return 1;
4556 }
4557
4558
4559 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4560 PyObject *pyobj = 0;
4561
4562 {
4563 #if wxUSE_UNICODE
4564 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4565 #else
4566 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4567 #endif
4568 }
4569 return pyobj;
4570 }
4571
4572
4573 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4574 PyObject *resultobj = 0;
4575 wxWindow *arg1 = (wxWindow *) 0 ;
4576 int arg2 = (int) -1 ;
4577 wxString const &arg3_defvalue = wxPyEmptyString ;
4578 wxString *arg3 = (wxString *) &arg3_defvalue ;
4579 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4580 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4581 wxSize const &arg5_defvalue = wxDefaultSize ;
4582 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4583 long arg6 = (long) 0 ;
4584 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4585 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4586 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4587 wxString *arg8 = (wxString *) &arg8_defvalue ;
4588 wxCheckBox *result = 0 ;
4589 void *argp1 = 0 ;
4590 int res1 = 0 ;
4591 int val2 ;
4592 int ecode2 = 0 ;
4593 bool temp3 = false ;
4594 wxPoint temp4 ;
4595 wxSize temp5 ;
4596 long val6 ;
4597 int ecode6 = 0 ;
4598 void *argp7 = 0 ;
4599 int res7 = 0 ;
4600 bool temp8 = false ;
4601 PyObject * obj0 = 0 ;
4602 PyObject * obj1 = 0 ;
4603 PyObject * obj2 = 0 ;
4604 PyObject * obj3 = 0 ;
4605 PyObject * obj4 = 0 ;
4606 PyObject * obj5 = 0 ;
4607 PyObject * obj6 = 0 ;
4608 PyObject * obj7 = 0 ;
4609 char * kwnames[] = {
4610 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4611 };
4612
4613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4615 if (!SWIG_IsOK(res1)) {
4616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4617 }
4618 arg1 = reinterpret_cast< wxWindow * >(argp1);
4619 if (obj1) {
4620 ecode2 = SWIG_AsVal_int(obj1, &val2);
4621 if (!SWIG_IsOK(ecode2)) {
4622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4623 }
4624 arg2 = static_cast< int >(val2);
4625 }
4626 if (obj2) {
4627 {
4628 arg3 = wxString_in_helper(obj2);
4629 if (arg3 == NULL) SWIG_fail;
4630 temp3 = true;
4631 }
4632 }
4633 if (obj3) {
4634 {
4635 arg4 = &temp4;
4636 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4637 }
4638 }
4639 if (obj4) {
4640 {
4641 arg5 = &temp5;
4642 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4643 }
4644 }
4645 if (obj5) {
4646 ecode6 = SWIG_AsVal_long(obj5, &val6);
4647 if (!SWIG_IsOK(ecode6)) {
4648 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4649 }
4650 arg6 = static_cast< long >(val6);
4651 }
4652 if (obj6) {
4653 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4654 if (!SWIG_IsOK(res7)) {
4655 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4656 }
4657 if (!argp7) {
4658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4659 }
4660 arg7 = reinterpret_cast< wxValidator * >(argp7);
4661 }
4662 if (obj7) {
4663 {
4664 arg8 = wxString_in_helper(obj7);
4665 if (arg8 == NULL) SWIG_fail;
4666 temp8 = true;
4667 }
4668 }
4669 {
4670 if (!wxPyCheckForApp()) SWIG_fail;
4671 PyThreadState* __tstate = wxPyBeginAllowThreads();
4672 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4673 wxPyEndAllowThreads(__tstate);
4674 if (PyErr_Occurred()) SWIG_fail;
4675 }
4676 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4677 {
4678 if (temp3)
4679 delete arg3;
4680 }
4681 {
4682 if (temp8)
4683 delete arg8;
4684 }
4685 return resultobj;
4686 fail:
4687 {
4688 if (temp3)
4689 delete arg3;
4690 }
4691 {
4692 if (temp8)
4693 delete arg8;
4694 }
4695 return NULL;
4696 }
4697
4698
4699 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4700 PyObject *resultobj = 0;
4701 wxCheckBox *result = 0 ;
4702
4703 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4704 {
4705 if (!wxPyCheckForApp()) SWIG_fail;
4706 PyThreadState* __tstate = wxPyBeginAllowThreads();
4707 result = (wxCheckBox *)new wxCheckBox();
4708 wxPyEndAllowThreads(__tstate);
4709 if (PyErr_Occurred()) SWIG_fail;
4710 }
4711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4712 return resultobj;
4713 fail:
4714 return NULL;
4715 }
4716
4717
4718 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4719 PyObject *resultobj = 0;
4720 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4721 wxWindow *arg2 = (wxWindow *) 0 ;
4722 int arg3 = (int) -1 ;
4723 wxString const &arg4_defvalue = wxPyEmptyString ;
4724 wxString *arg4 = (wxString *) &arg4_defvalue ;
4725 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4726 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4727 wxSize const &arg6_defvalue = wxDefaultSize ;
4728 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4729 long arg7 = (long) 0 ;
4730 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4731 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4732 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4733 wxString *arg9 = (wxString *) &arg9_defvalue ;
4734 bool result;
4735 void *argp1 = 0 ;
4736 int res1 = 0 ;
4737 void *argp2 = 0 ;
4738 int res2 = 0 ;
4739 int val3 ;
4740 int ecode3 = 0 ;
4741 bool temp4 = false ;
4742 wxPoint temp5 ;
4743 wxSize temp6 ;
4744 long val7 ;
4745 int ecode7 = 0 ;
4746 void *argp8 = 0 ;
4747 int res8 = 0 ;
4748 bool temp9 = false ;
4749 PyObject * obj0 = 0 ;
4750 PyObject * obj1 = 0 ;
4751 PyObject * obj2 = 0 ;
4752 PyObject * obj3 = 0 ;
4753 PyObject * obj4 = 0 ;
4754 PyObject * obj5 = 0 ;
4755 PyObject * obj6 = 0 ;
4756 PyObject * obj7 = 0 ;
4757 PyObject * obj8 = 0 ;
4758 char * kwnames[] = {
4759 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4760 };
4761
4762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4764 if (!SWIG_IsOK(res1)) {
4765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4766 }
4767 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4768 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4769 if (!SWIG_IsOK(res2)) {
4770 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4771 }
4772 arg2 = reinterpret_cast< wxWindow * >(argp2);
4773 if (obj2) {
4774 ecode3 = SWIG_AsVal_int(obj2, &val3);
4775 if (!SWIG_IsOK(ecode3)) {
4776 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4777 }
4778 arg3 = static_cast< int >(val3);
4779 }
4780 if (obj3) {
4781 {
4782 arg4 = wxString_in_helper(obj3);
4783 if (arg4 == NULL) SWIG_fail;
4784 temp4 = true;
4785 }
4786 }
4787 if (obj4) {
4788 {
4789 arg5 = &temp5;
4790 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4791 }
4792 }
4793 if (obj5) {
4794 {
4795 arg6 = &temp6;
4796 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4797 }
4798 }
4799 if (obj6) {
4800 ecode7 = SWIG_AsVal_long(obj6, &val7);
4801 if (!SWIG_IsOK(ecode7)) {
4802 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4803 }
4804 arg7 = static_cast< long >(val7);
4805 }
4806 if (obj7) {
4807 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4808 if (!SWIG_IsOK(res8)) {
4809 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4810 }
4811 if (!argp8) {
4812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4813 }
4814 arg8 = reinterpret_cast< wxValidator * >(argp8);
4815 }
4816 if (obj8) {
4817 {
4818 arg9 = wxString_in_helper(obj8);
4819 if (arg9 == NULL) SWIG_fail;
4820 temp9 = true;
4821 }
4822 }
4823 {
4824 PyThreadState* __tstate = wxPyBeginAllowThreads();
4825 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4826 wxPyEndAllowThreads(__tstate);
4827 if (PyErr_Occurred()) SWIG_fail;
4828 }
4829 {
4830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4831 }
4832 {
4833 if (temp4)
4834 delete arg4;
4835 }
4836 {
4837 if (temp9)
4838 delete arg9;
4839 }
4840 return resultobj;
4841 fail:
4842 {
4843 if (temp4)
4844 delete arg4;
4845 }
4846 {
4847 if (temp9)
4848 delete arg9;
4849 }
4850 return NULL;
4851 }
4852
4853
4854 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4855 PyObject *resultobj = 0;
4856 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4857 bool result;
4858 void *argp1 = 0 ;
4859 int res1 = 0 ;
4860 PyObject *swig_obj[1] ;
4861
4862 if (!args) SWIG_fail;
4863 swig_obj[0] = args;
4864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4865 if (!SWIG_IsOK(res1)) {
4866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4867 }
4868 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4869 {
4870 PyThreadState* __tstate = wxPyBeginAllowThreads();
4871 result = (bool)(arg1)->GetValue();
4872 wxPyEndAllowThreads(__tstate);
4873 if (PyErr_Occurred()) SWIG_fail;
4874 }
4875 {
4876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4877 }
4878 return resultobj;
4879 fail:
4880 return NULL;
4881 }
4882
4883
4884 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4885 PyObject *resultobj = 0;
4886 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4887 bool result;
4888 void *argp1 = 0 ;
4889 int res1 = 0 ;
4890 PyObject *swig_obj[1] ;
4891
4892 if (!args) SWIG_fail;
4893 swig_obj[0] = args;
4894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4895 if (!SWIG_IsOK(res1)) {
4896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4897 }
4898 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4899 {
4900 PyThreadState* __tstate = wxPyBeginAllowThreads();
4901 result = (bool)(arg1)->IsChecked();
4902 wxPyEndAllowThreads(__tstate);
4903 if (PyErr_Occurred()) SWIG_fail;
4904 }
4905 {
4906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4907 }
4908 return resultobj;
4909 fail:
4910 return NULL;
4911 }
4912
4913
4914 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4915 PyObject *resultobj = 0;
4916 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4917 bool arg2 ;
4918 void *argp1 = 0 ;
4919 int res1 = 0 ;
4920 bool val2 ;
4921 int ecode2 = 0 ;
4922 PyObject * obj0 = 0 ;
4923 PyObject * obj1 = 0 ;
4924 char * kwnames[] = {
4925 (char *) "self",(char *) "state", NULL
4926 };
4927
4928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4930 if (!SWIG_IsOK(res1)) {
4931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4932 }
4933 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4934 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4935 if (!SWIG_IsOK(ecode2)) {
4936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4937 }
4938 arg2 = static_cast< bool >(val2);
4939 {
4940 PyThreadState* __tstate = wxPyBeginAllowThreads();
4941 (arg1)->SetValue(arg2);
4942 wxPyEndAllowThreads(__tstate);
4943 if (PyErr_Occurred()) SWIG_fail;
4944 }
4945 resultobj = SWIG_Py_Void();
4946 return resultobj;
4947 fail:
4948 return NULL;
4949 }
4950
4951
4952 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4953 PyObject *resultobj = 0;
4954 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4955 wxCheckBoxState result;
4956 void *argp1 = 0 ;
4957 int res1 = 0 ;
4958 PyObject *swig_obj[1] ;
4959
4960 if (!args) SWIG_fail;
4961 swig_obj[0] = args;
4962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4963 if (!SWIG_IsOK(res1)) {
4964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4965 }
4966 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4967 {
4968 PyThreadState* __tstate = wxPyBeginAllowThreads();
4969 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4970 wxPyEndAllowThreads(__tstate);
4971 if (PyErr_Occurred()) SWIG_fail;
4972 }
4973 resultobj = SWIG_From_int(static_cast< int >(result));
4974 return resultobj;
4975 fail:
4976 return NULL;
4977 }
4978
4979
4980 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4981 PyObject *resultobj = 0;
4982 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4983 wxCheckBoxState arg2 ;
4984 void *argp1 = 0 ;
4985 int res1 = 0 ;
4986 int val2 ;
4987 int ecode2 = 0 ;
4988 PyObject * obj0 = 0 ;
4989 PyObject * obj1 = 0 ;
4990 char * kwnames[] = {
4991 (char *) "self",(char *) "state", NULL
4992 };
4993
4994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4996 if (!SWIG_IsOK(res1)) {
4997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4998 }
4999 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5000 ecode2 = SWIG_AsVal_int(obj1, &val2);
5001 if (!SWIG_IsOK(ecode2)) {
5002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
5003 }
5004 arg2 = static_cast< wxCheckBoxState >(val2);
5005 {
5006 PyThreadState* __tstate = wxPyBeginAllowThreads();
5007 (arg1)->Set3StateValue(arg2);
5008 wxPyEndAllowThreads(__tstate);
5009 if (PyErr_Occurred()) SWIG_fail;
5010 }
5011 resultobj = SWIG_Py_Void();
5012 return resultobj;
5013 fail:
5014 return NULL;
5015 }
5016
5017
5018 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5019 PyObject *resultobj = 0;
5020 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5021 bool result;
5022 void *argp1 = 0 ;
5023 int res1 = 0 ;
5024 PyObject *swig_obj[1] ;
5025
5026 if (!args) SWIG_fail;
5027 swig_obj[0] = args;
5028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5029 if (!SWIG_IsOK(res1)) {
5030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5031 }
5032 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5033 {
5034 PyThreadState* __tstate = wxPyBeginAllowThreads();
5035 result = (bool)((wxCheckBox const *)arg1)->Is3State();
5036 wxPyEndAllowThreads(__tstate);
5037 if (PyErr_Occurred()) SWIG_fail;
5038 }
5039 {
5040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5041 }
5042 return resultobj;
5043 fail:
5044 return NULL;
5045 }
5046
5047
5048 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5049 PyObject *resultobj = 0;
5050 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5051 bool result;
5052 void *argp1 = 0 ;
5053 int res1 = 0 ;
5054 PyObject *swig_obj[1] ;
5055
5056 if (!args) SWIG_fail;
5057 swig_obj[0] = args;
5058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5059 if (!SWIG_IsOK(res1)) {
5060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5061 }
5062 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5063 {
5064 PyThreadState* __tstate = wxPyBeginAllowThreads();
5065 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5066 wxPyEndAllowThreads(__tstate);
5067 if (PyErr_Occurred()) SWIG_fail;
5068 }
5069 {
5070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5071 }
5072 return resultobj;
5073 fail:
5074 return NULL;
5075 }
5076
5077
5078 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5079 PyObject *resultobj = 0;
5080 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5081 SwigValueWrapper<wxVisualAttributes > result;
5082 int val1 ;
5083 int ecode1 = 0 ;
5084 PyObject * obj0 = 0 ;
5085 char * kwnames[] = {
5086 (char *) "variant", NULL
5087 };
5088
5089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5090 if (obj0) {
5091 ecode1 = SWIG_AsVal_int(obj0, &val1);
5092 if (!SWIG_IsOK(ecode1)) {
5093 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5094 }
5095 arg1 = static_cast< wxWindowVariant >(val1);
5096 }
5097 {
5098 if (!wxPyCheckForApp()) SWIG_fail;
5099 PyThreadState* __tstate = wxPyBeginAllowThreads();
5100 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5101 wxPyEndAllowThreads(__tstate);
5102 if (PyErr_Occurred()) SWIG_fail;
5103 }
5104 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5105 return resultobj;
5106 fail:
5107 return NULL;
5108 }
5109
5110
5111 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5112 PyObject *obj;
5113 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5114 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5115 return SWIG_Py_Void();
5116 }
5117
5118 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5119 return SWIG_Python_InitShadowInstance(args);
5120 }
5121
5122 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5123 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5124 return 1;
5125 }
5126
5127
5128 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5129 PyObject *pyobj = 0;
5130
5131 {
5132 #if wxUSE_UNICODE
5133 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5134 #else
5135 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5136 #endif
5137 }
5138 return pyobj;
5139 }
5140
5141
5142 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5143 PyObject *resultobj = 0;
5144 wxWindow *arg1 = (wxWindow *) 0 ;
5145 int arg2 = (int) -1 ;
5146 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5147 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5148 wxSize const &arg4_defvalue = wxDefaultSize ;
5149 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5150 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5151 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5152 long arg6 = (long) 0 ;
5153 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5154 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5155 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5156 wxString *arg8 = (wxString *) &arg8_defvalue ;
5157 wxChoice *result = 0 ;
5158 void *argp1 = 0 ;
5159 int res1 = 0 ;
5160 int val2 ;
5161 int ecode2 = 0 ;
5162 wxPoint temp3 ;
5163 wxSize temp4 ;
5164 bool temp5 = false ;
5165 long val6 ;
5166 int ecode6 = 0 ;
5167 void *argp7 = 0 ;
5168 int res7 = 0 ;
5169 bool temp8 = false ;
5170 PyObject * obj0 = 0 ;
5171 PyObject * obj1 = 0 ;
5172 PyObject * obj2 = 0 ;
5173 PyObject * obj3 = 0 ;
5174 PyObject * obj4 = 0 ;
5175 PyObject * obj5 = 0 ;
5176 PyObject * obj6 = 0 ;
5177 PyObject * obj7 = 0 ;
5178 char * kwnames[] = {
5179 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5180 };
5181
5182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5184 if (!SWIG_IsOK(res1)) {
5185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5186 }
5187 arg1 = reinterpret_cast< wxWindow * >(argp1);
5188 if (obj1) {
5189 ecode2 = SWIG_AsVal_int(obj1, &val2);
5190 if (!SWIG_IsOK(ecode2)) {
5191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5192 }
5193 arg2 = static_cast< int >(val2);
5194 }
5195 if (obj2) {
5196 {
5197 arg3 = &temp3;
5198 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5199 }
5200 }
5201 if (obj3) {
5202 {
5203 arg4 = &temp4;
5204 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5205 }
5206 }
5207 if (obj4) {
5208 {
5209 if (! PySequence_Check(obj4)) {
5210 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5211 SWIG_fail;
5212 }
5213 arg5 = new wxArrayString;
5214 temp5 = true;
5215 int i, len=PySequence_Length(obj4);
5216 for (i=0; i<len; i++) {
5217 PyObject* item = PySequence_GetItem(obj4, i);
5218 wxString* s = wxString_in_helper(item);
5219 if (PyErr_Occurred()) SWIG_fail;
5220 arg5->Add(*s);
5221 delete s;
5222 Py_DECREF(item);
5223 }
5224 }
5225 }
5226 if (obj5) {
5227 ecode6 = SWIG_AsVal_long(obj5, &val6);
5228 if (!SWIG_IsOK(ecode6)) {
5229 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5230 }
5231 arg6 = static_cast< long >(val6);
5232 }
5233 if (obj6) {
5234 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5235 if (!SWIG_IsOK(res7)) {
5236 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5237 }
5238 if (!argp7) {
5239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5240 }
5241 arg7 = reinterpret_cast< wxValidator * >(argp7);
5242 }
5243 if (obj7) {
5244 {
5245 arg8 = wxString_in_helper(obj7);
5246 if (arg8 == NULL) SWIG_fail;
5247 temp8 = true;
5248 }
5249 }
5250 {
5251 if (!wxPyCheckForApp()) SWIG_fail;
5252 PyThreadState* __tstate = wxPyBeginAllowThreads();
5253 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5254 wxPyEndAllowThreads(__tstate);
5255 if (PyErr_Occurred()) SWIG_fail;
5256 }
5257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5258 {
5259 if (temp5) delete arg5;
5260 }
5261 {
5262 if (temp8)
5263 delete arg8;
5264 }
5265 return resultobj;
5266 fail:
5267 {
5268 if (temp5) delete arg5;
5269 }
5270 {
5271 if (temp8)
5272 delete arg8;
5273 }
5274 return NULL;
5275 }
5276
5277
5278 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5279 PyObject *resultobj = 0;
5280 wxChoice *result = 0 ;
5281
5282 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5283 {
5284 if (!wxPyCheckForApp()) SWIG_fail;
5285 PyThreadState* __tstate = wxPyBeginAllowThreads();
5286 result = (wxChoice *)new wxChoice();
5287 wxPyEndAllowThreads(__tstate);
5288 if (PyErr_Occurred()) SWIG_fail;
5289 }
5290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5291 return resultobj;
5292 fail:
5293 return NULL;
5294 }
5295
5296
5297 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5298 PyObject *resultobj = 0;
5299 wxChoice *arg1 = (wxChoice *) 0 ;
5300 wxWindow *arg2 = (wxWindow *) 0 ;
5301 int arg3 = (int) -1 ;
5302 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5303 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5304 wxSize const &arg5_defvalue = wxDefaultSize ;
5305 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5306 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5307 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5308 long arg7 = (long) 0 ;
5309 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5310 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5311 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5312 wxString *arg9 = (wxString *) &arg9_defvalue ;
5313 bool result;
5314 void *argp1 = 0 ;
5315 int res1 = 0 ;
5316 void *argp2 = 0 ;
5317 int res2 = 0 ;
5318 int val3 ;
5319 int ecode3 = 0 ;
5320 wxPoint temp4 ;
5321 wxSize temp5 ;
5322 bool temp6 = false ;
5323 long val7 ;
5324 int ecode7 = 0 ;
5325 void *argp8 = 0 ;
5326 int res8 = 0 ;
5327 bool temp9 = false ;
5328 PyObject * obj0 = 0 ;
5329 PyObject * obj1 = 0 ;
5330 PyObject * obj2 = 0 ;
5331 PyObject * obj3 = 0 ;
5332 PyObject * obj4 = 0 ;
5333 PyObject * obj5 = 0 ;
5334 PyObject * obj6 = 0 ;
5335 PyObject * obj7 = 0 ;
5336 PyObject * obj8 = 0 ;
5337 char * kwnames[] = {
5338 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5339 };
5340
5341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5343 if (!SWIG_IsOK(res1)) {
5344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5345 }
5346 arg1 = reinterpret_cast< wxChoice * >(argp1);
5347 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5348 if (!SWIG_IsOK(res2)) {
5349 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5350 }
5351 arg2 = reinterpret_cast< wxWindow * >(argp2);
5352 if (obj2) {
5353 ecode3 = SWIG_AsVal_int(obj2, &val3);
5354 if (!SWIG_IsOK(ecode3)) {
5355 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5356 }
5357 arg3 = static_cast< int >(val3);
5358 }
5359 if (obj3) {
5360 {
5361 arg4 = &temp4;
5362 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5363 }
5364 }
5365 if (obj4) {
5366 {
5367 arg5 = &temp5;
5368 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5369 }
5370 }
5371 if (obj5) {
5372 {
5373 if (! PySequence_Check(obj5)) {
5374 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5375 SWIG_fail;
5376 }
5377 arg6 = new wxArrayString;
5378 temp6 = true;
5379 int i, len=PySequence_Length(obj5);
5380 for (i=0; i<len; i++) {
5381 PyObject* item = PySequence_GetItem(obj5, i);
5382 wxString* s = wxString_in_helper(item);
5383 if (PyErr_Occurred()) SWIG_fail;
5384 arg6->Add(*s);
5385 delete s;
5386 Py_DECREF(item);
5387 }
5388 }
5389 }
5390 if (obj6) {
5391 ecode7 = SWIG_AsVal_long(obj6, &val7);
5392 if (!SWIG_IsOK(ecode7)) {
5393 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5394 }
5395 arg7 = static_cast< long >(val7);
5396 }
5397 if (obj7) {
5398 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5399 if (!SWIG_IsOK(res8)) {
5400 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5401 }
5402 if (!argp8) {
5403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5404 }
5405 arg8 = reinterpret_cast< wxValidator * >(argp8);
5406 }
5407 if (obj8) {
5408 {
5409 arg9 = wxString_in_helper(obj8);
5410 if (arg9 == NULL) SWIG_fail;
5411 temp9 = true;
5412 }
5413 }
5414 {
5415 PyThreadState* __tstate = wxPyBeginAllowThreads();
5416 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5417 wxPyEndAllowThreads(__tstate);
5418 if (PyErr_Occurred()) SWIG_fail;
5419 }
5420 {
5421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5422 }
5423 {
5424 if (temp6) delete arg6;
5425 }
5426 {
5427 if (temp9)
5428 delete arg9;
5429 }
5430 return resultobj;
5431 fail:
5432 {
5433 if (temp6) delete arg6;
5434 }
5435 {
5436 if (temp9)
5437 delete arg9;
5438 }
5439 return NULL;
5440 }
5441
5442
5443 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5444 PyObject *resultobj = 0;
5445 wxChoice *arg1 = (wxChoice *) 0 ;
5446 int result;
5447 void *argp1 = 0 ;
5448 int res1 = 0 ;
5449 PyObject *swig_obj[1] ;
5450
5451 if (!args) SWIG_fail;
5452 swig_obj[0] = args;
5453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5454 if (!SWIG_IsOK(res1)) {
5455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5456 }
5457 arg1 = reinterpret_cast< wxChoice * >(argp1);
5458 {
5459 PyThreadState* __tstate = wxPyBeginAllowThreads();
5460 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5461 wxPyEndAllowThreads(__tstate);
5462 if (PyErr_Occurred()) SWIG_fail;
5463 }
5464 resultobj = SWIG_From_int(static_cast< int >(result));
5465 return resultobj;
5466 fail:
5467 return NULL;
5468 }
5469
5470
5471 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5472 PyObject *resultobj = 0;
5473 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5474 SwigValueWrapper<wxVisualAttributes > result;
5475 int val1 ;
5476 int ecode1 = 0 ;
5477 PyObject * obj0 = 0 ;
5478 char * kwnames[] = {
5479 (char *) "variant", NULL
5480 };
5481
5482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5483 if (obj0) {
5484 ecode1 = SWIG_AsVal_int(obj0, &val1);
5485 if (!SWIG_IsOK(ecode1)) {
5486 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5487 }
5488 arg1 = static_cast< wxWindowVariant >(val1);
5489 }
5490 {
5491 if (!wxPyCheckForApp()) SWIG_fail;
5492 PyThreadState* __tstate = wxPyBeginAllowThreads();
5493 result = wxChoice::GetClassDefaultAttributes(arg1);
5494 wxPyEndAllowThreads(__tstate);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 }
5497 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5498 return resultobj;
5499 fail:
5500 return NULL;
5501 }
5502
5503
5504 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5505 PyObject *obj;
5506 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5507 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5508 return SWIG_Py_Void();
5509 }
5510
5511 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5512 return SWIG_Python_InitShadowInstance(args);
5513 }
5514
5515 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5516 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5517 return 1;
5518 }
5519
5520
5521 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5522 PyObject *pyobj = 0;
5523
5524 {
5525 #if wxUSE_UNICODE
5526 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5527 #else
5528 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5529 #endif
5530 }
5531 return pyobj;
5532 }
5533
5534
5535 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5536 PyObject *resultobj = 0;
5537 wxWindow *arg1 = (wxWindow *) 0 ;
5538 int arg2 = (int) -1 ;
5539 wxString const &arg3_defvalue = wxPyEmptyString ;
5540 wxString *arg3 = (wxString *) &arg3_defvalue ;
5541 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5542 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5543 wxSize const &arg5_defvalue = wxDefaultSize ;
5544 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5545 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5546 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5547 long arg7 = (long) 0 ;
5548 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5549 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5550 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5551 wxString *arg9 = (wxString *) &arg9_defvalue ;
5552 wxComboBox *result = 0 ;
5553 void *argp1 = 0 ;
5554 int res1 = 0 ;
5555 int val2 ;
5556 int ecode2 = 0 ;
5557 bool temp3 = false ;
5558 wxPoint temp4 ;
5559 wxSize temp5 ;
5560 bool temp6 = false ;
5561 long val7 ;
5562 int ecode7 = 0 ;
5563 void *argp8 = 0 ;
5564 int res8 = 0 ;
5565 bool temp9 = false ;
5566 PyObject * obj0 = 0 ;
5567 PyObject * obj1 = 0 ;
5568 PyObject * obj2 = 0 ;
5569 PyObject * obj3 = 0 ;
5570 PyObject * obj4 = 0 ;
5571 PyObject * obj5 = 0 ;
5572 PyObject * obj6 = 0 ;
5573 PyObject * obj7 = 0 ;
5574 PyObject * obj8 = 0 ;
5575 char * kwnames[] = {
5576 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5577 };
5578
5579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5581 if (!SWIG_IsOK(res1)) {
5582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5583 }
5584 arg1 = reinterpret_cast< wxWindow * >(argp1);
5585 if (obj1) {
5586 ecode2 = SWIG_AsVal_int(obj1, &val2);
5587 if (!SWIG_IsOK(ecode2)) {
5588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5589 }
5590 arg2 = static_cast< int >(val2);
5591 }
5592 if (obj2) {
5593 {
5594 arg3 = wxString_in_helper(obj2);
5595 if (arg3 == NULL) SWIG_fail;
5596 temp3 = true;
5597 }
5598 }
5599 if (obj3) {
5600 {
5601 arg4 = &temp4;
5602 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5603 }
5604 }
5605 if (obj4) {
5606 {
5607 arg5 = &temp5;
5608 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5609 }
5610 }
5611 if (obj5) {
5612 {
5613 if (! PySequence_Check(obj5)) {
5614 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5615 SWIG_fail;
5616 }
5617 arg6 = new wxArrayString;
5618 temp6 = true;
5619 int i, len=PySequence_Length(obj5);
5620 for (i=0; i<len; i++) {
5621 PyObject* item = PySequence_GetItem(obj5, i);
5622 wxString* s = wxString_in_helper(item);
5623 if (PyErr_Occurred()) SWIG_fail;
5624 arg6->Add(*s);
5625 delete s;
5626 Py_DECREF(item);
5627 }
5628 }
5629 }
5630 if (obj6) {
5631 ecode7 = SWIG_AsVal_long(obj6, &val7);
5632 if (!SWIG_IsOK(ecode7)) {
5633 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5634 }
5635 arg7 = static_cast< long >(val7);
5636 }
5637 if (obj7) {
5638 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5639 if (!SWIG_IsOK(res8)) {
5640 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5641 }
5642 if (!argp8) {
5643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5644 }
5645 arg8 = reinterpret_cast< wxValidator * >(argp8);
5646 }
5647 if (obj8) {
5648 {
5649 arg9 = wxString_in_helper(obj8);
5650 if (arg9 == NULL) SWIG_fail;
5651 temp9 = true;
5652 }
5653 }
5654 {
5655 if (!wxPyCheckForApp()) SWIG_fail;
5656 PyThreadState* __tstate = wxPyBeginAllowThreads();
5657 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);
5658 wxPyEndAllowThreads(__tstate);
5659 if (PyErr_Occurred()) SWIG_fail;
5660 }
5661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5662 {
5663 if (temp3)
5664 delete arg3;
5665 }
5666 {
5667 if (temp6) delete arg6;
5668 }
5669 {
5670 if (temp9)
5671 delete arg9;
5672 }
5673 return resultobj;
5674 fail:
5675 {
5676 if (temp3)
5677 delete arg3;
5678 }
5679 {
5680 if (temp6) delete arg6;
5681 }
5682 {
5683 if (temp9)
5684 delete arg9;
5685 }
5686 return NULL;
5687 }
5688
5689
5690 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5691 PyObject *resultobj = 0;
5692 wxComboBox *result = 0 ;
5693
5694 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5695 {
5696 if (!wxPyCheckForApp()) SWIG_fail;
5697 PyThreadState* __tstate = wxPyBeginAllowThreads();
5698 result = (wxComboBox *)new wxComboBox();
5699 wxPyEndAllowThreads(__tstate);
5700 if (PyErr_Occurred()) SWIG_fail;
5701 }
5702 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5703 return resultobj;
5704 fail:
5705 return NULL;
5706 }
5707
5708
5709 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5710 PyObject *resultobj = 0;
5711 wxComboBox *arg1 = (wxComboBox *) 0 ;
5712 wxWindow *arg2 = (wxWindow *) 0 ;
5713 int arg3 = (int) -1 ;
5714 wxString const &arg4_defvalue = wxPyEmptyString ;
5715 wxString *arg4 = (wxString *) &arg4_defvalue ;
5716 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5717 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5718 wxSize const &arg6_defvalue = wxDefaultSize ;
5719 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5720 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5721 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5722 long arg8 = (long) 0 ;
5723 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5724 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5725 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5726 wxString *arg10 = (wxString *) &arg10_defvalue ;
5727 bool result;
5728 void *argp1 = 0 ;
5729 int res1 = 0 ;
5730 void *argp2 = 0 ;
5731 int res2 = 0 ;
5732 int val3 ;
5733 int ecode3 = 0 ;
5734 bool temp4 = false ;
5735 wxPoint temp5 ;
5736 wxSize temp6 ;
5737 bool temp7 = false ;
5738 long val8 ;
5739 int ecode8 = 0 ;
5740 void *argp9 = 0 ;
5741 int res9 = 0 ;
5742 bool temp10 = false ;
5743 PyObject * obj0 = 0 ;
5744 PyObject * obj1 = 0 ;
5745 PyObject * obj2 = 0 ;
5746 PyObject * obj3 = 0 ;
5747 PyObject * obj4 = 0 ;
5748 PyObject * obj5 = 0 ;
5749 PyObject * obj6 = 0 ;
5750 PyObject * obj7 = 0 ;
5751 PyObject * obj8 = 0 ;
5752 PyObject * obj9 = 0 ;
5753 char * kwnames[] = {
5754 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5755 };
5756
5757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5759 if (!SWIG_IsOK(res1)) {
5760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5761 }
5762 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5763 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5764 if (!SWIG_IsOK(res2)) {
5765 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5766 }
5767 arg2 = reinterpret_cast< wxWindow * >(argp2);
5768 if (obj2) {
5769 ecode3 = SWIG_AsVal_int(obj2, &val3);
5770 if (!SWIG_IsOK(ecode3)) {
5771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5772 }
5773 arg3 = static_cast< int >(val3);
5774 }
5775 if (obj3) {
5776 {
5777 arg4 = wxString_in_helper(obj3);
5778 if (arg4 == NULL) SWIG_fail;
5779 temp4 = true;
5780 }
5781 }
5782 if (obj4) {
5783 {
5784 arg5 = &temp5;
5785 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5786 }
5787 }
5788 if (obj5) {
5789 {
5790 arg6 = &temp6;
5791 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5792 }
5793 }
5794 if (obj6) {
5795 {
5796 if (! PySequence_Check(obj6)) {
5797 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5798 SWIG_fail;
5799 }
5800 arg7 = new wxArrayString;
5801 temp7 = true;
5802 int i, len=PySequence_Length(obj6);
5803 for (i=0; i<len; i++) {
5804 PyObject* item = PySequence_GetItem(obj6, i);
5805 wxString* s = wxString_in_helper(item);
5806 if (PyErr_Occurred()) SWIG_fail;
5807 arg7->Add(*s);
5808 delete s;
5809 Py_DECREF(item);
5810 }
5811 }
5812 }
5813 if (obj7) {
5814 ecode8 = SWIG_AsVal_long(obj7, &val8);
5815 if (!SWIG_IsOK(ecode8)) {
5816 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5817 }
5818 arg8 = static_cast< long >(val8);
5819 }
5820 if (obj8) {
5821 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5822 if (!SWIG_IsOK(res9)) {
5823 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5824 }
5825 if (!argp9) {
5826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5827 }
5828 arg9 = reinterpret_cast< wxValidator * >(argp9);
5829 }
5830 if (obj9) {
5831 {
5832 arg10 = wxString_in_helper(obj9);
5833 if (arg10 == NULL) SWIG_fail;
5834 temp10 = true;
5835 }
5836 }
5837 {
5838 PyThreadState* __tstate = wxPyBeginAllowThreads();
5839 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);
5840 wxPyEndAllowThreads(__tstate);
5841 if (PyErr_Occurred()) SWIG_fail;
5842 }
5843 {
5844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5845 }
5846 {
5847 if (temp4)
5848 delete arg4;
5849 }
5850 {
5851 if (temp7) delete arg7;
5852 }
5853 {
5854 if (temp10)
5855 delete arg10;
5856 }
5857 return resultobj;
5858 fail:
5859 {
5860 if (temp4)
5861 delete arg4;
5862 }
5863 {
5864 if (temp7) delete arg7;
5865 }
5866 {
5867 if (temp10)
5868 delete arg10;
5869 }
5870 return NULL;
5871 }
5872
5873
5874 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5875 PyObject *resultobj = 0;
5876 wxComboBox *arg1 = (wxComboBox *) 0 ;
5877 wxString result;
5878 void *argp1 = 0 ;
5879 int res1 = 0 ;
5880 PyObject *swig_obj[1] ;
5881
5882 if (!args) SWIG_fail;
5883 swig_obj[0] = args;
5884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5885 if (!SWIG_IsOK(res1)) {
5886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5887 }
5888 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5889 {
5890 PyThreadState* __tstate = wxPyBeginAllowThreads();
5891 result = ((wxComboBox const *)arg1)->GetValue();
5892 wxPyEndAllowThreads(__tstate);
5893 if (PyErr_Occurred()) SWIG_fail;
5894 }
5895 {
5896 #if wxUSE_UNICODE
5897 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5898 #else
5899 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5900 #endif
5901 }
5902 return resultobj;
5903 fail:
5904 return NULL;
5905 }
5906
5907
5908 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5909 PyObject *resultobj = 0;
5910 wxComboBox *arg1 = (wxComboBox *) 0 ;
5911 wxString *arg2 = 0 ;
5912 void *argp1 = 0 ;
5913 int res1 = 0 ;
5914 bool temp2 = false ;
5915 PyObject * obj0 = 0 ;
5916 PyObject * obj1 = 0 ;
5917 char * kwnames[] = {
5918 (char *) "self",(char *) "value", NULL
5919 };
5920
5921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5923 if (!SWIG_IsOK(res1)) {
5924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5925 }
5926 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5927 {
5928 arg2 = wxString_in_helper(obj1);
5929 if (arg2 == NULL) SWIG_fail;
5930 temp2 = true;
5931 }
5932 {
5933 PyThreadState* __tstate = wxPyBeginAllowThreads();
5934 (arg1)->SetValue((wxString const &)*arg2);
5935 wxPyEndAllowThreads(__tstate);
5936 if (PyErr_Occurred()) SWIG_fail;
5937 }
5938 resultobj = SWIG_Py_Void();
5939 {
5940 if (temp2)
5941 delete arg2;
5942 }
5943 return resultobj;
5944 fail:
5945 {
5946 if (temp2)
5947 delete arg2;
5948 }
5949 return NULL;
5950 }
5951
5952
5953 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5954 PyObject *resultobj = 0;
5955 wxComboBox *arg1 = (wxComboBox *) 0 ;
5956 void *argp1 = 0 ;
5957 int res1 = 0 ;
5958 PyObject *swig_obj[1] ;
5959
5960 if (!args) SWIG_fail;
5961 swig_obj[0] = args;
5962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5963 if (!SWIG_IsOK(res1)) {
5964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5965 }
5966 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5967 {
5968 PyThreadState* __tstate = wxPyBeginAllowThreads();
5969 (arg1)->Copy();
5970 wxPyEndAllowThreads(__tstate);
5971 if (PyErr_Occurred()) SWIG_fail;
5972 }
5973 resultobj = SWIG_Py_Void();
5974 return resultobj;
5975 fail:
5976 return NULL;
5977 }
5978
5979
5980 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5981 PyObject *resultobj = 0;
5982 wxComboBox *arg1 = (wxComboBox *) 0 ;
5983 void *argp1 = 0 ;
5984 int res1 = 0 ;
5985 PyObject *swig_obj[1] ;
5986
5987 if (!args) SWIG_fail;
5988 swig_obj[0] = args;
5989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5990 if (!SWIG_IsOK(res1)) {
5991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5992 }
5993 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5994 {
5995 PyThreadState* __tstate = wxPyBeginAllowThreads();
5996 (arg1)->Cut();
5997 wxPyEndAllowThreads(__tstate);
5998 if (PyErr_Occurred()) SWIG_fail;
5999 }
6000 resultobj = SWIG_Py_Void();
6001 return resultobj;
6002 fail:
6003 return NULL;
6004 }
6005
6006
6007 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6008 PyObject *resultobj = 0;
6009 wxComboBox *arg1 = (wxComboBox *) 0 ;
6010 void *argp1 = 0 ;
6011 int res1 = 0 ;
6012 PyObject *swig_obj[1] ;
6013
6014 if (!args) SWIG_fail;
6015 swig_obj[0] = args;
6016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6017 if (!SWIG_IsOK(res1)) {
6018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
6019 }
6020 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6021 {
6022 PyThreadState* __tstate = wxPyBeginAllowThreads();
6023 (arg1)->Paste();
6024 wxPyEndAllowThreads(__tstate);
6025 if (PyErr_Occurred()) SWIG_fail;
6026 }
6027 resultobj = SWIG_Py_Void();
6028 return resultobj;
6029 fail:
6030 return NULL;
6031 }
6032
6033
6034 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6035 PyObject *resultobj = 0;
6036 wxComboBox *arg1 = (wxComboBox *) 0 ;
6037 long arg2 ;
6038 void *argp1 = 0 ;
6039 int res1 = 0 ;
6040 long val2 ;
6041 int ecode2 = 0 ;
6042 PyObject * obj0 = 0 ;
6043 PyObject * obj1 = 0 ;
6044 char * kwnames[] = {
6045 (char *) "self",(char *) "pos", NULL
6046 };
6047
6048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
6049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6050 if (!SWIG_IsOK(res1)) {
6051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6052 }
6053 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6054 ecode2 = SWIG_AsVal_long(obj1, &val2);
6055 if (!SWIG_IsOK(ecode2)) {
6056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6057 }
6058 arg2 = static_cast< long >(val2);
6059 {
6060 PyThreadState* __tstate = wxPyBeginAllowThreads();
6061 (arg1)->SetInsertionPoint(arg2);
6062 wxPyEndAllowThreads(__tstate);
6063 if (PyErr_Occurred()) SWIG_fail;
6064 }
6065 resultobj = SWIG_Py_Void();
6066 return resultobj;
6067 fail:
6068 return NULL;
6069 }
6070
6071
6072 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6073 PyObject *resultobj = 0;
6074 wxComboBox *arg1 = (wxComboBox *) 0 ;
6075 long result;
6076 void *argp1 = 0 ;
6077 int res1 = 0 ;
6078 PyObject *swig_obj[1] ;
6079
6080 if (!args) SWIG_fail;
6081 swig_obj[0] = args;
6082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6083 if (!SWIG_IsOK(res1)) {
6084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6085 }
6086 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6087 {
6088 PyThreadState* __tstate = wxPyBeginAllowThreads();
6089 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6090 wxPyEndAllowThreads(__tstate);
6091 if (PyErr_Occurred()) SWIG_fail;
6092 }
6093 resultobj = SWIG_From_long(static_cast< long >(result));
6094 return resultobj;
6095 fail:
6096 return NULL;
6097 }
6098
6099
6100 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6101 PyObject *resultobj = 0;
6102 wxComboBox *arg1 = (wxComboBox *) 0 ;
6103 long result;
6104 void *argp1 = 0 ;
6105 int res1 = 0 ;
6106 PyObject *swig_obj[1] ;
6107
6108 if (!args) SWIG_fail;
6109 swig_obj[0] = args;
6110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6111 if (!SWIG_IsOK(res1)) {
6112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6113 }
6114 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6115 {
6116 PyThreadState* __tstate = wxPyBeginAllowThreads();
6117 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6118 wxPyEndAllowThreads(__tstate);
6119 if (PyErr_Occurred()) SWIG_fail;
6120 }
6121 resultobj = SWIG_From_long(static_cast< long >(result));
6122 return resultobj;
6123 fail:
6124 return NULL;
6125 }
6126
6127
6128 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6129 PyObject *resultobj = 0;
6130 wxComboBox *arg1 = (wxComboBox *) 0 ;
6131 long arg2 ;
6132 long arg3 ;
6133 wxString *arg4 = 0 ;
6134 void *argp1 = 0 ;
6135 int res1 = 0 ;
6136 long val2 ;
6137 int ecode2 = 0 ;
6138 long val3 ;
6139 int ecode3 = 0 ;
6140 bool temp4 = false ;
6141 PyObject * obj0 = 0 ;
6142 PyObject * obj1 = 0 ;
6143 PyObject * obj2 = 0 ;
6144 PyObject * obj3 = 0 ;
6145 char * kwnames[] = {
6146 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6147 };
6148
6149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6151 if (!SWIG_IsOK(res1)) {
6152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6153 }
6154 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6155 ecode2 = SWIG_AsVal_long(obj1, &val2);
6156 if (!SWIG_IsOK(ecode2)) {
6157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6158 }
6159 arg2 = static_cast< long >(val2);
6160 ecode3 = SWIG_AsVal_long(obj2, &val3);
6161 if (!SWIG_IsOK(ecode3)) {
6162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6163 }
6164 arg3 = static_cast< long >(val3);
6165 {
6166 arg4 = wxString_in_helper(obj3);
6167 if (arg4 == NULL) SWIG_fail;
6168 temp4 = true;
6169 }
6170 {
6171 PyThreadState* __tstate = wxPyBeginAllowThreads();
6172 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6173 wxPyEndAllowThreads(__tstate);
6174 if (PyErr_Occurred()) SWIG_fail;
6175 }
6176 resultobj = SWIG_Py_Void();
6177 {
6178 if (temp4)
6179 delete arg4;
6180 }
6181 return resultobj;
6182 fail:
6183 {
6184 if (temp4)
6185 delete arg4;
6186 }
6187 return NULL;
6188 }
6189
6190
6191 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6192 PyObject *resultobj = 0;
6193 wxComboBox *arg1 = (wxComboBox *) 0 ;
6194 long arg2 ;
6195 long arg3 ;
6196 void *argp1 = 0 ;
6197 int res1 = 0 ;
6198 long val2 ;
6199 int ecode2 = 0 ;
6200 long val3 ;
6201 int ecode3 = 0 ;
6202 PyObject * obj0 = 0 ;
6203 PyObject * obj1 = 0 ;
6204 PyObject * obj2 = 0 ;
6205 char * kwnames[] = {
6206 (char *) "self",(char *) "from",(char *) "to", NULL
6207 };
6208
6209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6211 if (!SWIG_IsOK(res1)) {
6212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6213 }
6214 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6215 ecode2 = SWIG_AsVal_long(obj1, &val2);
6216 if (!SWIG_IsOK(ecode2)) {
6217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6218 }
6219 arg2 = static_cast< long >(val2);
6220 ecode3 = SWIG_AsVal_long(obj2, &val3);
6221 if (!SWIG_IsOK(ecode3)) {
6222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6223 }
6224 arg3 = static_cast< long >(val3);
6225 {
6226 PyThreadState* __tstate = wxPyBeginAllowThreads();
6227 (arg1)->SetSelection(arg2,arg3);
6228 wxPyEndAllowThreads(__tstate);
6229 if (PyErr_Occurred()) SWIG_fail;
6230 }
6231 resultobj = SWIG_Py_Void();
6232 return resultobj;
6233 fail:
6234 return NULL;
6235 }
6236
6237
6238 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6239 PyObject *resultobj = 0;
6240 wxComboBox *arg1 = (wxComboBox *) 0 ;
6241 long *arg2 = (long *) 0 ;
6242 long *arg3 = (long *) 0 ;
6243 void *argp1 = 0 ;
6244 int res1 = 0 ;
6245 long temp2 ;
6246 int res2 = SWIG_TMPOBJ ;
6247 long temp3 ;
6248 int res3 = SWIG_TMPOBJ ;
6249 PyObject *swig_obj[1] ;
6250
6251 arg2 = &temp2;
6252 arg3 = &temp3;
6253 if (!args) SWIG_fail;
6254 swig_obj[0] = args;
6255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6256 if (!SWIG_IsOK(res1)) {
6257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6258 }
6259 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6260 {
6261 PyThreadState* __tstate = wxPyBeginAllowThreads();
6262 (arg1)->GetSelection(arg2,arg3);
6263 wxPyEndAllowThreads(__tstate);
6264 if (PyErr_Occurred()) SWIG_fail;
6265 }
6266 resultobj = SWIG_Py_Void();
6267 if (SWIG_IsTmpObj(res2)) {
6268 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6269 } else {
6270 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6271 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6272 }
6273 if (SWIG_IsTmpObj(res3)) {
6274 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6275 } else {
6276 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6277 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6278 }
6279 return resultobj;
6280 fail:
6281 return NULL;
6282 }
6283
6284
6285 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6286 PyObject *resultobj = 0;
6287 wxComboBox *arg1 = (wxComboBox *) 0 ;
6288 int result;
6289 void *argp1 = 0 ;
6290 int res1 = 0 ;
6291 PyObject *swig_obj[1] ;
6292
6293 if (!args) SWIG_fail;
6294 swig_obj[0] = args;
6295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6296 if (!SWIG_IsOK(res1)) {
6297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6298 }
6299 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6300 {
6301 PyThreadState* __tstate = wxPyBeginAllowThreads();
6302 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6303 wxPyEndAllowThreads(__tstate);
6304 if (PyErr_Occurred()) SWIG_fail;
6305 }
6306 resultobj = SWIG_From_int(static_cast< int >(result));
6307 return resultobj;
6308 fail:
6309 return NULL;
6310 }
6311
6312
6313 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6314 PyObject *resultobj = 0;
6315 wxComboBox *arg1 = (wxComboBox *) 0 ;
6316 wxString *arg2 = 0 ;
6317 bool result;
6318 void *argp1 = 0 ;
6319 int res1 = 0 ;
6320 bool temp2 = false ;
6321 PyObject * obj0 = 0 ;
6322 PyObject * obj1 = 0 ;
6323 char * kwnames[] = {
6324 (char *) "self",(char *) "string", NULL
6325 };
6326
6327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6329 if (!SWIG_IsOK(res1)) {
6330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6331 }
6332 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6333 {
6334 arg2 = wxString_in_helper(obj1);
6335 if (arg2 == NULL) SWIG_fail;
6336 temp2 = true;
6337 }
6338 {
6339 PyThreadState* __tstate = wxPyBeginAllowThreads();
6340 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6341 wxPyEndAllowThreads(__tstate);
6342 if (PyErr_Occurred()) SWIG_fail;
6343 }
6344 {
6345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6346 }
6347 {
6348 if (temp2)
6349 delete arg2;
6350 }
6351 return resultobj;
6352 fail:
6353 {
6354 if (temp2)
6355 delete arg2;
6356 }
6357 return NULL;
6358 }
6359
6360
6361 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6362 PyObject *resultobj = 0;
6363 wxComboBox *arg1 = (wxComboBox *) 0 ;
6364 bool arg2 ;
6365 void *argp1 = 0 ;
6366 int res1 = 0 ;
6367 bool val2 ;
6368 int ecode2 = 0 ;
6369 PyObject * obj0 = 0 ;
6370 PyObject * obj1 = 0 ;
6371 char * kwnames[] = {
6372 (char *) "self",(char *) "editable", NULL
6373 };
6374
6375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6377 if (!SWIG_IsOK(res1)) {
6378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6379 }
6380 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6381 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6382 if (!SWIG_IsOK(ecode2)) {
6383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6384 }
6385 arg2 = static_cast< bool >(val2);
6386 {
6387 PyThreadState* __tstate = wxPyBeginAllowThreads();
6388 (arg1)->SetEditable(arg2);
6389 wxPyEndAllowThreads(__tstate);
6390 if (PyErr_Occurred()) SWIG_fail;
6391 }
6392 resultobj = SWIG_Py_Void();
6393 return resultobj;
6394 fail:
6395 return NULL;
6396 }
6397
6398
6399 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6400 PyObject *resultobj = 0;
6401 wxComboBox *arg1 = (wxComboBox *) 0 ;
6402 void *argp1 = 0 ;
6403 int res1 = 0 ;
6404 PyObject *swig_obj[1] ;
6405
6406 if (!args) SWIG_fail;
6407 swig_obj[0] = args;
6408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6409 if (!SWIG_IsOK(res1)) {
6410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6411 }
6412 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6413 {
6414 PyThreadState* __tstate = wxPyBeginAllowThreads();
6415 (arg1)->SetInsertionPointEnd();
6416 wxPyEndAllowThreads(__tstate);
6417 if (PyErr_Occurred()) SWIG_fail;
6418 }
6419 resultobj = SWIG_Py_Void();
6420 return resultobj;
6421 fail:
6422 return NULL;
6423 }
6424
6425
6426 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6427 PyObject *resultobj = 0;
6428 wxComboBox *arg1 = (wxComboBox *) 0 ;
6429 long arg2 ;
6430 long arg3 ;
6431 void *argp1 = 0 ;
6432 int res1 = 0 ;
6433 long val2 ;
6434 int ecode2 = 0 ;
6435 long val3 ;
6436 int ecode3 = 0 ;
6437 PyObject * obj0 = 0 ;
6438 PyObject * obj1 = 0 ;
6439 PyObject * obj2 = 0 ;
6440 char * kwnames[] = {
6441 (char *) "self",(char *) "from",(char *) "to", NULL
6442 };
6443
6444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6446 if (!SWIG_IsOK(res1)) {
6447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6448 }
6449 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6450 ecode2 = SWIG_AsVal_long(obj1, &val2);
6451 if (!SWIG_IsOK(ecode2)) {
6452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6453 }
6454 arg2 = static_cast< long >(val2);
6455 ecode3 = SWIG_AsVal_long(obj2, &val3);
6456 if (!SWIG_IsOK(ecode3)) {
6457 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6458 }
6459 arg3 = static_cast< long >(val3);
6460 {
6461 PyThreadState* __tstate = wxPyBeginAllowThreads();
6462 (arg1)->Remove(arg2,arg3);
6463 wxPyEndAllowThreads(__tstate);
6464 if (PyErr_Occurred()) SWIG_fail;
6465 }
6466 resultobj = SWIG_Py_Void();
6467 return resultobj;
6468 fail:
6469 return NULL;
6470 }
6471
6472
6473 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6474 PyObject *resultobj = 0;
6475 wxComboBox *arg1 = (wxComboBox *) 0 ;
6476 bool result;
6477 void *argp1 = 0 ;
6478 int res1 = 0 ;
6479 PyObject *swig_obj[1] ;
6480
6481 if (!args) SWIG_fail;
6482 swig_obj[0] = args;
6483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6484 if (!SWIG_IsOK(res1)) {
6485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6486 }
6487 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6488 {
6489 PyThreadState* __tstate = wxPyBeginAllowThreads();
6490 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6491 wxPyEndAllowThreads(__tstate);
6492 if (PyErr_Occurred()) SWIG_fail;
6493 }
6494 {
6495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6496 }
6497 return resultobj;
6498 fail:
6499 return NULL;
6500 }
6501
6502
6503 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6504 PyObject *resultobj = 0;
6505 wxComboBox *arg1 = (wxComboBox *) 0 ;
6506 void *argp1 = 0 ;
6507 int res1 = 0 ;
6508 PyObject *swig_obj[1] ;
6509
6510 if (!args) SWIG_fail;
6511 swig_obj[0] = args;
6512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6513 if (!SWIG_IsOK(res1)) {
6514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6515 }
6516 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6517 {
6518 PyThreadState* __tstate = wxPyBeginAllowThreads();
6519 (arg1)->Undo();
6520 wxPyEndAllowThreads(__tstate);
6521 if (PyErr_Occurred()) SWIG_fail;
6522 }
6523 resultobj = SWIG_Py_Void();
6524 return resultobj;
6525 fail:
6526 return NULL;
6527 }
6528
6529
6530 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6531 PyObject *resultobj = 0;
6532 wxComboBox *arg1 = (wxComboBox *) 0 ;
6533 void *argp1 = 0 ;
6534 int res1 = 0 ;
6535 PyObject *swig_obj[1] ;
6536
6537 if (!args) SWIG_fail;
6538 swig_obj[0] = args;
6539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6540 if (!SWIG_IsOK(res1)) {
6541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6542 }
6543 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6544 {
6545 PyThreadState* __tstate = wxPyBeginAllowThreads();
6546 (arg1)->Redo();
6547 wxPyEndAllowThreads(__tstate);
6548 if (PyErr_Occurred()) SWIG_fail;
6549 }
6550 resultobj = SWIG_Py_Void();
6551 return resultobj;
6552 fail:
6553 return NULL;
6554 }
6555
6556
6557 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6558 PyObject *resultobj = 0;
6559 wxComboBox *arg1 = (wxComboBox *) 0 ;
6560 void *argp1 = 0 ;
6561 int res1 = 0 ;
6562 PyObject *swig_obj[1] ;
6563
6564 if (!args) SWIG_fail;
6565 swig_obj[0] = args;
6566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6567 if (!SWIG_IsOK(res1)) {
6568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6569 }
6570 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6571 {
6572 PyThreadState* __tstate = wxPyBeginAllowThreads();
6573 (arg1)->SelectAll();
6574 wxPyEndAllowThreads(__tstate);
6575 if (PyErr_Occurred()) SWIG_fail;
6576 }
6577 resultobj = SWIG_Py_Void();
6578 return resultobj;
6579 fail:
6580 return NULL;
6581 }
6582
6583
6584 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6585 PyObject *resultobj = 0;
6586 wxComboBox *arg1 = (wxComboBox *) 0 ;
6587 bool result;
6588 void *argp1 = 0 ;
6589 int res1 = 0 ;
6590 PyObject *swig_obj[1] ;
6591
6592 if (!args) SWIG_fail;
6593 swig_obj[0] = args;
6594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6595 if (!SWIG_IsOK(res1)) {
6596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6597 }
6598 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6599 {
6600 PyThreadState* __tstate = wxPyBeginAllowThreads();
6601 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6602 wxPyEndAllowThreads(__tstate);
6603 if (PyErr_Occurred()) SWIG_fail;
6604 }
6605 {
6606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6607 }
6608 return resultobj;
6609 fail:
6610 return NULL;
6611 }
6612
6613
6614 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6615 PyObject *resultobj = 0;
6616 wxComboBox *arg1 = (wxComboBox *) 0 ;
6617 bool result;
6618 void *argp1 = 0 ;
6619 int res1 = 0 ;
6620 PyObject *swig_obj[1] ;
6621
6622 if (!args) SWIG_fail;
6623 swig_obj[0] = args;
6624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6625 if (!SWIG_IsOK(res1)) {
6626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6627 }
6628 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6629 {
6630 PyThreadState* __tstate = wxPyBeginAllowThreads();
6631 result = (bool)((wxComboBox const *)arg1)->CanCut();
6632 wxPyEndAllowThreads(__tstate);
6633 if (PyErr_Occurred()) SWIG_fail;
6634 }
6635 {
6636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6637 }
6638 return resultobj;
6639 fail:
6640 return NULL;
6641 }
6642
6643
6644 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6645 PyObject *resultobj = 0;
6646 wxComboBox *arg1 = (wxComboBox *) 0 ;
6647 bool result;
6648 void *argp1 = 0 ;
6649 int res1 = 0 ;
6650 PyObject *swig_obj[1] ;
6651
6652 if (!args) SWIG_fail;
6653 swig_obj[0] = args;
6654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6655 if (!SWIG_IsOK(res1)) {
6656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6657 }
6658 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6659 {
6660 PyThreadState* __tstate = wxPyBeginAllowThreads();
6661 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6662 wxPyEndAllowThreads(__tstate);
6663 if (PyErr_Occurred()) SWIG_fail;
6664 }
6665 {
6666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6667 }
6668 return resultobj;
6669 fail:
6670 return NULL;
6671 }
6672
6673
6674 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6675 PyObject *resultobj = 0;
6676 wxComboBox *arg1 = (wxComboBox *) 0 ;
6677 bool result;
6678 void *argp1 = 0 ;
6679 int res1 = 0 ;
6680 PyObject *swig_obj[1] ;
6681
6682 if (!args) SWIG_fail;
6683 swig_obj[0] = args;
6684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6685 if (!SWIG_IsOK(res1)) {
6686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6687 }
6688 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6689 {
6690 PyThreadState* __tstate = wxPyBeginAllowThreads();
6691 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6692 wxPyEndAllowThreads(__tstate);
6693 if (PyErr_Occurred()) SWIG_fail;
6694 }
6695 {
6696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6697 }
6698 return resultobj;
6699 fail:
6700 return NULL;
6701 }
6702
6703
6704 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6705 PyObject *resultobj = 0;
6706 wxComboBox *arg1 = (wxComboBox *) 0 ;
6707 bool result;
6708 void *argp1 = 0 ;
6709 int res1 = 0 ;
6710 PyObject *swig_obj[1] ;
6711
6712 if (!args) SWIG_fail;
6713 swig_obj[0] = args;
6714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6715 if (!SWIG_IsOK(res1)) {
6716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6717 }
6718 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6719 {
6720 PyThreadState* __tstate = wxPyBeginAllowThreads();
6721 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6722 wxPyEndAllowThreads(__tstate);
6723 if (PyErr_Occurred()) SWIG_fail;
6724 }
6725 {
6726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6727 }
6728 return resultobj;
6729 fail:
6730 return NULL;
6731 }
6732
6733
6734 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6735 PyObject *resultobj = 0;
6736 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6737 SwigValueWrapper<wxVisualAttributes > result;
6738 int val1 ;
6739 int ecode1 = 0 ;
6740 PyObject * obj0 = 0 ;
6741 char * kwnames[] = {
6742 (char *) "variant", NULL
6743 };
6744
6745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6746 if (obj0) {
6747 ecode1 = SWIG_AsVal_int(obj0, &val1);
6748 if (!SWIG_IsOK(ecode1)) {
6749 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6750 }
6751 arg1 = static_cast< wxWindowVariant >(val1);
6752 }
6753 {
6754 if (!wxPyCheckForApp()) SWIG_fail;
6755 PyThreadState* __tstate = wxPyBeginAllowThreads();
6756 result = wxComboBox::GetClassDefaultAttributes(arg1);
6757 wxPyEndAllowThreads(__tstate);
6758 if (PyErr_Occurred()) SWIG_fail;
6759 }
6760 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6761 return resultobj;
6762 fail:
6763 return NULL;
6764 }
6765
6766
6767 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6768 PyObject *obj;
6769 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6770 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6771 return SWIG_Py_Void();
6772 }
6773
6774 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6775 return SWIG_Python_InitShadowInstance(args);
6776 }
6777
6778 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6779 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6780 return 1;
6781 }
6782
6783
6784 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6785 PyObject *pyobj = 0;
6786
6787 {
6788 #if wxUSE_UNICODE
6789 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6790 #else
6791 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6792 #endif
6793 }
6794 return pyobj;
6795 }
6796
6797
6798 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6799 PyObject *resultobj = 0;
6800 wxWindow *arg1 = (wxWindow *) 0 ;
6801 int arg2 = (int) -1 ;
6802 int arg3 = (int) 100 ;
6803 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6804 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6805 wxSize const &arg5_defvalue = wxDefaultSize ;
6806 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6807 long arg6 = (long) wxGA_HORIZONTAL ;
6808 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6809 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6810 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6811 wxString *arg8 = (wxString *) &arg8_defvalue ;
6812 wxGauge *result = 0 ;
6813 void *argp1 = 0 ;
6814 int res1 = 0 ;
6815 int val2 ;
6816 int ecode2 = 0 ;
6817 int val3 ;
6818 int ecode3 = 0 ;
6819 wxPoint temp4 ;
6820 wxSize temp5 ;
6821 long val6 ;
6822 int ecode6 = 0 ;
6823 void *argp7 = 0 ;
6824 int res7 = 0 ;
6825 bool temp8 = false ;
6826 PyObject * obj0 = 0 ;
6827 PyObject * obj1 = 0 ;
6828 PyObject * obj2 = 0 ;
6829 PyObject * obj3 = 0 ;
6830 PyObject * obj4 = 0 ;
6831 PyObject * obj5 = 0 ;
6832 PyObject * obj6 = 0 ;
6833 PyObject * obj7 = 0 ;
6834 char * kwnames[] = {
6835 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6836 };
6837
6838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6840 if (!SWIG_IsOK(res1)) {
6841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6842 }
6843 arg1 = reinterpret_cast< wxWindow * >(argp1);
6844 if (obj1) {
6845 ecode2 = SWIG_AsVal_int(obj1, &val2);
6846 if (!SWIG_IsOK(ecode2)) {
6847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6848 }
6849 arg2 = static_cast< int >(val2);
6850 }
6851 if (obj2) {
6852 ecode3 = SWIG_AsVal_int(obj2, &val3);
6853 if (!SWIG_IsOK(ecode3)) {
6854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6855 }
6856 arg3 = static_cast< int >(val3);
6857 }
6858 if (obj3) {
6859 {
6860 arg4 = &temp4;
6861 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6862 }
6863 }
6864 if (obj4) {
6865 {
6866 arg5 = &temp5;
6867 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6868 }
6869 }
6870 if (obj5) {
6871 ecode6 = SWIG_AsVal_long(obj5, &val6);
6872 if (!SWIG_IsOK(ecode6)) {
6873 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6874 }
6875 arg6 = static_cast< long >(val6);
6876 }
6877 if (obj6) {
6878 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6879 if (!SWIG_IsOK(res7)) {
6880 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6881 }
6882 if (!argp7) {
6883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6884 }
6885 arg7 = reinterpret_cast< wxValidator * >(argp7);
6886 }
6887 if (obj7) {
6888 {
6889 arg8 = wxString_in_helper(obj7);
6890 if (arg8 == NULL) SWIG_fail;
6891 temp8 = true;
6892 }
6893 }
6894 {
6895 if (!wxPyCheckForApp()) SWIG_fail;
6896 PyThreadState* __tstate = wxPyBeginAllowThreads();
6897 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6898 wxPyEndAllowThreads(__tstate);
6899 if (PyErr_Occurred()) SWIG_fail;
6900 }
6901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6902 {
6903 if (temp8)
6904 delete arg8;
6905 }
6906 return resultobj;
6907 fail:
6908 {
6909 if (temp8)
6910 delete arg8;
6911 }
6912 return NULL;
6913 }
6914
6915
6916 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6917 PyObject *resultobj = 0;
6918 wxGauge *result = 0 ;
6919
6920 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6921 {
6922 if (!wxPyCheckForApp()) SWIG_fail;
6923 PyThreadState* __tstate = wxPyBeginAllowThreads();
6924 result = (wxGauge *)new wxGauge();
6925 wxPyEndAllowThreads(__tstate);
6926 if (PyErr_Occurred()) SWIG_fail;
6927 }
6928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6929 return resultobj;
6930 fail:
6931 return NULL;
6932 }
6933
6934
6935 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6936 PyObject *resultobj = 0;
6937 wxGauge *arg1 = (wxGauge *) 0 ;
6938 wxWindow *arg2 = (wxWindow *) 0 ;
6939 int arg3 = (int) -1 ;
6940 int arg4 = (int) 100 ;
6941 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6942 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6943 wxSize const &arg6_defvalue = wxDefaultSize ;
6944 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6945 long arg7 = (long) wxGA_HORIZONTAL ;
6946 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6947 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6948 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6949 wxString *arg9 = (wxString *) &arg9_defvalue ;
6950 bool result;
6951 void *argp1 = 0 ;
6952 int res1 = 0 ;
6953 void *argp2 = 0 ;
6954 int res2 = 0 ;
6955 int val3 ;
6956 int ecode3 = 0 ;
6957 int val4 ;
6958 int ecode4 = 0 ;
6959 wxPoint temp5 ;
6960 wxSize temp6 ;
6961 long val7 ;
6962 int ecode7 = 0 ;
6963 void *argp8 = 0 ;
6964 int res8 = 0 ;
6965 bool temp9 = false ;
6966 PyObject * obj0 = 0 ;
6967 PyObject * obj1 = 0 ;
6968 PyObject * obj2 = 0 ;
6969 PyObject * obj3 = 0 ;
6970 PyObject * obj4 = 0 ;
6971 PyObject * obj5 = 0 ;
6972 PyObject * obj6 = 0 ;
6973 PyObject * obj7 = 0 ;
6974 PyObject * obj8 = 0 ;
6975 char * kwnames[] = {
6976 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6977 };
6978
6979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6981 if (!SWIG_IsOK(res1)) {
6982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6983 }
6984 arg1 = reinterpret_cast< wxGauge * >(argp1);
6985 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6986 if (!SWIG_IsOK(res2)) {
6987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6988 }
6989 arg2 = reinterpret_cast< wxWindow * >(argp2);
6990 if (obj2) {
6991 ecode3 = SWIG_AsVal_int(obj2, &val3);
6992 if (!SWIG_IsOK(ecode3)) {
6993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6994 }
6995 arg3 = static_cast< int >(val3);
6996 }
6997 if (obj3) {
6998 ecode4 = SWIG_AsVal_int(obj3, &val4);
6999 if (!SWIG_IsOK(ecode4)) {
7000 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
7001 }
7002 arg4 = static_cast< int >(val4);
7003 }
7004 if (obj4) {
7005 {
7006 arg5 = &temp5;
7007 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7008 }
7009 }
7010 if (obj5) {
7011 {
7012 arg6 = &temp6;
7013 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7014 }
7015 }
7016 if (obj6) {
7017 ecode7 = SWIG_AsVal_long(obj6, &val7);
7018 if (!SWIG_IsOK(ecode7)) {
7019 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7020 }
7021 arg7 = static_cast< long >(val7);
7022 }
7023 if (obj7) {
7024 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7025 if (!SWIG_IsOK(res8)) {
7026 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7027 }
7028 if (!argp8) {
7029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7030 }
7031 arg8 = reinterpret_cast< wxValidator * >(argp8);
7032 }
7033 if (obj8) {
7034 {
7035 arg9 = wxString_in_helper(obj8);
7036 if (arg9 == NULL) SWIG_fail;
7037 temp9 = true;
7038 }
7039 }
7040 {
7041 PyThreadState* __tstate = wxPyBeginAllowThreads();
7042 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7043 wxPyEndAllowThreads(__tstate);
7044 if (PyErr_Occurred()) SWIG_fail;
7045 }
7046 {
7047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7048 }
7049 {
7050 if (temp9)
7051 delete arg9;
7052 }
7053 return resultobj;
7054 fail:
7055 {
7056 if (temp9)
7057 delete arg9;
7058 }
7059 return NULL;
7060 }
7061
7062
7063 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7064 PyObject *resultobj = 0;
7065 wxGauge *arg1 = (wxGauge *) 0 ;
7066 int arg2 ;
7067 void *argp1 = 0 ;
7068 int res1 = 0 ;
7069 int val2 ;
7070 int ecode2 = 0 ;
7071 PyObject * obj0 = 0 ;
7072 PyObject * obj1 = 0 ;
7073 char * kwnames[] = {
7074 (char *) "self",(char *) "range", NULL
7075 };
7076
7077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7079 if (!SWIG_IsOK(res1)) {
7080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7081 }
7082 arg1 = reinterpret_cast< wxGauge * >(argp1);
7083 ecode2 = SWIG_AsVal_int(obj1, &val2);
7084 if (!SWIG_IsOK(ecode2)) {
7085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7086 }
7087 arg2 = static_cast< int >(val2);
7088 {
7089 PyThreadState* __tstate = wxPyBeginAllowThreads();
7090 (arg1)->SetRange(arg2);
7091 wxPyEndAllowThreads(__tstate);
7092 if (PyErr_Occurred()) SWIG_fail;
7093 }
7094 resultobj = SWIG_Py_Void();
7095 return resultobj;
7096 fail:
7097 return NULL;
7098 }
7099
7100
7101 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7102 PyObject *resultobj = 0;
7103 wxGauge *arg1 = (wxGauge *) 0 ;
7104 int result;
7105 void *argp1 = 0 ;
7106 int res1 = 0 ;
7107 PyObject *swig_obj[1] ;
7108
7109 if (!args) SWIG_fail;
7110 swig_obj[0] = args;
7111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7112 if (!SWIG_IsOK(res1)) {
7113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7114 }
7115 arg1 = reinterpret_cast< wxGauge * >(argp1);
7116 {
7117 PyThreadState* __tstate = wxPyBeginAllowThreads();
7118 result = (int)((wxGauge const *)arg1)->GetRange();
7119 wxPyEndAllowThreads(__tstate);
7120 if (PyErr_Occurred()) SWIG_fail;
7121 }
7122 resultobj = SWIG_From_int(static_cast< int >(result));
7123 return resultobj;
7124 fail:
7125 return NULL;
7126 }
7127
7128
7129 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7130 PyObject *resultobj = 0;
7131 wxGauge *arg1 = (wxGauge *) 0 ;
7132 int arg2 ;
7133 void *argp1 = 0 ;
7134 int res1 = 0 ;
7135 int val2 ;
7136 int ecode2 = 0 ;
7137 PyObject * obj0 = 0 ;
7138 PyObject * obj1 = 0 ;
7139 char * kwnames[] = {
7140 (char *) "self",(char *) "pos", NULL
7141 };
7142
7143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7145 if (!SWIG_IsOK(res1)) {
7146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7147 }
7148 arg1 = reinterpret_cast< wxGauge * >(argp1);
7149 ecode2 = SWIG_AsVal_int(obj1, &val2);
7150 if (!SWIG_IsOK(ecode2)) {
7151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7152 }
7153 arg2 = static_cast< int >(val2);
7154 {
7155 PyThreadState* __tstate = wxPyBeginAllowThreads();
7156 (arg1)->SetValue(arg2);
7157 wxPyEndAllowThreads(__tstate);
7158 if (PyErr_Occurred()) SWIG_fail;
7159 }
7160 resultobj = SWIG_Py_Void();
7161 return resultobj;
7162 fail:
7163 return NULL;
7164 }
7165
7166
7167 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7168 PyObject *resultobj = 0;
7169 wxGauge *arg1 = (wxGauge *) 0 ;
7170 int result;
7171 void *argp1 = 0 ;
7172 int res1 = 0 ;
7173 PyObject *swig_obj[1] ;
7174
7175 if (!args) SWIG_fail;
7176 swig_obj[0] = args;
7177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7178 if (!SWIG_IsOK(res1)) {
7179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7180 }
7181 arg1 = reinterpret_cast< wxGauge * >(argp1);
7182 {
7183 PyThreadState* __tstate = wxPyBeginAllowThreads();
7184 result = (int)((wxGauge const *)arg1)->GetValue();
7185 wxPyEndAllowThreads(__tstate);
7186 if (PyErr_Occurred()) SWIG_fail;
7187 }
7188 resultobj = SWIG_From_int(static_cast< int >(result));
7189 return resultobj;
7190 fail:
7191 return NULL;
7192 }
7193
7194
7195 SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7196 PyObject *resultobj = 0;
7197 wxGauge *arg1 = (wxGauge *) 0 ;
7198 void *argp1 = 0 ;
7199 int res1 = 0 ;
7200 PyObject *swig_obj[1] ;
7201
7202 if (!args) SWIG_fail;
7203 swig_obj[0] = args;
7204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7205 if (!SWIG_IsOK(res1)) {
7206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7207 }
7208 arg1 = reinterpret_cast< wxGauge * >(argp1);
7209 {
7210 PyThreadState* __tstate = wxPyBeginAllowThreads();
7211 (arg1)->Pulse();
7212 wxPyEndAllowThreads(__tstate);
7213 if (PyErr_Occurred()) SWIG_fail;
7214 }
7215 resultobj = SWIG_Py_Void();
7216 return resultobj;
7217 fail:
7218 return NULL;
7219 }
7220
7221
7222 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7223 PyObject *resultobj = 0;
7224 wxGauge *arg1 = (wxGauge *) 0 ;
7225 bool result;
7226 void *argp1 = 0 ;
7227 int res1 = 0 ;
7228 PyObject *swig_obj[1] ;
7229
7230 if (!args) SWIG_fail;
7231 swig_obj[0] = args;
7232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7233 if (!SWIG_IsOK(res1)) {
7234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7235 }
7236 arg1 = reinterpret_cast< wxGauge * >(argp1);
7237 {
7238 PyThreadState* __tstate = wxPyBeginAllowThreads();
7239 result = (bool)((wxGauge const *)arg1)->IsVertical();
7240 wxPyEndAllowThreads(__tstate);
7241 if (PyErr_Occurred()) SWIG_fail;
7242 }
7243 {
7244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7245 }
7246 return resultobj;
7247 fail:
7248 return NULL;
7249 }
7250
7251
7252 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7253 PyObject *resultobj = 0;
7254 wxGauge *arg1 = (wxGauge *) 0 ;
7255 int arg2 ;
7256 void *argp1 = 0 ;
7257 int res1 = 0 ;
7258 int val2 ;
7259 int ecode2 = 0 ;
7260 PyObject * obj0 = 0 ;
7261 PyObject * obj1 = 0 ;
7262 char * kwnames[] = {
7263 (char *) "self",(char *) "w", NULL
7264 };
7265
7266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7268 if (!SWIG_IsOK(res1)) {
7269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7270 }
7271 arg1 = reinterpret_cast< wxGauge * >(argp1);
7272 ecode2 = SWIG_AsVal_int(obj1, &val2);
7273 if (!SWIG_IsOK(ecode2)) {
7274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7275 }
7276 arg2 = static_cast< int >(val2);
7277 {
7278 PyThreadState* __tstate = wxPyBeginAllowThreads();
7279 (arg1)->SetShadowWidth(arg2);
7280 wxPyEndAllowThreads(__tstate);
7281 if (PyErr_Occurred()) SWIG_fail;
7282 }
7283 resultobj = SWIG_Py_Void();
7284 return resultobj;
7285 fail:
7286 return NULL;
7287 }
7288
7289
7290 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7291 PyObject *resultobj = 0;
7292 wxGauge *arg1 = (wxGauge *) 0 ;
7293 int result;
7294 void *argp1 = 0 ;
7295 int res1 = 0 ;
7296 PyObject *swig_obj[1] ;
7297
7298 if (!args) SWIG_fail;
7299 swig_obj[0] = args;
7300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7301 if (!SWIG_IsOK(res1)) {
7302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7303 }
7304 arg1 = reinterpret_cast< wxGauge * >(argp1);
7305 {
7306 PyThreadState* __tstate = wxPyBeginAllowThreads();
7307 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7308 wxPyEndAllowThreads(__tstate);
7309 if (PyErr_Occurred()) SWIG_fail;
7310 }
7311 resultobj = SWIG_From_int(static_cast< int >(result));
7312 return resultobj;
7313 fail:
7314 return NULL;
7315 }
7316
7317
7318 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7319 PyObject *resultobj = 0;
7320 wxGauge *arg1 = (wxGauge *) 0 ;
7321 int arg2 ;
7322 void *argp1 = 0 ;
7323 int res1 = 0 ;
7324 int val2 ;
7325 int ecode2 = 0 ;
7326 PyObject * obj0 = 0 ;
7327 PyObject * obj1 = 0 ;
7328 char * kwnames[] = {
7329 (char *) "self",(char *) "w", NULL
7330 };
7331
7332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7334 if (!SWIG_IsOK(res1)) {
7335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7336 }
7337 arg1 = reinterpret_cast< wxGauge * >(argp1);
7338 ecode2 = SWIG_AsVal_int(obj1, &val2);
7339 if (!SWIG_IsOK(ecode2)) {
7340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7341 }
7342 arg2 = static_cast< int >(val2);
7343 {
7344 PyThreadState* __tstate = wxPyBeginAllowThreads();
7345 (arg1)->SetBezelFace(arg2);
7346 wxPyEndAllowThreads(__tstate);
7347 if (PyErr_Occurred()) SWIG_fail;
7348 }
7349 resultobj = SWIG_Py_Void();
7350 return resultobj;
7351 fail:
7352 return NULL;
7353 }
7354
7355
7356 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7357 PyObject *resultobj = 0;
7358 wxGauge *arg1 = (wxGauge *) 0 ;
7359 int result;
7360 void *argp1 = 0 ;
7361 int res1 = 0 ;
7362 PyObject *swig_obj[1] ;
7363
7364 if (!args) SWIG_fail;
7365 swig_obj[0] = args;
7366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7367 if (!SWIG_IsOK(res1)) {
7368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7369 }
7370 arg1 = reinterpret_cast< wxGauge * >(argp1);
7371 {
7372 PyThreadState* __tstate = wxPyBeginAllowThreads();
7373 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7374 wxPyEndAllowThreads(__tstate);
7375 if (PyErr_Occurred()) SWIG_fail;
7376 }
7377 resultobj = SWIG_From_int(static_cast< int >(result));
7378 return resultobj;
7379 fail:
7380 return NULL;
7381 }
7382
7383
7384 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7385 PyObject *resultobj = 0;
7386 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7387 SwigValueWrapper<wxVisualAttributes > result;
7388 int val1 ;
7389 int ecode1 = 0 ;
7390 PyObject * obj0 = 0 ;
7391 char * kwnames[] = {
7392 (char *) "variant", NULL
7393 };
7394
7395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7396 if (obj0) {
7397 ecode1 = SWIG_AsVal_int(obj0, &val1);
7398 if (!SWIG_IsOK(ecode1)) {
7399 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7400 }
7401 arg1 = static_cast< wxWindowVariant >(val1);
7402 }
7403 {
7404 if (!wxPyCheckForApp()) SWIG_fail;
7405 PyThreadState* __tstate = wxPyBeginAllowThreads();
7406 result = wxGauge::GetClassDefaultAttributes(arg1);
7407 wxPyEndAllowThreads(__tstate);
7408 if (PyErr_Occurred()) SWIG_fail;
7409 }
7410 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7411 return resultobj;
7412 fail:
7413 return NULL;
7414 }
7415
7416
7417 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7418 PyObject *obj;
7419 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7420 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7421 return SWIG_Py_Void();
7422 }
7423
7424 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7425 return SWIG_Python_InitShadowInstance(args);
7426 }
7427
7428 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7429 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7430 return 1;
7431 }
7432
7433
7434 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7435 PyObject *pyobj = 0;
7436
7437 {
7438 #if wxUSE_UNICODE
7439 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7440 #else
7441 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7442 #endif
7443 }
7444 return pyobj;
7445 }
7446
7447
7448 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7449 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7450 return 1;
7451 }
7452
7453
7454 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7455 PyObject *pyobj = 0;
7456
7457 {
7458 #if wxUSE_UNICODE
7459 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7460 #else
7461 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7462 #endif
7463 }
7464 return pyobj;
7465 }
7466
7467
7468 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7469 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7470 return 1;
7471 }
7472
7473
7474 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7475 PyObject *pyobj = 0;
7476
7477 {
7478 #if wxUSE_UNICODE
7479 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7480 #else
7481 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7482 #endif
7483 }
7484 return pyobj;
7485 }
7486
7487
7488 SWIGINTERN int StaticLineNameStr_set(PyObject *) {
7489 SWIG_Error(SWIG_AttributeError,"Variable StaticLineNameStr is read-only.");
7490 return 1;
7491 }
7492
7493
7494 SWIGINTERN PyObject *StaticLineNameStr_get(void) {
7495 PyObject *pyobj = 0;
7496
7497 {
7498 #if wxUSE_UNICODE
7499 pyobj = PyUnicode_FromWideChar((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7500 #else
7501 pyobj = PyString_FromStringAndSize((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7502 #endif
7503 }
7504 return pyobj;
7505 }
7506
7507
7508 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7509 PyObject *resultobj = 0;
7510 wxWindow *arg1 = (wxWindow *) 0 ;
7511 int arg2 = (int) -1 ;
7512 wxString const &arg3_defvalue = wxPyEmptyString ;
7513 wxString *arg3 = (wxString *) &arg3_defvalue ;
7514 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7515 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7516 wxSize const &arg5_defvalue = wxDefaultSize ;
7517 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7518 long arg6 = (long) 0 ;
7519 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7520 wxString *arg7 = (wxString *) &arg7_defvalue ;
7521 wxStaticBox *result = 0 ;
7522 void *argp1 = 0 ;
7523 int res1 = 0 ;
7524 int val2 ;
7525 int ecode2 = 0 ;
7526 bool temp3 = false ;
7527 wxPoint temp4 ;
7528 wxSize temp5 ;
7529 long val6 ;
7530 int ecode6 = 0 ;
7531 bool temp7 = false ;
7532 PyObject * obj0 = 0 ;
7533 PyObject * obj1 = 0 ;
7534 PyObject * obj2 = 0 ;
7535 PyObject * obj3 = 0 ;
7536 PyObject * obj4 = 0 ;
7537 PyObject * obj5 = 0 ;
7538 PyObject * obj6 = 0 ;
7539 char * kwnames[] = {
7540 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7541 };
7542
7543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7545 if (!SWIG_IsOK(res1)) {
7546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7547 }
7548 arg1 = reinterpret_cast< wxWindow * >(argp1);
7549 if (obj1) {
7550 ecode2 = SWIG_AsVal_int(obj1, &val2);
7551 if (!SWIG_IsOK(ecode2)) {
7552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7553 }
7554 arg2 = static_cast< int >(val2);
7555 }
7556 if (obj2) {
7557 {
7558 arg3 = wxString_in_helper(obj2);
7559 if (arg3 == NULL) SWIG_fail;
7560 temp3 = true;
7561 }
7562 }
7563 if (obj3) {
7564 {
7565 arg4 = &temp4;
7566 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7567 }
7568 }
7569 if (obj4) {
7570 {
7571 arg5 = &temp5;
7572 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7573 }
7574 }
7575 if (obj5) {
7576 ecode6 = SWIG_AsVal_long(obj5, &val6);
7577 if (!SWIG_IsOK(ecode6)) {
7578 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7579 }
7580 arg6 = static_cast< long >(val6);
7581 }
7582 if (obj6) {
7583 {
7584 arg7 = wxString_in_helper(obj6);
7585 if (arg7 == NULL) SWIG_fail;
7586 temp7 = true;
7587 }
7588 }
7589 {
7590 if (!wxPyCheckForApp()) SWIG_fail;
7591 PyThreadState* __tstate = wxPyBeginAllowThreads();
7592 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7593 wxPyEndAllowThreads(__tstate);
7594 if (PyErr_Occurred()) SWIG_fail;
7595 }
7596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7597 {
7598 if (temp3)
7599 delete arg3;
7600 }
7601 {
7602 if (temp7)
7603 delete arg7;
7604 }
7605 return resultobj;
7606 fail:
7607 {
7608 if (temp3)
7609 delete arg3;
7610 }
7611 {
7612 if (temp7)
7613 delete arg7;
7614 }
7615 return NULL;
7616 }
7617
7618
7619 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7620 PyObject *resultobj = 0;
7621 wxStaticBox *result = 0 ;
7622
7623 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7624 {
7625 if (!wxPyCheckForApp()) SWIG_fail;
7626 PyThreadState* __tstate = wxPyBeginAllowThreads();
7627 result = (wxStaticBox *)new wxStaticBox();
7628 wxPyEndAllowThreads(__tstate);
7629 if (PyErr_Occurred()) SWIG_fail;
7630 }
7631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7632 return resultobj;
7633 fail:
7634 return NULL;
7635 }
7636
7637
7638 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7639 PyObject *resultobj = 0;
7640 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7641 wxWindow *arg2 = (wxWindow *) 0 ;
7642 int arg3 = (int) -1 ;
7643 wxString const &arg4_defvalue = wxPyEmptyString ;
7644 wxString *arg4 = (wxString *) &arg4_defvalue ;
7645 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7646 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7647 wxSize const &arg6_defvalue = wxDefaultSize ;
7648 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7649 long arg7 = (long) 0 ;
7650 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7651 wxString *arg8 = (wxString *) &arg8_defvalue ;
7652 bool result;
7653 void *argp1 = 0 ;
7654 int res1 = 0 ;
7655 void *argp2 = 0 ;
7656 int res2 = 0 ;
7657 int val3 ;
7658 int ecode3 = 0 ;
7659 bool temp4 = false ;
7660 wxPoint temp5 ;
7661 wxSize temp6 ;
7662 long val7 ;
7663 int ecode7 = 0 ;
7664 bool temp8 = false ;
7665 PyObject * obj0 = 0 ;
7666 PyObject * obj1 = 0 ;
7667 PyObject * obj2 = 0 ;
7668 PyObject * obj3 = 0 ;
7669 PyObject * obj4 = 0 ;
7670 PyObject * obj5 = 0 ;
7671 PyObject * obj6 = 0 ;
7672 PyObject * obj7 = 0 ;
7673 char * kwnames[] = {
7674 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7675 };
7676
7677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7679 if (!SWIG_IsOK(res1)) {
7680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7681 }
7682 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7683 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7684 if (!SWIG_IsOK(res2)) {
7685 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7686 }
7687 arg2 = reinterpret_cast< wxWindow * >(argp2);
7688 if (obj2) {
7689 ecode3 = SWIG_AsVal_int(obj2, &val3);
7690 if (!SWIG_IsOK(ecode3)) {
7691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7692 }
7693 arg3 = static_cast< int >(val3);
7694 }
7695 if (obj3) {
7696 {
7697 arg4 = wxString_in_helper(obj3);
7698 if (arg4 == NULL) SWIG_fail;
7699 temp4 = true;
7700 }
7701 }
7702 if (obj4) {
7703 {
7704 arg5 = &temp5;
7705 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7706 }
7707 }
7708 if (obj5) {
7709 {
7710 arg6 = &temp6;
7711 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7712 }
7713 }
7714 if (obj6) {
7715 ecode7 = SWIG_AsVal_long(obj6, &val7);
7716 if (!SWIG_IsOK(ecode7)) {
7717 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7718 }
7719 arg7 = static_cast< long >(val7);
7720 }
7721 if (obj7) {
7722 {
7723 arg8 = wxString_in_helper(obj7);
7724 if (arg8 == NULL) SWIG_fail;
7725 temp8 = true;
7726 }
7727 }
7728 {
7729 PyThreadState* __tstate = wxPyBeginAllowThreads();
7730 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7731 wxPyEndAllowThreads(__tstate);
7732 if (PyErr_Occurred()) SWIG_fail;
7733 }
7734 {
7735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7736 }
7737 {
7738 if (temp4)
7739 delete arg4;
7740 }
7741 {
7742 if (temp8)
7743 delete arg8;
7744 }
7745 return resultobj;
7746 fail:
7747 {
7748 if (temp4)
7749 delete arg4;
7750 }
7751 {
7752 if (temp8)
7753 delete arg8;
7754 }
7755 return NULL;
7756 }
7757
7758
7759 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7760 PyObject *resultobj = 0;
7761 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7762 SwigValueWrapper<wxVisualAttributes > result;
7763 int val1 ;
7764 int ecode1 = 0 ;
7765 PyObject * obj0 = 0 ;
7766 char * kwnames[] = {
7767 (char *) "variant", NULL
7768 };
7769
7770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7771 if (obj0) {
7772 ecode1 = SWIG_AsVal_int(obj0, &val1);
7773 if (!SWIG_IsOK(ecode1)) {
7774 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7775 }
7776 arg1 = static_cast< wxWindowVariant >(val1);
7777 }
7778 {
7779 if (!wxPyCheckForApp()) SWIG_fail;
7780 PyThreadState* __tstate = wxPyBeginAllowThreads();
7781 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7782 wxPyEndAllowThreads(__tstate);
7783 if (PyErr_Occurred()) SWIG_fail;
7784 }
7785 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7786 return resultobj;
7787 fail:
7788 return NULL;
7789 }
7790
7791
7792 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7793 PyObject *obj;
7794 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7795 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7796 return SWIG_Py_Void();
7797 }
7798
7799 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7800 return SWIG_Python_InitShadowInstance(args);
7801 }
7802
7803 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7804 PyObject *resultobj = 0;
7805 wxWindow *arg1 = (wxWindow *) 0 ;
7806 int arg2 = (int) -1 ;
7807 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7808 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7809 wxSize const &arg4_defvalue = wxDefaultSize ;
7810 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7811 long arg5 = (long) wxLI_HORIZONTAL ;
7812 wxString const &arg6_defvalue = wxPyStaticLineNameStr ;
7813 wxString *arg6 = (wxString *) &arg6_defvalue ;
7814 wxStaticLine *result = 0 ;
7815 void *argp1 = 0 ;
7816 int res1 = 0 ;
7817 int val2 ;
7818 int ecode2 = 0 ;
7819 wxPoint temp3 ;
7820 wxSize temp4 ;
7821 long val5 ;
7822 int ecode5 = 0 ;
7823 bool temp6 = false ;
7824 PyObject * obj0 = 0 ;
7825 PyObject * obj1 = 0 ;
7826 PyObject * obj2 = 0 ;
7827 PyObject * obj3 = 0 ;
7828 PyObject * obj4 = 0 ;
7829 PyObject * obj5 = 0 ;
7830 char * kwnames[] = {
7831 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7832 };
7833
7834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7836 if (!SWIG_IsOK(res1)) {
7837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7838 }
7839 arg1 = reinterpret_cast< wxWindow * >(argp1);
7840 if (obj1) {
7841 ecode2 = SWIG_AsVal_int(obj1, &val2);
7842 if (!SWIG_IsOK(ecode2)) {
7843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7844 }
7845 arg2 = static_cast< int >(val2);
7846 }
7847 if (obj2) {
7848 {
7849 arg3 = &temp3;
7850 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7851 }
7852 }
7853 if (obj3) {
7854 {
7855 arg4 = &temp4;
7856 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7857 }
7858 }
7859 if (obj4) {
7860 ecode5 = SWIG_AsVal_long(obj4, &val5);
7861 if (!SWIG_IsOK(ecode5)) {
7862 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7863 }
7864 arg5 = static_cast< long >(val5);
7865 }
7866 if (obj5) {
7867 {
7868 arg6 = wxString_in_helper(obj5);
7869 if (arg6 == NULL) SWIG_fail;
7870 temp6 = true;
7871 }
7872 }
7873 {
7874 if (!wxPyCheckForApp()) SWIG_fail;
7875 PyThreadState* __tstate = wxPyBeginAllowThreads();
7876 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7877 wxPyEndAllowThreads(__tstate);
7878 if (PyErr_Occurred()) SWIG_fail;
7879 }
7880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7881 {
7882 if (temp6)
7883 delete arg6;
7884 }
7885 return resultobj;
7886 fail:
7887 {
7888 if (temp6)
7889 delete arg6;
7890 }
7891 return NULL;
7892 }
7893
7894
7895 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7896 PyObject *resultobj = 0;
7897 wxStaticLine *result = 0 ;
7898
7899 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7900 {
7901 if (!wxPyCheckForApp()) SWIG_fail;
7902 PyThreadState* __tstate = wxPyBeginAllowThreads();
7903 result = (wxStaticLine *)new wxStaticLine();
7904 wxPyEndAllowThreads(__tstate);
7905 if (PyErr_Occurred()) SWIG_fail;
7906 }
7907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7908 return resultobj;
7909 fail:
7910 return NULL;
7911 }
7912
7913
7914 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7915 PyObject *resultobj = 0;
7916 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7917 wxWindow *arg2 = (wxWindow *) 0 ;
7918 int arg3 = (int) -1 ;
7919 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7920 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7921 wxSize const &arg5_defvalue = wxDefaultSize ;
7922 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7923 long arg6 = (long) wxLI_HORIZONTAL ;
7924 wxString const &arg7_defvalue = wxPyStaticLineNameStr ;
7925 wxString *arg7 = (wxString *) &arg7_defvalue ;
7926 bool result;
7927 void *argp1 = 0 ;
7928 int res1 = 0 ;
7929 void *argp2 = 0 ;
7930 int res2 = 0 ;
7931 int val3 ;
7932 int ecode3 = 0 ;
7933 wxPoint temp4 ;
7934 wxSize temp5 ;
7935 long val6 ;
7936 int ecode6 = 0 ;
7937 bool temp7 = false ;
7938 PyObject * obj0 = 0 ;
7939 PyObject * obj1 = 0 ;
7940 PyObject * obj2 = 0 ;
7941 PyObject * obj3 = 0 ;
7942 PyObject * obj4 = 0 ;
7943 PyObject * obj5 = 0 ;
7944 PyObject * obj6 = 0 ;
7945 char * kwnames[] = {
7946 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7947 };
7948
7949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7951 if (!SWIG_IsOK(res1)) {
7952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7953 }
7954 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7955 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7956 if (!SWIG_IsOK(res2)) {
7957 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7958 }
7959 arg2 = reinterpret_cast< wxWindow * >(argp2);
7960 if (obj2) {
7961 ecode3 = SWIG_AsVal_int(obj2, &val3);
7962 if (!SWIG_IsOK(ecode3)) {
7963 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7964 }
7965 arg3 = static_cast< int >(val3);
7966 }
7967 if (obj3) {
7968 {
7969 arg4 = &temp4;
7970 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7971 }
7972 }
7973 if (obj4) {
7974 {
7975 arg5 = &temp5;
7976 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7977 }
7978 }
7979 if (obj5) {
7980 ecode6 = SWIG_AsVal_long(obj5, &val6);
7981 if (!SWIG_IsOK(ecode6)) {
7982 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7983 }
7984 arg6 = static_cast< long >(val6);
7985 }
7986 if (obj6) {
7987 {
7988 arg7 = wxString_in_helper(obj6);
7989 if (arg7 == NULL) SWIG_fail;
7990 temp7 = true;
7991 }
7992 }
7993 {
7994 PyThreadState* __tstate = wxPyBeginAllowThreads();
7995 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7996 wxPyEndAllowThreads(__tstate);
7997 if (PyErr_Occurred()) SWIG_fail;
7998 }
7999 {
8000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8001 }
8002 {
8003 if (temp7)
8004 delete arg7;
8005 }
8006 return resultobj;
8007 fail:
8008 {
8009 if (temp7)
8010 delete arg7;
8011 }
8012 return NULL;
8013 }
8014
8015
8016 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8017 PyObject *resultobj = 0;
8018 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
8019 bool result;
8020 void *argp1 = 0 ;
8021 int res1 = 0 ;
8022 PyObject *swig_obj[1] ;
8023
8024 if (!args) SWIG_fail;
8025 swig_obj[0] = args;
8026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
8027 if (!SWIG_IsOK(res1)) {
8028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
8029 }
8030 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
8031 {
8032 PyThreadState* __tstate = wxPyBeginAllowThreads();
8033 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
8034 wxPyEndAllowThreads(__tstate);
8035 if (PyErr_Occurred()) SWIG_fail;
8036 }
8037 {
8038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8039 }
8040 return resultobj;
8041 fail:
8042 return NULL;
8043 }
8044
8045
8046 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8047 PyObject *resultobj = 0;
8048 int result;
8049
8050 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8051 {
8052 PyThreadState* __tstate = wxPyBeginAllowThreads();
8053 result = (int)wxStaticLine::GetDefaultSize();
8054 wxPyEndAllowThreads(__tstate);
8055 if (PyErr_Occurred()) SWIG_fail;
8056 }
8057 resultobj = SWIG_From_int(static_cast< int >(result));
8058 return resultobj;
8059 fail:
8060 return NULL;
8061 }
8062
8063
8064 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8065 PyObject *resultobj = 0;
8066 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8067 SwigValueWrapper<wxVisualAttributes > result;
8068 int val1 ;
8069 int ecode1 = 0 ;
8070 PyObject * obj0 = 0 ;
8071 char * kwnames[] = {
8072 (char *) "variant", NULL
8073 };
8074
8075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8076 if (obj0) {
8077 ecode1 = SWIG_AsVal_int(obj0, &val1);
8078 if (!SWIG_IsOK(ecode1)) {
8079 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8080 }
8081 arg1 = static_cast< wxWindowVariant >(val1);
8082 }
8083 {
8084 if (!wxPyCheckForApp()) SWIG_fail;
8085 PyThreadState* __tstate = wxPyBeginAllowThreads();
8086 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8087 wxPyEndAllowThreads(__tstate);
8088 if (PyErr_Occurred()) SWIG_fail;
8089 }
8090 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8091 return resultobj;
8092 fail:
8093 return NULL;
8094 }
8095
8096
8097 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8098 PyObject *obj;
8099 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8100 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8101 return SWIG_Py_Void();
8102 }
8103
8104 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8105 return SWIG_Python_InitShadowInstance(args);
8106 }
8107
8108 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8109 PyObject *resultobj = 0;
8110 wxWindow *arg1 = (wxWindow *) 0 ;
8111 int arg2 = (int) -1 ;
8112 wxString const &arg3_defvalue = wxPyEmptyString ;
8113 wxString *arg3 = (wxString *) &arg3_defvalue ;
8114 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8115 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8116 wxSize const &arg5_defvalue = wxDefaultSize ;
8117 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8118 long arg6 = (long) 0 ;
8119 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8120 wxString *arg7 = (wxString *) &arg7_defvalue ;
8121 wxStaticText *result = 0 ;
8122 void *argp1 = 0 ;
8123 int res1 = 0 ;
8124 int val2 ;
8125 int ecode2 = 0 ;
8126 bool temp3 = false ;
8127 wxPoint temp4 ;
8128 wxSize temp5 ;
8129 long val6 ;
8130 int ecode6 = 0 ;
8131 bool temp7 = false ;
8132 PyObject * obj0 = 0 ;
8133 PyObject * obj1 = 0 ;
8134 PyObject * obj2 = 0 ;
8135 PyObject * obj3 = 0 ;
8136 PyObject * obj4 = 0 ;
8137 PyObject * obj5 = 0 ;
8138 PyObject * obj6 = 0 ;
8139 char * kwnames[] = {
8140 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8141 };
8142
8143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8145 if (!SWIG_IsOK(res1)) {
8146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8147 }
8148 arg1 = reinterpret_cast< wxWindow * >(argp1);
8149 if (obj1) {
8150 ecode2 = SWIG_AsVal_int(obj1, &val2);
8151 if (!SWIG_IsOK(ecode2)) {
8152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8153 }
8154 arg2 = static_cast< int >(val2);
8155 }
8156 if (obj2) {
8157 {
8158 arg3 = wxString_in_helper(obj2);
8159 if (arg3 == NULL) SWIG_fail;
8160 temp3 = true;
8161 }
8162 }
8163 if (obj3) {
8164 {
8165 arg4 = &temp4;
8166 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8167 }
8168 }
8169 if (obj4) {
8170 {
8171 arg5 = &temp5;
8172 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8173 }
8174 }
8175 if (obj5) {
8176 ecode6 = SWIG_AsVal_long(obj5, &val6);
8177 if (!SWIG_IsOK(ecode6)) {
8178 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8179 }
8180 arg6 = static_cast< long >(val6);
8181 }
8182 if (obj6) {
8183 {
8184 arg7 = wxString_in_helper(obj6);
8185 if (arg7 == NULL) SWIG_fail;
8186 temp7 = true;
8187 }
8188 }
8189 {
8190 if (!wxPyCheckForApp()) SWIG_fail;
8191 PyThreadState* __tstate = wxPyBeginAllowThreads();
8192 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8193 wxPyEndAllowThreads(__tstate);
8194 if (PyErr_Occurred()) SWIG_fail;
8195 }
8196 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8197 {
8198 if (temp3)
8199 delete arg3;
8200 }
8201 {
8202 if (temp7)
8203 delete arg7;
8204 }
8205 return resultobj;
8206 fail:
8207 {
8208 if (temp3)
8209 delete arg3;
8210 }
8211 {
8212 if (temp7)
8213 delete arg7;
8214 }
8215 return NULL;
8216 }
8217
8218
8219 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8220 PyObject *resultobj = 0;
8221 wxStaticText *result = 0 ;
8222
8223 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8224 {
8225 if (!wxPyCheckForApp()) SWIG_fail;
8226 PyThreadState* __tstate = wxPyBeginAllowThreads();
8227 result = (wxStaticText *)new wxStaticText();
8228 wxPyEndAllowThreads(__tstate);
8229 if (PyErr_Occurred()) SWIG_fail;
8230 }
8231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8232 return resultobj;
8233 fail:
8234 return NULL;
8235 }
8236
8237
8238 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8239 PyObject *resultobj = 0;
8240 wxStaticText *arg1 = (wxStaticText *) 0 ;
8241 wxWindow *arg2 = (wxWindow *) 0 ;
8242 int arg3 = (int) -1 ;
8243 wxString const &arg4_defvalue = wxPyEmptyString ;
8244 wxString *arg4 = (wxString *) &arg4_defvalue ;
8245 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8246 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8247 wxSize const &arg6_defvalue = wxDefaultSize ;
8248 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8249 long arg7 = (long) 0 ;
8250 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8251 wxString *arg8 = (wxString *) &arg8_defvalue ;
8252 bool result;
8253 void *argp1 = 0 ;
8254 int res1 = 0 ;
8255 void *argp2 = 0 ;
8256 int res2 = 0 ;
8257 int val3 ;
8258 int ecode3 = 0 ;
8259 bool temp4 = false ;
8260 wxPoint temp5 ;
8261 wxSize temp6 ;
8262 long val7 ;
8263 int ecode7 = 0 ;
8264 bool temp8 = false ;
8265 PyObject * obj0 = 0 ;
8266 PyObject * obj1 = 0 ;
8267 PyObject * obj2 = 0 ;
8268 PyObject * obj3 = 0 ;
8269 PyObject * obj4 = 0 ;
8270 PyObject * obj5 = 0 ;
8271 PyObject * obj6 = 0 ;
8272 PyObject * obj7 = 0 ;
8273 char * kwnames[] = {
8274 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8275 };
8276
8277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8279 if (!SWIG_IsOK(res1)) {
8280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8281 }
8282 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8283 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8284 if (!SWIG_IsOK(res2)) {
8285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8286 }
8287 arg2 = reinterpret_cast< wxWindow * >(argp2);
8288 if (obj2) {
8289 ecode3 = SWIG_AsVal_int(obj2, &val3);
8290 if (!SWIG_IsOK(ecode3)) {
8291 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8292 }
8293 arg3 = static_cast< int >(val3);
8294 }
8295 if (obj3) {
8296 {
8297 arg4 = wxString_in_helper(obj3);
8298 if (arg4 == NULL) SWIG_fail;
8299 temp4 = true;
8300 }
8301 }
8302 if (obj4) {
8303 {
8304 arg5 = &temp5;
8305 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8306 }
8307 }
8308 if (obj5) {
8309 {
8310 arg6 = &temp6;
8311 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8312 }
8313 }
8314 if (obj6) {
8315 ecode7 = SWIG_AsVal_long(obj6, &val7);
8316 if (!SWIG_IsOK(ecode7)) {
8317 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8318 }
8319 arg7 = static_cast< long >(val7);
8320 }
8321 if (obj7) {
8322 {
8323 arg8 = wxString_in_helper(obj7);
8324 if (arg8 == NULL) SWIG_fail;
8325 temp8 = true;
8326 }
8327 }
8328 {
8329 PyThreadState* __tstate = wxPyBeginAllowThreads();
8330 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8331 wxPyEndAllowThreads(__tstate);
8332 if (PyErr_Occurred()) SWIG_fail;
8333 }
8334 {
8335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8336 }
8337 {
8338 if (temp4)
8339 delete arg4;
8340 }
8341 {
8342 if (temp8)
8343 delete arg8;
8344 }
8345 return resultobj;
8346 fail:
8347 {
8348 if (temp4)
8349 delete arg4;
8350 }
8351 {
8352 if (temp8)
8353 delete arg8;
8354 }
8355 return NULL;
8356 }
8357
8358
8359 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8360 PyObject *resultobj = 0;
8361 wxStaticText *arg1 = (wxStaticText *) 0 ;
8362 int arg2 ;
8363 void *argp1 = 0 ;
8364 int res1 = 0 ;
8365 int val2 ;
8366 int ecode2 = 0 ;
8367 PyObject * obj0 = 0 ;
8368 PyObject * obj1 = 0 ;
8369 char * kwnames[] = {
8370 (char *) "self",(char *) "width", NULL
8371 };
8372
8373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8375 if (!SWIG_IsOK(res1)) {
8376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8377 }
8378 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8379 ecode2 = SWIG_AsVal_int(obj1, &val2);
8380 if (!SWIG_IsOK(ecode2)) {
8381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8382 }
8383 arg2 = static_cast< int >(val2);
8384 {
8385 PyThreadState* __tstate = wxPyBeginAllowThreads();
8386 (arg1)->Wrap(arg2);
8387 wxPyEndAllowThreads(__tstate);
8388 if (PyErr_Occurred()) SWIG_fail;
8389 }
8390 resultobj = SWIG_Py_Void();
8391 return resultobj;
8392 fail:
8393 return NULL;
8394 }
8395
8396
8397 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8398 PyObject *resultobj = 0;
8399 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8400 SwigValueWrapper<wxVisualAttributes > result;
8401 int val1 ;
8402 int ecode1 = 0 ;
8403 PyObject * obj0 = 0 ;
8404 char * kwnames[] = {
8405 (char *) "variant", NULL
8406 };
8407
8408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8409 if (obj0) {
8410 ecode1 = SWIG_AsVal_int(obj0, &val1);
8411 if (!SWIG_IsOK(ecode1)) {
8412 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8413 }
8414 arg1 = static_cast< wxWindowVariant >(val1);
8415 }
8416 {
8417 if (!wxPyCheckForApp()) SWIG_fail;
8418 PyThreadState* __tstate = wxPyBeginAllowThreads();
8419 result = wxStaticText::GetClassDefaultAttributes(arg1);
8420 wxPyEndAllowThreads(__tstate);
8421 if (PyErr_Occurred()) SWIG_fail;
8422 }
8423 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8424 return resultobj;
8425 fail:
8426 return NULL;
8427 }
8428
8429
8430 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8431 PyObject *obj;
8432 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8433 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8434 return SWIG_Py_Void();
8435 }
8436
8437 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8438 return SWIG_Python_InitShadowInstance(args);
8439 }
8440
8441 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8442 PyObject *resultobj = 0;
8443 wxWindow *arg1 = (wxWindow *) 0 ;
8444 int arg2 = (int) -1 ;
8445 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8446 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8447 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8448 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8449 wxSize const &arg5_defvalue = wxDefaultSize ;
8450 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8451 long arg6 = (long) 0 ;
8452 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8453 wxString *arg7 = (wxString *) &arg7_defvalue ;
8454 wxStaticBitmap *result = 0 ;
8455 void *argp1 = 0 ;
8456 int res1 = 0 ;
8457 int val2 ;
8458 int ecode2 = 0 ;
8459 void *argp3 = 0 ;
8460 int res3 = 0 ;
8461 wxPoint temp4 ;
8462 wxSize temp5 ;
8463 long val6 ;
8464 int ecode6 = 0 ;
8465 bool temp7 = false ;
8466 PyObject * obj0 = 0 ;
8467 PyObject * obj1 = 0 ;
8468 PyObject * obj2 = 0 ;
8469 PyObject * obj3 = 0 ;
8470 PyObject * obj4 = 0 ;
8471 PyObject * obj5 = 0 ;
8472 PyObject * obj6 = 0 ;
8473 char * kwnames[] = {
8474 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8475 };
8476
8477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8479 if (!SWIG_IsOK(res1)) {
8480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8481 }
8482 arg1 = reinterpret_cast< wxWindow * >(argp1);
8483 if (obj1) {
8484 ecode2 = SWIG_AsVal_int(obj1, &val2);
8485 if (!SWIG_IsOK(ecode2)) {
8486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8487 }
8488 arg2 = static_cast< int >(val2);
8489 }
8490 if (obj2) {
8491 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8492 if (!SWIG_IsOK(res3)) {
8493 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8494 }
8495 if (!argp3) {
8496 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8497 }
8498 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8499 }
8500 if (obj3) {
8501 {
8502 arg4 = &temp4;
8503 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8504 }
8505 }
8506 if (obj4) {
8507 {
8508 arg5 = &temp5;
8509 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8510 }
8511 }
8512 if (obj5) {
8513 ecode6 = SWIG_AsVal_long(obj5, &val6);
8514 if (!SWIG_IsOK(ecode6)) {
8515 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8516 }
8517 arg6 = static_cast< long >(val6);
8518 }
8519 if (obj6) {
8520 {
8521 arg7 = wxString_in_helper(obj6);
8522 if (arg7 == NULL) SWIG_fail;
8523 temp7 = true;
8524 }
8525 }
8526 {
8527 if (!wxPyCheckForApp()) SWIG_fail;
8528 PyThreadState* __tstate = wxPyBeginAllowThreads();
8529 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8530 wxPyEndAllowThreads(__tstate);
8531 if (PyErr_Occurred()) SWIG_fail;
8532 }
8533 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8534 {
8535 if (temp7)
8536 delete arg7;
8537 }
8538 return resultobj;
8539 fail:
8540 {
8541 if (temp7)
8542 delete arg7;
8543 }
8544 return NULL;
8545 }
8546
8547
8548 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8549 PyObject *resultobj = 0;
8550 wxStaticBitmap *result = 0 ;
8551
8552 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8553 {
8554 if (!wxPyCheckForApp()) SWIG_fail;
8555 PyThreadState* __tstate = wxPyBeginAllowThreads();
8556 result = (wxStaticBitmap *)new wxStaticBitmap();
8557 wxPyEndAllowThreads(__tstate);
8558 if (PyErr_Occurred()) SWIG_fail;
8559 }
8560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8561 return resultobj;
8562 fail:
8563 return NULL;
8564 }
8565
8566
8567 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8568 PyObject *resultobj = 0;
8569 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8570 wxWindow *arg2 = (wxWindow *) 0 ;
8571 int arg3 = (int) -1 ;
8572 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8573 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8574 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8575 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8576 wxSize const &arg6_defvalue = wxDefaultSize ;
8577 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8578 long arg7 = (long) 0 ;
8579 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8580 wxString *arg8 = (wxString *) &arg8_defvalue ;
8581 bool result;
8582 void *argp1 = 0 ;
8583 int res1 = 0 ;
8584 void *argp2 = 0 ;
8585 int res2 = 0 ;
8586 int val3 ;
8587 int ecode3 = 0 ;
8588 void *argp4 = 0 ;
8589 int res4 = 0 ;
8590 wxPoint temp5 ;
8591 wxSize temp6 ;
8592 long val7 ;
8593 int ecode7 = 0 ;
8594 bool temp8 = false ;
8595 PyObject * obj0 = 0 ;
8596 PyObject * obj1 = 0 ;
8597 PyObject * obj2 = 0 ;
8598 PyObject * obj3 = 0 ;
8599 PyObject * obj4 = 0 ;
8600 PyObject * obj5 = 0 ;
8601 PyObject * obj6 = 0 ;
8602 PyObject * obj7 = 0 ;
8603 char * kwnames[] = {
8604 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8605 };
8606
8607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8609 if (!SWIG_IsOK(res1)) {
8610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8611 }
8612 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8613 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8614 if (!SWIG_IsOK(res2)) {
8615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8616 }
8617 arg2 = reinterpret_cast< wxWindow * >(argp2);
8618 if (obj2) {
8619 ecode3 = SWIG_AsVal_int(obj2, &val3);
8620 if (!SWIG_IsOK(ecode3)) {
8621 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8622 }
8623 arg3 = static_cast< int >(val3);
8624 }
8625 if (obj3) {
8626 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8627 if (!SWIG_IsOK(res4)) {
8628 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8629 }
8630 if (!argp4) {
8631 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8632 }
8633 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8634 }
8635 if (obj4) {
8636 {
8637 arg5 = &temp5;
8638 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8639 }
8640 }
8641 if (obj5) {
8642 {
8643 arg6 = &temp6;
8644 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8645 }
8646 }
8647 if (obj6) {
8648 ecode7 = SWIG_AsVal_long(obj6, &val7);
8649 if (!SWIG_IsOK(ecode7)) {
8650 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8651 }
8652 arg7 = static_cast< long >(val7);
8653 }
8654 if (obj7) {
8655 {
8656 arg8 = wxString_in_helper(obj7);
8657 if (arg8 == NULL) SWIG_fail;
8658 temp8 = true;
8659 }
8660 }
8661 {
8662 PyThreadState* __tstate = wxPyBeginAllowThreads();
8663 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8664 wxPyEndAllowThreads(__tstate);
8665 if (PyErr_Occurred()) SWIG_fail;
8666 }
8667 {
8668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8669 }
8670 {
8671 if (temp8)
8672 delete arg8;
8673 }
8674 return resultobj;
8675 fail:
8676 {
8677 if (temp8)
8678 delete arg8;
8679 }
8680 return NULL;
8681 }
8682
8683
8684 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8685 PyObject *resultobj = 0;
8686 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8687 wxBitmap result;
8688 void *argp1 = 0 ;
8689 int res1 = 0 ;
8690 PyObject *swig_obj[1] ;
8691
8692 if (!args) SWIG_fail;
8693 swig_obj[0] = args;
8694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8695 if (!SWIG_IsOK(res1)) {
8696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8697 }
8698 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8699 {
8700 PyThreadState* __tstate = wxPyBeginAllowThreads();
8701 result = (arg1)->GetBitmap();
8702 wxPyEndAllowThreads(__tstate);
8703 if (PyErr_Occurred()) SWIG_fail;
8704 }
8705 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8706 return resultobj;
8707 fail:
8708 return NULL;
8709 }
8710
8711
8712 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8713 PyObject *resultobj = 0;
8714 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8715 wxBitmap *arg2 = 0 ;
8716 void *argp1 = 0 ;
8717 int res1 = 0 ;
8718 void *argp2 = 0 ;
8719 int res2 = 0 ;
8720 PyObject * obj0 = 0 ;
8721 PyObject * obj1 = 0 ;
8722 char * kwnames[] = {
8723 (char *) "self",(char *) "bitmap", NULL
8724 };
8725
8726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8728 if (!SWIG_IsOK(res1)) {
8729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8730 }
8731 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8732 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8733 if (!SWIG_IsOK(res2)) {
8734 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8735 }
8736 if (!argp2) {
8737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8738 }
8739 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8740 {
8741 PyThreadState* __tstate = wxPyBeginAllowThreads();
8742 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8743 wxPyEndAllowThreads(__tstate);
8744 if (PyErr_Occurred()) SWIG_fail;
8745 }
8746 resultobj = SWIG_Py_Void();
8747 return resultobj;
8748 fail:
8749 return NULL;
8750 }
8751
8752
8753 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8754 PyObject *resultobj = 0;
8755 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8756 wxIcon *arg2 = 0 ;
8757 void *argp1 = 0 ;
8758 int res1 = 0 ;
8759 void *argp2 = 0 ;
8760 int res2 = 0 ;
8761 PyObject * obj0 = 0 ;
8762 PyObject * obj1 = 0 ;
8763 char * kwnames[] = {
8764 (char *) "self",(char *) "icon", NULL
8765 };
8766
8767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8769 if (!SWIG_IsOK(res1)) {
8770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8771 }
8772 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8773 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8774 if (!SWIG_IsOK(res2)) {
8775 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8776 }
8777 if (!argp2) {
8778 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8779 }
8780 arg2 = reinterpret_cast< wxIcon * >(argp2);
8781 {
8782 PyThreadState* __tstate = wxPyBeginAllowThreads();
8783 (arg1)->SetIcon((wxIcon const &)*arg2);
8784 wxPyEndAllowThreads(__tstate);
8785 if (PyErr_Occurred()) SWIG_fail;
8786 }
8787 resultobj = SWIG_Py_Void();
8788 return resultobj;
8789 fail:
8790 return NULL;
8791 }
8792
8793
8794 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8795 PyObject *resultobj = 0;
8796 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8797 SwigValueWrapper<wxVisualAttributes > result;
8798 int val1 ;
8799 int ecode1 = 0 ;
8800 PyObject * obj0 = 0 ;
8801 char * kwnames[] = {
8802 (char *) "variant", NULL
8803 };
8804
8805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8806 if (obj0) {
8807 ecode1 = SWIG_AsVal_int(obj0, &val1);
8808 if (!SWIG_IsOK(ecode1)) {
8809 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8810 }
8811 arg1 = static_cast< wxWindowVariant >(val1);
8812 }
8813 {
8814 if (!wxPyCheckForApp()) SWIG_fail;
8815 PyThreadState* __tstate = wxPyBeginAllowThreads();
8816 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8817 wxPyEndAllowThreads(__tstate);
8818 if (PyErr_Occurred()) SWIG_fail;
8819 }
8820 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8821 return resultobj;
8822 fail:
8823 return NULL;
8824 }
8825
8826
8827 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8828 PyObject *obj;
8829 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8830 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8831 return SWIG_Py_Void();
8832 }
8833
8834 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8835 return SWIG_Python_InitShadowInstance(args);
8836 }
8837
8838 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8839 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8840 return 1;
8841 }
8842
8843
8844 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8845 PyObject *pyobj = 0;
8846
8847 {
8848 #if wxUSE_UNICODE
8849 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8850 #else
8851 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8852 #endif
8853 }
8854 return pyobj;
8855 }
8856
8857
8858 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8859 PyObject *resultobj = 0;
8860 wxWindow *arg1 = (wxWindow *) 0 ;
8861 int arg2 = (int) -1 ;
8862 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8863 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8864 wxSize const &arg4_defvalue = wxDefaultSize ;
8865 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8866 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8867 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8868 long arg6 = (long) 0 ;
8869 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8870 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8871 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8872 wxString *arg8 = (wxString *) &arg8_defvalue ;
8873 wxListBox *result = 0 ;
8874 void *argp1 = 0 ;
8875 int res1 = 0 ;
8876 int val2 ;
8877 int ecode2 = 0 ;
8878 wxPoint temp3 ;
8879 wxSize temp4 ;
8880 bool temp5 = false ;
8881 long val6 ;
8882 int ecode6 = 0 ;
8883 void *argp7 = 0 ;
8884 int res7 = 0 ;
8885 bool temp8 = false ;
8886 PyObject * obj0 = 0 ;
8887 PyObject * obj1 = 0 ;
8888 PyObject * obj2 = 0 ;
8889 PyObject * obj3 = 0 ;
8890 PyObject * obj4 = 0 ;
8891 PyObject * obj5 = 0 ;
8892 PyObject * obj6 = 0 ;
8893 PyObject * obj7 = 0 ;
8894 char * kwnames[] = {
8895 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8896 };
8897
8898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8900 if (!SWIG_IsOK(res1)) {
8901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8902 }
8903 arg1 = reinterpret_cast< wxWindow * >(argp1);
8904 if (obj1) {
8905 ecode2 = SWIG_AsVal_int(obj1, &val2);
8906 if (!SWIG_IsOK(ecode2)) {
8907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8908 }
8909 arg2 = static_cast< int >(val2);
8910 }
8911 if (obj2) {
8912 {
8913 arg3 = &temp3;
8914 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8915 }
8916 }
8917 if (obj3) {
8918 {
8919 arg4 = &temp4;
8920 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8921 }
8922 }
8923 if (obj4) {
8924 {
8925 if (! PySequence_Check(obj4)) {
8926 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8927 SWIG_fail;
8928 }
8929 arg5 = new wxArrayString;
8930 temp5 = true;
8931 int i, len=PySequence_Length(obj4);
8932 for (i=0; i<len; i++) {
8933 PyObject* item = PySequence_GetItem(obj4, i);
8934 wxString* s = wxString_in_helper(item);
8935 if (PyErr_Occurred()) SWIG_fail;
8936 arg5->Add(*s);
8937 delete s;
8938 Py_DECREF(item);
8939 }
8940 }
8941 }
8942 if (obj5) {
8943 ecode6 = SWIG_AsVal_long(obj5, &val6);
8944 if (!SWIG_IsOK(ecode6)) {
8945 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8946 }
8947 arg6 = static_cast< long >(val6);
8948 }
8949 if (obj6) {
8950 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8951 if (!SWIG_IsOK(res7)) {
8952 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8953 }
8954 if (!argp7) {
8955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8956 }
8957 arg7 = reinterpret_cast< wxValidator * >(argp7);
8958 }
8959 if (obj7) {
8960 {
8961 arg8 = wxString_in_helper(obj7);
8962 if (arg8 == NULL) SWIG_fail;
8963 temp8 = true;
8964 }
8965 }
8966 {
8967 if (!wxPyCheckForApp()) SWIG_fail;
8968 PyThreadState* __tstate = wxPyBeginAllowThreads();
8969 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8970 wxPyEndAllowThreads(__tstate);
8971 if (PyErr_Occurred()) SWIG_fail;
8972 }
8973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8974 {
8975 if (temp5) delete arg5;
8976 }
8977 {
8978 if (temp8)
8979 delete arg8;
8980 }
8981 return resultobj;
8982 fail:
8983 {
8984 if (temp5) delete arg5;
8985 }
8986 {
8987 if (temp8)
8988 delete arg8;
8989 }
8990 return NULL;
8991 }
8992
8993
8994 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8995 PyObject *resultobj = 0;
8996 wxListBox *result = 0 ;
8997
8998 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8999 {
9000 if (!wxPyCheckForApp()) SWIG_fail;
9001 PyThreadState* __tstate = wxPyBeginAllowThreads();
9002 result = (wxListBox *)new wxListBox();
9003 wxPyEndAllowThreads(__tstate);
9004 if (PyErr_Occurred()) SWIG_fail;
9005 }
9006 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
9007 return resultobj;
9008 fail:
9009 return NULL;
9010 }
9011
9012
9013 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9014 PyObject *resultobj = 0;
9015 wxListBox *arg1 = (wxListBox *) 0 ;
9016 wxWindow *arg2 = (wxWindow *) 0 ;
9017 int arg3 = (int) -1 ;
9018 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9019 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9020 wxSize const &arg5_defvalue = wxDefaultSize ;
9021 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9022 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
9023 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
9024 long arg7 = (long) 0 ;
9025 wxValidator const &arg8_defvalue = wxDefaultValidator ;
9026 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
9027 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
9028 wxString *arg9 = (wxString *) &arg9_defvalue ;
9029 bool result;
9030 void *argp1 = 0 ;
9031 int res1 = 0 ;
9032 void *argp2 = 0 ;
9033 int res2 = 0 ;
9034 int val3 ;
9035 int ecode3 = 0 ;
9036 wxPoint temp4 ;
9037 wxSize temp5 ;
9038 bool temp6 = false ;
9039 long val7 ;
9040 int ecode7 = 0 ;
9041 void *argp8 = 0 ;
9042 int res8 = 0 ;
9043 bool temp9 = false ;
9044 PyObject * obj0 = 0 ;
9045 PyObject * obj1 = 0 ;
9046 PyObject * obj2 = 0 ;
9047 PyObject * obj3 = 0 ;
9048 PyObject * obj4 = 0 ;
9049 PyObject * obj5 = 0 ;
9050 PyObject * obj6 = 0 ;
9051 PyObject * obj7 = 0 ;
9052 PyObject * obj8 = 0 ;
9053 char * kwnames[] = {
9054 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9055 };
9056
9057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9059 if (!SWIG_IsOK(res1)) {
9060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9061 }
9062 arg1 = reinterpret_cast< wxListBox * >(argp1);
9063 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9064 if (!SWIG_IsOK(res2)) {
9065 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9066 }
9067 arg2 = reinterpret_cast< wxWindow * >(argp2);
9068 if (obj2) {
9069 ecode3 = SWIG_AsVal_int(obj2, &val3);
9070 if (!SWIG_IsOK(ecode3)) {
9071 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9072 }
9073 arg3 = static_cast< int >(val3);
9074 }
9075 if (obj3) {
9076 {
9077 arg4 = &temp4;
9078 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9079 }
9080 }
9081 if (obj4) {
9082 {
9083 arg5 = &temp5;
9084 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9085 }
9086 }
9087 if (obj5) {
9088 {
9089 if (! PySequence_Check(obj5)) {
9090 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9091 SWIG_fail;
9092 }
9093 arg6 = new wxArrayString;
9094 temp6 = true;
9095 int i, len=PySequence_Length(obj5);
9096 for (i=0; i<len; i++) {
9097 PyObject* item = PySequence_GetItem(obj5, i);
9098 wxString* s = wxString_in_helper(item);
9099 if (PyErr_Occurred()) SWIG_fail;
9100 arg6->Add(*s);
9101 delete s;
9102 Py_DECREF(item);
9103 }
9104 }
9105 }
9106 if (obj6) {
9107 ecode7 = SWIG_AsVal_long(obj6, &val7);
9108 if (!SWIG_IsOK(ecode7)) {
9109 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9110 }
9111 arg7 = static_cast< long >(val7);
9112 }
9113 if (obj7) {
9114 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9115 if (!SWIG_IsOK(res8)) {
9116 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9117 }
9118 if (!argp8) {
9119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9120 }
9121 arg8 = reinterpret_cast< wxValidator * >(argp8);
9122 }
9123 if (obj8) {
9124 {
9125 arg9 = wxString_in_helper(obj8);
9126 if (arg9 == NULL) SWIG_fail;
9127 temp9 = true;
9128 }
9129 }
9130 {
9131 PyThreadState* __tstate = wxPyBeginAllowThreads();
9132 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9133 wxPyEndAllowThreads(__tstate);
9134 if (PyErr_Occurred()) SWIG_fail;
9135 }
9136 {
9137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9138 }
9139 {
9140 if (temp6) delete arg6;
9141 }
9142 {
9143 if (temp9)
9144 delete arg9;
9145 }
9146 return resultobj;
9147 fail:
9148 {
9149 if (temp6) delete arg6;
9150 }
9151 {
9152 if (temp9)
9153 delete arg9;
9154 }
9155 return NULL;
9156 }
9157
9158
9159 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9160 PyObject *resultobj = 0;
9161 wxListBox *arg1 = (wxListBox *) 0 ;
9162 wxString *arg2 = 0 ;
9163 int arg3 ;
9164 PyObject *arg4 = (PyObject *) NULL ;
9165 void *argp1 = 0 ;
9166 int res1 = 0 ;
9167 bool temp2 = false ;
9168 int val3 ;
9169 int ecode3 = 0 ;
9170 PyObject * obj0 = 0 ;
9171 PyObject * obj1 = 0 ;
9172 PyObject * obj2 = 0 ;
9173 PyObject * obj3 = 0 ;
9174 char * kwnames[] = {
9175 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9176 };
9177
9178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9180 if (!SWIG_IsOK(res1)) {
9181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9182 }
9183 arg1 = reinterpret_cast< wxListBox * >(argp1);
9184 {
9185 arg2 = wxString_in_helper(obj1);
9186 if (arg2 == NULL) SWIG_fail;
9187 temp2 = true;
9188 }
9189 ecode3 = SWIG_AsVal_int(obj2, &val3);
9190 if (!SWIG_IsOK(ecode3)) {
9191 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9192 }
9193 arg3 = static_cast< int >(val3);
9194 if (obj3) {
9195 arg4 = obj3;
9196 }
9197 {
9198 PyThreadState* __tstate = wxPyBeginAllowThreads();
9199 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9200 wxPyEndAllowThreads(__tstate);
9201 if (PyErr_Occurred()) SWIG_fail;
9202 }
9203 resultobj = SWIG_Py_Void();
9204 {
9205 if (temp2)
9206 delete arg2;
9207 }
9208 return resultobj;
9209 fail:
9210 {
9211 if (temp2)
9212 delete arg2;
9213 }
9214 return NULL;
9215 }
9216
9217
9218 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9219 PyObject *resultobj = 0;
9220 wxListBox *arg1 = (wxListBox *) 0 ;
9221 wxArrayString *arg2 = 0 ;
9222 unsigned int arg3 ;
9223 void *argp1 = 0 ;
9224 int res1 = 0 ;
9225 bool temp2 = false ;
9226 unsigned int val3 ;
9227 int ecode3 = 0 ;
9228 PyObject * obj0 = 0 ;
9229 PyObject * obj1 = 0 ;
9230 PyObject * obj2 = 0 ;
9231 char * kwnames[] = {
9232 (char *) "self",(char *) "items",(char *) "pos", NULL
9233 };
9234
9235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9237 if (!SWIG_IsOK(res1)) {
9238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9239 }
9240 arg1 = reinterpret_cast< wxListBox * >(argp1);
9241 {
9242 if (! PySequence_Check(obj1)) {
9243 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9244 SWIG_fail;
9245 }
9246 arg2 = new wxArrayString;
9247 temp2 = true;
9248 int i, len=PySequence_Length(obj1);
9249 for (i=0; i<len; i++) {
9250 PyObject* item = PySequence_GetItem(obj1, i);
9251 wxString* s = wxString_in_helper(item);
9252 if (PyErr_Occurred()) SWIG_fail;
9253 arg2->Add(*s);
9254 delete s;
9255 Py_DECREF(item);
9256 }
9257 }
9258 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9259 if (!SWIG_IsOK(ecode3)) {
9260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9261 }
9262 arg3 = static_cast< unsigned int >(val3);
9263 {
9264 PyThreadState* __tstate = wxPyBeginAllowThreads();
9265 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9266 wxPyEndAllowThreads(__tstate);
9267 if (PyErr_Occurred()) SWIG_fail;
9268 }
9269 resultobj = SWIG_Py_Void();
9270 {
9271 if (temp2) delete arg2;
9272 }
9273 return resultobj;
9274 fail:
9275 {
9276 if (temp2) delete arg2;
9277 }
9278 return NULL;
9279 }
9280
9281
9282 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9283 PyObject *resultobj = 0;
9284 wxListBox *arg1 = (wxListBox *) 0 ;
9285 wxArrayString *arg2 = 0 ;
9286 void *argp1 = 0 ;
9287 int res1 = 0 ;
9288 bool temp2 = false ;
9289 PyObject * obj0 = 0 ;
9290 PyObject * obj1 = 0 ;
9291 char * kwnames[] = {
9292 (char *) "self",(char *) "items", NULL
9293 };
9294
9295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9297 if (!SWIG_IsOK(res1)) {
9298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9299 }
9300 arg1 = reinterpret_cast< wxListBox * >(argp1);
9301 {
9302 if (! PySequence_Check(obj1)) {
9303 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9304 SWIG_fail;
9305 }
9306 arg2 = new wxArrayString;
9307 temp2 = true;
9308 int i, len=PySequence_Length(obj1);
9309 for (i=0; i<len; i++) {
9310 PyObject* item = PySequence_GetItem(obj1, i);
9311 wxString* s = wxString_in_helper(item);
9312 if (PyErr_Occurred()) SWIG_fail;
9313 arg2->Add(*s);
9314 delete s;
9315 Py_DECREF(item);
9316 }
9317 }
9318 {
9319 PyThreadState* __tstate = wxPyBeginAllowThreads();
9320 (arg1)->Set((wxArrayString const &)*arg2);
9321 wxPyEndAllowThreads(__tstate);
9322 if (PyErr_Occurred()) SWIG_fail;
9323 }
9324 resultobj = SWIG_Py_Void();
9325 {
9326 if (temp2) delete arg2;
9327 }
9328 return resultobj;
9329 fail:
9330 {
9331 if (temp2) delete arg2;
9332 }
9333 return NULL;
9334 }
9335
9336
9337 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9338 PyObject *resultobj = 0;
9339 wxListBox *arg1 = (wxListBox *) 0 ;
9340 int arg2 ;
9341 bool result;
9342 void *argp1 = 0 ;
9343 int res1 = 0 ;
9344 int val2 ;
9345 int ecode2 = 0 ;
9346 PyObject * obj0 = 0 ;
9347 PyObject * obj1 = 0 ;
9348 char * kwnames[] = {
9349 (char *) "self",(char *) "n", NULL
9350 };
9351
9352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9354 if (!SWIG_IsOK(res1)) {
9355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9356 }
9357 arg1 = reinterpret_cast< wxListBox * >(argp1);
9358 ecode2 = SWIG_AsVal_int(obj1, &val2);
9359 if (!SWIG_IsOK(ecode2)) {
9360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9361 }
9362 arg2 = static_cast< int >(val2);
9363 {
9364 PyThreadState* __tstate = wxPyBeginAllowThreads();
9365 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9366 wxPyEndAllowThreads(__tstate);
9367 if (PyErr_Occurred()) SWIG_fail;
9368 }
9369 {
9370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9371 }
9372 return resultobj;
9373 fail:
9374 return NULL;
9375 }
9376
9377
9378 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9379 PyObject *resultobj = 0;
9380 wxListBox *arg1 = (wxListBox *) 0 ;
9381 int arg2 ;
9382 bool arg3 = (bool) true ;
9383 void *argp1 = 0 ;
9384 int res1 = 0 ;
9385 int val2 ;
9386 int ecode2 = 0 ;
9387 bool val3 ;
9388 int ecode3 = 0 ;
9389 PyObject * obj0 = 0 ;
9390 PyObject * obj1 = 0 ;
9391 PyObject * obj2 = 0 ;
9392 char * kwnames[] = {
9393 (char *) "self",(char *) "n",(char *) "select", NULL
9394 };
9395
9396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9398 if (!SWIG_IsOK(res1)) {
9399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9400 }
9401 arg1 = reinterpret_cast< wxListBox * >(argp1);
9402 ecode2 = SWIG_AsVal_int(obj1, &val2);
9403 if (!SWIG_IsOK(ecode2)) {
9404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9405 }
9406 arg2 = static_cast< int >(val2);
9407 if (obj2) {
9408 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9409 if (!SWIG_IsOK(ecode3)) {
9410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9411 }
9412 arg3 = static_cast< bool >(val3);
9413 }
9414 {
9415 PyThreadState* __tstate = wxPyBeginAllowThreads();
9416 (arg1)->SetSelection(arg2,arg3);
9417 wxPyEndAllowThreads(__tstate);
9418 if (PyErr_Occurred()) SWIG_fail;
9419 }
9420 resultobj = SWIG_Py_Void();
9421 return resultobj;
9422 fail:
9423 return NULL;
9424 }
9425
9426
9427 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9428 PyObject *resultobj = 0;
9429 wxListBox *arg1 = (wxListBox *) 0 ;
9430 int arg2 ;
9431 void *argp1 = 0 ;
9432 int res1 = 0 ;
9433 int val2 ;
9434 int ecode2 = 0 ;
9435 PyObject * obj0 = 0 ;
9436 PyObject * obj1 = 0 ;
9437 char * kwnames[] = {
9438 (char *) "self",(char *) "n", NULL
9439 };
9440
9441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9443 if (!SWIG_IsOK(res1)) {
9444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9445 }
9446 arg1 = reinterpret_cast< wxListBox * >(argp1);
9447 ecode2 = SWIG_AsVal_int(obj1, &val2);
9448 if (!SWIG_IsOK(ecode2)) {
9449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9450 }
9451 arg2 = static_cast< int >(val2);
9452 {
9453 PyThreadState* __tstate = wxPyBeginAllowThreads();
9454 (arg1)->Select(arg2);
9455 wxPyEndAllowThreads(__tstate);
9456 if (PyErr_Occurred()) SWIG_fail;
9457 }
9458 resultobj = SWIG_Py_Void();
9459 return resultobj;
9460 fail:
9461 return NULL;
9462 }
9463
9464
9465 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9466 PyObject *resultobj = 0;
9467 wxListBox *arg1 = (wxListBox *) 0 ;
9468 int arg2 ;
9469 void *argp1 = 0 ;
9470 int res1 = 0 ;
9471 int val2 ;
9472 int ecode2 = 0 ;
9473 PyObject * obj0 = 0 ;
9474 PyObject * obj1 = 0 ;
9475 char * kwnames[] = {
9476 (char *) "self",(char *) "n", NULL
9477 };
9478
9479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9481 if (!SWIG_IsOK(res1)) {
9482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9483 }
9484 arg1 = reinterpret_cast< wxListBox * >(argp1);
9485 ecode2 = SWIG_AsVal_int(obj1, &val2);
9486 if (!SWIG_IsOK(ecode2)) {
9487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9488 }
9489 arg2 = static_cast< int >(val2);
9490 {
9491 PyThreadState* __tstate = wxPyBeginAllowThreads();
9492 (arg1)->Deselect(arg2);
9493 wxPyEndAllowThreads(__tstate);
9494 if (PyErr_Occurred()) SWIG_fail;
9495 }
9496 resultobj = SWIG_Py_Void();
9497 return resultobj;
9498 fail:
9499 return NULL;
9500 }
9501
9502
9503 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9504 PyObject *resultobj = 0;
9505 wxListBox *arg1 = (wxListBox *) 0 ;
9506 int arg2 = (int) -1 ;
9507 void *argp1 = 0 ;
9508 int res1 = 0 ;
9509 int val2 ;
9510 int ecode2 = 0 ;
9511 PyObject * obj0 = 0 ;
9512 PyObject * obj1 = 0 ;
9513 char * kwnames[] = {
9514 (char *) "self",(char *) "itemToLeaveSelected", NULL
9515 };
9516
9517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9519 if (!SWIG_IsOK(res1)) {
9520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9521 }
9522 arg1 = reinterpret_cast< wxListBox * >(argp1);
9523 if (obj1) {
9524 ecode2 = SWIG_AsVal_int(obj1, &val2);
9525 if (!SWIG_IsOK(ecode2)) {
9526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9527 }
9528 arg2 = static_cast< int >(val2);
9529 }
9530 {
9531 PyThreadState* __tstate = wxPyBeginAllowThreads();
9532 (arg1)->DeselectAll(arg2);
9533 wxPyEndAllowThreads(__tstate);
9534 if (PyErr_Occurred()) SWIG_fail;
9535 }
9536 resultobj = SWIG_Py_Void();
9537 return resultobj;
9538 fail:
9539 return NULL;
9540 }
9541
9542
9543 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9544 PyObject *resultobj = 0;
9545 wxListBox *arg1 = (wxListBox *) 0 ;
9546 wxString *arg2 = 0 ;
9547 bool arg3 = (bool) true ;
9548 bool result;
9549 void *argp1 = 0 ;
9550 int res1 = 0 ;
9551 bool temp2 = false ;
9552 bool val3 ;
9553 int ecode3 = 0 ;
9554 PyObject * obj0 = 0 ;
9555 PyObject * obj1 = 0 ;
9556 PyObject * obj2 = 0 ;
9557 char * kwnames[] = {
9558 (char *) "self",(char *) "s",(char *) "select", NULL
9559 };
9560
9561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9563 if (!SWIG_IsOK(res1)) {
9564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9565 }
9566 arg1 = reinterpret_cast< wxListBox * >(argp1);
9567 {
9568 arg2 = wxString_in_helper(obj1);
9569 if (arg2 == NULL) SWIG_fail;
9570 temp2 = true;
9571 }
9572 if (obj2) {
9573 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9574 if (!SWIG_IsOK(ecode3)) {
9575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9576 }
9577 arg3 = static_cast< bool >(val3);
9578 }
9579 {
9580 PyThreadState* __tstate = wxPyBeginAllowThreads();
9581 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9582 wxPyEndAllowThreads(__tstate);
9583 if (PyErr_Occurred()) SWIG_fail;
9584 }
9585 {
9586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9587 }
9588 {
9589 if (temp2)
9590 delete arg2;
9591 }
9592 return resultobj;
9593 fail:
9594 {
9595 if (temp2)
9596 delete arg2;
9597 }
9598 return NULL;
9599 }
9600
9601
9602 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9603 PyObject *resultobj = 0;
9604 wxListBox *arg1 = (wxListBox *) 0 ;
9605 PyObject *result = 0 ;
9606 void *argp1 = 0 ;
9607 int res1 = 0 ;
9608 PyObject *swig_obj[1] ;
9609
9610 if (!args) SWIG_fail;
9611 swig_obj[0] = args;
9612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9613 if (!SWIG_IsOK(res1)) {
9614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9615 }
9616 arg1 = reinterpret_cast< wxListBox * >(argp1);
9617 {
9618 PyThreadState* __tstate = wxPyBeginAllowThreads();
9619 result = (PyObject *)wxListBox_GetSelections(arg1);
9620 wxPyEndAllowThreads(__tstate);
9621 if (PyErr_Occurred()) SWIG_fail;
9622 }
9623 resultobj = result;
9624 return resultobj;
9625 fail:
9626 return NULL;
9627 }
9628
9629
9630 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9631 PyObject *resultobj = 0;
9632 wxListBox *arg1 = (wxListBox *) 0 ;
9633 int arg2 ;
9634 void *argp1 = 0 ;
9635 int res1 = 0 ;
9636 int val2 ;
9637 int ecode2 = 0 ;
9638 PyObject * obj0 = 0 ;
9639 PyObject * obj1 = 0 ;
9640 char * kwnames[] = {
9641 (char *) "self",(char *) "n", NULL
9642 };
9643
9644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9646 if (!SWIG_IsOK(res1)) {
9647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9648 }
9649 arg1 = reinterpret_cast< wxListBox * >(argp1);
9650 ecode2 = SWIG_AsVal_int(obj1, &val2);
9651 if (!SWIG_IsOK(ecode2)) {
9652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9653 }
9654 arg2 = static_cast< int >(val2);
9655 {
9656 PyThreadState* __tstate = wxPyBeginAllowThreads();
9657 (arg1)->SetFirstItem(arg2);
9658 wxPyEndAllowThreads(__tstate);
9659 if (PyErr_Occurred()) SWIG_fail;
9660 }
9661 resultobj = SWIG_Py_Void();
9662 return resultobj;
9663 fail:
9664 return NULL;
9665 }
9666
9667
9668 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9669 PyObject *resultobj = 0;
9670 wxListBox *arg1 = (wxListBox *) 0 ;
9671 wxString *arg2 = 0 ;
9672 void *argp1 = 0 ;
9673 int res1 = 0 ;
9674 bool temp2 = false ;
9675 PyObject * obj0 = 0 ;
9676 PyObject * obj1 = 0 ;
9677 char * kwnames[] = {
9678 (char *) "self",(char *) "s", NULL
9679 };
9680
9681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9683 if (!SWIG_IsOK(res1)) {
9684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9685 }
9686 arg1 = reinterpret_cast< wxListBox * >(argp1);
9687 {
9688 arg2 = wxString_in_helper(obj1);
9689 if (arg2 == NULL) SWIG_fail;
9690 temp2 = true;
9691 }
9692 {
9693 PyThreadState* __tstate = wxPyBeginAllowThreads();
9694 (arg1)->SetFirstItem((wxString const &)*arg2);
9695 wxPyEndAllowThreads(__tstate);
9696 if (PyErr_Occurred()) SWIG_fail;
9697 }
9698 resultobj = SWIG_Py_Void();
9699 {
9700 if (temp2)
9701 delete arg2;
9702 }
9703 return resultobj;
9704 fail:
9705 {
9706 if (temp2)
9707 delete arg2;
9708 }
9709 return NULL;
9710 }
9711
9712
9713 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9714 PyObject *resultobj = 0;
9715 wxListBox *arg1 = (wxListBox *) 0 ;
9716 int arg2 ;
9717 void *argp1 = 0 ;
9718 int res1 = 0 ;
9719 int val2 ;
9720 int ecode2 = 0 ;
9721 PyObject * obj0 = 0 ;
9722 PyObject * obj1 = 0 ;
9723 char * kwnames[] = {
9724 (char *) "self",(char *) "n", NULL
9725 };
9726
9727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9729 if (!SWIG_IsOK(res1)) {
9730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9731 }
9732 arg1 = reinterpret_cast< wxListBox * >(argp1);
9733 ecode2 = SWIG_AsVal_int(obj1, &val2);
9734 if (!SWIG_IsOK(ecode2)) {
9735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9736 }
9737 arg2 = static_cast< int >(val2);
9738 {
9739 PyThreadState* __tstate = wxPyBeginAllowThreads();
9740 (arg1)->EnsureVisible(arg2);
9741 wxPyEndAllowThreads(__tstate);
9742 if (PyErr_Occurred()) SWIG_fail;
9743 }
9744 resultobj = SWIG_Py_Void();
9745 return resultobj;
9746 fail:
9747 return NULL;
9748 }
9749
9750
9751 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9752 PyObject *resultobj = 0;
9753 wxListBox *arg1 = (wxListBox *) 0 ;
9754 wxString *arg2 = 0 ;
9755 void *argp1 = 0 ;
9756 int res1 = 0 ;
9757 bool temp2 = false ;
9758 PyObject * obj0 = 0 ;
9759 PyObject * obj1 = 0 ;
9760 char * kwnames[] = {
9761 (char *) "self",(char *) "s", NULL
9762 };
9763
9764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9766 if (!SWIG_IsOK(res1)) {
9767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9768 }
9769 arg1 = reinterpret_cast< wxListBox * >(argp1);
9770 {
9771 arg2 = wxString_in_helper(obj1);
9772 if (arg2 == NULL) SWIG_fail;
9773 temp2 = true;
9774 }
9775 {
9776 PyThreadState* __tstate = wxPyBeginAllowThreads();
9777 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9778 wxPyEndAllowThreads(__tstate);
9779 if (PyErr_Occurred()) SWIG_fail;
9780 }
9781 resultobj = SWIG_Py_Void();
9782 {
9783 if (temp2)
9784 delete arg2;
9785 }
9786 return resultobj;
9787 fail:
9788 {
9789 if (temp2)
9790 delete arg2;
9791 }
9792 return NULL;
9793 }
9794
9795
9796 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9797 PyObject *resultobj = 0;
9798 wxListBox *arg1 = (wxListBox *) 0 ;
9799 bool result;
9800 void *argp1 = 0 ;
9801 int res1 = 0 ;
9802 PyObject *swig_obj[1] ;
9803
9804 if (!args) SWIG_fail;
9805 swig_obj[0] = args;
9806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9807 if (!SWIG_IsOK(res1)) {
9808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9809 }
9810 arg1 = reinterpret_cast< wxListBox * >(argp1);
9811 {
9812 PyThreadState* __tstate = wxPyBeginAllowThreads();
9813 result = (bool)((wxListBox const *)arg1)->IsSorted();
9814 wxPyEndAllowThreads(__tstate);
9815 if (PyErr_Occurred()) SWIG_fail;
9816 }
9817 {
9818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9819 }
9820 return resultobj;
9821 fail:
9822 return NULL;
9823 }
9824
9825
9826 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9827 PyObject *resultobj = 0;
9828 wxListBox *arg1 = (wxListBox *) 0 ;
9829 wxPoint *arg2 = 0 ;
9830 int result;
9831 void *argp1 = 0 ;
9832 int res1 = 0 ;
9833 wxPoint temp2 ;
9834 PyObject * obj0 = 0 ;
9835 PyObject * obj1 = 0 ;
9836 char * kwnames[] = {
9837 (char *) "self",(char *) "pt", NULL
9838 };
9839
9840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9842 if (!SWIG_IsOK(res1)) {
9843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9844 }
9845 arg1 = reinterpret_cast< wxListBox * >(argp1);
9846 {
9847 arg2 = &temp2;
9848 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9849 }
9850 {
9851 PyThreadState* __tstate = wxPyBeginAllowThreads();
9852 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9853 wxPyEndAllowThreads(__tstate);
9854 if (PyErr_Occurred()) SWIG_fail;
9855 }
9856 resultobj = SWIG_From_int(static_cast< int >(result));
9857 return resultobj;
9858 fail:
9859 return NULL;
9860 }
9861
9862
9863 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9864 PyObject *resultobj = 0;
9865 wxListBox *arg1 = (wxListBox *) 0 ;
9866 int arg2 ;
9867 wxColour *arg3 = 0 ;
9868 void *argp1 = 0 ;
9869 int res1 = 0 ;
9870 int val2 ;
9871 int ecode2 = 0 ;
9872 wxColour temp3 ;
9873 PyObject * obj0 = 0 ;
9874 PyObject * obj1 = 0 ;
9875 PyObject * obj2 = 0 ;
9876 char * kwnames[] = {
9877 (char *) "self",(char *) "item",(char *) "c", NULL
9878 };
9879
9880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9882 if (!SWIG_IsOK(res1)) {
9883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9884 }
9885 arg1 = reinterpret_cast< wxListBox * >(argp1);
9886 ecode2 = SWIG_AsVal_int(obj1, &val2);
9887 if (!SWIG_IsOK(ecode2)) {
9888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9889 }
9890 arg2 = static_cast< int >(val2);
9891 {
9892 arg3 = &temp3;
9893 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9894 }
9895 {
9896 PyThreadState* __tstate = wxPyBeginAllowThreads();
9897 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9898 wxPyEndAllowThreads(__tstate);
9899 if (PyErr_Occurred()) SWIG_fail;
9900 }
9901 resultobj = SWIG_Py_Void();
9902 return resultobj;
9903 fail:
9904 return NULL;
9905 }
9906
9907
9908 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9909 PyObject *resultobj = 0;
9910 wxListBox *arg1 = (wxListBox *) 0 ;
9911 int arg2 ;
9912 wxColour *arg3 = 0 ;
9913 void *argp1 = 0 ;
9914 int res1 = 0 ;
9915 int val2 ;
9916 int ecode2 = 0 ;
9917 wxColour temp3 ;
9918 PyObject * obj0 = 0 ;
9919 PyObject * obj1 = 0 ;
9920 PyObject * obj2 = 0 ;
9921 char * kwnames[] = {
9922 (char *) "self",(char *) "item",(char *) "c", NULL
9923 };
9924
9925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9927 if (!SWIG_IsOK(res1)) {
9928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9929 }
9930 arg1 = reinterpret_cast< wxListBox * >(argp1);
9931 ecode2 = SWIG_AsVal_int(obj1, &val2);
9932 if (!SWIG_IsOK(ecode2)) {
9933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9934 }
9935 arg2 = static_cast< int >(val2);
9936 {
9937 arg3 = &temp3;
9938 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9939 }
9940 {
9941 PyThreadState* __tstate = wxPyBeginAllowThreads();
9942 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9943 wxPyEndAllowThreads(__tstate);
9944 if (PyErr_Occurred()) SWIG_fail;
9945 }
9946 resultobj = SWIG_Py_Void();
9947 return resultobj;
9948 fail:
9949 return NULL;
9950 }
9951
9952
9953 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9954 PyObject *resultobj = 0;
9955 wxListBox *arg1 = (wxListBox *) 0 ;
9956 int arg2 ;
9957 wxFont *arg3 = 0 ;
9958 void *argp1 = 0 ;
9959 int res1 = 0 ;
9960 int val2 ;
9961 int ecode2 = 0 ;
9962 void *argp3 = 0 ;
9963 int res3 = 0 ;
9964 PyObject * obj0 = 0 ;
9965 PyObject * obj1 = 0 ;
9966 PyObject * obj2 = 0 ;
9967 char * kwnames[] = {
9968 (char *) "self",(char *) "item",(char *) "f", NULL
9969 };
9970
9971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9973 if (!SWIG_IsOK(res1)) {
9974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9975 }
9976 arg1 = reinterpret_cast< wxListBox * >(argp1);
9977 ecode2 = SWIG_AsVal_int(obj1, &val2);
9978 if (!SWIG_IsOK(ecode2)) {
9979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9980 }
9981 arg2 = static_cast< int >(val2);
9982 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9983 if (!SWIG_IsOK(res3)) {
9984 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9985 }
9986 if (!argp3) {
9987 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9988 }
9989 arg3 = reinterpret_cast< wxFont * >(argp3);
9990 {
9991 PyThreadState* __tstate = wxPyBeginAllowThreads();
9992 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9993 wxPyEndAllowThreads(__tstate);
9994 if (PyErr_Occurred()) SWIG_fail;
9995 }
9996 resultobj = SWIG_Py_Void();
9997 return resultobj;
9998 fail:
9999 return NULL;
10000 }
10001
10002
10003 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10004 PyObject *resultobj = 0;
10005 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
10006 SwigValueWrapper<wxVisualAttributes > result;
10007 int val1 ;
10008 int ecode1 = 0 ;
10009 PyObject * obj0 = 0 ;
10010 char * kwnames[] = {
10011 (char *) "variant", NULL
10012 };
10013
10014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
10015 if (obj0) {
10016 ecode1 = SWIG_AsVal_int(obj0, &val1);
10017 if (!SWIG_IsOK(ecode1)) {
10018 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
10019 }
10020 arg1 = static_cast< wxWindowVariant >(val1);
10021 }
10022 {
10023 if (!wxPyCheckForApp()) SWIG_fail;
10024 PyThreadState* __tstate = wxPyBeginAllowThreads();
10025 result = wxListBox::GetClassDefaultAttributes(arg1);
10026 wxPyEndAllowThreads(__tstate);
10027 if (PyErr_Occurred()) SWIG_fail;
10028 }
10029 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
10030 return resultobj;
10031 fail:
10032 return NULL;
10033 }
10034
10035
10036 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10037 PyObject *obj;
10038 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10039 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
10040 return SWIG_Py_Void();
10041 }
10042
10043 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10044 return SWIG_Python_InitShadowInstance(args);
10045 }
10046
10047 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10048 PyObject *resultobj = 0;
10049 wxWindow *arg1 = (wxWindow *) 0 ;
10050 int arg2 = (int) -1 ;
10051 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10052 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10053 wxSize const &arg4_defvalue = wxDefaultSize ;
10054 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10055 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10056 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10057 long arg6 = (long) 0 ;
10058 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10059 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10060 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10061 wxString *arg8 = (wxString *) &arg8_defvalue ;
10062 wxCheckListBox *result = 0 ;
10063 void *argp1 = 0 ;
10064 int res1 = 0 ;
10065 int val2 ;
10066 int ecode2 = 0 ;
10067 wxPoint temp3 ;
10068 wxSize temp4 ;
10069 bool temp5 = false ;
10070 long val6 ;
10071 int ecode6 = 0 ;
10072 void *argp7 = 0 ;
10073 int res7 = 0 ;
10074 bool temp8 = false ;
10075 PyObject * obj0 = 0 ;
10076 PyObject * obj1 = 0 ;
10077 PyObject * obj2 = 0 ;
10078 PyObject * obj3 = 0 ;
10079 PyObject * obj4 = 0 ;
10080 PyObject * obj5 = 0 ;
10081 PyObject * obj6 = 0 ;
10082 PyObject * obj7 = 0 ;
10083 char * kwnames[] = {
10084 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10085 };
10086
10087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10089 if (!SWIG_IsOK(res1)) {
10090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10091 }
10092 arg1 = reinterpret_cast< wxWindow * >(argp1);
10093 if (obj1) {
10094 ecode2 = SWIG_AsVal_int(obj1, &val2);
10095 if (!SWIG_IsOK(ecode2)) {
10096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10097 }
10098 arg2 = static_cast< int >(val2);
10099 }
10100 if (obj2) {
10101 {
10102 arg3 = &temp3;
10103 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10104 }
10105 }
10106 if (obj3) {
10107 {
10108 arg4 = &temp4;
10109 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10110 }
10111 }
10112 if (obj4) {
10113 {
10114 if (! PySequence_Check(obj4)) {
10115 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10116 SWIG_fail;
10117 }
10118 arg5 = new wxArrayString;
10119 temp5 = true;
10120 int i, len=PySequence_Length(obj4);
10121 for (i=0; i<len; i++) {
10122 PyObject* item = PySequence_GetItem(obj4, i);
10123 wxString* s = wxString_in_helper(item);
10124 if (PyErr_Occurred()) SWIG_fail;
10125 arg5->Add(*s);
10126 delete s;
10127 Py_DECREF(item);
10128 }
10129 }
10130 }
10131 if (obj5) {
10132 ecode6 = SWIG_AsVal_long(obj5, &val6);
10133 if (!SWIG_IsOK(ecode6)) {
10134 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10135 }
10136 arg6 = static_cast< long >(val6);
10137 }
10138 if (obj6) {
10139 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10140 if (!SWIG_IsOK(res7)) {
10141 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10142 }
10143 if (!argp7) {
10144 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10145 }
10146 arg7 = reinterpret_cast< wxValidator * >(argp7);
10147 }
10148 if (obj7) {
10149 {
10150 arg8 = wxString_in_helper(obj7);
10151 if (arg8 == NULL) SWIG_fail;
10152 temp8 = true;
10153 }
10154 }
10155 {
10156 if (!wxPyCheckForApp()) SWIG_fail;
10157 PyThreadState* __tstate = wxPyBeginAllowThreads();
10158 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10159 wxPyEndAllowThreads(__tstate);
10160 if (PyErr_Occurred()) SWIG_fail;
10161 }
10162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10163 {
10164 if (temp5) delete arg5;
10165 }
10166 {
10167 if (temp8)
10168 delete arg8;
10169 }
10170 return resultobj;
10171 fail:
10172 {
10173 if (temp5) delete arg5;
10174 }
10175 {
10176 if (temp8)
10177 delete arg8;
10178 }
10179 return NULL;
10180 }
10181
10182
10183 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10184 PyObject *resultobj = 0;
10185 wxCheckListBox *result = 0 ;
10186
10187 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10188 {
10189 if (!wxPyCheckForApp()) SWIG_fail;
10190 PyThreadState* __tstate = wxPyBeginAllowThreads();
10191 result = (wxCheckListBox *)new wxCheckListBox();
10192 wxPyEndAllowThreads(__tstate);
10193 if (PyErr_Occurred()) SWIG_fail;
10194 }
10195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10196 return resultobj;
10197 fail:
10198 return NULL;
10199 }
10200
10201
10202 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10203 PyObject *resultobj = 0;
10204 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10205 wxWindow *arg2 = (wxWindow *) 0 ;
10206 int arg3 = (int) -1 ;
10207 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10208 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10209 wxSize const &arg5_defvalue = wxDefaultSize ;
10210 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10211 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10212 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10213 long arg7 = (long) 0 ;
10214 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10215 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10216 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10217 wxString *arg9 = (wxString *) &arg9_defvalue ;
10218 bool result;
10219 void *argp1 = 0 ;
10220 int res1 = 0 ;
10221 void *argp2 = 0 ;
10222 int res2 = 0 ;
10223 int val3 ;
10224 int ecode3 = 0 ;
10225 wxPoint temp4 ;
10226 wxSize temp5 ;
10227 bool temp6 = false ;
10228 long val7 ;
10229 int ecode7 = 0 ;
10230 void *argp8 = 0 ;
10231 int res8 = 0 ;
10232 bool temp9 = false ;
10233 PyObject * obj0 = 0 ;
10234 PyObject * obj1 = 0 ;
10235 PyObject * obj2 = 0 ;
10236 PyObject * obj3 = 0 ;
10237 PyObject * obj4 = 0 ;
10238 PyObject * obj5 = 0 ;
10239 PyObject * obj6 = 0 ;
10240 PyObject * obj7 = 0 ;
10241 PyObject * obj8 = 0 ;
10242 char * kwnames[] = {
10243 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10244 };
10245
10246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10248 if (!SWIG_IsOK(res1)) {
10249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10250 }
10251 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10252 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10253 if (!SWIG_IsOK(res2)) {
10254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10255 }
10256 arg2 = reinterpret_cast< wxWindow * >(argp2);
10257 if (obj2) {
10258 ecode3 = SWIG_AsVal_int(obj2, &val3);
10259 if (!SWIG_IsOK(ecode3)) {
10260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10261 }
10262 arg3 = static_cast< int >(val3);
10263 }
10264 if (obj3) {
10265 {
10266 arg4 = &temp4;
10267 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10268 }
10269 }
10270 if (obj4) {
10271 {
10272 arg5 = &temp5;
10273 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10274 }
10275 }
10276 if (obj5) {
10277 {
10278 if (! PySequence_Check(obj5)) {
10279 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10280 SWIG_fail;
10281 }
10282 arg6 = new wxArrayString;
10283 temp6 = true;
10284 int i, len=PySequence_Length(obj5);
10285 for (i=0; i<len; i++) {
10286 PyObject* item = PySequence_GetItem(obj5, i);
10287 wxString* s = wxString_in_helper(item);
10288 if (PyErr_Occurred()) SWIG_fail;
10289 arg6->Add(*s);
10290 delete s;
10291 Py_DECREF(item);
10292 }
10293 }
10294 }
10295 if (obj6) {
10296 ecode7 = SWIG_AsVal_long(obj6, &val7);
10297 if (!SWIG_IsOK(ecode7)) {
10298 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10299 }
10300 arg7 = static_cast< long >(val7);
10301 }
10302 if (obj7) {
10303 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10304 if (!SWIG_IsOK(res8)) {
10305 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10306 }
10307 if (!argp8) {
10308 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10309 }
10310 arg8 = reinterpret_cast< wxValidator * >(argp8);
10311 }
10312 if (obj8) {
10313 {
10314 arg9 = wxString_in_helper(obj8);
10315 if (arg9 == NULL) SWIG_fail;
10316 temp9 = true;
10317 }
10318 }
10319 {
10320 PyThreadState* __tstate = wxPyBeginAllowThreads();
10321 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10322 wxPyEndAllowThreads(__tstate);
10323 if (PyErr_Occurred()) SWIG_fail;
10324 }
10325 {
10326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10327 }
10328 {
10329 if (temp6) delete arg6;
10330 }
10331 {
10332 if (temp9)
10333 delete arg9;
10334 }
10335 return resultobj;
10336 fail:
10337 {
10338 if (temp6) delete arg6;
10339 }
10340 {
10341 if (temp9)
10342 delete arg9;
10343 }
10344 return NULL;
10345 }
10346
10347
10348 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10349 PyObject *resultobj = 0;
10350 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10351 unsigned int arg2 ;
10352 bool result;
10353 void *argp1 = 0 ;
10354 int res1 = 0 ;
10355 unsigned int val2 ;
10356 int ecode2 = 0 ;
10357 PyObject * obj0 = 0 ;
10358 PyObject * obj1 = 0 ;
10359 char * kwnames[] = {
10360 (char *) "self",(char *) "index", NULL
10361 };
10362
10363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10365 if (!SWIG_IsOK(res1)) {
10366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10367 }
10368 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10369 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10370 if (!SWIG_IsOK(ecode2)) {
10371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10372 }
10373 arg2 = static_cast< unsigned int >(val2);
10374 {
10375 PyThreadState* __tstate = wxPyBeginAllowThreads();
10376 result = (bool)(arg1)->IsChecked(arg2);
10377 wxPyEndAllowThreads(__tstate);
10378 if (PyErr_Occurred()) SWIG_fail;
10379 }
10380 {
10381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10382 }
10383 return resultobj;
10384 fail:
10385 return NULL;
10386 }
10387
10388
10389 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10390 PyObject *resultobj = 0;
10391 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10392 unsigned int arg2 ;
10393 int arg3 = (int) true ;
10394 void *argp1 = 0 ;
10395 int res1 = 0 ;
10396 unsigned int val2 ;
10397 int ecode2 = 0 ;
10398 int val3 ;
10399 int ecode3 = 0 ;
10400 PyObject * obj0 = 0 ;
10401 PyObject * obj1 = 0 ;
10402 PyObject * obj2 = 0 ;
10403 char * kwnames[] = {
10404 (char *) "self",(char *) "index",(char *) "check", NULL
10405 };
10406
10407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10409 if (!SWIG_IsOK(res1)) {
10410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10411 }
10412 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10413 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10414 if (!SWIG_IsOK(ecode2)) {
10415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10416 }
10417 arg2 = static_cast< unsigned int >(val2);
10418 if (obj2) {
10419 ecode3 = SWIG_AsVal_int(obj2, &val3);
10420 if (!SWIG_IsOK(ecode3)) {
10421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10422 }
10423 arg3 = static_cast< int >(val3);
10424 }
10425 {
10426 PyThreadState* __tstate = wxPyBeginAllowThreads();
10427 (arg1)->Check(arg2,arg3);
10428 wxPyEndAllowThreads(__tstate);
10429 if (PyErr_Occurred()) SWIG_fail;
10430 }
10431 resultobj = SWIG_Py_Void();
10432 return resultobj;
10433 fail:
10434 return NULL;
10435 }
10436
10437
10438 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10439 PyObject *resultobj = 0;
10440 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10441 int result;
10442 void *argp1 = 0 ;
10443 int res1 = 0 ;
10444 PyObject *swig_obj[1] ;
10445
10446 if (!args) SWIG_fail;
10447 swig_obj[0] = args;
10448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10449 if (!SWIG_IsOK(res1)) {
10450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10451 }
10452 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10453 {
10454 PyThreadState* __tstate = wxPyBeginAllowThreads();
10455 result = (int)(arg1)->GetItemHeight();
10456 wxPyEndAllowThreads(__tstate);
10457 if (PyErr_Occurred()) SWIG_fail;
10458 }
10459 resultobj = SWIG_From_int(static_cast< int >(result));
10460 return resultobj;
10461 fail:
10462 return NULL;
10463 }
10464
10465
10466 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10467 PyObject *obj;
10468 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10469 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10470 return SWIG_Py_Void();
10471 }
10472
10473 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10474 return SWIG_Python_InitShadowInstance(args);
10475 }
10476
10477 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10478 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10479 return 1;
10480 }
10481
10482
10483 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10484 PyObject *pyobj = 0;
10485
10486 {
10487 #if wxUSE_UNICODE
10488 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10489 #else
10490 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10491 #endif
10492 }
10493 return pyobj;
10494 }
10495
10496
10497 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10498 PyObject *resultobj = 0;
10499 wxColour const &arg1_defvalue = wxNullColour ;
10500 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10501 wxColour const &arg2_defvalue = wxNullColour ;
10502 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10503 wxFont const &arg3_defvalue = wxNullFont ;
10504 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10505 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10506 wxTextAttr *result = 0 ;
10507 wxColour temp1 ;
10508 wxColour temp2 ;
10509 void *argp3 = 0 ;
10510 int res3 = 0 ;
10511 int val4 ;
10512 int ecode4 = 0 ;
10513 PyObject * obj0 = 0 ;
10514 PyObject * obj1 = 0 ;
10515 PyObject * obj2 = 0 ;
10516 PyObject * obj3 = 0 ;
10517 char * kwnames[] = {
10518 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10519 };
10520
10521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10522 if (obj0) {
10523 {
10524 arg1 = &temp1;
10525 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10526 }
10527 }
10528 if (obj1) {
10529 {
10530 arg2 = &temp2;
10531 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10532 }
10533 }
10534 if (obj2) {
10535 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10536 if (!SWIG_IsOK(res3)) {
10537 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10538 }
10539 if (!argp3) {
10540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10541 }
10542 arg3 = reinterpret_cast< wxFont * >(argp3);
10543 }
10544 if (obj3) {
10545 ecode4 = SWIG_AsVal_int(obj3, &val4);
10546 if (!SWIG_IsOK(ecode4)) {
10547 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10548 }
10549 arg4 = static_cast< wxTextAttrAlignment >(val4);
10550 }
10551 {
10552 PyThreadState* __tstate = wxPyBeginAllowThreads();
10553 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10554 wxPyEndAllowThreads(__tstate);
10555 if (PyErr_Occurred()) SWIG_fail;
10556 }
10557 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10558 return resultobj;
10559 fail:
10560 return NULL;
10561 }
10562
10563
10564 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10565 PyObject *resultobj = 0;
10566 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10567 void *argp1 = 0 ;
10568 int res1 = 0 ;
10569 PyObject *swig_obj[1] ;
10570
10571 if (!args) SWIG_fail;
10572 swig_obj[0] = args;
10573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10574 if (!SWIG_IsOK(res1)) {
10575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10576 }
10577 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10578 {
10579 PyThreadState* __tstate = wxPyBeginAllowThreads();
10580 delete arg1;
10581
10582 wxPyEndAllowThreads(__tstate);
10583 if (PyErr_Occurred()) SWIG_fail;
10584 }
10585 resultobj = SWIG_Py_Void();
10586 return resultobj;
10587 fail:
10588 return NULL;
10589 }
10590
10591
10592 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10593 PyObject *resultobj = 0;
10594 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10595 void *argp1 = 0 ;
10596 int res1 = 0 ;
10597 PyObject *swig_obj[1] ;
10598
10599 if (!args) SWIG_fail;
10600 swig_obj[0] = args;
10601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10602 if (!SWIG_IsOK(res1)) {
10603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10604 }
10605 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10606 {
10607 PyThreadState* __tstate = wxPyBeginAllowThreads();
10608 (arg1)->Init();
10609 wxPyEndAllowThreads(__tstate);
10610 if (PyErr_Occurred()) SWIG_fail;
10611 }
10612 resultobj = SWIG_Py_Void();
10613 return resultobj;
10614 fail:
10615 return NULL;
10616 }
10617
10618
10619 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10620 PyObject *resultobj = 0;
10621 wxTextAttr *arg1 = 0 ;
10622 wxTextAttr *arg2 = 0 ;
10623 wxTextAttr result;
10624 void *argp1 = 0 ;
10625 int res1 = 0 ;
10626 void *argp2 = 0 ;
10627 int res2 = 0 ;
10628 PyObject * obj0 = 0 ;
10629 PyObject * obj1 = 0 ;
10630 char * kwnames[] = {
10631 (char *) "base",(char *) "overlay", NULL
10632 };
10633
10634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10635 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10636 if (!SWIG_IsOK(res1)) {
10637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10638 }
10639 if (!argp1) {
10640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10641 }
10642 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10643 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10644 if (!SWIG_IsOK(res2)) {
10645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10646 }
10647 if (!argp2) {
10648 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10649 }
10650 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10651 {
10652 PyThreadState* __tstate = wxPyBeginAllowThreads();
10653 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10654 wxPyEndAllowThreads(__tstate);
10655 if (PyErr_Occurred()) SWIG_fail;
10656 }
10657 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10658 return resultobj;
10659 fail:
10660 return NULL;
10661 }
10662
10663
10664 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10665 PyObject *resultobj = 0;
10666 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10667 wxColour *arg2 = 0 ;
10668 void *argp1 = 0 ;
10669 int res1 = 0 ;
10670 wxColour temp2 ;
10671 PyObject * obj0 = 0 ;
10672 PyObject * obj1 = 0 ;
10673 char * kwnames[] = {
10674 (char *) "self",(char *) "colText", NULL
10675 };
10676
10677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10679 if (!SWIG_IsOK(res1)) {
10680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10681 }
10682 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10683 {
10684 arg2 = &temp2;
10685 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10686 }
10687 {
10688 PyThreadState* __tstate = wxPyBeginAllowThreads();
10689 (arg1)->SetTextColour((wxColour const &)*arg2);
10690 wxPyEndAllowThreads(__tstate);
10691 if (PyErr_Occurred()) SWIG_fail;
10692 }
10693 resultobj = SWIG_Py_Void();
10694 return resultobj;
10695 fail:
10696 return NULL;
10697 }
10698
10699
10700 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10701 PyObject *resultobj = 0;
10702 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10703 wxColour *arg2 = 0 ;
10704 void *argp1 = 0 ;
10705 int res1 = 0 ;
10706 wxColour temp2 ;
10707 PyObject * obj0 = 0 ;
10708 PyObject * obj1 = 0 ;
10709 char * kwnames[] = {
10710 (char *) "self",(char *) "colBack", NULL
10711 };
10712
10713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10715 if (!SWIG_IsOK(res1)) {
10716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10717 }
10718 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10719 {
10720 arg2 = &temp2;
10721 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10722 }
10723 {
10724 PyThreadState* __tstate = wxPyBeginAllowThreads();
10725 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10726 wxPyEndAllowThreads(__tstate);
10727 if (PyErr_Occurred()) SWIG_fail;
10728 }
10729 resultobj = SWIG_Py_Void();
10730 return resultobj;
10731 fail:
10732 return NULL;
10733 }
10734
10735
10736 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10737 PyObject *resultobj = 0;
10738 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10739 wxFont *arg2 = 0 ;
10740 long arg3 = (long) wxTEXT_ATTR_FONT ;
10741 void *argp1 = 0 ;
10742 int res1 = 0 ;
10743 void *argp2 = 0 ;
10744 int res2 = 0 ;
10745 long val3 ;
10746 int ecode3 = 0 ;
10747 PyObject * obj0 = 0 ;
10748 PyObject * obj1 = 0 ;
10749 PyObject * obj2 = 0 ;
10750 char * kwnames[] = {
10751 (char *) "self",(char *) "font",(char *) "flags", NULL
10752 };
10753
10754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10756 if (!SWIG_IsOK(res1)) {
10757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10758 }
10759 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10760 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10761 if (!SWIG_IsOK(res2)) {
10762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10763 }
10764 if (!argp2) {
10765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10766 }
10767 arg2 = reinterpret_cast< wxFont * >(argp2);
10768 if (obj2) {
10769 ecode3 = SWIG_AsVal_long(obj2, &val3);
10770 if (!SWIG_IsOK(ecode3)) {
10771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10772 }
10773 arg3 = static_cast< long >(val3);
10774 }
10775 {
10776 PyThreadState* __tstate = wxPyBeginAllowThreads();
10777 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10778 wxPyEndAllowThreads(__tstate);
10779 if (PyErr_Occurred()) SWIG_fail;
10780 }
10781 resultobj = SWIG_Py_Void();
10782 return resultobj;
10783 fail:
10784 return NULL;
10785 }
10786
10787
10788 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10789 PyObject *resultobj = 0;
10790 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10791 wxTextAttrAlignment arg2 ;
10792 void *argp1 = 0 ;
10793 int res1 = 0 ;
10794 int val2 ;
10795 int ecode2 = 0 ;
10796 PyObject * obj0 = 0 ;
10797 PyObject * obj1 = 0 ;
10798 char * kwnames[] = {
10799 (char *) "self",(char *) "alignment", NULL
10800 };
10801
10802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10804 if (!SWIG_IsOK(res1)) {
10805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10806 }
10807 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10808 ecode2 = SWIG_AsVal_int(obj1, &val2);
10809 if (!SWIG_IsOK(ecode2)) {
10810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10811 }
10812 arg2 = static_cast< wxTextAttrAlignment >(val2);
10813 {
10814 PyThreadState* __tstate = wxPyBeginAllowThreads();
10815 (arg1)->SetAlignment(arg2);
10816 wxPyEndAllowThreads(__tstate);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 }
10819 resultobj = SWIG_Py_Void();
10820 return resultobj;
10821 fail:
10822 return NULL;
10823 }
10824
10825
10826 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10827 PyObject *resultobj = 0;
10828 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10829 wxArrayInt *arg2 = 0 ;
10830 void *argp1 = 0 ;
10831 int res1 = 0 ;
10832 bool temp2 = false ;
10833 PyObject * obj0 = 0 ;
10834 PyObject * obj1 = 0 ;
10835 char * kwnames[] = {
10836 (char *) "self",(char *) "tabs", NULL
10837 };
10838
10839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10841 if (!SWIG_IsOK(res1)) {
10842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10843 }
10844 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10845 {
10846 if (! PySequence_Check(obj1)) {
10847 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10848 SWIG_fail;
10849 }
10850 arg2 = new wxArrayInt;
10851 temp2 = true;
10852 int i, len=PySequence_Length(obj1);
10853 for (i=0; i<len; i++) {
10854 PyObject* item = PySequence_GetItem(obj1, i);
10855 PyObject* number = PyNumber_Int(item);
10856 if (!number) {
10857 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10858 SWIG_fail;
10859 }
10860 arg2->Add(PyInt_AS_LONG(number));
10861 Py_DECREF(item);
10862 Py_DECREF(number);
10863 }
10864 }
10865 {
10866 PyThreadState* __tstate = wxPyBeginAllowThreads();
10867 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10868 wxPyEndAllowThreads(__tstate);
10869 if (PyErr_Occurred()) SWIG_fail;
10870 }
10871 resultobj = SWIG_Py_Void();
10872 {
10873 if (temp2) delete arg2;
10874 }
10875 return resultobj;
10876 fail:
10877 {
10878 if (temp2) delete arg2;
10879 }
10880 return NULL;
10881 }
10882
10883
10884 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10885 PyObject *resultobj = 0;
10886 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10887 int arg2 ;
10888 int arg3 = (int) 0 ;
10889 void *argp1 = 0 ;
10890 int res1 = 0 ;
10891 int val2 ;
10892 int ecode2 = 0 ;
10893 int val3 ;
10894 int ecode3 = 0 ;
10895 PyObject * obj0 = 0 ;
10896 PyObject * obj1 = 0 ;
10897 PyObject * obj2 = 0 ;
10898 char * kwnames[] = {
10899 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10900 };
10901
10902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10904 if (!SWIG_IsOK(res1)) {
10905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10906 }
10907 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10908 ecode2 = SWIG_AsVal_int(obj1, &val2);
10909 if (!SWIG_IsOK(ecode2)) {
10910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10911 }
10912 arg2 = static_cast< int >(val2);
10913 if (obj2) {
10914 ecode3 = SWIG_AsVal_int(obj2, &val3);
10915 if (!SWIG_IsOK(ecode3)) {
10916 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10917 }
10918 arg3 = static_cast< int >(val3);
10919 }
10920 {
10921 PyThreadState* __tstate = wxPyBeginAllowThreads();
10922 (arg1)->SetLeftIndent(arg2,arg3);
10923 wxPyEndAllowThreads(__tstate);
10924 if (PyErr_Occurred()) SWIG_fail;
10925 }
10926 resultobj = SWIG_Py_Void();
10927 return resultobj;
10928 fail:
10929 return NULL;
10930 }
10931
10932
10933 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10934 PyObject *resultobj = 0;
10935 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10936 int arg2 ;
10937 void *argp1 = 0 ;
10938 int res1 = 0 ;
10939 int val2 ;
10940 int ecode2 = 0 ;
10941 PyObject * obj0 = 0 ;
10942 PyObject * obj1 = 0 ;
10943 char * kwnames[] = {
10944 (char *) "self",(char *) "indent", NULL
10945 };
10946
10947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10949 if (!SWIG_IsOK(res1)) {
10950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10951 }
10952 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10953 ecode2 = SWIG_AsVal_int(obj1, &val2);
10954 if (!SWIG_IsOK(ecode2)) {
10955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10956 }
10957 arg2 = static_cast< int >(val2);
10958 {
10959 PyThreadState* __tstate = wxPyBeginAllowThreads();
10960 (arg1)->SetRightIndent(arg2);
10961 wxPyEndAllowThreads(__tstate);
10962 if (PyErr_Occurred()) SWIG_fail;
10963 }
10964 resultobj = SWIG_Py_Void();
10965 return resultobj;
10966 fail:
10967 return NULL;
10968 }
10969
10970
10971 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10972 PyObject *resultobj = 0;
10973 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10974 long arg2 ;
10975 void *argp1 = 0 ;
10976 int res1 = 0 ;
10977 long val2 ;
10978 int ecode2 = 0 ;
10979 PyObject * obj0 = 0 ;
10980 PyObject * obj1 = 0 ;
10981 char * kwnames[] = {
10982 (char *) "self",(char *) "flags", NULL
10983 };
10984
10985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10987 if (!SWIG_IsOK(res1)) {
10988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10989 }
10990 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10991 ecode2 = SWIG_AsVal_long(obj1, &val2);
10992 if (!SWIG_IsOK(ecode2)) {
10993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10994 }
10995 arg2 = static_cast< long >(val2);
10996 {
10997 PyThreadState* __tstate = wxPyBeginAllowThreads();
10998 (arg1)->SetFlags(arg2);
10999 wxPyEndAllowThreads(__tstate);
11000 if (PyErr_Occurred()) SWIG_fail;
11001 }
11002 resultobj = SWIG_Py_Void();
11003 return resultobj;
11004 fail:
11005 return NULL;
11006 }
11007
11008
11009 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11010 PyObject *resultobj = 0;
11011 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11012 bool result;
11013 void *argp1 = 0 ;
11014 int res1 = 0 ;
11015 PyObject *swig_obj[1] ;
11016
11017 if (!args) SWIG_fail;
11018 swig_obj[0] = args;
11019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11020 if (!SWIG_IsOK(res1)) {
11021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11022 }
11023 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11024 {
11025 PyThreadState* __tstate = wxPyBeginAllowThreads();
11026 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
11027 wxPyEndAllowThreads(__tstate);
11028 if (PyErr_Occurred()) SWIG_fail;
11029 }
11030 {
11031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11032 }
11033 return resultobj;
11034 fail:
11035 return NULL;
11036 }
11037
11038
11039 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11040 PyObject *resultobj = 0;
11041 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11042 bool result;
11043 void *argp1 = 0 ;
11044 int res1 = 0 ;
11045 PyObject *swig_obj[1] ;
11046
11047 if (!args) SWIG_fail;
11048 swig_obj[0] = args;
11049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11050 if (!SWIG_IsOK(res1)) {
11051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11052 }
11053 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11054 {
11055 PyThreadState* __tstate = wxPyBeginAllowThreads();
11056 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11057 wxPyEndAllowThreads(__tstate);
11058 if (PyErr_Occurred()) SWIG_fail;
11059 }
11060 {
11061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11062 }
11063 return resultobj;
11064 fail:
11065 return NULL;
11066 }
11067
11068
11069 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11070 PyObject *resultobj = 0;
11071 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11072 bool result;
11073 void *argp1 = 0 ;
11074 int res1 = 0 ;
11075 PyObject *swig_obj[1] ;
11076
11077 if (!args) SWIG_fail;
11078 swig_obj[0] = args;
11079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11080 if (!SWIG_IsOK(res1)) {
11081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11082 }
11083 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11084 {
11085 PyThreadState* __tstate = wxPyBeginAllowThreads();
11086 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11087 wxPyEndAllowThreads(__tstate);
11088 if (PyErr_Occurred()) SWIG_fail;
11089 }
11090 {
11091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11092 }
11093 return resultobj;
11094 fail:
11095 return NULL;
11096 }
11097
11098
11099 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11100 PyObject *resultobj = 0;
11101 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11102 bool result;
11103 void *argp1 = 0 ;
11104 int res1 = 0 ;
11105 PyObject *swig_obj[1] ;
11106
11107 if (!args) SWIG_fail;
11108 swig_obj[0] = args;
11109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11110 if (!SWIG_IsOK(res1)) {
11111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11112 }
11113 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11114 {
11115 PyThreadState* __tstate = wxPyBeginAllowThreads();
11116 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11117 wxPyEndAllowThreads(__tstate);
11118 if (PyErr_Occurred()) SWIG_fail;
11119 }
11120 {
11121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11122 }
11123 return resultobj;
11124 fail:
11125 return NULL;
11126 }
11127
11128
11129 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11130 PyObject *resultobj = 0;
11131 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11132 bool result;
11133 void *argp1 = 0 ;
11134 int res1 = 0 ;
11135 PyObject *swig_obj[1] ;
11136
11137 if (!args) SWIG_fail;
11138 swig_obj[0] = args;
11139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11140 if (!SWIG_IsOK(res1)) {
11141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11142 }
11143 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11144 {
11145 PyThreadState* __tstate = wxPyBeginAllowThreads();
11146 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11147 wxPyEndAllowThreads(__tstate);
11148 if (PyErr_Occurred()) SWIG_fail;
11149 }
11150 {
11151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11152 }
11153 return resultobj;
11154 fail:
11155 return NULL;
11156 }
11157
11158
11159 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11160 PyObject *resultobj = 0;
11161 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11162 bool result;
11163 void *argp1 = 0 ;
11164 int res1 = 0 ;
11165 PyObject *swig_obj[1] ;
11166
11167 if (!args) SWIG_fail;
11168 swig_obj[0] = args;
11169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11170 if (!SWIG_IsOK(res1)) {
11171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11172 }
11173 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11174 {
11175 PyThreadState* __tstate = wxPyBeginAllowThreads();
11176 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11177 wxPyEndAllowThreads(__tstate);
11178 if (PyErr_Occurred()) SWIG_fail;
11179 }
11180 {
11181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11182 }
11183 return resultobj;
11184 fail:
11185 return NULL;
11186 }
11187
11188
11189 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11190 PyObject *resultobj = 0;
11191 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11192 bool result;
11193 void *argp1 = 0 ;
11194 int res1 = 0 ;
11195 PyObject *swig_obj[1] ;
11196
11197 if (!args) SWIG_fail;
11198 swig_obj[0] = args;
11199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11200 if (!SWIG_IsOK(res1)) {
11201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11202 }
11203 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11204 {
11205 PyThreadState* __tstate = wxPyBeginAllowThreads();
11206 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11207 wxPyEndAllowThreads(__tstate);
11208 if (PyErr_Occurred()) SWIG_fail;
11209 }
11210 {
11211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11212 }
11213 return resultobj;
11214 fail:
11215 return NULL;
11216 }
11217
11218
11219 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11220 PyObject *resultobj = 0;
11221 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11222 long arg2 ;
11223 bool result;
11224 void *argp1 = 0 ;
11225 int res1 = 0 ;
11226 long val2 ;
11227 int ecode2 = 0 ;
11228 PyObject * obj0 = 0 ;
11229 PyObject * obj1 = 0 ;
11230 char * kwnames[] = {
11231 (char *) "self",(char *) "flag", NULL
11232 };
11233
11234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11236 if (!SWIG_IsOK(res1)) {
11237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11238 }
11239 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11240 ecode2 = SWIG_AsVal_long(obj1, &val2);
11241 if (!SWIG_IsOK(ecode2)) {
11242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11243 }
11244 arg2 = static_cast< long >(val2);
11245 {
11246 PyThreadState* __tstate = wxPyBeginAllowThreads();
11247 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11248 wxPyEndAllowThreads(__tstate);
11249 if (PyErr_Occurred()) SWIG_fail;
11250 }
11251 {
11252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11253 }
11254 return resultobj;
11255 fail:
11256 return NULL;
11257 }
11258
11259
11260 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11261 PyObject *resultobj = 0;
11262 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11263 wxColour *result = 0 ;
11264 void *argp1 = 0 ;
11265 int res1 = 0 ;
11266 PyObject *swig_obj[1] ;
11267
11268 if (!args) SWIG_fail;
11269 swig_obj[0] = args;
11270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11271 if (!SWIG_IsOK(res1)) {
11272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11273 }
11274 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11275 {
11276 PyThreadState* __tstate = wxPyBeginAllowThreads();
11277 {
11278 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11279 result = (wxColour *) &_result_ref;
11280 }
11281 wxPyEndAllowThreads(__tstate);
11282 if (PyErr_Occurred()) SWIG_fail;
11283 }
11284 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11285 return resultobj;
11286 fail:
11287 return NULL;
11288 }
11289
11290
11291 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11292 PyObject *resultobj = 0;
11293 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11294 wxColour *result = 0 ;
11295 void *argp1 = 0 ;
11296 int res1 = 0 ;
11297 PyObject *swig_obj[1] ;
11298
11299 if (!args) SWIG_fail;
11300 swig_obj[0] = args;
11301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11302 if (!SWIG_IsOK(res1)) {
11303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11304 }
11305 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11306 {
11307 PyThreadState* __tstate = wxPyBeginAllowThreads();
11308 {
11309 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11310 result = (wxColour *) &_result_ref;
11311 }
11312 wxPyEndAllowThreads(__tstate);
11313 if (PyErr_Occurred()) SWIG_fail;
11314 }
11315 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11316 return resultobj;
11317 fail:
11318 return NULL;
11319 }
11320
11321
11322 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11323 PyObject *resultobj = 0;
11324 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11325 wxFont *result = 0 ;
11326 void *argp1 = 0 ;
11327 int res1 = 0 ;
11328 PyObject *swig_obj[1] ;
11329
11330 if (!args) SWIG_fail;
11331 swig_obj[0] = args;
11332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11333 if (!SWIG_IsOK(res1)) {
11334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11335 }
11336 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11337 {
11338 PyThreadState* __tstate = wxPyBeginAllowThreads();
11339 {
11340 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11341 result = (wxFont *) &_result_ref;
11342 }
11343 wxPyEndAllowThreads(__tstate);
11344 if (PyErr_Occurred()) SWIG_fail;
11345 }
11346 {
11347 wxFont* resultptr = new wxFont(*result);
11348 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11349 }
11350 return resultobj;
11351 fail:
11352 return NULL;
11353 }
11354
11355
11356 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11357 PyObject *resultobj = 0;
11358 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11359 wxTextAttrAlignment result;
11360 void *argp1 = 0 ;
11361 int res1 = 0 ;
11362 PyObject *swig_obj[1] ;
11363
11364 if (!args) SWIG_fail;
11365 swig_obj[0] = args;
11366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11367 if (!SWIG_IsOK(res1)) {
11368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11369 }
11370 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11371 {
11372 PyThreadState* __tstate = wxPyBeginAllowThreads();
11373 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11374 wxPyEndAllowThreads(__tstate);
11375 if (PyErr_Occurred()) SWIG_fail;
11376 }
11377 resultobj = SWIG_From_int(static_cast< int >(result));
11378 return resultobj;
11379 fail:
11380 return NULL;
11381 }
11382
11383
11384 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11385 PyObject *resultobj = 0;
11386 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11387 wxArrayInt *result = 0 ;
11388 void *argp1 = 0 ;
11389 int res1 = 0 ;
11390 PyObject *swig_obj[1] ;
11391
11392 if (!args) SWIG_fail;
11393 swig_obj[0] = args;
11394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11395 if (!SWIG_IsOK(res1)) {
11396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11397 }
11398 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11399 {
11400 PyThreadState* __tstate = wxPyBeginAllowThreads();
11401 {
11402 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11403 result = (wxArrayInt *) &_result_ref;
11404 }
11405 wxPyEndAllowThreads(__tstate);
11406 if (PyErr_Occurred()) SWIG_fail;
11407 }
11408 {
11409 resultobj = wxArrayInt2PyList_helper(*result);
11410 }
11411 return resultobj;
11412 fail:
11413 return NULL;
11414 }
11415
11416
11417 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11418 PyObject *resultobj = 0;
11419 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11420 long result;
11421 void *argp1 = 0 ;
11422 int res1 = 0 ;
11423 PyObject *swig_obj[1] ;
11424
11425 if (!args) SWIG_fail;
11426 swig_obj[0] = args;
11427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11428 if (!SWIG_IsOK(res1)) {
11429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11430 }
11431 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11432 {
11433 PyThreadState* __tstate = wxPyBeginAllowThreads();
11434 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11435 wxPyEndAllowThreads(__tstate);
11436 if (PyErr_Occurred()) SWIG_fail;
11437 }
11438 resultobj = SWIG_From_long(static_cast< long >(result));
11439 return resultobj;
11440 fail:
11441 return NULL;
11442 }
11443
11444
11445 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11446 PyObject *resultobj = 0;
11447 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11448 long result;
11449 void *argp1 = 0 ;
11450 int res1 = 0 ;
11451 PyObject *swig_obj[1] ;
11452
11453 if (!args) SWIG_fail;
11454 swig_obj[0] = args;
11455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11456 if (!SWIG_IsOK(res1)) {
11457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11458 }
11459 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11460 {
11461 PyThreadState* __tstate = wxPyBeginAllowThreads();
11462 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11463 wxPyEndAllowThreads(__tstate);
11464 if (PyErr_Occurred()) SWIG_fail;
11465 }
11466 resultobj = SWIG_From_long(static_cast< long >(result));
11467 return resultobj;
11468 fail:
11469 return NULL;
11470 }
11471
11472
11473 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11474 PyObject *resultobj = 0;
11475 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11476 long result;
11477 void *argp1 = 0 ;
11478 int res1 = 0 ;
11479 PyObject *swig_obj[1] ;
11480
11481 if (!args) SWIG_fail;
11482 swig_obj[0] = args;
11483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11484 if (!SWIG_IsOK(res1)) {
11485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11486 }
11487 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11488 {
11489 PyThreadState* __tstate = wxPyBeginAllowThreads();
11490 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11491 wxPyEndAllowThreads(__tstate);
11492 if (PyErr_Occurred()) SWIG_fail;
11493 }
11494 resultobj = SWIG_From_long(static_cast< long >(result));
11495 return resultobj;
11496 fail:
11497 return NULL;
11498 }
11499
11500
11501 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11502 PyObject *resultobj = 0;
11503 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11504 long result;
11505 void *argp1 = 0 ;
11506 int res1 = 0 ;
11507 PyObject *swig_obj[1] ;
11508
11509 if (!args) SWIG_fail;
11510 swig_obj[0] = args;
11511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11512 if (!SWIG_IsOK(res1)) {
11513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11514 }
11515 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11516 {
11517 PyThreadState* __tstate = wxPyBeginAllowThreads();
11518 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11519 wxPyEndAllowThreads(__tstate);
11520 if (PyErr_Occurred()) SWIG_fail;
11521 }
11522 resultobj = SWIG_From_long(static_cast< long >(result));
11523 return resultobj;
11524 fail:
11525 return NULL;
11526 }
11527
11528
11529 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11530 PyObject *resultobj = 0;
11531 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11532 bool result;
11533 void *argp1 = 0 ;
11534 int res1 = 0 ;
11535 PyObject *swig_obj[1] ;
11536
11537 if (!args) SWIG_fail;
11538 swig_obj[0] = args;
11539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11540 if (!SWIG_IsOK(res1)) {
11541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11542 }
11543 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11544 {
11545 PyThreadState* __tstate = wxPyBeginAllowThreads();
11546 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11547 wxPyEndAllowThreads(__tstate);
11548 if (PyErr_Occurred()) SWIG_fail;
11549 }
11550 {
11551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11552 }
11553 return resultobj;
11554 fail:
11555 return NULL;
11556 }
11557
11558
11559 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11560 PyObject *resultobj = 0;
11561 wxTextAttr *arg1 = 0 ;
11562 wxTextAttr *arg2 = 0 ;
11563 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11564 wxTextAttr result;
11565 void *argp1 = 0 ;
11566 int res1 = 0 ;
11567 void *argp2 = 0 ;
11568 int res2 = 0 ;
11569 void *argp3 = 0 ;
11570 int res3 = 0 ;
11571 PyObject * obj0 = 0 ;
11572 PyObject * obj1 = 0 ;
11573 PyObject * obj2 = 0 ;
11574 char * kwnames[] = {
11575 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11576 };
11577
11578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11579 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11580 if (!SWIG_IsOK(res1)) {
11581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11582 }
11583 if (!argp1) {
11584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11585 }
11586 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11587 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11588 if (!SWIG_IsOK(res2)) {
11589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11590 }
11591 if (!argp2) {
11592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11593 }
11594 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11595 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11596 if (!SWIG_IsOK(res3)) {
11597 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11598 }
11599 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11600 {
11601 PyThreadState* __tstate = wxPyBeginAllowThreads();
11602 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11603 wxPyEndAllowThreads(__tstate);
11604 if (PyErr_Occurred()) SWIG_fail;
11605 }
11606 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11607 return resultobj;
11608 fail:
11609 return NULL;
11610 }
11611
11612
11613 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11614 PyObject *obj;
11615 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11616 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11617 return SWIG_Py_Void();
11618 }
11619
11620 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11621 return SWIG_Python_InitShadowInstance(args);
11622 }
11623
11624 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11625 PyObject *resultobj = 0;
11626 wxWindow *arg1 = (wxWindow *) 0 ;
11627 int arg2 = (int) -1 ;
11628 wxString const &arg3_defvalue = wxPyEmptyString ;
11629 wxString *arg3 = (wxString *) &arg3_defvalue ;
11630 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11631 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11632 wxSize const &arg5_defvalue = wxDefaultSize ;
11633 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11634 long arg6 = (long) 0 ;
11635 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11636 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11637 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11638 wxString *arg8 = (wxString *) &arg8_defvalue ;
11639 wxTextCtrl *result = 0 ;
11640 void *argp1 = 0 ;
11641 int res1 = 0 ;
11642 int val2 ;
11643 int ecode2 = 0 ;
11644 bool temp3 = false ;
11645 wxPoint temp4 ;
11646 wxSize temp5 ;
11647 long val6 ;
11648 int ecode6 = 0 ;
11649 void *argp7 = 0 ;
11650 int res7 = 0 ;
11651 bool temp8 = false ;
11652 PyObject * obj0 = 0 ;
11653 PyObject * obj1 = 0 ;
11654 PyObject * obj2 = 0 ;
11655 PyObject * obj3 = 0 ;
11656 PyObject * obj4 = 0 ;
11657 PyObject * obj5 = 0 ;
11658 PyObject * obj6 = 0 ;
11659 PyObject * obj7 = 0 ;
11660 char * kwnames[] = {
11661 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11662 };
11663
11664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11666 if (!SWIG_IsOK(res1)) {
11667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11668 }
11669 arg1 = reinterpret_cast< wxWindow * >(argp1);
11670 if (obj1) {
11671 ecode2 = SWIG_AsVal_int(obj1, &val2);
11672 if (!SWIG_IsOK(ecode2)) {
11673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11674 }
11675 arg2 = static_cast< int >(val2);
11676 }
11677 if (obj2) {
11678 {
11679 arg3 = wxString_in_helper(obj2);
11680 if (arg3 == NULL) SWIG_fail;
11681 temp3 = true;
11682 }
11683 }
11684 if (obj3) {
11685 {
11686 arg4 = &temp4;
11687 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11688 }
11689 }
11690 if (obj4) {
11691 {
11692 arg5 = &temp5;
11693 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11694 }
11695 }
11696 if (obj5) {
11697 ecode6 = SWIG_AsVal_long(obj5, &val6);
11698 if (!SWIG_IsOK(ecode6)) {
11699 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11700 }
11701 arg6 = static_cast< long >(val6);
11702 }
11703 if (obj6) {
11704 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11705 if (!SWIG_IsOK(res7)) {
11706 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11707 }
11708 if (!argp7) {
11709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11710 }
11711 arg7 = reinterpret_cast< wxValidator * >(argp7);
11712 }
11713 if (obj7) {
11714 {
11715 arg8 = wxString_in_helper(obj7);
11716 if (arg8 == NULL) SWIG_fail;
11717 temp8 = true;
11718 }
11719 }
11720 {
11721 if (!wxPyCheckForApp()) SWIG_fail;
11722 PyThreadState* __tstate = wxPyBeginAllowThreads();
11723 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11724 wxPyEndAllowThreads(__tstate);
11725 if (PyErr_Occurred()) SWIG_fail;
11726 }
11727 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11728 {
11729 if (temp3)
11730 delete arg3;
11731 }
11732 {
11733 if (temp8)
11734 delete arg8;
11735 }
11736 return resultobj;
11737 fail:
11738 {
11739 if (temp3)
11740 delete arg3;
11741 }
11742 {
11743 if (temp8)
11744 delete arg8;
11745 }
11746 return NULL;
11747 }
11748
11749
11750 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11751 PyObject *resultobj = 0;
11752 wxTextCtrl *result = 0 ;
11753
11754 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11755 {
11756 if (!wxPyCheckForApp()) SWIG_fail;
11757 PyThreadState* __tstate = wxPyBeginAllowThreads();
11758 result = (wxTextCtrl *)new wxTextCtrl();
11759 wxPyEndAllowThreads(__tstate);
11760 if (PyErr_Occurred()) SWIG_fail;
11761 }
11762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11763 return resultobj;
11764 fail:
11765 return NULL;
11766 }
11767
11768
11769 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11770 PyObject *resultobj = 0;
11771 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11772 wxWindow *arg2 = (wxWindow *) 0 ;
11773 int arg3 = (int) -1 ;
11774 wxString const &arg4_defvalue = wxPyEmptyString ;
11775 wxString *arg4 = (wxString *) &arg4_defvalue ;
11776 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11777 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11778 wxSize const &arg6_defvalue = wxDefaultSize ;
11779 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11780 long arg7 = (long) 0 ;
11781 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11782 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11783 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11784 wxString *arg9 = (wxString *) &arg9_defvalue ;
11785 bool result;
11786 void *argp1 = 0 ;
11787 int res1 = 0 ;
11788 void *argp2 = 0 ;
11789 int res2 = 0 ;
11790 int val3 ;
11791 int ecode3 = 0 ;
11792 bool temp4 = false ;
11793 wxPoint temp5 ;
11794 wxSize temp6 ;
11795 long val7 ;
11796 int ecode7 = 0 ;
11797 void *argp8 = 0 ;
11798 int res8 = 0 ;
11799 bool temp9 = false ;
11800 PyObject * obj0 = 0 ;
11801 PyObject * obj1 = 0 ;
11802 PyObject * obj2 = 0 ;
11803 PyObject * obj3 = 0 ;
11804 PyObject * obj4 = 0 ;
11805 PyObject * obj5 = 0 ;
11806 PyObject * obj6 = 0 ;
11807 PyObject * obj7 = 0 ;
11808 PyObject * obj8 = 0 ;
11809 char * kwnames[] = {
11810 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11811 };
11812
11813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11815 if (!SWIG_IsOK(res1)) {
11816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11817 }
11818 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11819 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11820 if (!SWIG_IsOK(res2)) {
11821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11822 }
11823 arg2 = reinterpret_cast< wxWindow * >(argp2);
11824 if (obj2) {
11825 ecode3 = SWIG_AsVal_int(obj2, &val3);
11826 if (!SWIG_IsOK(ecode3)) {
11827 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11828 }
11829 arg3 = static_cast< int >(val3);
11830 }
11831 if (obj3) {
11832 {
11833 arg4 = wxString_in_helper(obj3);
11834 if (arg4 == NULL) SWIG_fail;
11835 temp4 = true;
11836 }
11837 }
11838 if (obj4) {
11839 {
11840 arg5 = &temp5;
11841 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11842 }
11843 }
11844 if (obj5) {
11845 {
11846 arg6 = &temp6;
11847 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11848 }
11849 }
11850 if (obj6) {
11851 ecode7 = SWIG_AsVal_long(obj6, &val7);
11852 if (!SWIG_IsOK(ecode7)) {
11853 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11854 }
11855 arg7 = static_cast< long >(val7);
11856 }
11857 if (obj7) {
11858 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11859 if (!SWIG_IsOK(res8)) {
11860 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11861 }
11862 if (!argp8) {
11863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11864 }
11865 arg8 = reinterpret_cast< wxValidator * >(argp8);
11866 }
11867 if (obj8) {
11868 {
11869 arg9 = wxString_in_helper(obj8);
11870 if (arg9 == NULL) SWIG_fail;
11871 temp9 = true;
11872 }
11873 }
11874 {
11875 PyThreadState* __tstate = wxPyBeginAllowThreads();
11876 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11877 wxPyEndAllowThreads(__tstate);
11878 if (PyErr_Occurred()) SWIG_fail;
11879 }
11880 {
11881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11882 }
11883 {
11884 if (temp4)
11885 delete arg4;
11886 }
11887 {
11888 if (temp9)
11889 delete arg9;
11890 }
11891 return resultobj;
11892 fail:
11893 {
11894 if (temp4)
11895 delete arg4;
11896 }
11897 {
11898 if (temp9)
11899 delete arg9;
11900 }
11901 return NULL;
11902 }
11903
11904
11905 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11906 PyObject *resultobj = 0;
11907 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11908 wxString result;
11909 void *argp1 = 0 ;
11910 int res1 = 0 ;
11911 PyObject *swig_obj[1] ;
11912
11913 if (!args) SWIG_fail;
11914 swig_obj[0] = args;
11915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11916 if (!SWIG_IsOK(res1)) {
11917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11918 }
11919 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11920 {
11921 PyThreadState* __tstate = wxPyBeginAllowThreads();
11922 result = ((wxTextCtrl const *)arg1)->GetValue();
11923 wxPyEndAllowThreads(__tstate);
11924 if (PyErr_Occurred()) SWIG_fail;
11925 }
11926 {
11927 #if wxUSE_UNICODE
11928 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11929 #else
11930 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11931 #endif
11932 }
11933 return resultobj;
11934 fail:
11935 return NULL;
11936 }
11937
11938
11939 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11940 PyObject *resultobj = 0;
11941 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11942 wxString *arg2 = 0 ;
11943 void *argp1 = 0 ;
11944 int res1 = 0 ;
11945 bool temp2 = false ;
11946 PyObject * obj0 = 0 ;
11947 PyObject * obj1 = 0 ;
11948 char * kwnames[] = {
11949 (char *) "self",(char *) "value", NULL
11950 };
11951
11952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11954 if (!SWIG_IsOK(res1)) {
11955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11956 }
11957 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11958 {
11959 arg2 = wxString_in_helper(obj1);
11960 if (arg2 == NULL) SWIG_fail;
11961 temp2 = true;
11962 }
11963 {
11964 PyThreadState* __tstate = wxPyBeginAllowThreads();
11965 (arg1)->SetValue((wxString const &)*arg2);
11966 wxPyEndAllowThreads(__tstate);
11967 if (PyErr_Occurred()) SWIG_fail;
11968 }
11969 resultobj = SWIG_Py_Void();
11970 {
11971 if (temp2)
11972 delete arg2;
11973 }
11974 return resultobj;
11975 fail:
11976 {
11977 if (temp2)
11978 delete arg2;
11979 }
11980 return NULL;
11981 }
11982
11983
11984 SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11985 PyObject *resultobj = 0;
11986 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11987 bool result;
11988 void *argp1 = 0 ;
11989 int res1 = 0 ;
11990 PyObject *swig_obj[1] ;
11991
11992 if (!args) SWIG_fail;
11993 swig_obj[0] = args;
11994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11995 if (!SWIG_IsOK(res1)) {
11996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11997 }
11998 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11999 {
12000 PyThreadState* __tstate = wxPyBeginAllowThreads();
12001 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
12002 wxPyEndAllowThreads(__tstate);
12003 if (PyErr_Occurred()) SWIG_fail;
12004 }
12005 {
12006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12007 }
12008 return resultobj;
12009 fail:
12010 return NULL;
12011 }
12012
12013
12014 SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12015 PyObject *resultobj = 0;
12016 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12017 wxString *arg2 = 0 ;
12018 void *argp1 = 0 ;
12019 int res1 = 0 ;
12020 bool temp2 = false ;
12021 PyObject * obj0 = 0 ;
12022 PyObject * obj1 = 0 ;
12023 char * kwnames[] = {
12024 (char *) "self",(char *) "value", NULL
12025 };
12026
12027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
12028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12029 if (!SWIG_IsOK(res1)) {
12030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12031 }
12032 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12033 {
12034 arg2 = wxString_in_helper(obj1);
12035 if (arg2 == NULL) SWIG_fail;
12036 temp2 = true;
12037 }
12038 {
12039 PyThreadState* __tstate = wxPyBeginAllowThreads();
12040 (arg1)->ChangeValue((wxString const &)*arg2);
12041 wxPyEndAllowThreads(__tstate);
12042 if (PyErr_Occurred()) SWIG_fail;
12043 }
12044 resultobj = SWIG_Py_Void();
12045 {
12046 if (temp2)
12047 delete arg2;
12048 }
12049 return resultobj;
12050 fail:
12051 {
12052 if (temp2)
12053 delete arg2;
12054 }
12055 return NULL;
12056 }
12057
12058
12059 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12060 PyObject *resultobj = 0;
12061 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12062 long arg2 ;
12063 long arg3 ;
12064 wxString result;
12065 void *argp1 = 0 ;
12066 int res1 = 0 ;
12067 long val2 ;
12068 int ecode2 = 0 ;
12069 long val3 ;
12070 int ecode3 = 0 ;
12071 PyObject * obj0 = 0 ;
12072 PyObject * obj1 = 0 ;
12073 PyObject * obj2 = 0 ;
12074 char * kwnames[] = {
12075 (char *) "self",(char *) "from",(char *) "to", NULL
12076 };
12077
12078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12080 if (!SWIG_IsOK(res1)) {
12081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12082 }
12083 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12084 ecode2 = SWIG_AsVal_long(obj1, &val2);
12085 if (!SWIG_IsOK(ecode2)) {
12086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
12087 }
12088 arg2 = static_cast< long >(val2);
12089 ecode3 = SWIG_AsVal_long(obj2, &val3);
12090 if (!SWIG_IsOK(ecode3)) {
12091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12092 }
12093 arg3 = static_cast< long >(val3);
12094 {
12095 PyThreadState* __tstate = wxPyBeginAllowThreads();
12096 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12097 wxPyEndAllowThreads(__tstate);
12098 if (PyErr_Occurred()) SWIG_fail;
12099 }
12100 {
12101 #if wxUSE_UNICODE
12102 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12103 #else
12104 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12105 #endif
12106 }
12107 return resultobj;
12108 fail:
12109 return NULL;
12110 }
12111
12112
12113 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12114 PyObject *resultobj = 0;
12115 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12116 long arg2 ;
12117 int result;
12118 void *argp1 = 0 ;
12119 int res1 = 0 ;
12120 long val2 ;
12121 int ecode2 = 0 ;
12122 PyObject * obj0 = 0 ;
12123 PyObject * obj1 = 0 ;
12124 char * kwnames[] = {
12125 (char *) "self",(char *) "lineNo", NULL
12126 };
12127
12128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12130 if (!SWIG_IsOK(res1)) {
12131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12132 }
12133 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12134 ecode2 = SWIG_AsVal_long(obj1, &val2);
12135 if (!SWIG_IsOK(ecode2)) {
12136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12137 }
12138 arg2 = static_cast< long >(val2);
12139 {
12140 PyThreadState* __tstate = wxPyBeginAllowThreads();
12141 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12142 wxPyEndAllowThreads(__tstate);
12143 if (PyErr_Occurred()) SWIG_fail;
12144 }
12145 resultobj = SWIG_From_int(static_cast< int >(result));
12146 return resultobj;
12147 fail:
12148 return NULL;
12149 }
12150
12151
12152 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12153 PyObject *resultobj = 0;
12154 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12155 long arg2 ;
12156 wxString result;
12157 void *argp1 = 0 ;
12158 int res1 = 0 ;
12159 long val2 ;
12160 int ecode2 = 0 ;
12161 PyObject * obj0 = 0 ;
12162 PyObject * obj1 = 0 ;
12163 char * kwnames[] = {
12164 (char *) "self",(char *) "lineNo", NULL
12165 };
12166
12167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12169 if (!SWIG_IsOK(res1)) {
12170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12171 }
12172 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12173 ecode2 = SWIG_AsVal_long(obj1, &val2);
12174 if (!SWIG_IsOK(ecode2)) {
12175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12176 }
12177 arg2 = static_cast< long >(val2);
12178 {
12179 PyThreadState* __tstate = wxPyBeginAllowThreads();
12180 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12181 wxPyEndAllowThreads(__tstate);
12182 if (PyErr_Occurred()) SWIG_fail;
12183 }
12184 {
12185 #if wxUSE_UNICODE
12186 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12187 #else
12188 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12189 #endif
12190 }
12191 return resultobj;
12192 fail:
12193 return NULL;
12194 }
12195
12196
12197 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12198 PyObject *resultobj = 0;
12199 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12200 int result;
12201 void *argp1 = 0 ;
12202 int res1 = 0 ;
12203 PyObject *swig_obj[1] ;
12204
12205 if (!args) SWIG_fail;
12206 swig_obj[0] = args;
12207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12208 if (!SWIG_IsOK(res1)) {
12209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12210 }
12211 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12212 {
12213 PyThreadState* __tstate = wxPyBeginAllowThreads();
12214 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12215 wxPyEndAllowThreads(__tstate);
12216 if (PyErr_Occurred()) SWIG_fail;
12217 }
12218 resultobj = SWIG_From_int(static_cast< int >(result));
12219 return resultobj;
12220 fail:
12221 return NULL;
12222 }
12223
12224
12225 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12226 PyObject *resultobj = 0;
12227 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12228 bool 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_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12238 }
12239 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12240 {
12241 PyThreadState* __tstate = wxPyBeginAllowThreads();
12242 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12243 wxPyEndAllowThreads(__tstate);
12244 if (PyErr_Occurred()) SWIG_fail;
12245 }
12246 {
12247 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12248 }
12249 return resultobj;
12250 fail:
12251 return NULL;
12252 }
12253
12254
12255 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12256 PyObject *resultobj = 0;
12257 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12258 bool result;
12259 void *argp1 = 0 ;
12260 int res1 = 0 ;
12261 PyObject *swig_obj[1] ;
12262
12263 if (!args) SWIG_fail;
12264 swig_obj[0] = args;
12265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12266 if (!SWIG_IsOK(res1)) {
12267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12268 }
12269 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12270 {
12271 PyThreadState* __tstate = wxPyBeginAllowThreads();
12272 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12273 wxPyEndAllowThreads(__tstate);
12274 if (PyErr_Occurred()) SWIG_fail;
12275 }
12276 {
12277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12278 }
12279 return resultobj;
12280 fail:
12281 return NULL;
12282 }
12283
12284
12285 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12286 PyObject *resultobj = 0;
12287 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12288 bool result;
12289 void *argp1 = 0 ;
12290 int res1 = 0 ;
12291 PyObject *swig_obj[1] ;
12292
12293 if (!args) SWIG_fail;
12294 swig_obj[0] = args;
12295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12296 if (!SWIG_IsOK(res1)) {
12297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12298 }
12299 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12300 {
12301 PyThreadState* __tstate = wxPyBeginAllowThreads();
12302 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12303 wxPyEndAllowThreads(__tstate);
12304 if (PyErr_Occurred()) SWIG_fail;
12305 }
12306 {
12307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12308 }
12309 return resultobj;
12310 fail:
12311 return NULL;
12312 }
12313
12314
12315 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12316 PyObject *resultobj = 0;
12317 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12318 bool result;
12319 void *argp1 = 0 ;
12320 int res1 = 0 ;
12321 PyObject *swig_obj[1] ;
12322
12323 if (!args) SWIG_fail;
12324 swig_obj[0] = args;
12325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12326 if (!SWIG_IsOK(res1)) {
12327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12328 }
12329 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12330 {
12331 PyThreadState* __tstate = wxPyBeginAllowThreads();
12332 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12333 wxPyEndAllowThreads(__tstate);
12334 if (PyErr_Occurred()) SWIG_fail;
12335 }
12336 {
12337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12338 }
12339 return resultobj;
12340 fail:
12341 return NULL;
12342 }
12343
12344
12345 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12346 PyObject *resultobj = 0;
12347 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12348 long *arg2 = (long *) 0 ;
12349 long *arg3 = (long *) 0 ;
12350 void *argp1 = 0 ;
12351 int res1 = 0 ;
12352 long temp2 ;
12353 int res2 = SWIG_TMPOBJ ;
12354 long temp3 ;
12355 int res3 = SWIG_TMPOBJ ;
12356 PyObject *swig_obj[1] ;
12357
12358 arg2 = &temp2;
12359 arg3 = &temp3;
12360 if (!args) SWIG_fail;
12361 swig_obj[0] = args;
12362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12363 if (!SWIG_IsOK(res1)) {
12364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12365 }
12366 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12367 {
12368 PyThreadState* __tstate = wxPyBeginAllowThreads();
12369 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12370 wxPyEndAllowThreads(__tstate);
12371 if (PyErr_Occurred()) SWIG_fail;
12372 }
12373 resultobj = SWIG_Py_Void();
12374 if (SWIG_IsTmpObj(res2)) {
12375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12376 } else {
12377 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12378 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12379 }
12380 if (SWIG_IsTmpObj(res3)) {
12381 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12382 } else {
12383 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12384 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12385 }
12386 return resultobj;
12387 fail:
12388 return NULL;
12389 }
12390
12391
12392 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12393 PyObject *resultobj = 0;
12394 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12395 wxString result;
12396 void *argp1 = 0 ;
12397 int res1 = 0 ;
12398 PyObject *swig_obj[1] ;
12399
12400 if (!args) SWIG_fail;
12401 swig_obj[0] = args;
12402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12403 if (!SWIG_IsOK(res1)) {
12404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12405 }
12406 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12407 {
12408 PyThreadState* __tstate = wxPyBeginAllowThreads();
12409 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12410 wxPyEndAllowThreads(__tstate);
12411 if (PyErr_Occurred()) SWIG_fail;
12412 }
12413 {
12414 #if wxUSE_UNICODE
12415 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12416 #else
12417 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12418 #endif
12419 }
12420 return resultobj;
12421 fail:
12422 return NULL;
12423 }
12424
12425
12426 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12427 PyObject *resultobj = 0;
12428 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12429 void *argp1 = 0 ;
12430 int res1 = 0 ;
12431 PyObject *swig_obj[1] ;
12432
12433 if (!args) SWIG_fail;
12434 swig_obj[0] = args;
12435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12436 if (!SWIG_IsOK(res1)) {
12437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12438 }
12439 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12440 {
12441 PyThreadState* __tstate = wxPyBeginAllowThreads();
12442 (arg1)->Clear();
12443 wxPyEndAllowThreads(__tstate);
12444 if (PyErr_Occurred()) SWIG_fail;
12445 }
12446 resultobj = SWIG_Py_Void();
12447 return resultobj;
12448 fail:
12449 return NULL;
12450 }
12451
12452
12453 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12454 PyObject *resultobj = 0;
12455 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12456 long arg2 ;
12457 long arg3 ;
12458 wxString *arg4 = 0 ;
12459 void *argp1 = 0 ;
12460 int res1 = 0 ;
12461 long val2 ;
12462 int ecode2 = 0 ;
12463 long val3 ;
12464 int ecode3 = 0 ;
12465 bool temp4 = false ;
12466 PyObject * obj0 = 0 ;
12467 PyObject * obj1 = 0 ;
12468 PyObject * obj2 = 0 ;
12469 PyObject * obj3 = 0 ;
12470 char * kwnames[] = {
12471 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12472 };
12473
12474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12478 }
12479 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12480 ecode2 = SWIG_AsVal_long(obj1, &val2);
12481 if (!SWIG_IsOK(ecode2)) {
12482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12483 }
12484 arg2 = static_cast< long >(val2);
12485 ecode3 = SWIG_AsVal_long(obj2, &val3);
12486 if (!SWIG_IsOK(ecode3)) {
12487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12488 }
12489 arg3 = static_cast< long >(val3);
12490 {
12491 arg4 = wxString_in_helper(obj3);
12492 if (arg4 == NULL) SWIG_fail;
12493 temp4 = true;
12494 }
12495 {
12496 PyThreadState* __tstate = wxPyBeginAllowThreads();
12497 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12498 wxPyEndAllowThreads(__tstate);
12499 if (PyErr_Occurred()) SWIG_fail;
12500 }
12501 resultobj = SWIG_Py_Void();
12502 {
12503 if (temp4)
12504 delete arg4;
12505 }
12506 return resultobj;
12507 fail:
12508 {
12509 if (temp4)
12510 delete arg4;
12511 }
12512 return NULL;
12513 }
12514
12515
12516 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12517 PyObject *resultobj = 0;
12518 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12519 long arg2 ;
12520 long arg3 ;
12521 void *argp1 = 0 ;
12522 int res1 = 0 ;
12523 long val2 ;
12524 int ecode2 = 0 ;
12525 long val3 ;
12526 int ecode3 = 0 ;
12527 PyObject * obj0 = 0 ;
12528 PyObject * obj1 = 0 ;
12529 PyObject * obj2 = 0 ;
12530 char * kwnames[] = {
12531 (char *) "self",(char *) "from",(char *) "to", NULL
12532 };
12533
12534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12536 if (!SWIG_IsOK(res1)) {
12537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12538 }
12539 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12540 ecode2 = SWIG_AsVal_long(obj1, &val2);
12541 if (!SWIG_IsOK(ecode2)) {
12542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12543 }
12544 arg2 = static_cast< long >(val2);
12545 ecode3 = SWIG_AsVal_long(obj2, &val3);
12546 if (!SWIG_IsOK(ecode3)) {
12547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12548 }
12549 arg3 = static_cast< long >(val3);
12550 {
12551 PyThreadState* __tstate = wxPyBeginAllowThreads();
12552 (arg1)->Remove(arg2,arg3);
12553 wxPyEndAllowThreads(__tstate);
12554 if (PyErr_Occurred()) SWIG_fail;
12555 }
12556 resultobj = SWIG_Py_Void();
12557 return resultobj;
12558 fail:
12559 return NULL;
12560 }
12561
12562
12563 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12564 PyObject *resultobj = 0;
12565 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12566 wxString *arg2 = 0 ;
12567 int arg3 = (int) wxTEXT_TYPE_ANY ;
12568 bool result;
12569 void *argp1 = 0 ;
12570 int res1 = 0 ;
12571 bool temp2 = false ;
12572 int val3 ;
12573 int ecode3 = 0 ;
12574 PyObject * obj0 = 0 ;
12575 PyObject * obj1 = 0 ;
12576 PyObject * obj2 = 0 ;
12577 char * kwnames[] = {
12578 (char *) "self",(char *) "file",(char *) "fileType", NULL
12579 };
12580
12581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12583 if (!SWIG_IsOK(res1)) {
12584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12585 }
12586 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12587 {
12588 arg2 = wxString_in_helper(obj1);
12589 if (arg2 == NULL) SWIG_fail;
12590 temp2 = true;
12591 }
12592 if (obj2) {
12593 ecode3 = SWIG_AsVal_int(obj2, &val3);
12594 if (!SWIG_IsOK(ecode3)) {
12595 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12596 }
12597 arg3 = static_cast< int >(val3);
12598 }
12599 {
12600 PyThreadState* __tstate = wxPyBeginAllowThreads();
12601 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
12602 wxPyEndAllowThreads(__tstate);
12603 if (PyErr_Occurred()) SWIG_fail;
12604 }
12605 {
12606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12607 }
12608 {
12609 if (temp2)
12610 delete arg2;
12611 }
12612 return resultobj;
12613 fail:
12614 {
12615 if (temp2)
12616 delete arg2;
12617 }
12618 return NULL;
12619 }
12620
12621
12622 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12623 PyObject *resultobj = 0;
12624 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12625 wxString const &arg2_defvalue = wxPyEmptyString ;
12626 wxString *arg2 = (wxString *) &arg2_defvalue ;
12627 int arg3 = (int) wxTEXT_TYPE_ANY ;
12628 bool result;
12629 void *argp1 = 0 ;
12630 int res1 = 0 ;
12631 bool temp2 = false ;
12632 int val3 ;
12633 int ecode3 = 0 ;
12634 PyObject * obj0 = 0 ;
12635 PyObject * obj1 = 0 ;
12636 PyObject * obj2 = 0 ;
12637 char * kwnames[] = {
12638 (char *) "self",(char *) "file",(char *) "fileType", NULL
12639 };
12640
12641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12643 if (!SWIG_IsOK(res1)) {
12644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12645 }
12646 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12647 if (obj1) {
12648 {
12649 arg2 = wxString_in_helper(obj1);
12650 if (arg2 == NULL) SWIG_fail;
12651 temp2 = true;
12652 }
12653 }
12654 if (obj2) {
12655 ecode3 = SWIG_AsVal_int(obj2, &val3);
12656 if (!SWIG_IsOK(ecode3)) {
12657 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12658 }
12659 arg3 = static_cast< int >(val3);
12660 }
12661 {
12662 PyThreadState* __tstate = wxPyBeginAllowThreads();
12663 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
12664 wxPyEndAllowThreads(__tstate);
12665 if (PyErr_Occurred()) SWIG_fail;
12666 }
12667 {
12668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12669 }
12670 {
12671 if (temp2)
12672 delete arg2;
12673 }
12674 return resultobj;
12675 fail:
12676 {
12677 if (temp2)
12678 delete arg2;
12679 }
12680 return NULL;
12681 }
12682
12683
12684 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12685 PyObject *resultobj = 0;
12686 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12687 void *argp1 = 0 ;
12688 int res1 = 0 ;
12689 PyObject *swig_obj[1] ;
12690
12691 if (!args) SWIG_fail;
12692 swig_obj[0] = args;
12693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12694 if (!SWIG_IsOK(res1)) {
12695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12696 }
12697 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12698 {
12699 PyThreadState* __tstate = wxPyBeginAllowThreads();
12700 (arg1)->MarkDirty();
12701 wxPyEndAllowThreads(__tstate);
12702 if (PyErr_Occurred()) SWIG_fail;
12703 }
12704 resultobj = SWIG_Py_Void();
12705 return resultobj;
12706 fail:
12707 return NULL;
12708 }
12709
12710
12711 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12712 PyObject *resultobj = 0;
12713 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12714 void *argp1 = 0 ;
12715 int res1 = 0 ;
12716 PyObject *swig_obj[1] ;
12717
12718 if (!args) SWIG_fail;
12719 swig_obj[0] = args;
12720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12721 if (!SWIG_IsOK(res1)) {
12722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12723 }
12724 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12725 {
12726 PyThreadState* __tstate = wxPyBeginAllowThreads();
12727 (arg1)->DiscardEdits();
12728 wxPyEndAllowThreads(__tstate);
12729 if (PyErr_Occurred()) SWIG_fail;
12730 }
12731 resultobj = SWIG_Py_Void();
12732 return resultobj;
12733 fail:
12734 return NULL;
12735 }
12736
12737
12738 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12739 PyObject *resultobj = 0;
12740 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12741 bool arg2 ;
12742 void *argp1 = 0 ;
12743 int res1 = 0 ;
12744 bool val2 ;
12745 int ecode2 = 0 ;
12746 PyObject * obj0 = 0 ;
12747 PyObject * obj1 = 0 ;
12748 char * kwnames[] = {
12749 (char *) "self",(char *) "modified", NULL
12750 };
12751
12752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",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_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12756 }
12757 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12758 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12759 if (!SWIG_IsOK(ecode2)) {
12760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12761 }
12762 arg2 = static_cast< bool >(val2);
12763 {
12764 PyThreadState* __tstate = wxPyBeginAllowThreads();
12765 (arg1)->SetModified(arg2);
12766 wxPyEndAllowThreads(__tstate);
12767 if (PyErr_Occurred()) SWIG_fail;
12768 }
12769 resultobj = SWIG_Py_Void();
12770 return resultobj;
12771 fail:
12772 return NULL;
12773 }
12774
12775
12776 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12777 PyObject *resultobj = 0;
12778 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12779 unsigned long arg2 ;
12780 void *argp1 = 0 ;
12781 int res1 = 0 ;
12782 unsigned long val2 ;
12783 int ecode2 = 0 ;
12784 PyObject * obj0 = 0 ;
12785 PyObject * obj1 = 0 ;
12786 char * kwnames[] = {
12787 (char *) "self",(char *) "len", NULL
12788 };
12789
12790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12792 if (!SWIG_IsOK(res1)) {
12793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12794 }
12795 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12796 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12797 if (!SWIG_IsOK(ecode2)) {
12798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12799 }
12800 arg2 = static_cast< unsigned long >(val2);
12801 {
12802 PyThreadState* __tstate = wxPyBeginAllowThreads();
12803 (arg1)->SetMaxLength(arg2);
12804 wxPyEndAllowThreads(__tstate);
12805 if (PyErr_Occurred()) SWIG_fail;
12806 }
12807 resultobj = SWIG_Py_Void();
12808 return resultobj;
12809 fail:
12810 return NULL;
12811 }
12812
12813
12814 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12815 PyObject *resultobj = 0;
12816 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12817 wxString *arg2 = 0 ;
12818 void *argp1 = 0 ;
12819 int res1 = 0 ;
12820 bool temp2 = false ;
12821 PyObject * obj0 = 0 ;
12822 PyObject * obj1 = 0 ;
12823 char * kwnames[] = {
12824 (char *) "self",(char *) "text", NULL
12825 };
12826
12827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12829 if (!SWIG_IsOK(res1)) {
12830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12831 }
12832 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12833 {
12834 arg2 = wxString_in_helper(obj1);
12835 if (arg2 == NULL) SWIG_fail;
12836 temp2 = true;
12837 }
12838 {
12839 PyThreadState* __tstate = wxPyBeginAllowThreads();
12840 (arg1)->WriteText((wxString const &)*arg2);
12841 wxPyEndAllowThreads(__tstate);
12842 if (PyErr_Occurred()) SWIG_fail;
12843 }
12844 resultobj = SWIG_Py_Void();
12845 {
12846 if (temp2)
12847 delete arg2;
12848 }
12849 return resultobj;
12850 fail:
12851 {
12852 if (temp2)
12853 delete arg2;
12854 }
12855 return NULL;
12856 }
12857
12858
12859 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12860 PyObject *resultobj = 0;
12861 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12862 wxString *arg2 = 0 ;
12863 void *argp1 = 0 ;
12864 int res1 = 0 ;
12865 bool temp2 = false ;
12866 PyObject * obj0 = 0 ;
12867 PyObject * obj1 = 0 ;
12868 char * kwnames[] = {
12869 (char *) "self",(char *) "text", NULL
12870 };
12871
12872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12874 if (!SWIG_IsOK(res1)) {
12875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12876 }
12877 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12878 {
12879 arg2 = wxString_in_helper(obj1);
12880 if (arg2 == NULL) SWIG_fail;
12881 temp2 = true;
12882 }
12883 {
12884 PyThreadState* __tstate = wxPyBeginAllowThreads();
12885 (arg1)->AppendText((wxString const &)*arg2);
12886 wxPyEndAllowThreads(__tstate);
12887 if (PyErr_Occurred()) SWIG_fail;
12888 }
12889 resultobj = SWIG_Py_Void();
12890 {
12891 if (temp2)
12892 delete arg2;
12893 }
12894 return resultobj;
12895 fail:
12896 {
12897 if (temp2)
12898 delete arg2;
12899 }
12900 return NULL;
12901 }
12902
12903
12904 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12905 PyObject *resultobj = 0;
12906 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12907 wxKeyEvent *arg2 = 0 ;
12908 bool result;
12909 void *argp1 = 0 ;
12910 int res1 = 0 ;
12911 void *argp2 = 0 ;
12912 int res2 = 0 ;
12913 PyObject * obj0 = 0 ;
12914 PyObject * obj1 = 0 ;
12915 char * kwnames[] = {
12916 (char *) "self",(char *) "event", NULL
12917 };
12918
12919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12921 if (!SWIG_IsOK(res1)) {
12922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12923 }
12924 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12925 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12926 if (!SWIG_IsOK(res2)) {
12927 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12928 }
12929 if (!argp2) {
12930 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12931 }
12932 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12933 {
12934 PyThreadState* __tstate = wxPyBeginAllowThreads();
12935 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12936 wxPyEndAllowThreads(__tstate);
12937 if (PyErr_Occurred()) SWIG_fail;
12938 }
12939 {
12940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12941 }
12942 return resultobj;
12943 fail:
12944 return NULL;
12945 }
12946
12947
12948 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12949 PyObject *resultobj = 0;
12950 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12951 long arg2 ;
12952 long arg3 ;
12953 wxTextAttr *arg4 = 0 ;
12954 bool result;
12955 void *argp1 = 0 ;
12956 int res1 = 0 ;
12957 long val2 ;
12958 int ecode2 = 0 ;
12959 long val3 ;
12960 int ecode3 = 0 ;
12961 void *argp4 = 0 ;
12962 int res4 = 0 ;
12963 PyObject * obj0 = 0 ;
12964 PyObject * obj1 = 0 ;
12965 PyObject * obj2 = 0 ;
12966 PyObject * obj3 = 0 ;
12967 char * kwnames[] = {
12968 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12969 };
12970
12971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12973 if (!SWIG_IsOK(res1)) {
12974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12975 }
12976 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12977 ecode2 = SWIG_AsVal_long(obj1, &val2);
12978 if (!SWIG_IsOK(ecode2)) {
12979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12980 }
12981 arg2 = static_cast< long >(val2);
12982 ecode3 = SWIG_AsVal_long(obj2, &val3);
12983 if (!SWIG_IsOK(ecode3)) {
12984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12985 }
12986 arg3 = static_cast< long >(val3);
12987 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12988 if (!SWIG_IsOK(res4)) {
12989 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12990 }
12991 if (!argp4) {
12992 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12993 }
12994 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12995 {
12996 PyThreadState* __tstate = wxPyBeginAllowThreads();
12997 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12998 wxPyEndAllowThreads(__tstate);
12999 if (PyErr_Occurred()) SWIG_fail;
13000 }
13001 {
13002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13003 }
13004 return resultobj;
13005 fail:
13006 return NULL;
13007 }
13008
13009
13010 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13011 PyObject *resultobj = 0;
13012 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13013 long arg2 ;
13014 wxTextAttr *arg3 = 0 ;
13015 bool result;
13016 void *argp1 = 0 ;
13017 int res1 = 0 ;
13018 long val2 ;
13019 int ecode2 = 0 ;
13020 void *argp3 = 0 ;
13021 int res3 = 0 ;
13022 PyObject * obj0 = 0 ;
13023 PyObject * obj1 = 0 ;
13024 PyObject * obj2 = 0 ;
13025 char * kwnames[] = {
13026 (char *) "self",(char *) "position",(char *) "style", NULL
13027 };
13028
13029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13031 if (!SWIG_IsOK(res1)) {
13032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13033 }
13034 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13035 ecode2 = SWIG_AsVal_long(obj1, &val2);
13036 if (!SWIG_IsOK(ecode2)) {
13037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
13038 }
13039 arg2 = static_cast< long >(val2);
13040 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
13041 if (!SWIG_IsOK(res3)) {
13042 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13043 }
13044 if (!argp3) {
13045 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13046 }
13047 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
13048 {
13049 PyThreadState* __tstate = wxPyBeginAllowThreads();
13050 result = (bool)(arg1)->GetStyle(arg2,*arg3);
13051 wxPyEndAllowThreads(__tstate);
13052 if (PyErr_Occurred()) SWIG_fail;
13053 }
13054 {
13055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13056 }
13057 return resultobj;
13058 fail:
13059 return NULL;
13060 }
13061
13062
13063 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13064 PyObject *resultobj = 0;
13065 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13066 wxTextAttr *arg2 = 0 ;
13067 bool result;
13068 void *argp1 = 0 ;
13069 int res1 = 0 ;
13070 void *argp2 = 0 ;
13071 int res2 = 0 ;
13072 PyObject * obj0 = 0 ;
13073 PyObject * obj1 = 0 ;
13074 char * kwnames[] = {
13075 (char *) "self",(char *) "style", NULL
13076 };
13077
13078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13080 if (!SWIG_IsOK(res1)) {
13081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13082 }
13083 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13084 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
13085 if (!SWIG_IsOK(res2)) {
13086 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13087 }
13088 if (!argp2) {
13089 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13090 }
13091 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
13092 {
13093 PyThreadState* __tstate = wxPyBeginAllowThreads();
13094 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13095 wxPyEndAllowThreads(__tstate);
13096 if (PyErr_Occurred()) SWIG_fail;
13097 }
13098 {
13099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13100 }
13101 return resultobj;
13102 fail:
13103 return NULL;
13104 }
13105
13106
13107 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13108 PyObject *resultobj = 0;
13109 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13110 wxTextAttr *result = 0 ;
13111 void *argp1 = 0 ;
13112 int res1 = 0 ;
13113 PyObject *swig_obj[1] ;
13114
13115 if (!args) SWIG_fail;
13116 swig_obj[0] = args;
13117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13118 if (!SWIG_IsOK(res1)) {
13119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13120 }
13121 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13122 {
13123 PyThreadState* __tstate = wxPyBeginAllowThreads();
13124 {
13125 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13126 result = (wxTextAttr *) &_result_ref;
13127 }
13128 wxPyEndAllowThreads(__tstate);
13129 if (PyErr_Occurred()) SWIG_fail;
13130 }
13131 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13132 return resultobj;
13133 fail:
13134 return NULL;
13135 }
13136
13137
13138 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13139 PyObject *resultobj = 0;
13140 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13141 long arg2 ;
13142 long arg3 ;
13143 long result;
13144 void *argp1 = 0 ;
13145 int res1 = 0 ;
13146 long val2 ;
13147 int ecode2 = 0 ;
13148 long val3 ;
13149 int ecode3 = 0 ;
13150 PyObject * obj0 = 0 ;
13151 PyObject * obj1 = 0 ;
13152 PyObject * obj2 = 0 ;
13153 char * kwnames[] = {
13154 (char *) "self",(char *) "x",(char *) "y", NULL
13155 };
13156
13157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13159 if (!SWIG_IsOK(res1)) {
13160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13161 }
13162 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13163 ecode2 = SWIG_AsVal_long(obj1, &val2);
13164 if (!SWIG_IsOK(ecode2)) {
13165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13166 }
13167 arg2 = static_cast< long >(val2);
13168 ecode3 = SWIG_AsVal_long(obj2, &val3);
13169 if (!SWIG_IsOK(ecode3)) {
13170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13171 }
13172 arg3 = static_cast< long >(val3);
13173 {
13174 PyThreadState* __tstate = wxPyBeginAllowThreads();
13175 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13176 wxPyEndAllowThreads(__tstate);
13177 if (PyErr_Occurred()) SWIG_fail;
13178 }
13179 resultobj = SWIG_From_long(static_cast< long >(result));
13180 return resultobj;
13181 fail:
13182 return NULL;
13183 }
13184
13185
13186 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13187 PyObject *resultobj = 0;
13188 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13189 long arg2 ;
13190 long *arg3 = (long *) 0 ;
13191 long *arg4 = (long *) 0 ;
13192 void *argp1 = 0 ;
13193 int res1 = 0 ;
13194 long val2 ;
13195 int ecode2 = 0 ;
13196 long temp3 ;
13197 int res3 = SWIG_TMPOBJ ;
13198 long temp4 ;
13199 int res4 = SWIG_TMPOBJ ;
13200 PyObject * obj0 = 0 ;
13201 PyObject * obj1 = 0 ;
13202 char * kwnames[] = {
13203 (char *) "self",(char *) "pos", NULL
13204 };
13205
13206 arg3 = &temp3;
13207 arg4 = &temp4;
13208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13210 if (!SWIG_IsOK(res1)) {
13211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13212 }
13213 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13214 ecode2 = SWIG_AsVal_long(obj1, &val2);
13215 if (!SWIG_IsOK(ecode2)) {
13216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13217 }
13218 arg2 = static_cast< long >(val2);
13219 {
13220 PyThreadState* __tstate = wxPyBeginAllowThreads();
13221 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13222 wxPyEndAllowThreads(__tstate);
13223 if (PyErr_Occurred()) SWIG_fail;
13224 }
13225 resultobj = SWIG_Py_Void();
13226 if (SWIG_IsTmpObj(res3)) {
13227 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13228 } else {
13229 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13231 }
13232 if (SWIG_IsTmpObj(res4)) {
13233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13234 } else {
13235 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13236 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13237 }
13238 return resultobj;
13239 fail:
13240 return NULL;
13241 }
13242
13243
13244 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13245 PyObject *resultobj = 0;
13246 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13247 long arg2 ;
13248 void *argp1 = 0 ;
13249 int res1 = 0 ;
13250 long val2 ;
13251 int ecode2 = 0 ;
13252 PyObject * obj0 = 0 ;
13253 PyObject * obj1 = 0 ;
13254 char * kwnames[] = {
13255 (char *) "self",(char *) "pos", NULL
13256 };
13257
13258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13260 if (!SWIG_IsOK(res1)) {
13261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13262 }
13263 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13264 ecode2 = SWIG_AsVal_long(obj1, &val2);
13265 if (!SWIG_IsOK(ecode2)) {
13266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13267 }
13268 arg2 = static_cast< long >(val2);
13269 {
13270 PyThreadState* __tstate = wxPyBeginAllowThreads();
13271 (arg1)->ShowPosition(arg2);
13272 wxPyEndAllowThreads(__tstate);
13273 if (PyErr_Occurred()) SWIG_fail;
13274 }
13275 resultobj = SWIG_Py_Void();
13276 return resultobj;
13277 fail:
13278 return NULL;
13279 }
13280
13281
13282 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13283 PyObject *resultobj = 0;
13284 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13285 wxPoint *arg2 = 0 ;
13286 long *arg3 = (long *) 0 ;
13287 long *arg4 = (long *) 0 ;
13288 wxTextCtrlHitTestResult result;
13289 void *argp1 = 0 ;
13290 int res1 = 0 ;
13291 wxPoint temp2 ;
13292 long temp3 ;
13293 int res3 = SWIG_TMPOBJ ;
13294 long temp4 ;
13295 int res4 = SWIG_TMPOBJ ;
13296 PyObject * obj0 = 0 ;
13297 PyObject * obj1 = 0 ;
13298 char * kwnames[] = {
13299 (char *) "self",(char *) "pt", NULL
13300 };
13301
13302 arg3 = &temp3;
13303 arg4 = &temp4;
13304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13306 if (!SWIG_IsOK(res1)) {
13307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13308 }
13309 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13310 {
13311 arg2 = &temp2;
13312 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13313 }
13314 {
13315 PyThreadState* __tstate = wxPyBeginAllowThreads();
13316 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13317 wxPyEndAllowThreads(__tstate);
13318 if (PyErr_Occurred()) SWIG_fail;
13319 }
13320 resultobj = SWIG_From_int(static_cast< int >(result));
13321 if (SWIG_IsTmpObj(res3)) {
13322 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13323 } else {
13324 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13325 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13326 }
13327 if (SWIG_IsTmpObj(res4)) {
13328 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13329 } else {
13330 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13331 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13332 }
13333 return resultobj;
13334 fail:
13335 return NULL;
13336 }
13337
13338
13339 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13340 PyObject *resultobj = 0;
13341 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13342 wxPoint *arg2 = 0 ;
13343 long *arg3 = (long *) 0 ;
13344 wxTextCtrlHitTestResult result;
13345 void *argp1 = 0 ;
13346 int res1 = 0 ;
13347 wxPoint temp2 ;
13348 long temp3 ;
13349 int res3 = SWIG_TMPOBJ ;
13350 PyObject * obj0 = 0 ;
13351 PyObject * obj1 = 0 ;
13352 char * kwnames[] = {
13353 (char *) "self",(char *) "pt", NULL
13354 };
13355
13356 arg3 = &temp3;
13357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13359 if (!SWIG_IsOK(res1)) {
13360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13361 }
13362 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13363 {
13364 arg2 = &temp2;
13365 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13366 }
13367 {
13368 PyThreadState* __tstate = wxPyBeginAllowThreads();
13369 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13370 wxPyEndAllowThreads(__tstate);
13371 if (PyErr_Occurred()) SWIG_fail;
13372 }
13373 resultobj = SWIG_From_int(static_cast< int >(result));
13374 if (SWIG_IsTmpObj(res3)) {
13375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13376 } else {
13377 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13378 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13379 }
13380 return resultobj;
13381 fail:
13382 return NULL;
13383 }
13384
13385
13386 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13387 PyObject *resultobj = 0;
13388 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13389 void *argp1 = 0 ;
13390 int res1 = 0 ;
13391 PyObject *swig_obj[1] ;
13392
13393 if (!args) SWIG_fail;
13394 swig_obj[0] = args;
13395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13396 if (!SWIG_IsOK(res1)) {
13397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13398 }
13399 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13400 {
13401 PyThreadState* __tstate = wxPyBeginAllowThreads();
13402 (arg1)->Copy();
13403 wxPyEndAllowThreads(__tstate);
13404 if (PyErr_Occurred()) SWIG_fail;
13405 }
13406 resultobj = SWIG_Py_Void();
13407 return resultobj;
13408 fail:
13409 return NULL;
13410 }
13411
13412
13413 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13414 PyObject *resultobj = 0;
13415 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13416 void *argp1 = 0 ;
13417 int res1 = 0 ;
13418 PyObject *swig_obj[1] ;
13419
13420 if (!args) SWIG_fail;
13421 swig_obj[0] = args;
13422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13423 if (!SWIG_IsOK(res1)) {
13424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13425 }
13426 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13427 {
13428 PyThreadState* __tstate = wxPyBeginAllowThreads();
13429 (arg1)->Cut();
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 resultobj = SWIG_Py_Void();
13434 return resultobj;
13435 fail:
13436 return NULL;
13437 }
13438
13439
13440 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13441 PyObject *resultobj = 0;
13442 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13443 void *argp1 = 0 ;
13444 int res1 = 0 ;
13445 PyObject *swig_obj[1] ;
13446
13447 if (!args) SWIG_fail;
13448 swig_obj[0] = args;
13449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13450 if (!SWIG_IsOK(res1)) {
13451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13452 }
13453 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13454 {
13455 PyThreadState* __tstate = wxPyBeginAllowThreads();
13456 (arg1)->Paste();
13457 wxPyEndAllowThreads(__tstate);
13458 if (PyErr_Occurred()) SWIG_fail;
13459 }
13460 resultobj = SWIG_Py_Void();
13461 return resultobj;
13462 fail:
13463 return NULL;
13464 }
13465
13466
13467 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13468 PyObject *resultobj = 0;
13469 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13470 bool result;
13471 void *argp1 = 0 ;
13472 int res1 = 0 ;
13473 PyObject *swig_obj[1] ;
13474
13475 if (!args) SWIG_fail;
13476 swig_obj[0] = args;
13477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13478 if (!SWIG_IsOK(res1)) {
13479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13480 }
13481 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13482 {
13483 PyThreadState* __tstate = wxPyBeginAllowThreads();
13484 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13485 wxPyEndAllowThreads(__tstate);
13486 if (PyErr_Occurred()) SWIG_fail;
13487 }
13488 {
13489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13490 }
13491 return resultobj;
13492 fail:
13493 return NULL;
13494 }
13495
13496
13497 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13498 PyObject *resultobj = 0;
13499 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13500 bool result;
13501 void *argp1 = 0 ;
13502 int res1 = 0 ;
13503 PyObject *swig_obj[1] ;
13504
13505 if (!args) SWIG_fail;
13506 swig_obj[0] = args;
13507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13508 if (!SWIG_IsOK(res1)) {
13509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13510 }
13511 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13512 {
13513 PyThreadState* __tstate = wxPyBeginAllowThreads();
13514 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13515 wxPyEndAllowThreads(__tstate);
13516 if (PyErr_Occurred()) SWIG_fail;
13517 }
13518 {
13519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13520 }
13521 return resultobj;
13522 fail:
13523 return NULL;
13524 }
13525
13526
13527 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13528 PyObject *resultobj = 0;
13529 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13530 bool result;
13531 void *argp1 = 0 ;
13532 int res1 = 0 ;
13533 PyObject *swig_obj[1] ;
13534
13535 if (!args) SWIG_fail;
13536 swig_obj[0] = args;
13537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13538 if (!SWIG_IsOK(res1)) {
13539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13540 }
13541 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13542 {
13543 PyThreadState* __tstate = wxPyBeginAllowThreads();
13544 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13545 wxPyEndAllowThreads(__tstate);
13546 if (PyErr_Occurred()) SWIG_fail;
13547 }
13548 {
13549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13550 }
13551 return resultobj;
13552 fail:
13553 return NULL;
13554 }
13555
13556
13557 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13558 PyObject *resultobj = 0;
13559 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13560 void *argp1 = 0 ;
13561 int res1 = 0 ;
13562 PyObject *swig_obj[1] ;
13563
13564 if (!args) SWIG_fail;
13565 swig_obj[0] = args;
13566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13567 if (!SWIG_IsOK(res1)) {
13568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13569 }
13570 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13571 {
13572 PyThreadState* __tstate = wxPyBeginAllowThreads();
13573 (arg1)->Undo();
13574 wxPyEndAllowThreads(__tstate);
13575 if (PyErr_Occurred()) SWIG_fail;
13576 }
13577 resultobj = SWIG_Py_Void();
13578 return resultobj;
13579 fail:
13580 return NULL;
13581 }
13582
13583
13584 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13585 PyObject *resultobj = 0;
13586 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13587 void *argp1 = 0 ;
13588 int res1 = 0 ;
13589 PyObject *swig_obj[1] ;
13590
13591 if (!args) SWIG_fail;
13592 swig_obj[0] = args;
13593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13594 if (!SWIG_IsOK(res1)) {
13595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13596 }
13597 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13598 {
13599 PyThreadState* __tstate = wxPyBeginAllowThreads();
13600 (arg1)->Redo();
13601 wxPyEndAllowThreads(__tstate);
13602 if (PyErr_Occurred()) SWIG_fail;
13603 }
13604 resultobj = SWIG_Py_Void();
13605 return resultobj;
13606 fail:
13607 return NULL;
13608 }
13609
13610
13611 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13612 PyObject *resultobj = 0;
13613 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13614 bool result;
13615 void *argp1 = 0 ;
13616 int res1 = 0 ;
13617 PyObject *swig_obj[1] ;
13618
13619 if (!args) SWIG_fail;
13620 swig_obj[0] = args;
13621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13622 if (!SWIG_IsOK(res1)) {
13623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13624 }
13625 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13626 {
13627 PyThreadState* __tstate = wxPyBeginAllowThreads();
13628 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13629 wxPyEndAllowThreads(__tstate);
13630 if (PyErr_Occurred()) SWIG_fail;
13631 }
13632 {
13633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13634 }
13635 return resultobj;
13636 fail:
13637 return NULL;
13638 }
13639
13640
13641 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13642 PyObject *resultobj = 0;
13643 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13644 bool result;
13645 void *argp1 = 0 ;
13646 int res1 = 0 ;
13647 PyObject *swig_obj[1] ;
13648
13649 if (!args) SWIG_fail;
13650 swig_obj[0] = args;
13651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13652 if (!SWIG_IsOK(res1)) {
13653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13654 }
13655 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13656 {
13657 PyThreadState* __tstate = wxPyBeginAllowThreads();
13658 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13659 wxPyEndAllowThreads(__tstate);
13660 if (PyErr_Occurred()) SWIG_fail;
13661 }
13662 {
13663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13664 }
13665 return resultobj;
13666 fail:
13667 return NULL;
13668 }
13669
13670
13671 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13672 PyObject *resultobj = 0;
13673 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13674 long arg2 ;
13675 void *argp1 = 0 ;
13676 int res1 = 0 ;
13677 long val2 ;
13678 int ecode2 = 0 ;
13679 PyObject * obj0 = 0 ;
13680 PyObject * obj1 = 0 ;
13681 char * kwnames[] = {
13682 (char *) "self",(char *) "pos", NULL
13683 };
13684
13685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13687 if (!SWIG_IsOK(res1)) {
13688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13689 }
13690 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13691 ecode2 = SWIG_AsVal_long(obj1, &val2);
13692 if (!SWIG_IsOK(ecode2)) {
13693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13694 }
13695 arg2 = static_cast< long >(val2);
13696 {
13697 PyThreadState* __tstate = wxPyBeginAllowThreads();
13698 (arg1)->SetInsertionPoint(arg2);
13699 wxPyEndAllowThreads(__tstate);
13700 if (PyErr_Occurred()) SWIG_fail;
13701 }
13702 resultobj = SWIG_Py_Void();
13703 return resultobj;
13704 fail:
13705 return NULL;
13706 }
13707
13708
13709 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13710 PyObject *resultobj = 0;
13711 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13712 void *argp1 = 0 ;
13713 int res1 = 0 ;
13714 PyObject *swig_obj[1] ;
13715
13716 if (!args) SWIG_fail;
13717 swig_obj[0] = args;
13718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13719 if (!SWIG_IsOK(res1)) {
13720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13721 }
13722 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13723 {
13724 PyThreadState* __tstate = wxPyBeginAllowThreads();
13725 (arg1)->SetInsertionPointEnd();
13726 wxPyEndAllowThreads(__tstate);
13727 if (PyErr_Occurred()) SWIG_fail;
13728 }
13729 resultobj = SWIG_Py_Void();
13730 return resultobj;
13731 fail:
13732 return NULL;
13733 }
13734
13735
13736 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13737 PyObject *resultobj = 0;
13738 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13739 long result;
13740 void *argp1 = 0 ;
13741 int res1 = 0 ;
13742 PyObject *swig_obj[1] ;
13743
13744 if (!args) SWIG_fail;
13745 swig_obj[0] = args;
13746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13747 if (!SWIG_IsOK(res1)) {
13748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13749 }
13750 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13751 {
13752 PyThreadState* __tstate = wxPyBeginAllowThreads();
13753 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13754 wxPyEndAllowThreads(__tstate);
13755 if (PyErr_Occurred()) SWIG_fail;
13756 }
13757 resultobj = SWIG_From_long(static_cast< long >(result));
13758 return resultobj;
13759 fail:
13760 return NULL;
13761 }
13762
13763
13764 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13765 PyObject *resultobj = 0;
13766 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13767 long result;
13768 void *argp1 = 0 ;
13769 int res1 = 0 ;
13770 PyObject *swig_obj[1] ;
13771
13772 if (!args) SWIG_fail;
13773 swig_obj[0] = args;
13774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13775 if (!SWIG_IsOK(res1)) {
13776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13777 }
13778 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13779 {
13780 PyThreadState* __tstate = wxPyBeginAllowThreads();
13781 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13782 wxPyEndAllowThreads(__tstate);
13783 if (PyErr_Occurred()) SWIG_fail;
13784 }
13785 resultobj = SWIG_From_long(static_cast< long >(result));
13786 return resultobj;
13787 fail:
13788 return NULL;
13789 }
13790
13791
13792 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13793 PyObject *resultobj = 0;
13794 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13795 long arg2 ;
13796 long arg3 ;
13797 void *argp1 = 0 ;
13798 int res1 = 0 ;
13799 long val2 ;
13800 int ecode2 = 0 ;
13801 long val3 ;
13802 int ecode3 = 0 ;
13803 PyObject * obj0 = 0 ;
13804 PyObject * obj1 = 0 ;
13805 PyObject * obj2 = 0 ;
13806 char * kwnames[] = {
13807 (char *) "self",(char *) "from",(char *) "to", NULL
13808 };
13809
13810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13812 if (!SWIG_IsOK(res1)) {
13813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13814 }
13815 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13816 ecode2 = SWIG_AsVal_long(obj1, &val2);
13817 if (!SWIG_IsOK(ecode2)) {
13818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13819 }
13820 arg2 = static_cast< long >(val2);
13821 ecode3 = SWIG_AsVal_long(obj2, &val3);
13822 if (!SWIG_IsOK(ecode3)) {
13823 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13824 }
13825 arg3 = static_cast< long >(val3);
13826 {
13827 PyThreadState* __tstate = wxPyBeginAllowThreads();
13828 (arg1)->SetSelection(arg2,arg3);
13829 wxPyEndAllowThreads(__tstate);
13830 if (PyErr_Occurred()) SWIG_fail;
13831 }
13832 resultobj = SWIG_Py_Void();
13833 return resultobj;
13834 fail:
13835 return NULL;
13836 }
13837
13838
13839 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13840 PyObject *resultobj = 0;
13841 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13842 void *argp1 = 0 ;
13843 int res1 = 0 ;
13844 PyObject *swig_obj[1] ;
13845
13846 if (!args) SWIG_fail;
13847 swig_obj[0] = args;
13848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13849 if (!SWIG_IsOK(res1)) {
13850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13851 }
13852 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13853 {
13854 PyThreadState* __tstate = wxPyBeginAllowThreads();
13855 (arg1)->SelectAll();
13856 wxPyEndAllowThreads(__tstate);
13857 if (PyErr_Occurred()) SWIG_fail;
13858 }
13859 resultobj = SWIG_Py_Void();
13860 return resultobj;
13861 fail:
13862 return NULL;
13863 }
13864
13865
13866 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13867 PyObject *resultobj = 0;
13868 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13869 bool arg2 ;
13870 void *argp1 = 0 ;
13871 int res1 = 0 ;
13872 bool val2 ;
13873 int ecode2 = 0 ;
13874 PyObject * obj0 = 0 ;
13875 PyObject * obj1 = 0 ;
13876 char * kwnames[] = {
13877 (char *) "self",(char *) "editable", NULL
13878 };
13879
13880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13882 if (!SWIG_IsOK(res1)) {
13883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13884 }
13885 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13886 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13887 if (!SWIG_IsOK(ecode2)) {
13888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13889 }
13890 arg2 = static_cast< bool >(val2);
13891 {
13892 PyThreadState* __tstate = wxPyBeginAllowThreads();
13893 (arg1)->SetEditable(arg2);
13894 wxPyEndAllowThreads(__tstate);
13895 if (PyErr_Occurred()) SWIG_fail;
13896 }
13897 resultobj = SWIG_Py_Void();
13898 return resultobj;
13899 fail:
13900 return NULL;
13901 }
13902
13903
13904 SWIGINTERN PyObject *_wrap_TextCtrl_MacCheckSpelling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13905 PyObject *resultobj = 0;
13906 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13907 bool arg2 ;
13908 void *argp1 = 0 ;
13909 int res1 = 0 ;
13910 bool val2 ;
13911 int ecode2 = 0 ;
13912 PyObject * obj0 = 0 ;
13913 PyObject * obj1 = 0 ;
13914 char * kwnames[] = {
13915 (char *) "self",(char *) "check", NULL
13916 };
13917
13918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_MacCheckSpelling",kwnames,&obj0,&obj1)) SWIG_fail;
13919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13920 if (!SWIG_IsOK(res1)) {
13921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13922 }
13923 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13924 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13925 if (!SWIG_IsOK(ecode2)) {
13926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "2"" of type '" "bool""'");
13927 }
13928 arg2 = static_cast< bool >(val2);
13929 {
13930 PyThreadState* __tstate = wxPyBeginAllowThreads();
13931 wxTextCtrl_MacCheckSpelling(arg1,arg2);
13932 wxPyEndAllowThreads(__tstate);
13933 if (PyErr_Occurred()) SWIG_fail;
13934 }
13935 resultobj = SWIG_Py_Void();
13936 return resultobj;
13937 fail:
13938 return NULL;
13939 }
13940
13941
13942 SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13943 PyObject *resultobj = 0;
13944 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13945 void *argp1 = 0 ;
13946 int res1 = 0 ;
13947 PyObject *swig_obj[1] ;
13948
13949 if (!args) SWIG_fail;
13950 swig_obj[0] = args;
13951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13952 if (!SWIG_IsOK(res1)) {
13953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13954 }
13955 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13956 {
13957 PyThreadState* __tstate = wxPyBeginAllowThreads();
13958 (arg1)->SendTextUpdatedEvent();
13959 wxPyEndAllowThreads(__tstate);
13960 if (PyErr_Occurred()) SWIG_fail;
13961 }
13962 resultobj = SWIG_Py_Void();
13963 return resultobj;
13964 fail:
13965 return NULL;
13966 }
13967
13968
13969 SWIGINTERN PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13970 PyObject *resultobj = 0;
13971 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13972 bool arg2 = (bool) true ;
13973 bool result;
13974 void *argp1 = 0 ;
13975 int res1 = 0 ;
13976 bool val2 ;
13977 int ecode2 = 0 ;
13978 PyObject * obj0 = 0 ;
13979 PyObject * obj1 = 0 ;
13980 char * kwnames[] = {
13981 (char *) "self",(char *) "show", NULL
13982 };
13983
13984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) SWIG_fail;
13985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13986 if (!SWIG_IsOK(res1)) {
13987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13988 }
13989 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13990 if (obj1) {
13991 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13992 if (!SWIG_IsOK(ecode2)) {
13993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "2"" of type '" "bool""'");
13994 }
13995 arg2 = static_cast< bool >(val2);
13996 }
13997 {
13998 PyThreadState* __tstate = wxPyBeginAllowThreads();
13999 result = (bool)(arg1)->ShowNativeCaret(arg2);
14000 wxPyEndAllowThreads(__tstate);
14001 if (PyErr_Occurred()) SWIG_fail;
14002 }
14003 {
14004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14005 }
14006 return resultobj;
14007 fail:
14008 return NULL;
14009 }
14010
14011
14012 SWIGINTERN PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14013 PyObject *resultobj = 0;
14014 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14015 bool result;
14016 void *argp1 = 0 ;
14017 int res1 = 0 ;
14018 PyObject *swig_obj[1] ;
14019
14020 if (!args) SWIG_fail;
14021 swig_obj[0] = args;
14022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14023 if (!SWIG_IsOK(res1)) {
14024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HideNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14025 }
14026 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14027 {
14028 PyThreadState* __tstate = wxPyBeginAllowThreads();
14029 result = (bool)(arg1)->HideNativeCaret();
14030 wxPyEndAllowThreads(__tstate);
14031 if (PyErr_Occurred()) SWIG_fail;
14032 }
14033 {
14034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14035 }
14036 return resultobj;
14037 fail:
14038 return NULL;
14039 }
14040
14041
14042 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14043 PyObject *resultobj = 0;
14044 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14045 wxString *arg2 = 0 ;
14046 void *argp1 = 0 ;
14047 int res1 = 0 ;
14048 bool temp2 = false ;
14049 PyObject * obj0 = 0 ;
14050 PyObject * obj1 = 0 ;
14051 char * kwnames[] = {
14052 (char *) "self",(char *) "text", NULL
14053 };
14054
14055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
14056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14057 if (!SWIG_IsOK(res1)) {
14058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14059 }
14060 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14061 {
14062 arg2 = wxString_in_helper(obj1);
14063 if (arg2 == NULL) SWIG_fail;
14064 temp2 = true;
14065 }
14066 {
14067 PyThreadState* __tstate = wxPyBeginAllowThreads();
14068 wxTextCtrl_write(arg1,(wxString const &)*arg2);
14069 wxPyEndAllowThreads(__tstate);
14070 if (PyErr_Occurred()) SWIG_fail;
14071 }
14072 resultobj = SWIG_Py_Void();
14073 {
14074 if (temp2)
14075 delete arg2;
14076 }
14077 return resultobj;
14078 fail:
14079 {
14080 if (temp2)
14081 delete arg2;
14082 }
14083 return NULL;
14084 }
14085
14086
14087 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14088 PyObject *resultobj = 0;
14089 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14090 long arg2 ;
14091 long arg3 ;
14092 wxString result;
14093 void *argp1 = 0 ;
14094 int res1 = 0 ;
14095 long val2 ;
14096 int ecode2 = 0 ;
14097 long val3 ;
14098 int ecode3 = 0 ;
14099 PyObject * obj0 = 0 ;
14100 PyObject * obj1 = 0 ;
14101 PyObject * obj2 = 0 ;
14102 char * kwnames[] = {
14103 (char *) "self",(char *) "from",(char *) "to", NULL
14104 };
14105
14106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14108 if (!SWIG_IsOK(res1)) {
14109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14110 }
14111 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14112 ecode2 = SWIG_AsVal_long(obj1, &val2);
14113 if (!SWIG_IsOK(ecode2)) {
14114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
14115 }
14116 arg2 = static_cast< long >(val2);
14117 ecode3 = SWIG_AsVal_long(obj2, &val3);
14118 if (!SWIG_IsOK(ecode3)) {
14119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
14120 }
14121 arg3 = static_cast< long >(val3);
14122 {
14123 PyThreadState* __tstate = wxPyBeginAllowThreads();
14124 result = wxTextCtrl_GetString(arg1,arg2,arg3);
14125 wxPyEndAllowThreads(__tstate);
14126 if (PyErr_Occurred()) SWIG_fail;
14127 }
14128 {
14129 #if wxUSE_UNICODE
14130 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14131 #else
14132 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14133 #endif
14134 }
14135 return resultobj;
14136 fail:
14137 return NULL;
14138 }
14139
14140
14141 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14142 PyObject *resultobj = 0;
14143 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14144 SwigValueWrapper<wxVisualAttributes > result;
14145 int val1 ;
14146 int ecode1 = 0 ;
14147 PyObject * obj0 = 0 ;
14148 char * kwnames[] = {
14149 (char *) "variant", NULL
14150 };
14151
14152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14153 if (obj0) {
14154 ecode1 = SWIG_AsVal_int(obj0, &val1);
14155 if (!SWIG_IsOK(ecode1)) {
14156 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14157 }
14158 arg1 = static_cast< wxWindowVariant >(val1);
14159 }
14160 {
14161 if (!wxPyCheckForApp()) SWIG_fail;
14162 PyThreadState* __tstate = wxPyBeginAllowThreads();
14163 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
14164 wxPyEndAllowThreads(__tstate);
14165 if (PyErr_Occurred()) SWIG_fail;
14166 }
14167 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14168 return resultobj;
14169 fail:
14170 return NULL;
14171 }
14172
14173
14174 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14175 PyObject *obj;
14176 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14177 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
14178 return SWIG_Py_Void();
14179 }
14180
14181 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14182 return SWIG_Python_InitShadowInstance(args);
14183 }
14184
14185 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14186 PyObject *resultobj = 0;
14187 int arg1 ;
14188 wxMouseEvent *arg2 = 0 ;
14189 long arg3 ;
14190 long arg4 ;
14191 wxTextUrlEvent *result = 0 ;
14192 int val1 ;
14193 int ecode1 = 0 ;
14194 void *argp2 = 0 ;
14195 int res2 = 0 ;
14196 long val3 ;
14197 int ecode3 = 0 ;
14198 long val4 ;
14199 int ecode4 = 0 ;
14200 PyObject * obj0 = 0 ;
14201 PyObject * obj1 = 0 ;
14202 PyObject * obj2 = 0 ;
14203 PyObject * obj3 = 0 ;
14204 char * kwnames[] = {
14205 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14206 };
14207
14208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14209 ecode1 = SWIG_AsVal_int(obj0, &val1);
14210 if (!SWIG_IsOK(ecode1)) {
14211 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14212 }
14213 arg1 = static_cast< int >(val1);
14214 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14215 if (!SWIG_IsOK(res2)) {
14216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14217 }
14218 if (!argp2) {
14219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14220 }
14221 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14222 ecode3 = SWIG_AsVal_long(obj2, &val3);
14223 if (!SWIG_IsOK(ecode3)) {
14224 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14225 }
14226 arg3 = static_cast< long >(val3);
14227 ecode4 = SWIG_AsVal_long(obj3, &val4);
14228 if (!SWIG_IsOK(ecode4)) {
14229 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14230 }
14231 arg4 = static_cast< long >(val4);
14232 {
14233 PyThreadState* __tstate = wxPyBeginAllowThreads();
14234 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14235 wxPyEndAllowThreads(__tstate);
14236 if (PyErr_Occurred()) SWIG_fail;
14237 }
14238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14239 return resultobj;
14240 fail:
14241 return NULL;
14242 }
14243
14244
14245 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14246 PyObject *resultobj = 0;
14247 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14248 wxMouseEvent *result = 0 ;
14249 void *argp1 = 0 ;
14250 int res1 = 0 ;
14251 PyObject *swig_obj[1] ;
14252
14253 if (!args) SWIG_fail;
14254 swig_obj[0] = args;
14255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14256 if (!SWIG_IsOK(res1)) {
14257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14258 }
14259 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14260 {
14261 PyThreadState* __tstate = wxPyBeginAllowThreads();
14262 {
14263 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14264 result = (wxMouseEvent *) &_result_ref;
14265 }
14266 wxPyEndAllowThreads(__tstate);
14267 if (PyErr_Occurred()) SWIG_fail;
14268 }
14269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14270 return resultobj;
14271 fail:
14272 return NULL;
14273 }
14274
14275
14276 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14277 PyObject *resultobj = 0;
14278 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14279 long result;
14280 void *argp1 = 0 ;
14281 int res1 = 0 ;
14282 PyObject *swig_obj[1] ;
14283
14284 if (!args) SWIG_fail;
14285 swig_obj[0] = args;
14286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14287 if (!SWIG_IsOK(res1)) {
14288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14289 }
14290 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14291 {
14292 PyThreadState* __tstate = wxPyBeginAllowThreads();
14293 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14294 wxPyEndAllowThreads(__tstate);
14295 if (PyErr_Occurred()) SWIG_fail;
14296 }
14297 resultobj = SWIG_From_long(static_cast< long >(result));
14298 return resultobj;
14299 fail:
14300 return NULL;
14301 }
14302
14303
14304 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14305 PyObject *resultobj = 0;
14306 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14307 long result;
14308 void *argp1 = 0 ;
14309 int res1 = 0 ;
14310 PyObject *swig_obj[1] ;
14311
14312 if (!args) SWIG_fail;
14313 swig_obj[0] = args;
14314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14315 if (!SWIG_IsOK(res1)) {
14316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14317 }
14318 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14319 {
14320 PyThreadState* __tstate = wxPyBeginAllowThreads();
14321 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14322 wxPyEndAllowThreads(__tstate);
14323 if (PyErr_Occurred()) SWIG_fail;
14324 }
14325 resultobj = SWIG_From_long(static_cast< long >(result));
14326 return resultobj;
14327 fail:
14328 return NULL;
14329 }
14330
14331
14332 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14333 PyObject *obj;
14334 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14335 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14336 return SWIG_Py_Void();
14337 }
14338
14339 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14340 return SWIG_Python_InitShadowInstance(args);
14341 }
14342
14343 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14344 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14345 return 1;
14346 }
14347
14348
14349 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14350 PyObject *pyobj = 0;
14351
14352 {
14353 #if wxUSE_UNICODE
14354 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14355 #else
14356 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14357 #endif
14358 }
14359 return pyobj;
14360 }
14361
14362
14363 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14364 PyObject *resultobj = 0;
14365 wxWindow *arg1 = (wxWindow *) 0 ;
14366 int arg2 = (int) -1 ;
14367 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14368 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14369 wxSize const &arg4_defvalue = wxDefaultSize ;
14370 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14371 long arg5 = (long) wxSB_HORIZONTAL ;
14372 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14373 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14374 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14375 wxString *arg7 = (wxString *) &arg7_defvalue ;
14376 wxScrollBar *result = 0 ;
14377 void *argp1 = 0 ;
14378 int res1 = 0 ;
14379 int val2 ;
14380 int ecode2 = 0 ;
14381 wxPoint temp3 ;
14382 wxSize temp4 ;
14383 long val5 ;
14384 int ecode5 = 0 ;
14385 void *argp6 = 0 ;
14386 int res6 = 0 ;
14387 bool temp7 = false ;
14388 PyObject * obj0 = 0 ;
14389 PyObject * obj1 = 0 ;
14390 PyObject * obj2 = 0 ;
14391 PyObject * obj3 = 0 ;
14392 PyObject * obj4 = 0 ;
14393 PyObject * obj5 = 0 ;
14394 PyObject * obj6 = 0 ;
14395 char * kwnames[] = {
14396 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14397 };
14398
14399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14401 if (!SWIG_IsOK(res1)) {
14402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14403 }
14404 arg1 = reinterpret_cast< wxWindow * >(argp1);
14405 if (obj1) {
14406 ecode2 = SWIG_AsVal_int(obj1, &val2);
14407 if (!SWIG_IsOK(ecode2)) {
14408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14409 }
14410 arg2 = static_cast< int >(val2);
14411 }
14412 if (obj2) {
14413 {
14414 arg3 = &temp3;
14415 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14416 }
14417 }
14418 if (obj3) {
14419 {
14420 arg4 = &temp4;
14421 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14422 }
14423 }
14424 if (obj4) {
14425 ecode5 = SWIG_AsVal_long(obj4, &val5);
14426 if (!SWIG_IsOK(ecode5)) {
14427 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14428 }
14429 arg5 = static_cast< long >(val5);
14430 }
14431 if (obj5) {
14432 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14433 if (!SWIG_IsOK(res6)) {
14434 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14435 }
14436 if (!argp6) {
14437 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14438 }
14439 arg6 = reinterpret_cast< wxValidator * >(argp6);
14440 }
14441 if (obj6) {
14442 {
14443 arg7 = wxString_in_helper(obj6);
14444 if (arg7 == NULL) SWIG_fail;
14445 temp7 = true;
14446 }
14447 }
14448 {
14449 if (!wxPyCheckForApp()) SWIG_fail;
14450 PyThreadState* __tstate = wxPyBeginAllowThreads();
14451 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14452 wxPyEndAllowThreads(__tstate);
14453 if (PyErr_Occurred()) SWIG_fail;
14454 }
14455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14456 {
14457 if (temp7)
14458 delete arg7;
14459 }
14460 return resultobj;
14461 fail:
14462 {
14463 if (temp7)
14464 delete arg7;
14465 }
14466 return NULL;
14467 }
14468
14469
14470 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14471 PyObject *resultobj = 0;
14472 wxScrollBar *result = 0 ;
14473
14474 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14475 {
14476 if (!wxPyCheckForApp()) SWIG_fail;
14477 PyThreadState* __tstate = wxPyBeginAllowThreads();
14478 result = (wxScrollBar *)new wxScrollBar();
14479 wxPyEndAllowThreads(__tstate);
14480 if (PyErr_Occurred()) SWIG_fail;
14481 }
14482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14483 return resultobj;
14484 fail:
14485 return NULL;
14486 }
14487
14488
14489 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14490 PyObject *resultobj = 0;
14491 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14492 wxWindow *arg2 = (wxWindow *) 0 ;
14493 int arg3 = (int) -1 ;
14494 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14495 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14496 wxSize const &arg5_defvalue = wxDefaultSize ;
14497 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14498 long arg6 = (long) wxSB_HORIZONTAL ;
14499 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14500 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14501 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14502 wxString *arg8 = (wxString *) &arg8_defvalue ;
14503 bool result;
14504 void *argp1 = 0 ;
14505 int res1 = 0 ;
14506 void *argp2 = 0 ;
14507 int res2 = 0 ;
14508 int val3 ;
14509 int ecode3 = 0 ;
14510 wxPoint temp4 ;
14511 wxSize temp5 ;
14512 long val6 ;
14513 int ecode6 = 0 ;
14514 void *argp7 = 0 ;
14515 int res7 = 0 ;
14516 bool temp8 = false ;
14517 PyObject * obj0 = 0 ;
14518 PyObject * obj1 = 0 ;
14519 PyObject * obj2 = 0 ;
14520 PyObject * obj3 = 0 ;
14521 PyObject * obj4 = 0 ;
14522 PyObject * obj5 = 0 ;
14523 PyObject * obj6 = 0 ;
14524 PyObject * obj7 = 0 ;
14525 char * kwnames[] = {
14526 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14527 };
14528
14529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14531 if (!SWIG_IsOK(res1)) {
14532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14533 }
14534 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14535 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14536 if (!SWIG_IsOK(res2)) {
14537 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14538 }
14539 arg2 = reinterpret_cast< wxWindow * >(argp2);
14540 if (obj2) {
14541 ecode3 = SWIG_AsVal_int(obj2, &val3);
14542 if (!SWIG_IsOK(ecode3)) {
14543 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14544 }
14545 arg3 = static_cast< int >(val3);
14546 }
14547 if (obj3) {
14548 {
14549 arg4 = &temp4;
14550 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14551 }
14552 }
14553 if (obj4) {
14554 {
14555 arg5 = &temp5;
14556 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14557 }
14558 }
14559 if (obj5) {
14560 ecode6 = SWIG_AsVal_long(obj5, &val6);
14561 if (!SWIG_IsOK(ecode6)) {
14562 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14563 }
14564 arg6 = static_cast< long >(val6);
14565 }
14566 if (obj6) {
14567 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14568 if (!SWIG_IsOK(res7)) {
14569 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14570 }
14571 if (!argp7) {
14572 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14573 }
14574 arg7 = reinterpret_cast< wxValidator * >(argp7);
14575 }
14576 if (obj7) {
14577 {
14578 arg8 = wxString_in_helper(obj7);
14579 if (arg8 == NULL) SWIG_fail;
14580 temp8 = true;
14581 }
14582 }
14583 {
14584 PyThreadState* __tstate = wxPyBeginAllowThreads();
14585 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14586 wxPyEndAllowThreads(__tstate);
14587 if (PyErr_Occurred()) SWIG_fail;
14588 }
14589 {
14590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14591 }
14592 {
14593 if (temp8)
14594 delete arg8;
14595 }
14596 return resultobj;
14597 fail:
14598 {
14599 if (temp8)
14600 delete arg8;
14601 }
14602 return NULL;
14603 }
14604
14605
14606 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14607 PyObject *resultobj = 0;
14608 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14609 int result;
14610 void *argp1 = 0 ;
14611 int res1 = 0 ;
14612 PyObject *swig_obj[1] ;
14613
14614 if (!args) SWIG_fail;
14615 swig_obj[0] = args;
14616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14617 if (!SWIG_IsOK(res1)) {
14618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14619 }
14620 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14621 {
14622 PyThreadState* __tstate = wxPyBeginAllowThreads();
14623 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14624 wxPyEndAllowThreads(__tstate);
14625 if (PyErr_Occurred()) SWIG_fail;
14626 }
14627 resultobj = SWIG_From_int(static_cast< int >(result));
14628 return resultobj;
14629 fail:
14630 return NULL;
14631 }
14632
14633
14634 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14635 PyObject *resultobj = 0;
14636 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14637 int result;
14638 void *argp1 = 0 ;
14639 int res1 = 0 ;
14640 PyObject *swig_obj[1] ;
14641
14642 if (!args) SWIG_fail;
14643 swig_obj[0] = args;
14644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14645 if (!SWIG_IsOK(res1)) {
14646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14647 }
14648 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14649 {
14650 PyThreadState* __tstate = wxPyBeginAllowThreads();
14651 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14652 wxPyEndAllowThreads(__tstate);
14653 if (PyErr_Occurred()) SWIG_fail;
14654 }
14655 resultobj = SWIG_From_int(static_cast< int >(result));
14656 return resultobj;
14657 fail:
14658 return NULL;
14659 }
14660
14661
14662 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14663 PyObject *resultobj = 0;
14664 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14665 int result;
14666 void *argp1 = 0 ;
14667 int res1 = 0 ;
14668 PyObject *swig_obj[1] ;
14669
14670 if (!args) SWIG_fail;
14671 swig_obj[0] = args;
14672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14673 if (!SWIG_IsOK(res1)) {
14674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14675 }
14676 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14677 {
14678 PyThreadState* __tstate = wxPyBeginAllowThreads();
14679 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14680 wxPyEndAllowThreads(__tstate);
14681 if (PyErr_Occurred()) SWIG_fail;
14682 }
14683 resultobj = SWIG_From_int(static_cast< int >(result));
14684 return resultobj;
14685 fail:
14686 return NULL;
14687 }
14688
14689
14690 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14691 PyObject *resultobj = 0;
14692 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14693 int result;
14694 void *argp1 = 0 ;
14695 int res1 = 0 ;
14696 PyObject *swig_obj[1] ;
14697
14698 if (!args) SWIG_fail;
14699 swig_obj[0] = args;
14700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14701 if (!SWIG_IsOK(res1)) {
14702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14703 }
14704 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14705 {
14706 PyThreadState* __tstate = wxPyBeginAllowThreads();
14707 result = (int)((wxScrollBar const *)arg1)->GetRange();
14708 wxPyEndAllowThreads(__tstate);
14709 if (PyErr_Occurred()) SWIG_fail;
14710 }
14711 resultobj = SWIG_From_int(static_cast< int >(result));
14712 return resultobj;
14713 fail:
14714 return NULL;
14715 }
14716
14717
14718 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14719 PyObject *resultobj = 0;
14720 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14721 bool result;
14722 void *argp1 = 0 ;
14723 int res1 = 0 ;
14724 PyObject *swig_obj[1] ;
14725
14726 if (!args) SWIG_fail;
14727 swig_obj[0] = args;
14728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14729 if (!SWIG_IsOK(res1)) {
14730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14731 }
14732 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14733 {
14734 PyThreadState* __tstate = wxPyBeginAllowThreads();
14735 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14736 wxPyEndAllowThreads(__tstate);
14737 if (PyErr_Occurred()) SWIG_fail;
14738 }
14739 {
14740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14741 }
14742 return resultobj;
14743 fail:
14744 return NULL;
14745 }
14746
14747
14748 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14749 PyObject *resultobj = 0;
14750 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14751 int arg2 ;
14752 void *argp1 = 0 ;
14753 int res1 = 0 ;
14754 int val2 ;
14755 int ecode2 = 0 ;
14756 PyObject * obj0 = 0 ;
14757 PyObject * obj1 = 0 ;
14758 char * kwnames[] = {
14759 (char *) "self",(char *) "viewStart", NULL
14760 };
14761
14762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14764 if (!SWIG_IsOK(res1)) {
14765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14766 }
14767 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14768 ecode2 = SWIG_AsVal_int(obj1, &val2);
14769 if (!SWIG_IsOK(ecode2)) {
14770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14771 }
14772 arg2 = static_cast< int >(val2);
14773 {
14774 PyThreadState* __tstate = wxPyBeginAllowThreads();
14775 (arg1)->SetThumbPosition(arg2);
14776 wxPyEndAllowThreads(__tstate);
14777 if (PyErr_Occurred()) SWIG_fail;
14778 }
14779 resultobj = SWIG_Py_Void();
14780 return resultobj;
14781 fail:
14782 return NULL;
14783 }
14784
14785
14786 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14787 PyObject *resultobj = 0;
14788 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14789 SwigValueWrapper<wxVisualAttributes > result;
14790 int val1 ;
14791 int ecode1 = 0 ;
14792 PyObject * obj0 = 0 ;
14793 char * kwnames[] = {
14794 (char *) "variant", NULL
14795 };
14796
14797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14798 if (obj0) {
14799 ecode1 = SWIG_AsVal_int(obj0, &val1);
14800 if (!SWIG_IsOK(ecode1)) {
14801 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14802 }
14803 arg1 = static_cast< wxWindowVariant >(val1);
14804 }
14805 {
14806 if (!wxPyCheckForApp()) SWIG_fail;
14807 PyThreadState* __tstate = wxPyBeginAllowThreads();
14808 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14809 wxPyEndAllowThreads(__tstate);
14810 if (PyErr_Occurred()) SWIG_fail;
14811 }
14812 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14813 return resultobj;
14814 fail:
14815 return NULL;
14816 }
14817
14818
14819 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14820 PyObject *obj;
14821 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14822 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14823 return SWIG_Py_Void();
14824 }
14825
14826 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14827 return SWIG_Python_InitShadowInstance(args);
14828 }
14829
14830 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14831 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14832 return 1;
14833 }
14834
14835
14836 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14837 PyObject *pyobj = 0;
14838
14839 {
14840 #if wxUSE_UNICODE
14841 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14842 #else
14843 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14844 #endif
14845 }
14846 return pyobj;
14847 }
14848
14849
14850 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14851 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14852 return 1;
14853 }
14854
14855
14856 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14857 PyObject *pyobj = 0;
14858
14859 {
14860 #if wxUSE_UNICODE
14861 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14862 #else
14863 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14864 #endif
14865 }
14866 return pyobj;
14867 }
14868
14869
14870 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14871 PyObject *resultobj = 0;
14872 wxWindow *arg1 = (wxWindow *) 0 ;
14873 int arg2 = (int) -1 ;
14874 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14875 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14876 wxSize const &arg4_defvalue = wxDefaultSize ;
14877 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14878 long arg5 = (long) wxSP_HORIZONTAL ;
14879 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14880 wxString *arg6 = (wxString *) &arg6_defvalue ;
14881 wxSpinButton *result = 0 ;
14882 void *argp1 = 0 ;
14883 int res1 = 0 ;
14884 int val2 ;
14885 int ecode2 = 0 ;
14886 wxPoint temp3 ;
14887 wxSize temp4 ;
14888 long val5 ;
14889 int ecode5 = 0 ;
14890 bool temp6 = false ;
14891 PyObject * obj0 = 0 ;
14892 PyObject * obj1 = 0 ;
14893 PyObject * obj2 = 0 ;
14894 PyObject * obj3 = 0 ;
14895 PyObject * obj4 = 0 ;
14896 PyObject * obj5 = 0 ;
14897 char * kwnames[] = {
14898 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14899 };
14900
14901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14903 if (!SWIG_IsOK(res1)) {
14904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14905 }
14906 arg1 = reinterpret_cast< wxWindow * >(argp1);
14907 if (obj1) {
14908 ecode2 = SWIG_AsVal_int(obj1, &val2);
14909 if (!SWIG_IsOK(ecode2)) {
14910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14911 }
14912 arg2 = static_cast< int >(val2);
14913 }
14914 if (obj2) {
14915 {
14916 arg3 = &temp3;
14917 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14918 }
14919 }
14920 if (obj3) {
14921 {
14922 arg4 = &temp4;
14923 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14924 }
14925 }
14926 if (obj4) {
14927 ecode5 = SWIG_AsVal_long(obj4, &val5);
14928 if (!SWIG_IsOK(ecode5)) {
14929 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14930 }
14931 arg5 = static_cast< long >(val5);
14932 }
14933 if (obj5) {
14934 {
14935 arg6 = wxString_in_helper(obj5);
14936 if (arg6 == NULL) SWIG_fail;
14937 temp6 = true;
14938 }
14939 }
14940 {
14941 if (!wxPyCheckForApp()) SWIG_fail;
14942 PyThreadState* __tstate = wxPyBeginAllowThreads();
14943 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14944 wxPyEndAllowThreads(__tstate);
14945 if (PyErr_Occurred()) SWIG_fail;
14946 }
14947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14948 {
14949 if (temp6)
14950 delete arg6;
14951 }
14952 return resultobj;
14953 fail:
14954 {
14955 if (temp6)
14956 delete arg6;
14957 }
14958 return NULL;
14959 }
14960
14961
14962 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14963 PyObject *resultobj = 0;
14964 wxSpinButton *result = 0 ;
14965
14966 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14967 {
14968 if (!wxPyCheckForApp()) SWIG_fail;
14969 PyThreadState* __tstate = wxPyBeginAllowThreads();
14970 result = (wxSpinButton *)new wxSpinButton();
14971 wxPyEndAllowThreads(__tstate);
14972 if (PyErr_Occurred()) SWIG_fail;
14973 }
14974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14975 return resultobj;
14976 fail:
14977 return NULL;
14978 }
14979
14980
14981 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14982 PyObject *resultobj = 0;
14983 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14984 wxWindow *arg2 = (wxWindow *) 0 ;
14985 int arg3 = (int) -1 ;
14986 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14987 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14988 wxSize const &arg5_defvalue = wxDefaultSize ;
14989 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14990 long arg6 = (long) wxSP_HORIZONTAL ;
14991 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14992 wxString *arg7 = (wxString *) &arg7_defvalue ;
14993 bool result;
14994 void *argp1 = 0 ;
14995 int res1 = 0 ;
14996 void *argp2 = 0 ;
14997 int res2 = 0 ;
14998 int val3 ;
14999 int ecode3 = 0 ;
15000 wxPoint temp4 ;
15001 wxSize temp5 ;
15002 long val6 ;
15003 int ecode6 = 0 ;
15004 bool temp7 = false ;
15005 PyObject * obj0 = 0 ;
15006 PyObject * obj1 = 0 ;
15007 PyObject * obj2 = 0 ;
15008 PyObject * obj3 = 0 ;
15009 PyObject * obj4 = 0 ;
15010 PyObject * obj5 = 0 ;
15011 PyObject * obj6 = 0 ;
15012 char * kwnames[] = {
15013 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15014 };
15015
15016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15018 if (!SWIG_IsOK(res1)) {
15019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15020 }
15021 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15022 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15023 if (!SWIG_IsOK(res2)) {
15024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15025 }
15026 arg2 = reinterpret_cast< wxWindow * >(argp2);
15027 if (obj2) {
15028 ecode3 = SWIG_AsVal_int(obj2, &val3);
15029 if (!SWIG_IsOK(ecode3)) {
15030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
15031 }
15032 arg3 = static_cast< int >(val3);
15033 }
15034 if (obj3) {
15035 {
15036 arg4 = &temp4;
15037 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15038 }
15039 }
15040 if (obj4) {
15041 {
15042 arg5 = &temp5;
15043 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15044 }
15045 }
15046 if (obj5) {
15047 ecode6 = SWIG_AsVal_long(obj5, &val6);
15048 if (!SWIG_IsOK(ecode6)) {
15049 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
15050 }
15051 arg6 = static_cast< long >(val6);
15052 }
15053 if (obj6) {
15054 {
15055 arg7 = wxString_in_helper(obj6);
15056 if (arg7 == NULL) SWIG_fail;
15057 temp7 = true;
15058 }
15059 }
15060 {
15061 PyThreadState* __tstate = wxPyBeginAllowThreads();
15062 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15063 wxPyEndAllowThreads(__tstate);
15064 if (PyErr_Occurred()) SWIG_fail;
15065 }
15066 {
15067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15068 }
15069 {
15070 if (temp7)
15071 delete arg7;
15072 }
15073 return resultobj;
15074 fail:
15075 {
15076 if (temp7)
15077 delete arg7;
15078 }
15079 return NULL;
15080 }
15081
15082
15083 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15084 PyObject *resultobj = 0;
15085 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15086 int result;
15087 void *argp1 = 0 ;
15088 int res1 = 0 ;
15089 PyObject *swig_obj[1] ;
15090
15091 if (!args) SWIG_fail;
15092 swig_obj[0] = args;
15093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15094 if (!SWIG_IsOK(res1)) {
15095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15096 }
15097 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15098 {
15099 PyThreadState* __tstate = wxPyBeginAllowThreads();
15100 result = (int)((wxSpinButton const *)arg1)->GetValue();
15101 wxPyEndAllowThreads(__tstate);
15102 if (PyErr_Occurred()) SWIG_fail;
15103 }
15104 resultobj = SWIG_From_int(static_cast< int >(result));
15105 return resultobj;
15106 fail:
15107 return NULL;
15108 }
15109
15110
15111 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15112 PyObject *resultobj = 0;
15113 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15114 int result;
15115 void *argp1 = 0 ;
15116 int res1 = 0 ;
15117 PyObject *swig_obj[1] ;
15118
15119 if (!args) SWIG_fail;
15120 swig_obj[0] = args;
15121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15122 if (!SWIG_IsOK(res1)) {
15123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15124 }
15125 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15126 {
15127 PyThreadState* __tstate = wxPyBeginAllowThreads();
15128 result = (int)((wxSpinButton const *)arg1)->GetMin();
15129 wxPyEndAllowThreads(__tstate);
15130 if (PyErr_Occurred()) SWIG_fail;
15131 }
15132 resultobj = SWIG_From_int(static_cast< int >(result));
15133 return resultobj;
15134 fail:
15135 return NULL;
15136 }
15137
15138
15139 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15140 PyObject *resultobj = 0;
15141 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15142 int result;
15143 void *argp1 = 0 ;
15144 int res1 = 0 ;
15145 PyObject *swig_obj[1] ;
15146
15147 if (!args) SWIG_fail;
15148 swig_obj[0] = args;
15149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15150 if (!SWIG_IsOK(res1)) {
15151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15152 }
15153 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15154 {
15155 PyThreadState* __tstate = wxPyBeginAllowThreads();
15156 result = (int)((wxSpinButton const *)arg1)->GetMax();
15157 wxPyEndAllowThreads(__tstate);
15158 if (PyErr_Occurred()) SWIG_fail;
15159 }
15160 resultobj = SWIG_From_int(static_cast< int >(result));
15161 return resultobj;
15162 fail:
15163 return NULL;
15164 }
15165
15166
15167 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15168 PyObject *resultobj = 0;
15169 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15170 int arg2 ;
15171 void *argp1 = 0 ;
15172 int res1 = 0 ;
15173 int val2 ;
15174 int ecode2 = 0 ;
15175 PyObject * obj0 = 0 ;
15176 PyObject * obj1 = 0 ;
15177 char * kwnames[] = {
15178 (char *) "self",(char *) "val", NULL
15179 };
15180
15181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15183 if (!SWIG_IsOK(res1)) {
15184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15185 }
15186 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15187 ecode2 = SWIG_AsVal_int(obj1, &val2);
15188 if (!SWIG_IsOK(ecode2)) {
15189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15190 }
15191 arg2 = static_cast< int >(val2);
15192 {
15193 PyThreadState* __tstate = wxPyBeginAllowThreads();
15194 (arg1)->SetValue(arg2);
15195 wxPyEndAllowThreads(__tstate);
15196 if (PyErr_Occurred()) SWIG_fail;
15197 }
15198 resultobj = SWIG_Py_Void();
15199 return resultobj;
15200 fail:
15201 return NULL;
15202 }
15203
15204
15205 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15206 PyObject *resultobj = 0;
15207 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15208 int arg2 ;
15209 void *argp1 = 0 ;
15210 int res1 = 0 ;
15211 int val2 ;
15212 int ecode2 = 0 ;
15213 PyObject * obj0 = 0 ;
15214 PyObject * obj1 = 0 ;
15215 char * kwnames[] = {
15216 (char *) "self",(char *) "minVal", NULL
15217 };
15218
15219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15221 if (!SWIG_IsOK(res1)) {
15222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15223 }
15224 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15225 ecode2 = SWIG_AsVal_int(obj1, &val2);
15226 if (!SWIG_IsOK(ecode2)) {
15227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15228 }
15229 arg2 = static_cast< int >(val2);
15230 {
15231 PyThreadState* __tstate = wxPyBeginAllowThreads();
15232 (arg1)->SetMin(arg2);
15233 wxPyEndAllowThreads(__tstate);
15234 if (PyErr_Occurred()) SWIG_fail;
15235 }
15236 resultobj = SWIG_Py_Void();
15237 return resultobj;
15238 fail:
15239 return NULL;
15240 }
15241
15242
15243 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15244 PyObject *resultobj = 0;
15245 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15246 int arg2 ;
15247 void *argp1 = 0 ;
15248 int res1 = 0 ;
15249 int val2 ;
15250 int ecode2 = 0 ;
15251 PyObject * obj0 = 0 ;
15252 PyObject * obj1 = 0 ;
15253 char * kwnames[] = {
15254 (char *) "self",(char *) "maxVal", NULL
15255 };
15256
15257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15259 if (!SWIG_IsOK(res1)) {
15260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15261 }
15262 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15263 ecode2 = SWIG_AsVal_int(obj1, &val2);
15264 if (!SWIG_IsOK(ecode2)) {
15265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15266 }
15267 arg2 = static_cast< int >(val2);
15268 {
15269 PyThreadState* __tstate = wxPyBeginAllowThreads();
15270 (arg1)->SetMax(arg2);
15271 wxPyEndAllowThreads(__tstate);
15272 if (PyErr_Occurred()) SWIG_fail;
15273 }
15274 resultobj = SWIG_Py_Void();
15275 return resultobj;
15276 fail:
15277 return NULL;
15278 }
15279
15280
15281 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15282 PyObject *resultobj = 0;
15283 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15284 int arg2 ;
15285 int arg3 ;
15286 void *argp1 = 0 ;
15287 int res1 = 0 ;
15288 int val2 ;
15289 int ecode2 = 0 ;
15290 int val3 ;
15291 int ecode3 = 0 ;
15292 PyObject * obj0 = 0 ;
15293 PyObject * obj1 = 0 ;
15294 PyObject * obj2 = 0 ;
15295 char * kwnames[] = {
15296 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15297 };
15298
15299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15301 if (!SWIG_IsOK(res1)) {
15302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15303 }
15304 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15305 ecode2 = SWIG_AsVal_int(obj1, &val2);
15306 if (!SWIG_IsOK(ecode2)) {
15307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15308 }
15309 arg2 = static_cast< int >(val2);
15310 ecode3 = SWIG_AsVal_int(obj2, &val3);
15311 if (!SWIG_IsOK(ecode3)) {
15312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15313 }
15314 arg3 = static_cast< int >(val3);
15315 {
15316 PyThreadState* __tstate = wxPyBeginAllowThreads();
15317 (arg1)->SetRange(arg2,arg3);
15318 wxPyEndAllowThreads(__tstate);
15319 if (PyErr_Occurred()) SWIG_fail;
15320 }
15321 resultobj = SWIG_Py_Void();
15322 return resultobj;
15323 fail:
15324 return NULL;
15325 }
15326
15327
15328 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15329 PyObject *resultobj = 0;
15330 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15331 bool result;
15332 void *argp1 = 0 ;
15333 int res1 = 0 ;
15334 PyObject *swig_obj[1] ;
15335
15336 if (!args) SWIG_fail;
15337 swig_obj[0] = args;
15338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15339 if (!SWIG_IsOK(res1)) {
15340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15341 }
15342 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15343 {
15344 PyThreadState* __tstate = wxPyBeginAllowThreads();
15345 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15346 wxPyEndAllowThreads(__tstate);
15347 if (PyErr_Occurred()) SWIG_fail;
15348 }
15349 {
15350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15351 }
15352 return resultobj;
15353 fail:
15354 return NULL;
15355 }
15356
15357
15358 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15359 PyObject *resultobj = 0;
15360 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15361 SwigValueWrapper<wxVisualAttributes > result;
15362 int val1 ;
15363 int ecode1 = 0 ;
15364 PyObject * obj0 = 0 ;
15365 char * kwnames[] = {
15366 (char *) "variant", NULL
15367 };
15368
15369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15370 if (obj0) {
15371 ecode1 = SWIG_AsVal_int(obj0, &val1);
15372 if (!SWIG_IsOK(ecode1)) {
15373 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15374 }
15375 arg1 = static_cast< wxWindowVariant >(val1);
15376 }
15377 {
15378 if (!wxPyCheckForApp()) SWIG_fail;
15379 PyThreadState* __tstate = wxPyBeginAllowThreads();
15380 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15381 wxPyEndAllowThreads(__tstate);
15382 if (PyErr_Occurred()) SWIG_fail;
15383 }
15384 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15385 return resultobj;
15386 fail:
15387 return NULL;
15388 }
15389
15390
15391 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15392 PyObject *obj;
15393 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15394 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15395 return SWIG_Py_Void();
15396 }
15397
15398 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15399 return SWIG_Python_InitShadowInstance(args);
15400 }
15401
15402 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15403 PyObject *resultobj = 0;
15404 wxWindow *arg1 = (wxWindow *) 0 ;
15405 int arg2 = (int) -1 ;
15406 wxString const &arg3_defvalue = wxPyEmptyString ;
15407 wxString *arg3 = (wxString *) &arg3_defvalue ;
15408 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15409 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15410 wxSize const &arg5_defvalue = wxDefaultSize ;
15411 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15412 long arg6 = (long) wxSP_ARROW_KEYS ;
15413 int arg7 = (int) 0 ;
15414 int arg8 = (int) 100 ;
15415 int arg9 = (int) 0 ;
15416 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15417 wxString *arg10 = (wxString *) &arg10_defvalue ;
15418 wxSpinCtrl *result = 0 ;
15419 void *argp1 = 0 ;
15420 int res1 = 0 ;
15421 int val2 ;
15422 int ecode2 = 0 ;
15423 bool temp3 = false ;
15424 wxPoint temp4 ;
15425 wxSize temp5 ;
15426 long val6 ;
15427 int ecode6 = 0 ;
15428 int val7 ;
15429 int ecode7 = 0 ;
15430 int val8 ;
15431 int ecode8 = 0 ;
15432 int val9 ;
15433 int ecode9 = 0 ;
15434 bool temp10 = false ;
15435 PyObject * obj0 = 0 ;
15436 PyObject * obj1 = 0 ;
15437 PyObject * obj2 = 0 ;
15438 PyObject * obj3 = 0 ;
15439 PyObject * obj4 = 0 ;
15440 PyObject * obj5 = 0 ;
15441 PyObject * obj6 = 0 ;
15442 PyObject * obj7 = 0 ;
15443 PyObject * obj8 = 0 ;
15444 PyObject * obj9 = 0 ;
15445 char * kwnames[] = {
15446 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15447 };
15448
15449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15451 if (!SWIG_IsOK(res1)) {
15452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15453 }
15454 arg1 = reinterpret_cast< wxWindow * >(argp1);
15455 if (obj1) {
15456 ecode2 = SWIG_AsVal_int(obj1, &val2);
15457 if (!SWIG_IsOK(ecode2)) {
15458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15459 }
15460 arg2 = static_cast< int >(val2);
15461 }
15462 if (obj2) {
15463 {
15464 arg3 = wxString_in_helper(obj2);
15465 if (arg3 == NULL) SWIG_fail;
15466 temp3 = true;
15467 }
15468 }
15469 if (obj3) {
15470 {
15471 arg4 = &temp4;
15472 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15473 }
15474 }
15475 if (obj4) {
15476 {
15477 arg5 = &temp5;
15478 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15479 }
15480 }
15481 if (obj5) {
15482 ecode6 = SWIG_AsVal_long(obj5, &val6);
15483 if (!SWIG_IsOK(ecode6)) {
15484 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15485 }
15486 arg6 = static_cast< long >(val6);
15487 }
15488 if (obj6) {
15489 ecode7 = SWIG_AsVal_int(obj6, &val7);
15490 if (!SWIG_IsOK(ecode7)) {
15491 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15492 }
15493 arg7 = static_cast< int >(val7);
15494 }
15495 if (obj7) {
15496 ecode8 = SWIG_AsVal_int(obj7, &val8);
15497 if (!SWIG_IsOK(ecode8)) {
15498 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15499 }
15500 arg8 = static_cast< int >(val8);
15501 }
15502 if (obj8) {
15503 ecode9 = SWIG_AsVal_int(obj8, &val9);
15504 if (!SWIG_IsOK(ecode9)) {
15505 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15506 }
15507 arg9 = static_cast< int >(val9);
15508 }
15509 if (obj9) {
15510 {
15511 arg10 = wxString_in_helper(obj9);
15512 if (arg10 == NULL) SWIG_fail;
15513 temp10 = true;
15514 }
15515 }
15516 {
15517 if (!wxPyCheckForApp()) SWIG_fail;
15518 PyThreadState* __tstate = wxPyBeginAllowThreads();
15519 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15520 wxPyEndAllowThreads(__tstate);
15521 if (PyErr_Occurred()) SWIG_fail;
15522 }
15523 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15524 {
15525 if (temp3)
15526 delete arg3;
15527 }
15528 {
15529 if (temp10)
15530 delete arg10;
15531 }
15532 return resultobj;
15533 fail:
15534 {
15535 if (temp3)
15536 delete arg3;
15537 }
15538 {
15539 if (temp10)
15540 delete arg10;
15541 }
15542 return NULL;
15543 }
15544
15545
15546 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15547 PyObject *resultobj = 0;
15548 wxSpinCtrl *result = 0 ;
15549
15550 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15551 {
15552 if (!wxPyCheckForApp()) SWIG_fail;
15553 PyThreadState* __tstate = wxPyBeginAllowThreads();
15554 result = (wxSpinCtrl *)new wxSpinCtrl();
15555 wxPyEndAllowThreads(__tstate);
15556 if (PyErr_Occurred()) SWIG_fail;
15557 }
15558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15559 return resultobj;
15560 fail:
15561 return NULL;
15562 }
15563
15564
15565 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15566 PyObject *resultobj = 0;
15567 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15568 wxWindow *arg2 = (wxWindow *) 0 ;
15569 int arg3 = (int) -1 ;
15570 wxString const &arg4_defvalue = wxPyEmptyString ;
15571 wxString *arg4 = (wxString *) &arg4_defvalue ;
15572 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15573 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15574 wxSize const &arg6_defvalue = wxDefaultSize ;
15575 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15576 long arg7 = (long) wxSP_ARROW_KEYS ;
15577 int arg8 = (int) 0 ;
15578 int arg9 = (int) 100 ;
15579 int arg10 = (int) 0 ;
15580 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15581 wxString *arg11 = (wxString *) &arg11_defvalue ;
15582 bool result;
15583 void *argp1 = 0 ;
15584 int res1 = 0 ;
15585 void *argp2 = 0 ;
15586 int res2 = 0 ;
15587 int val3 ;
15588 int ecode3 = 0 ;
15589 bool temp4 = false ;
15590 wxPoint temp5 ;
15591 wxSize temp6 ;
15592 long val7 ;
15593 int ecode7 = 0 ;
15594 int val8 ;
15595 int ecode8 = 0 ;
15596 int val9 ;
15597 int ecode9 = 0 ;
15598 int val10 ;
15599 int ecode10 = 0 ;
15600 bool temp11 = false ;
15601 PyObject * obj0 = 0 ;
15602 PyObject * obj1 = 0 ;
15603 PyObject * obj2 = 0 ;
15604 PyObject * obj3 = 0 ;
15605 PyObject * obj4 = 0 ;
15606 PyObject * obj5 = 0 ;
15607 PyObject * obj6 = 0 ;
15608 PyObject * obj7 = 0 ;
15609 PyObject * obj8 = 0 ;
15610 PyObject * obj9 = 0 ;
15611 PyObject * obj10 = 0 ;
15612 char * kwnames[] = {
15613 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15614 };
15615
15616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15618 if (!SWIG_IsOK(res1)) {
15619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15620 }
15621 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15622 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15623 if (!SWIG_IsOK(res2)) {
15624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15625 }
15626 arg2 = reinterpret_cast< wxWindow * >(argp2);
15627 if (obj2) {
15628 ecode3 = SWIG_AsVal_int(obj2, &val3);
15629 if (!SWIG_IsOK(ecode3)) {
15630 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15631 }
15632 arg3 = static_cast< int >(val3);
15633 }
15634 if (obj3) {
15635 {
15636 arg4 = wxString_in_helper(obj3);
15637 if (arg4 == NULL) SWIG_fail;
15638 temp4 = true;
15639 }
15640 }
15641 if (obj4) {
15642 {
15643 arg5 = &temp5;
15644 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15645 }
15646 }
15647 if (obj5) {
15648 {
15649 arg6 = &temp6;
15650 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15651 }
15652 }
15653 if (obj6) {
15654 ecode7 = SWIG_AsVal_long(obj6, &val7);
15655 if (!SWIG_IsOK(ecode7)) {
15656 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15657 }
15658 arg7 = static_cast< long >(val7);
15659 }
15660 if (obj7) {
15661 ecode8 = SWIG_AsVal_int(obj7, &val8);
15662 if (!SWIG_IsOK(ecode8)) {
15663 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15664 }
15665 arg8 = static_cast< int >(val8);
15666 }
15667 if (obj8) {
15668 ecode9 = SWIG_AsVal_int(obj8, &val9);
15669 if (!SWIG_IsOK(ecode9)) {
15670 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15671 }
15672 arg9 = static_cast< int >(val9);
15673 }
15674 if (obj9) {
15675 ecode10 = SWIG_AsVal_int(obj9, &val10);
15676 if (!SWIG_IsOK(ecode10)) {
15677 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15678 }
15679 arg10 = static_cast< int >(val10);
15680 }
15681 if (obj10) {
15682 {
15683 arg11 = wxString_in_helper(obj10);
15684 if (arg11 == NULL) SWIG_fail;
15685 temp11 = true;
15686 }
15687 }
15688 {
15689 PyThreadState* __tstate = wxPyBeginAllowThreads();
15690 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15691 wxPyEndAllowThreads(__tstate);
15692 if (PyErr_Occurred()) SWIG_fail;
15693 }
15694 {
15695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15696 }
15697 {
15698 if (temp4)
15699 delete arg4;
15700 }
15701 {
15702 if (temp11)
15703 delete arg11;
15704 }
15705 return resultobj;
15706 fail:
15707 {
15708 if (temp4)
15709 delete arg4;
15710 }
15711 {
15712 if (temp11)
15713 delete arg11;
15714 }
15715 return NULL;
15716 }
15717
15718
15719 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15720 PyObject *resultobj = 0;
15721 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15722 int result;
15723 void *argp1 = 0 ;
15724 int res1 = 0 ;
15725 PyObject *swig_obj[1] ;
15726
15727 if (!args) SWIG_fail;
15728 swig_obj[0] = args;
15729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15730 if (!SWIG_IsOK(res1)) {
15731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15732 }
15733 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15734 {
15735 PyThreadState* __tstate = wxPyBeginAllowThreads();
15736 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15737 wxPyEndAllowThreads(__tstate);
15738 if (PyErr_Occurred()) SWIG_fail;
15739 }
15740 resultobj = SWIG_From_int(static_cast< int >(result));
15741 return resultobj;
15742 fail:
15743 return NULL;
15744 }
15745
15746
15747 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15748 PyObject *resultobj = 0;
15749 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15750 int arg2 ;
15751 void *argp1 = 0 ;
15752 int res1 = 0 ;
15753 int val2 ;
15754 int ecode2 = 0 ;
15755 PyObject * obj0 = 0 ;
15756 PyObject * obj1 = 0 ;
15757 char * kwnames[] = {
15758 (char *) "self",(char *) "value", NULL
15759 };
15760
15761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15763 if (!SWIG_IsOK(res1)) {
15764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15765 }
15766 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15767 ecode2 = SWIG_AsVal_int(obj1, &val2);
15768 if (!SWIG_IsOK(ecode2)) {
15769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15770 }
15771 arg2 = static_cast< int >(val2);
15772 {
15773 PyThreadState* __tstate = wxPyBeginAllowThreads();
15774 (arg1)->SetValue(arg2);
15775 wxPyEndAllowThreads(__tstate);
15776 if (PyErr_Occurred()) SWIG_fail;
15777 }
15778 resultobj = SWIG_Py_Void();
15779 return resultobj;
15780 fail:
15781 return NULL;
15782 }
15783
15784
15785 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15786 PyObject *resultobj = 0;
15787 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15788 wxString *arg2 = 0 ;
15789 void *argp1 = 0 ;
15790 int res1 = 0 ;
15791 bool temp2 = false ;
15792 PyObject * obj0 = 0 ;
15793 PyObject * obj1 = 0 ;
15794 char * kwnames[] = {
15795 (char *) "self",(char *) "text", NULL
15796 };
15797
15798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15800 if (!SWIG_IsOK(res1)) {
15801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15802 }
15803 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15804 {
15805 arg2 = wxString_in_helper(obj1);
15806 if (arg2 == NULL) SWIG_fail;
15807 temp2 = true;
15808 }
15809 {
15810 PyThreadState* __tstate = wxPyBeginAllowThreads();
15811 (arg1)->SetValue((wxString const &)*arg2);
15812 wxPyEndAllowThreads(__tstate);
15813 if (PyErr_Occurred()) SWIG_fail;
15814 }
15815 resultobj = SWIG_Py_Void();
15816 {
15817 if (temp2)
15818 delete arg2;
15819 }
15820 return resultobj;
15821 fail:
15822 {
15823 if (temp2)
15824 delete arg2;
15825 }
15826 return NULL;
15827 }
15828
15829
15830 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15831 PyObject *resultobj = 0;
15832 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15833 int arg2 ;
15834 int arg3 ;
15835 void *argp1 = 0 ;
15836 int res1 = 0 ;
15837 int val2 ;
15838 int ecode2 = 0 ;
15839 int val3 ;
15840 int ecode3 = 0 ;
15841 PyObject * obj0 = 0 ;
15842 PyObject * obj1 = 0 ;
15843 PyObject * obj2 = 0 ;
15844 char * kwnames[] = {
15845 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15846 };
15847
15848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15850 if (!SWIG_IsOK(res1)) {
15851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15852 }
15853 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15854 ecode2 = SWIG_AsVal_int(obj1, &val2);
15855 if (!SWIG_IsOK(ecode2)) {
15856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15857 }
15858 arg2 = static_cast< int >(val2);
15859 ecode3 = SWIG_AsVal_int(obj2, &val3);
15860 if (!SWIG_IsOK(ecode3)) {
15861 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15862 }
15863 arg3 = static_cast< int >(val3);
15864 {
15865 PyThreadState* __tstate = wxPyBeginAllowThreads();
15866 (arg1)->SetRange(arg2,arg3);
15867 wxPyEndAllowThreads(__tstate);
15868 if (PyErr_Occurred()) SWIG_fail;
15869 }
15870 resultobj = SWIG_Py_Void();
15871 return resultobj;
15872 fail:
15873 return NULL;
15874 }
15875
15876
15877 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15878 PyObject *resultobj = 0;
15879 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15880 int result;
15881 void *argp1 = 0 ;
15882 int res1 = 0 ;
15883 PyObject *swig_obj[1] ;
15884
15885 if (!args) SWIG_fail;
15886 swig_obj[0] = args;
15887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15888 if (!SWIG_IsOK(res1)) {
15889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15890 }
15891 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15892 {
15893 PyThreadState* __tstate = wxPyBeginAllowThreads();
15894 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15895 wxPyEndAllowThreads(__tstate);
15896 if (PyErr_Occurred()) SWIG_fail;
15897 }
15898 resultobj = SWIG_From_int(static_cast< int >(result));
15899 return resultobj;
15900 fail:
15901 return NULL;
15902 }
15903
15904
15905 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15906 PyObject *resultobj = 0;
15907 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15908 int result;
15909 void *argp1 = 0 ;
15910 int res1 = 0 ;
15911 PyObject *swig_obj[1] ;
15912
15913 if (!args) SWIG_fail;
15914 swig_obj[0] = args;
15915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15916 if (!SWIG_IsOK(res1)) {
15917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15918 }
15919 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15920 {
15921 PyThreadState* __tstate = wxPyBeginAllowThreads();
15922 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15923 wxPyEndAllowThreads(__tstate);
15924 if (PyErr_Occurred()) SWIG_fail;
15925 }
15926 resultobj = SWIG_From_int(static_cast< int >(result));
15927 return resultobj;
15928 fail:
15929 return NULL;
15930 }
15931
15932
15933 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15934 PyObject *resultobj = 0;
15935 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15936 long arg2 ;
15937 long arg3 ;
15938 void *argp1 = 0 ;
15939 int res1 = 0 ;
15940 long val2 ;
15941 int ecode2 = 0 ;
15942 long val3 ;
15943 int ecode3 = 0 ;
15944 PyObject * obj0 = 0 ;
15945 PyObject * obj1 = 0 ;
15946 PyObject * obj2 = 0 ;
15947 char * kwnames[] = {
15948 (char *) "self",(char *) "from",(char *) "to", NULL
15949 };
15950
15951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15953 if (!SWIG_IsOK(res1)) {
15954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15955 }
15956 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15957 ecode2 = SWIG_AsVal_long(obj1, &val2);
15958 if (!SWIG_IsOK(ecode2)) {
15959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15960 }
15961 arg2 = static_cast< long >(val2);
15962 ecode3 = SWIG_AsVal_long(obj2, &val3);
15963 if (!SWIG_IsOK(ecode3)) {
15964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15965 }
15966 arg3 = static_cast< long >(val3);
15967 {
15968 PyThreadState* __tstate = wxPyBeginAllowThreads();
15969 (arg1)->SetSelection(arg2,arg3);
15970 wxPyEndAllowThreads(__tstate);
15971 if (PyErr_Occurred()) SWIG_fail;
15972 }
15973 resultobj = SWIG_Py_Void();
15974 return resultobj;
15975 fail:
15976 return NULL;
15977 }
15978
15979
15980 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15981 PyObject *resultobj = 0;
15982 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15983 SwigValueWrapper<wxVisualAttributes > result;
15984 int val1 ;
15985 int ecode1 = 0 ;
15986 PyObject * obj0 = 0 ;
15987 char * kwnames[] = {
15988 (char *) "variant", NULL
15989 };
15990
15991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15992 if (obj0) {
15993 ecode1 = SWIG_AsVal_int(obj0, &val1);
15994 if (!SWIG_IsOK(ecode1)) {
15995 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15996 }
15997 arg1 = static_cast< wxWindowVariant >(val1);
15998 }
15999 {
16000 if (!wxPyCheckForApp()) SWIG_fail;
16001 PyThreadState* __tstate = wxPyBeginAllowThreads();
16002 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
16003 wxPyEndAllowThreads(__tstate);
16004 if (PyErr_Occurred()) SWIG_fail;
16005 }
16006 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16007 return resultobj;
16008 fail:
16009 return NULL;
16010 }
16011
16012
16013 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16014 PyObject *obj;
16015 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16016 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
16017 return SWIG_Py_Void();
16018 }
16019
16020 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16021 return SWIG_Python_InitShadowInstance(args);
16022 }
16023
16024 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16025 PyObject *resultobj = 0;
16026 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16027 int arg2 = (int) 0 ;
16028 wxSpinEvent *result = 0 ;
16029 int val1 ;
16030 int ecode1 = 0 ;
16031 int val2 ;
16032 int ecode2 = 0 ;
16033 PyObject * obj0 = 0 ;
16034 PyObject * obj1 = 0 ;
16035 char * kwnames[] = {
16036 (char *) "commandType",(char *) "winid", NULL
16037 };
16038
16039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
16040 if (obj0) {
16041 ecode1 = SWIG_AsVal_int(obj0, &val1);
16042 if (!SWIG_IsOK(ecode1)) {
16043 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
16044 }
16045 arg1 = static_cast< wxEventType >(val1);
16046 }
16047 if (obj1) {
16048 ecode2 = SWIG_AsVal_int(obj1, &val2);
16049 if (!SWIG_IsOK(ecode2)) {
16050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
16051 }
16052 arg2 = static_cast< int >(val2);
16053 }
16054 {
16055 PyThreadState* __tstate = wxPyBeginAllowThreads();
16056 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
16057 wxPyEndAllowThreads(__tstate);
16058 if (PyErr_Occurred()) SWIG_fail;
16059 }
16060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
16061 return resultobj;
16062 fail:
16063 return NULL;
16064 }
16065
16066
16067 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16068 PyObject *resultobj = 0;
16069 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16070 int result;
16071 void *argp1 = 0 ;
16072 int res1 = 0 ;
16073 PyObject *swig_obj[1] ;
16074
16075 if (!args) SWIG_fail;
16076 swig_obj[0] = args;
16077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16078 if (!SWIG_IsOK(res1)) {
16079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
16080 }
16081 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16082 {
16083 PyThreadState* __tstate = wxPyBeginAllowThreads();
16084 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
16085 wxPyEndAllowThreads(__tstate);
16086 if (PyErr_Occurred()) SWIG_fail;
16087 }
16088 resultobj = SWIG_From_int(static_cast< int >(result));
16089 return resultobj;
16090 fail:
16091 return NULL;
16092 }
16093
16094
16095 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16096 PyObject *resultobj = 0;
16097 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16098 int arg2 ;
16099 void *argp1 = 0 ;
16100 int res1 = 0 ;
16101 int val2 ;
16102 int ecode2 = 0 ;
16103 PyObject * obj0 = 0 ;
16104 PyObject * obj1 = 0 ;
16105 char * kwnames[] = {
16106 (char *) "self",(char *) "pos", NULL
16107 };
16108
16109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
16110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16111 if (!SWIG_IsOK(res1)) {
16112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
16113 }
16114 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16115 ecode2 = SWIG_AsVal_int(obj1, &val2);
16116 if (!SWIG_IsOK(ecode2)) {
16117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
16118 }
16119 arg2 = static_cast< int >(val2);
16120 {
16121 PyThreadState* __tstate = wxPyBeginAllowThreads();
16122 (arg1)->SetPosition(arg2);
16123 wxPyEndAllowThreads(__tstate);
16124 if (PyErr_Occurred()) SWIG_fail;
16125 }
16126 resultobj = SWIG_Py_Void();
16127 return resultobj;
16128 fail:
16129 return NULL;
16130 }
16131
16132
16133 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16134 PyObject *obj;
16135 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16136 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
16137 return SWIG_Py_Void();
16138 }
16139
16140 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16141 return SWIG_Python_InitShadowInstance(args);
16142 }
16143
16144 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
16145 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
16146 return 1;
16147 }
16148
16149
16150 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
16151 PyObject *pyobj = 0;
16152
16153 {
16154 #if wxUSE_UNICODE
16155 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16156 #else
16157 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16158 #endif
16159 }
16160 return pyobj;
16161 }
16162
16163
16164 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
16165 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
16166 return 1;
16167 }
16168
16169
16170 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
16171 PyObject *pyobj = 0;
16172
16173 {
16174 #if wxUSE_UNICODE
16175 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16176 #else
16177 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16178 #endif
16179 }
16180 return pyobj;
16181 }
16182
16183
16184 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16185 PyObject *resultobj = 0;
16186 wxWindow *arg1 = (wxWindow *) 0 ;
16187 int arg2 = (int) -1 ;
16188 wxString const &arg3_defvalue = wxPyEmptyString ;
16189 wxString *arg3 = (wxString *) &arg3_defvalue ;
16190 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16191 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16192 wxSize const &arg5_defvalue = wxDefaultSize ;
16193 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16194 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16195 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16196 int arg7 = (int) 0 ;
16197 long arg8 = (long) wxRA_HORIZONTAL ;
16198 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16199 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16200 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16201 wxString *arg10 = (wxString *) &arg10_defvalue ;
16202 wxRadioBox *result = 0 ;
16203 void *argp1 = 0 ;
16204 int res1 = 0 ;
16205 int val2 ;
16206 int ecode2 = 0 ;
16207 bool temp3 = false ;
16208 wxPoint temp4 ;
16209 wxSize temp5 ;
16210 bool temp6 = false ;
16211 int val7 ;
16212 int ecode7 = 0 ;
16213 long val8 ;
16214 int ecode8 = 0 ;
16215 void *argp9 = 0 ;
16216 int res9 = 0 ;
16217 bool temp10 = false ;
16218 PyObject * obj0 = 0 ;
16219 PyObject * obj1 = 0 ;
16220 PyObject * obj2 = 0 ;
16221 PyObject * obj3 = 0 ;
16222 PyObject * obj4 = 0 ;
16223 PyObject * obj5 = 0 ;
16224 PyObject * obj6 = 0 ;
16225 PyObject * obj7 = 0 ;
16226 PyObject * obj8 = 0 ;
16227 PyObject * obj9 = 0 ;
16228 char * kwnames[] = {
16229 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16230 };
16231
16232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16234 if (!SWIG_IsOK(res1)) {
16235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16236 }
16237 arg1 = reinterpret_cast< wxWindow * >(argp1);
16238 if (obj1) {
16239 ecode2 = SWIG_AsVal_int(obj1, &val2);
16240 if (!SWIG_IsOK(ecode2)) {
16241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16242 }
16243 arg2 = static_cast< int >(val2);
16244 }
16245 if (obj2) {
16246 {
16247 arg3 = wxString_in_helper(obj2);
16248 if (arg3 == NULL) SWIG_fail;
16249 temp3 = true;
16250 }
16251 }
16252 if (obj3) {
16253 {
16254 arg4 = &temp4;
16255 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16256 }
16257 }
16258 if (obj4) {
16259 {
16260 arg5 = &temp5;
16261 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16262 }
16263 }
16264 if (obj5) {
16265 {
16266 if (! PySequence_Check(obj5)) {
16267 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16268 SWIG_fail;
16269 }
16270 arg6 = new wxArrayString;
16271 temp6 = true;
16272 int i, len=PySequence_Length(obj5);
16273 for (i=0; i<len; i++) {
16274 PyObject* item = PySequence_GetItem(obj5, i);
16275 wxString* s = wxString_in_helper(item);
16276 if (PyErr_Occurred()) SWIG_fail;
16277 arg6->Add(*s);
16278 delete s;
16279 Py_DECREF(item);
16280 }
16281 }
16282 }
16283 if (obj6) {
16284 ecode7 = SWIG_AsVal_int(obj6, &val7);
16285 if (!SWIG_IsOK(ecode7)) {
16286 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16287 }
16288 arg7 = static_cast< int >(val7);
16289 }
16290 if (obj7) {
16291 ecode8 = SWIG_AsVal_long(obj7, &val8);
16292 if (!SWIG_IsOK(ecode8)) {
16293 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16294 }
16295 arg8 = static_cast< long >(val8);
16296 }
16297 if (obj8) {
16298 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16299 if (!SWIG_IsOK(res9)) {
16300 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16301 }
16302 if (!argp9) {
16303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16304 }
16305 arg9 = reinterpret_cast< wxValidator * >(argp9);
16306 }
16307 if (obj9) {
16308 {
16309 arg10 = wxString_in_helper(obj9);
16310 if (arg10 == NULL) SWIG_fail;
16311 temp10 = true;
16312 }
16313 }
16314 {
16315 if (!wxPyCheckForApp()) SWIG_fail;
16316 PyThreadState* __tstate = wxPyBeginAllowThreads();
16317 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);
16318 wxPyEndAllowThreads(__tstate);
16319 if (PyErr_Occurred()) SWIG_fail;
16320 }
16321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16322 {
16323 if (temp3)
16324 delete arg3;
16325 }
16326 {
16327 if (temp6) delete arg6;
16328 }
16329 {
16330 if (temp10)
16331 delete arg10;
16332 }
16333 return resultobj;
16334 fail:
16335 {
16336 if (temp3)
16337 delete arg3;
16338 }
16339 {
16340 if (temp6) delete arg6;
16341 }
16342 {
16343 if (temp10)
16344 delete arg10;
16345 }
16346 return NULL;
16347 }
16348
16349
16350 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16351 PyObject *resultobj = 0;
16352 wxRadioBox *result = 0 ;
16353
16354 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16355 {
16356 if (!wxPyCheckForApp()) SWIG_fail;
16357 PyThreadState* __tstate = wxPyBeginAllowThreads();
16358 result = (wxRadioBox *)new wxRadioBox();
16359 wxPyEndAllowThreads(__tstate);
16360 if (PyErr_Occurred()) SWIG_fail;
16361 }
16362 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16363 return resultobj;
16364 fail:
16365 return NULL;
16366 }
16367
16368
16369 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16370 PyObject *resultobj = 0;
16371 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16372 wxWindow *arg2 = (wxWindow *) 0 ;
16373 int arg3 = (int) -1 ;
16374 wxString const &arg4_defvalue = wxPyEmptyString ;
16375 wxString *arg4 = (wxString *) &arg4_defvalue ;
16376 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16377 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16378 wxSize const &arg6_defvalue = wxDefaultSize ;
16379 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16380 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16381 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16382 int arg8 = (int) 0 ;
16383 long arg9 = (long) wxRA_HORIZONTAL ;
16384 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16385 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16386 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16387 wxString *arg11 = (wxString *) &arg11_defvalue ;
16388 bool result;
16389 void *argp1 = 0 ;
16390 int res1 = 0 ;
16391 void *argp2 = 0 ;
16392 int res2 = 0 ;
16393 int val3 ;
16394 int ecode3 = 0 ;
16395 bool temp4 = false ;
16396 wxPoint temp5 ;
16397 wxSize temp6 ;
16398 bool temp7 = false ;
16399 int val8 ;
16400 int ecode8 = 0 ;
16401 long val9 ;
16402 int ecode9 = 0 ;
16403 void *argp10 = 0 ;
16404 int res10 = 0 ;
16405 bool temp11 = false ;
16406 PyObject * obj0 = 0 ;
16407 PyObject * obj1 = 0 ;
16408 PyObject * obj2 = 0 ;
16409 PyObject * obj3 = 0 ;
16410 PyObject * obj4 = 0 ;
16411 PyObject * obj5 = 0 ;
16412 PyObject * obj6 = 0 ;
16413 PyObject * obj7 = 0 ;
16414 PyObject * obj8 = 0 ;
16415 PyObject * obj9 = 0 ;
16416 PyObject * obj10 = 0 ;
16417 char * kwnames[] = {
16418 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16419 };
16420
16421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16423 if (!SWIG_IsOK(res1)) {
16424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16425 }
16426 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16427 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16428 if (!SWIG_IsOK(res2)) {
16429 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16430 }
16431 arg2 = reinterpret_cast< wxWindow * >(argp2);
16432 if (obj2) {
16433 ecode3 = SWIG_AsVal_int(obj2, &val3);
16434 if (!SWIG_IsOK(ecode3)) {
16435 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16436 }
16437 arg3 = static_cast< int >(val3);
16438 }
16439 if (obj3) {
16440 {
16441 arg4 = wxString_in_helper(obj3);
16442 if (arg4 == NULL) SWIG_fail;
16443 temp4 = true;
16444 }
16445 }
16446 if (obj4) {
16447 {
16448 arg5 = &temp5;
16449 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16450 }
16451 }
16452 if (obj5) {
16453 {
16454 arg6 = &temp6;
16455 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16456 }
16457 }
16458 if (obj6) {
16459 {
16460 if (! PySequence_Check(obj6)) {
16461 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16462 SWIG_fail;
16463 }
16464 arg7 = new wxArrayString;
16465 temp7 = true;
16466 int i, len=PySequence_Length(obj6);
16467 for (i=0; i<len; i++) {
16468 PyObject* item = PySequence_GetItem(obj6, i);
16469 wxString* s = wxString_in_helper(item);
16470 if (PyErr_Occurred()) SWIG_fail;
16471 arg7->Add(*s);
16472 delete s;
16473 Py_DECREF(item);
16474 }
16475 }
16476 }
16477 if (obj7) {
16478 ecode8 = SWIG_AsVal_int(obj7, &val8);
16479 if (!SWIG_IsOK(ecode8)) {
16480 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16481 }
16482 arg8 = static_cast< int >(val8);
16483 }
16484 if (obj8) {
16485 ecode9 = SWIG_AsVal_long(obj8, &val9);
16486 if (!SWIG_IsOK(ecode9)) {
16487 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16488 }
16489 arg9 = static_cast< long >(val9);
16490 }
16491 if (obj9) {
16492 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16493 if (!SWIG_IsOK(res10)) {
16494 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16495 }
16496 if (!argp10) {
16497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16498 }
16499 arg10 = reinterpret_cast< wxValidator * >(argp10);
16500 }
16501 if (obj10) {
16502 {
16503 arg11 = wxString_in_helper(obj10);
16504 if (arg11 == NULL) SWIG_fail;
16505 temp11 = true;
16506 }
16507 }
16508 {
16509 PyThreadState* __tstate = wxPyBeginAllowThreads();
16510 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);
16511 wxPyEndAllowThreads(__tstate);
16512 if (PyErr_Occurred()) SWIG_fail;
16513 }
16514 {
16515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16516 }
16517 {
16518 if (temp4)
16519 delete arg4;
16520 }
16521 {
16522 if (temp7) delete arg7;
16523 }
16524 {
16525 if (temp11)
16526 delete arg11;
16527 }
16528 return resultobj;
16529 fail:
16530 {
16531 if (temp4)
16532 delete arg4;
16533 }
16534 {
16535 if (temp7) delete arg7;
16536 }
16537 {
16538 if (temp11)
16539 delete arg11;
16540 }
16541 return NULL;
16542 }
16543
16544
16545 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16546 PyObject *resultobj = 0;
16547 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16548 int arg2 ;
16549 void *argp1 = 0 ;
16550 int res1 = 0 ;
16551 int val2 ;
16552 int ecode2 = 0 ;
16553 PyObject * obj0 = 0 ;
16554 PyObject * obj1 = 0 ;
16555 char * kwnames[] = {
16556 (char *) "self",(char *) "n", NULL
16557 };
16558
16559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16561 if (!SWIG_IsOK(res1)) {
16562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16563 }
16564 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16565 ecode2 = SWIG_AsVal_int(obj1, &val2);
16566 if (!SWIG_IsOK(ecode2)) {
16567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16568 }
16569 arg2 = static_cast< int >(val2);
16570 {
16571 PyThreadState* __tstate = wxPyBeginAllowThreads();
16572 (arg1)->SetSelection(arg2);
16573 wxPyEndAllowThreads(__tstate);
16574 if (PyErr_Occurred()) SWIG_fail;
16575 }
16576 resultobj = SWIG_Py_Void();
16577 return resultobj;
16578 fail:
16579 return NULL;
16580 }
16581
16582
16583 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16584 PyObject *resultobj = 0;
16585 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16586 int result;
16587 void *argp1 = 0 ;
16588 int res1 = 0 ;
16589 PyObject *swig_obj[1] ;
16590
16591 if (!args) SWIG_fail;
16592 swig_obj[0] = args;
16593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16594 if (!SWIG_IsOK(res1)) {
16595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16596 }
16597 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16598 {
16599 PyThreadState* __tstate = wxPyBeginAllowThreads();
16600 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16601 wxPyEndAllowThreads(__tstate);
16602 if (PyErr_Occurred()) SWIG_fail;
16603 }
16604 resultobj = SWIG_From_int(static_cast< int >(result));
16605 return resultobj;
16606 fail:
16607 return NULL;
16608 }
16609
16610
16611 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16612 PyObject *resultobj = 0;
16613 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16614 wxString result;
16615 void *argp1 = 0 ;
16616 int res1 = 0 ;
16617 PyObject *swig_obj[1] ;
16618
16619 if (!args) SWIG_fail;
16620 swig_obj[0] = args;
16621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16622 if (!SWIG_IsOK(res1)) {
16623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16624 }
16625 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16626 {
16627 PyThreadState* __tstate = wxPyBeginAllowThreads();
16628 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16629 wxPyEndAllowThreads(__tstate);
16630 if (PyErr_Occurred()) SWIG_fail;
16631 }
16632 {
16633 #if wxUSE_UNICODE
16634 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16635 #else
16636 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16637 #endif
16638 }
16639 return resultobj;
16640 fail:
16641 return NULL;
16642 }
16643
16644
16645 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16646 PyObject *resultobj = 0;
16647 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16648 wxString *arg2 = 0 ;
16649 bool result;
16650 void *argp1 = 0 ;
16651 int res1 = 0 ;
16652 bool temp2 = false ;
16653 PyObject * obj0 = 0 ;
16654 PyObject * obj1 = 0 ;
16655 char * kwnames[] = {
16656 (char *) "self",(char *) "s", NULL
16657 };
16658
16659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16661 if (!SWIG_IsOK(res1)) {
16662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16663 }
16664 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16665 {
16666 arg2 = wxString_in_helper(obj1);
16667 if (arg2 == NULL) SWIG_fail;
16668 temp2 = true;
16669 }
16670 {
16671 PyThreadState* __tstate = wxPyBeginAllowThreads();
16672 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16673 wxPyEndAllowThreads(__tstate);
16674 if (PyErr_Occurred()) SWIG_fail;
16675 }
16676 {
16677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16678 }
16679 {
16680 if (temp2)
16681 delete arg2;
16682 }
16683 return resultobj;
16684 fail:
16685 {
16686 if (temp2)
16687 delete arg2;
16688 }
16689 return NULL;
16690 }
16691
16692
16693 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16694 PyObject *resultobj = 0;
16695 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16696 size_t result;
16697 void *argp1 = 0 ;
16698 int res1 = 0 ;
16699 PyObject *swig_obj[1] ;
16700
16701 if (!args) SWIG_fail;
16702 swig_obj[0] = args;
16703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16704 if (!SWIG_IsOK(res1)) {
16705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16706 }
16707 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16708 {
16709 PyThreadState* __tstate = wxPyBeginAllowThreads();
16710 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16711 wxPyEndAllowThreads(__tstate);
16712 if (PyErr_Occurred()) SWIG_fail;
16713 }
16714 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16715 return resultobj;
16716 fail:
16717 return NULL;
16718 }
16719
16720
16721 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16722 PyObject *resultobj = 0;
16723 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16724 wxString *arg2 = 0 ;
16725 int result;
16726 void *argp1 = 0 ;
16727 int res1 = 0 ;
16728 bool temp2 = false ;
16729 PyObject * obj0 = 0 ;
16730 PyObject * obj1 = 0 ;
16731 char * kwnames[] = {
16732 (char *) "self",(char *) "s", NULL
16733 };
16734
16735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16737 if (!SWIG_IsOK(res1)) {
16738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16739 }
16740 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16741 {
16742 arg2 = wxString_in_helper(obj1);
16743 if (arg2 == NULL) SWIG_fail;
16744 temp2 = true;
16745 }
16746 {
16747 PyThreadState* __tstate = wxPyBeginAllowThreads();
16748 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16749 wxPyEndAllowThreads(__tstate);
16750 if (PyErr_Occurred()) SWIG_fail;
16751 }
16752 resultobj = SWIG_From_int(static_cast< int >(result));
16753 {
16754 if (temp2)
16755 delete arg2;
16756 }
16757 return resultobj;
16758 fail:
16759 {
16760 if (temp2)
16761 delete arg2;
16762 }
16763 return NULL;
16764 }
16765
16766
16767 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16768 PyObject *resultobj = 0;
16769 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16770 int arg2 ;
16771 wxString result;
16772 void *argp1 = 0 ;
16773 int res1 = 0 ;
16774 int val2 ;
16775 int ecode2 = 0 ;
16776 PyObject * obj0 = 0 ;
16777 PyObject * obj1 = 0 ;
16778 char * kwnames[] = {
16779 (char *) "self",(char *) "n", NULL
16780 };
16781
16782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16784 if (!SWIG_IsOK(res1)) {
16785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16786 }
16787 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16788 ecode2 = SWIG_AsVal_int(obj1, &val2);
16789 if (!SWIG_IsOK(ecode2)) {
16790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16791 }
16792 arg2 = static_cast< int >(val2);
16793 {
16794 PyThreadState* __tstate = wxPyBeginAllowThreads();
16795 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16796 wxPyEndAllowThreads(__tstate);
16797 if (PyErr_Occurred()) SWIG_fail;
16798 }
16799 {
16800 #if wxUSE_UNICODE
16801 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16802 #else
16803 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16804 #endif
16805 }
16806 return resultobj;
16807 fail:
16808 return NULL;
16809 }
16810
16811
16812 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16813 PyObject *resultobj = 0;
16814 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16815 int arg2 ;
16816 wxString *arg3 = 0 ;
16817 void *argp1 = 0 ;
16818 int res1 = 0 ;
16819 int val2 ;
16820 int ecode2 = 0 ;
16821 bool temp3 = false ;
16822 PyObject * obj0 = 0 ;
16823 PyObject * obj1 = 0 ;
16824 PyObject * obj2 = 0 ;
16825 char * kwnames[] = {
16826 (char *) "self",(char *) "n",(char *) "label", NULL
16827 };
16828
16829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16831 if (!SWIG_IsOK(res1)) {
16832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16833 }
16834 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16835 ecode2 = SWIG_AsVal_int(obj1, &val2);
16836 if (!SWIG_IsOK(ecode2)) {
16837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16838 }
16839 arg2 = static_cast< int >(val2);
16840 {
16841 arg3 = wxString_in_helper(obj2);
16842 if (arg3 == NULL) SWIG_fail;
16843 temp3 = true;
16844 }
16845 {
16846 PyThreadState* __tstate = wxPyBeginAllowThreads();
16847 (arg1)->SetString(arg2,(wxString const &)*arg3);
16848 wxPyEndAllowThreads(__tstate);
16849 if (PyErr_Occurred()) SWIG_fail;
16850 }
16851 resultobj = SWIG_Py_Void();
16852 {
16853 if (temp3)
16854 delete arg3;
16855 }
16856 return resultobj;
16857 fail:
16858 {
16859 if (temp3)
16860 delete arg3;
16861 }
16862 return NULL;
16863 }
16864
16865
16866 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16867 PyObject *resultobj = 0;
16868 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16869 unsigned int arg2 ;
16870 bool arg3 = (bool) true ;
16871 void *argp1 = 0 ;
16872 int res1 = 0 ;
16873 unsigned int val2 ;
16874 int ecode2 = 0 ;
16875 bool val3 ;
16876 int ecode3 = 0 ;
16877 PyObject * obj0 = 0 ;
16878 PyObject * obj1 = 0 ;
16879 PyObject * obj2 = 0 ;
16880 char * kwnames[] = {
16881 (char *) "self",(char *) "n",(char *) "enable", NULL
16882 };
16883
16884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16886 if (!SWIG_IsOK(res1)) {
16887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16888 }
16889 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16890 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16891 if (!SWIG_IsOK(ecode2)) {
16892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16893 }
16894 arg2 = static_cast< unsigned int >(val2);
16895 if (obj2) {
16896 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16897 if (!SWIG_IsOK(ecode3)) {
16898 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16899 }
16900 arg3 = static_cast< bool >(val3);
16901 }
16902 {
16903 PyThreadState* __tstate = wxPyBeginAllowThreads();
16904 (arg1)->Enable(arg2,arg3);
16905 wxPyEndAllowThreads(__tstate);
16906 if (PyErr_Occurred()) SWIG_fail;
16907 }
16908 resultobj = SWIG_Py_Void();
16909 return resultobj;
16910 fail:
16911 return NULL;
16912 }
16913
16914
16915 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16916 PyObject *resultobj = 0;
16917 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16918 unsigned int arg2 ;
16919 bool arg3 = (bool) true ;
16920 void *argp1 = 0 ;
16921 int res1 = 0 ;
16922 unsigned int val2 ;
16923 int ecode2 = 0 ;
16924 bool val3 ;
16925 int ecode3 = 0 ;
16926 PyObject * obj0 = 0 ;
16927 PyObject * obj1 = 0 ;
16928 PyObject * obj2 = 0 ;
16929 char * kwnames[] = {
16930 (char *) "self",(char *) "n",(char *) "show", NULL
16931 };
16932
16933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16935 if (!SWIG_IsOK(res1)) {
16936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16937 }
16938 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16939 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16940 if (!SWIG_IsOK(ecode2)) {
16941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16942 }
16943 arg2 = static_cast< unsigned int >(val2);
16944 if (obj2) {
16945 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16946 if (!SWIG_IsOK(ecode3)) {
16947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16948 }
16949 arg3 = static_cast< bool >(val3);
16950 }
16951 {
16952 PyThreadState* __tstate = wxPyBeginAllowThreads();
16953 (arg1)->Show(arg2,arg3);
16954 wxPyEndAllowThreads(__tstate);
16955 if (PyErr_Occurred()) SWIG_fail;
16956 }
16957 resultobj = SWIG_Py_Void();
16958 return resultobj;
16959 fail:
16960 return NULL;
16961 }
16962
16963
16964 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16965 PyObject *resultobj = 0;
16966 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16967 unsigned int arg2 ;
16968 bool result;
16969 void *argp1 = 0 ;
16970 int res1 = 0 ;
16971 unsigned int val2 ;
16972 int ecode2 = 0 ;
16973 PyObject * obj0 = 0 ;
16974 PyObject * obj1 = 0 ;
16975 char * kwnames[] = {
16976 (char *) "self",(char *) "n", NULL
16977 };
16978
16979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16981 if (!SWIG_IsOK(res1)) {
16982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16983 }
16984 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16985 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16986 if (!SWIG_IsOK(ecode2)) {
16987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16988 }
16989 arg2 = static_cast< unsigned int >(val2);
16990 {
16991 PyThreadState* __tstate = wxPyBeginAllowThreads();
16992 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16993 wxPyEndAllowThreads(__tstate);
16994 if (PyErr_Occurred()) SWIG_fail;
16995 }
16996 {
16997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16998 }
16999 return resultobj;
17000 fail:
17001 return NULL;
17002 }
17003
17004
17005 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17006 PyObject *resultobj = 0;
17007 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17008 unsigned int arg2 ;
17009 bool result;
17010 void *argp1 = 0 ;
17011 int res1 = 0 ;
17012 unsigned int val2 ;
17013 int ecode2 = 0 ;
17014 PyObject * obj0 = 0 ;
17015 PyObject * obj1 = 0 ;
17016 char * kwnames[] = {
17017 (char *) "self",(char *) "n", NULL
17018 };
17019
17020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
17021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17022 if (!SWIG_IsOK(res1)) {
17023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17024 }
17025 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17026 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17027 if (!SWIG_IsOK(ecode2)) {
17028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
17029 }
17030 arg2 = static_cast< unsigned int >(val2);
17031 {
17032 PyThreadState* __tstate = wxPyBeginAllowThreads();
17033 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
17034 wxPyEndAllowThreads(__tstate);
17035 if (PyErr_Occurred()) SWIG_fail;
17036 }
17037 {
17038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17039 }
17040 return resultobj;
17041 fail:
17042 return NULL;
17043 }
17044
17045
17046 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17047 PyObject *resultobj = 0;
17048 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17049 unsigned int result;
17050 void *argp1 = 0 ;
17051 int res1 = 0 ;
17052 PyObject *swig_obj[1] ;
17053
17054 if (!args) SWIG_fail;
17055 swig_obj[0] = args;
17056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17057 if (!SWIG_IsOK(res1)) {
17058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17059 }
17060 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17061 {
17062 PyThreadState* __tstate = wxPyBeginAllowThreads();
17063 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
17064 wxPyEndAllowThreads(__tstate);
17065 if (PyErr_Occurred()) SWIG_fail;
17066 }
17067 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17068 return resultobj;
17069 fail:
17070 return NULL;
17071 }
17072
17073
17074 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17075 PyObject *resultobj = 0;
17076 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17077 unsigned int result;
17078 void *argp1 = 0 ;
17079 int res1 = 0 ;
17080 PyObject *swig_obj[1] ;
17081
17082 if (!args) SWIG_fail;
17083 swig_obj[0] = args;
17084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17085 if (!SWIG_IsOK(res1)) {
17086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17087 }
17088 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17089 {
17090 PyThreadState* __tstate = wxPyBeginAllowThreads();
17091 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
17092 wxPyEndAllowThreads(__tstate);
17093 if (PyErr_Occurred()) SWIG_fail;
17094 }
17095 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17096 return resultobj;
17097 fail:
17098 return NULL;
17099 }
17100
17101
17102 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17103 PyObject *resultobj = 0;
17104 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17105 int arg2 ;
17106 wxDirection arg3 ;
17107 long arg4 ;
17108 int result;
17109 void *argp1 = 0 ;
17110 int res1 = 0 ;
17111 int val2 ;
17112 int ecode2 = 0 ;
17113 int val3 ;
17114 int ecode3 = 0 ;
17115 long val4 ;
17116 int ecode4 = 0 ;
17117 PyObject * obj0 = 0 ;
17118 PyObject * obj1 = 0 ;
17119 PyObject * obj2 = 0 ;
17120 PyObject * obj3 = 0 ;
17121 char * kwnames[] = {
17122 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
17123 };
17124
17125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17127 if (!SWIG_IsOK(res1)) {
17128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17129 }
17130 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17131 ecode2 = SWIG_AsVal_int(obj1, &val2);
17132 if (!SWIG_IsOK(ecode2)) {
17133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
17134 }
17135 arg2 = static_cast< int >(val2);
17136 ecode3 = SWIG_AsVal_int(obj2, &val3);
17137 if (!SWIG_IsOK(ecode3)) {
17138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
17139 }
17140 arg3 = static_cast< wxDirection >(val3);
17141 ecode4 = SWIG_AsVal_long(obj3, &val4);
17142 if (!SWIG_IsOK(ecode4)) {
17143 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
17144 }
17145 arg4 = static_cast< long >(val4);
17146 {
17147 PyThreadState* __tstate = wxPyBeginAllowThreads();
17148 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
17149 wxPyEndAllowThreads(__tstate);
17150 if (PyErr_Occurred()) SWIG_fail;
17151 }
17152 resultobj = SWIG_From_int(static_cast< int >(result));
17153 return resultobj;
17154 fail:
17155 return NULL;
17156 }
17157
17158
17159 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17160 PyObject *resultobj = 0;
17161 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17162 unsigned int arg2 ;
17163 wxString *arg3 = 0 ;
17164 void *argp1 = 0 ;
17165 int res1 = 0 ;
17166 unsigned int val2 ;
17167 int ecode2 = 0 ;
17168 bool temp3 = false ;
17169 PyObject * obj0 = 0 ;
17170 PyObject * obj1 = 0 ;
17171 PyObject * obj2 = 0 ;
17172 char * kwnames[] = {
17173 (char *) "self",(char *) "item",(char *) "text", NULL
17174 };
17175
17176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17178 if (!SWIG_IsOK(res1)) {
17179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17180 }
17181 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17182 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17183 if (!SWIG_IsOK(ecode2)) {
17184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17185 }
17186 arg2 = static_cast< unsigned int >(val2);
17187 {
17188 arg3 = wxString_in_helper(obj2);
17189 if (arg3 == NULL) SWIG_fail;
17190 temp3 = true;
17191 }
17192 {
17193 PyThreadState* __tstate = wxPyBeginAllowThreads();
17194 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17195 wxPyEndAllowThreads(__tstate);
17196 if (PyErr_Occurred()) SWIG_fail;
17197 }
17198 resultobj = SWIG_Py_Void();
17199 {
17200 if (temp3)
17201 delete arg3;
17202 }
17203 return resultobj;
17204 fail:
17205 {
17206 if (temp3)
17207 delete arg3;
17208 }
17209 return NULL;
17210 }
17211
17212
17213 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17214 PyObject *resultobj = 0;
17215 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17216 unsigned int arg2 ;
17217 wxToolTip *result = 0 ;
17218 void *argp1 = 0 ;
17219 int res1 = 0 ;
17220 unsigned int val2 ;
17221 int ecode2 = 0 ;
17222 PyObject * obj0 = 0 ;
17223 PyObject * obj1 = 0 ;
17224 char * kwnames[] = {
17225 (char *) "self",(char *) "item", NULL
17226 };
17227
17228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17230 if (!SWIG_IsOK(res1)) {
17231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17232 }
17233 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17234 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17235 if (!SWIG_IsOK(ecode2)) {
17236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17237 }
17238 arg2 = static_cast< unsigned int >(val2);
17239 {
17240 PyThreadState* __tstate = wxPyBeginAllowThreads();
17241 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17242 wxPyEndAllowThreads(__tstate);
17243 if (PyErr_Occurred()) SWIG_fail;
17244 }
17245 {
17246 resultobj = wxPyMake_wxObject(result, (bool)0);
17247 }
17248 return resultobj;
17249 fail:
17250 return NULL;
17251 }
17252
17253
17254 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17255 PyObject *resultobj = 0;
17256 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17257 unsigned int arg2 ;
17258 wxString *arg3 = 0 ;
17259 void *argp1 = 0 ;
17260 int res1 = 0 ;
17261 unsigned int val2 ;
17262 int ecode2 = 0 ;
17263 bool temp3 = false ;
17264 PyObject * obj0 = 0 ;
17265 PyObject * obj1 = 0 ;
17266 PyObject * obj2 = 0 ;
17267 char * kwnames[] = {
17268 (char *) "self",(char *) "n",(char *) "helpText", NULL
17269 };
17270
17271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17273 if (!SWIG_IsOK(res1)) {
17274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17275 }
17276 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17277 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17278 if (!SWIG_IsOK(ecode2)) {
17279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17280 }
17281 arg2 = static_cast< unsigned int >(val2);
17282 {
17283 arg3 = wxString_in_helper(obj2);
17284 if (arg3 == NULL) SWIG_fail;
17285 temp3 = true;
17286 }
17287 {
17288 PyThreadState* __tstate = wxPyBeginAllowThreads();
17289 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17290 wxPyEndAllowThreads(__tstate);
17291 if (PyErr_Occurred()) SWIG_fail;
17292 }
17293 resultobj = SWIG_Py_Void();
17294 {
17295 if (temp3)
17296 delete arg3;
17297 }
17298 return resultobj;
17299 fail:
17300 {
17301 if (temp3)
17302 delete arg3;
17303 }
17304 return NULL;
17305 }
17306
17307
17308 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17309 PyObject *resultobj = 0;
17310 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17311 unsigned int arg2 ;
17312 wxString result;
17313 void *argp1 = 0 ;
17314 int res1 = 0 ;
17315 unsigned int val2 ;
17316 int ecode2 = 0 ;
17317 PyObject * obj0 = 0 ;
17318 PyObject * obj1 = 0 ;
17319 char * kwnames[] = {
17320 (char *) "self",(char *) "n", NULL
17321 };
17322
17323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17325 if (!SWIG_IsOK(res1)) {
17326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17327 }
17328 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17329 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17330 if (!SWIG_IsOK(ecode2)) {
17331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17332 }
17333 arg2 = static_cast< unsigned int >(val2);
17334 {
17335 PyThreadState* __tstate = wxPyBeginAllowThreads();
17336 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17337 wxPyEndAllowThreads(__tstate);
17338 if (PyErr_Occurred()) SWIG_fail;
17339 }
17340 {
17341 #if wxUSE_UNICODE
17342 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17343 #else
17344 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17345 #endif
17346 }
17347 return resultobj;
17348 fail:
17349 return NULL;
17350 }
17351
17352
17353 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17354 PyObject *resultobj = 0;
17355 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17356 SwigValueWrapper<wxVisualAttributes > result;
17357 int val1 ;
17358 int ecode1 = 0 ;
17359 PyObject * obj0 = 0 ;
17360 char * kwnames[] = {
17361 (char *) "variant", NULL
17362 };
17363
17364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17365 if (obj0) {
17366 ecode1 = SWIG_AsVal_int(obj0, &val1);
17367 if (!SWIG_IsOK(ecode1)) {
17368 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17369 }
17370 arg1 = static_cast< wxWindowVariant >(val1);
17371 }
17372 {
17373 if (!wxPyCheckForApp()) SWIG_fail;
17374 PyThreadState* __tstate = wxPyBeginAllowThreads();
17375 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17376 wxPyEndAllowThreads(__tstate);
17377 if (PyErr_Occurred()) SWIG_fail;
17378 }
17379 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17380 return resultobj;
17381 fail:
17382 return NULL;
17383 }
17384
17385
17386 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17387 PyObject *obj;
17388 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17389 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17390 return SWIG_Py_Void();
17391 }
17392
17393 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17394 return SWIG_Python_InitShadowInstance(args);
17395 }
17396
17397 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17398 PyObject *resultobj = 0;
17399 wxWindow *arg1 = (wxWindow *) 0 ;
17400 int arg2 = (int) -1 ;
17401 wxString const &arg3_defvalue = wxPyEmptyString ;
17402 wxString *arg3 = (wxString *) &arg3_defvalue ;
17403 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17404 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17405 wxSize const &arg5_defvalue = wxDefaultSize ;
17406 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17407 long arg6 = (long) 0 ;
17408 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17409 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17410 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17411 wxString *arg8 = (wxString *) &arg8_defvalue ;
17412 wxRadioButton *result = 0 ;
17413 void *argp1 = 0 ;
17414 int res1 = 0 ;
17415 int val2 ;
17416 int ecode2 = 0 ;
17417 bool temp3 = false ;
17418 wxPoint temp4 ;
17419 wxSize temp5 ;
17420 long val6 ;
17421 int ecode6 = 0 ;
17422 void *argp7 = 0 ;
17423 int res7 = 0 ;
17424 bool temp8 = false ;
17425 PyObject * obj0 = 0 ;
17426 PyObject * obj1 = 0 ;
17427 PyObject * obj2 = 0 ;
17428 PyObject * obj3 = 0 ;
17429 PyObject * obj4 = 0 ;
17430 PyObject * obj5 = 0 ;
17431 PyObject * obj6 = 0 ;
17432 PyObject * obj7 = 0 ;
17433 char * kwnames[] = {
17434 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17435 };
17436
17437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17439 if (!SWIG_IsOK(res1)) {
17440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17441 }
17442 arg1 = reinterpret_cast< wxWindow * >(argp1);
17443 if (obj1) {
17444 ecode2 = SWIG_AsVal_int(obj1, &val2);
17445 if (!SWIG_IsOK(ecode2)) {
17446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17447 }
17448 arg2 = static_cast< int >(val2);
17449 }
17450 if (obj2) {
17451 {
17452 arg3 = wxString_in_helper(obj2);
17453 if (arg3 == NULL) SWIG_fail;
17454 temp3 = true;
17455 }
17456 }
17457 if (obj3) {
17458 {
17459 arg4 = &temp4;
17460 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17461 }
17462 }
17463 if (obj4) {
17464 {
17465 arg5 = &temp5;
17466 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17467 }
17468 }
17469 if (obj5) {
17470 ecode6 = SWIG_AsVal_long(obj5, &val6);
17471 if (!SWIG_IsOK(ecode6)) {
17472 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17473 }
17474 arg6 = static_cast< long >(val6);
17475 }
17476 if (obj6) {
17477 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17478 if (!SWIG_IsOK(res7)) {
17479 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17480 }
17481 if (!argp7) {
17482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17483 }
17484 arg7 = reinterpret_cast< wxValidator * >(argp7);
17485 }
17486 if (obj7) {
17487 {
17488 arg8 = wxString_in_helper(obj7);
17489 if (arg8 == NULL) SWIG_fail;
17490 temp8 = true;
17491 }
17492 }
17493 {
17494 if (!wxPyCheckForApp()) SWIG_fail;
17495 PyThreadState* __tstate = wxPyBeginAllowThreads();
17496 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17497 wxPyEndAllowThreads(__tstate);
17498 if (PyErr_Occurred()) SWIG_fail;
17499 }
17500 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17501 {
17502 if (temp3)
17503 delete arg3;
17504 }
17505 {
17506 if (temp8)
17507 delete arg8;
17508 }
17509 return resultobj;
17510 fail:
17511 {
17512 if (temp3)
17513 delete arg3;
17514 }
17515 {
17516 if (temp8)
17517 delete arg8;
17518 }
17519 return NULL;
17520 }
17521
17522
17523 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17524 PyObject *resultobj = 0;
17525 wxRadioButton *result = 0 ;
17526
17527 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17528 {
17529 if (!wxPyCheckForApp()) SWIG_fail;
17530 PyThreadState* __tstate = wxPyBeginAllowThreads();
17531 result = (wxRadioButton *)new wxRadioButton();
17532 wxPyEndAllowThreads(__tstate);
17533 if (PyErr_Occurred()) SWIG_fail;
17534 }
17535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17536 return resultobj;
17537 fail:
17538 return NULL;
17539 }
17540
17541
17542 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17543 PyObject *resultobj = 0;
17544 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17545 wxWindow *arg2 = (wxWindow *) 0 ;
17546 int arg3 = (int) -1 ;
17547 wxString const &arg4_defvalue = wxPyEmptyString ;
17548 wxString *arg4 = (wxString *) &arg4_defvalue ;
17549 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17550 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17551 wxSize const &arg6_defvalue = wxDefaultSize ;
17552 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17553 long arg7 = (long) 0 ;
17554 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17555 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17556 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17557 wxString *arg9 = (wxString *) &arg9_defvalue ;
17558 bool result;
17559 void *argp1 = 0 ;
17560 int res1 = 0 ;
17561 void *argp2 = 0 ;
17562 int res2 = 0 ;
17563 int val3 ;
17564 int ecode3 = 0 ;
17565 bool temp4 = false ;
17566 wxPoint temp5 ;
17567 wxSize temp6 ;
17568 long val7 ;
17569 int ecode7 = 0 ;
17570 void *argp8 = 0 ;
17571 int res8 = 0 ;
17572 bool temp9 = false ;
17573 PyObject * obj0 = 0 ;
17574 PyObject * obj1 = 0 ;
17575 PyObject * obj2 = 0 ;
17576 PyObject * obj3 = 0 ;
17577 PyObject * obj4 = 0 ;
17578 PyObject * obj5 = 0 ;
17579 PyObject * obj6 = 0 ;
17580 PyObject * obj7 = 0 ;
17581 PyObject * obj8 = 0 ;
17582 char * kwnames[] = {
17583 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17584 };
17585
17586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17588 if (!SWIG_IsOK(res1)) {
17589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17590 }
17591 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17592 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17593 if (!SWIG_IsOK(res2)) {
17594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17595 }
17596 arg2 = reinterpret_cast< wxWindow * >(argp2);
17597 if (obj2) {
17598 ecode3 = SWIG_AsVal_int(obj2, &val3);
17599 if (!SWIG_IsOK(ecode3)) {
17600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17601 }
17602 arg3 = static_cast< int >(val3);
17603 }
17604 if (obj3) {
17605 {
17606 arg4 = wxString_in_helper(obj3);
17607 if (arg4 == NULL) SWIG_fail;
17608 temp4 = true;
17609 }
17610 }
17611 if (obj4) {
17612 {
17613 arg5 = &temp5;
17614 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17615 }
17616 }
17617 if (obj5) {
17618 {
17619 arg6 = &temp6;
17620 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17621 }
17622 }
17623 if (obj6) {
17624 ecode7 = SWIG_AsVal_long(obj6, &val7);
17625 if (!SWIG_IsOK(ecode7)) {
17626 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17627 }
17628 arg7 = static_cast< long >(val7);
17629 }
17630 if (obj7) {
17631 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17632 if (!SWIG_IsOK(res8)) {
17633 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17634 }
17635 if (!argp8) {
17636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17637 }
17638 arg8 = reinterpret_cast< wxValidator * >(argp8);
17639 }
17640 if (obj8) {
17641 {
17642 arg9 = wxString_in_helper(obj8);
17643 if (arg9 == NULL) SWIG_fail;
17644 temp9 = true;
17645 }
17646 }
17647 {
17648 PyThreadState* __tstate = wxPyBeginAllowThreads();
17649 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17650 wxPyEndAllowThreads(__tstate);
17651 if (PyErr_Occurred()) SWIG_fail;
17652 }
17653 {
17654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17655 }
17656 {
17657 if (temp4)
17658 delete arg4;
17659 }
17660 {
17661 if (temp9)
17662 delete arg9;
17663 }
17664 return resultobj;
17665 fail:
17666 {
17667 if (temp4)
17668 delete arg4;
17669 }
17670 {
17671 if (temp9)
17672 delete arg9;
17673 }
17674 return NULL;
17675 }
17676
17677
17678 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17679 PyObject *resultobj = 0;
17680 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17681 bool result;
17682 void *argp1 = 0 ;
17683 int res1 = 0 ;
17684 PyObject *swig_obj[1] ;
17685
17686 if (!args) SWIG_fail;
17687 swig_obj[0] = args;
17688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17689 if (!SWIG_IsOK(res1)) {
17690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17691 }
17692 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17693 {
17694 PyThreadState* __tstate = wxPyBeginAllowThreads();
17695 result = (bool)(arg1)->GetValue();
17696 wxPyEndAllowThreads(__tstate);
17697 if (PyErr_Occurred()) SWIG_fail;
17698 }
17699 {
17700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17701 }
17702 return resultobj;
17703 fail:
17704 return NULL;
17705 }
17706
17707
17708 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17709 PyObject *resultobj = 0;
17710 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17711 bool arg2 ;
17712 void *argp1 = 0 ;
17713 int res1 = 0 ;
17714 bool val2 ;
17715 int ecode2 = 0 ;
17716 PyObject * obj0 = 0 ;
17717 PyObject * obj1 = 0 ;
17718 char * kwnames[] = {
17719 (char *) "self",(char *) "value", NULL
17720 };
17721
17722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17724 if (!SWIG_IsOK(res1)) {
17725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17726 }
17727 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17728 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17729 if (!SWIG_IsOK(ecode2)) {
17730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17731 }
17732 arg2 = static_cast< bool >(val2);
17733 {
17734 PyThreadState* __tstate = wxPyBeginAllowThreads();
17735 (arg1)->SetValue(arg2);
17736 wxPyEndAllowThreads(__tstate);
17737 if (PyErr_Occurred()) SWIG_fail;
17738 }
17739 resultobj = SWIG_Py_Void();
17740 return resultobj;
17741 fail:
17742 return NULL;
17743 }
17744
17745
17746 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17747 PyObject *resultobj = 0;
17748 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17749 SwigValueWrapper<wxVisualAttributes > result;
17750 int val1 ;
17751 int ecode1 = 0 ;
17752 PyObject * obj0 = 0 ;
17753 char * kwnames[] = {
17754 (char *) "variant", NULL
17755 };
17756
17757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17758 if (obj0) {
17759 ecode1 = SWIG_AsVal_int(obj0, &val1);
17760 if (!SWIG_IsOK(ecode1)) {
17761 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17762 }
17763 arg1 = static_cast< wxWindowVariant >(val1);
17764 }
17765 {
17766 if (!wxPyCheckForApp()) SWIG_fail;
17767 PyThreadState* __tstate = wxPyBeginAllowThreads();
17768 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17769 wxPyEndAllowThreads(__tstate);
17770 if (PyErr_Occurred()) SWIG_fail;
17771 }
17772 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17773 return resultobj;
17774 fail:
17775 return NULL;
17776 }
17777
17778
17779 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17780 PyObject *obj;
17781 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17782 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17783 return SWIG_Py_Void();
17784 }
17785
17786 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17787 return SWIG_Python_InitShadowInstance(args);
17788 }
17789
17790 SWIGINTERN int SliderNameStr_set(PyObject *) {
17791 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17792 return 1;
17793 }
17794
17795
17796 SWIGINTERN PyObject *SliderNameStr_get(void) {
17797 PyObject *pyobj = 0;
17798
17799 {
17800 #if wxUSE_UNICODE
17801 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17802 #else
17803 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17804 #endif
17805 }
17806 return pyobj;
17807 }
17808
17809
17810 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17811 PyObject *resultobj = 0;
17812 wxWindow *arg1 = (wxWindow *) 0 ;
17813 int arg2 = (int) -1 ;
17814 int arg3 = (int) 0 ;
17815 int arg4 = (int) 0 ;
17816 int arg5 = (int) 100 ;
17817 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17818 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17819 wxSize const &arg7_defvalue = wxDefaultSize ;
17820 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17821 long arg8 = (long) wxSL_HORIZONTAL ;
17822 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17823 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17824 wxString const &arg10_defvalue = wxPySliderNameStr ;
17825 wxString *arg10 = (wxString *) &arg10_defvalue ;
17826 wxSlider *result = 0 ;
17827 void *argp1 = 0 ;
17828 int res1 = 0 ;
17829 int val2 ;
17830 int ecode2 = 0 ;
17831 int val3 ;
17832 int ecode3 = 0 ;
17833 int val4 ;
17834 int ecode4 = 0 ;
17835 int val5 ;
17836 int ecode5 = 0 ;
17837 wxPoint temp6 ;
17838 wxSize temp7 ;
17839 long val8 ;
17840 int ecode8 = 0 ;
17841 void *argp9 = 0 ;
17842 int res9 = 0 ;
17843 bool temp10 = false ;
17844 PyObject * obj0 = 0 ;
17845 PyObject * obj1 = 0 ;
17846 PyObject * obj2 = 0 ;
17847 PyObject * obj3 = 0 ;
17848 PyObject * obj4 = 0 ;
17849 PyObject * obj5 = 0 ;
17850 PyObject * obj6 = 0 ;
17851 PyObject * obj7 = 0 ;
17852 PyObject * obj8 = 0 ;
17853 PyObject * obj9 = 0 ;
17854 char * kwnames[] = {
17855 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17856 };
17857
17858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17860 if (!SWIG_IsOK(res1)) {
17861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17862 }
17863 arg1 = reinterpret_cast< wxWindow * >(argp1);
17864 if (obj1) {
17865 ecode2 = SWIG_AsVal_int(obj1, &val2);
17866 if (!SWIG_IsOK(ecode2)) {
17867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17868 }
17869 arg2 = static_cast< int >(val2);
17870 }
17871 if (obj2) {
17872 ecode3 = SWIG_AsVal_int(obj2, &val3);
17873 if (!SWIG_IsOK(ecode3)) {
17874 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17875 }
17876 arg3 = static_cast< int >(val3);
17877 }
17878 if (obj3) {
17879 ecode4 = SWIG_AsVal_int(obj3, &val4);
17880 if (!SWIG_IsOK(ecode4)) {
17881 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17882 }
17883 arg4 = static_cast< int >(val4);
17884 }
17885 if (obj4) {
17886 ecode5 = SWIG_AsVal_int(obj4, &val5);
17887 if (!SWIG_IsOK(ecode5)) {
17888 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17889 }
17890 arg5 = static_cast< int >(val5);
17891 }
17892 if (obj5) {
17893 {
17894 arg6 = &temp6;
17895 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17896 }
17897 }
17898 if (obj6) {
17899 {
17900 arg7 = &temp7;
17901 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17902 }
17903 }
17904 if (obj7) {
17905 ecode8 = SWIG_AsVal_long(obj7, &val8);
17906 if (!SWIG_IsOK(ecode8)) {
17907 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17908 }
17909 arg8 = static_cast< long >(val8);
17910 }
17911 if (obj8) {
17912 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17913 if (!SWIG_IsOK(res9)) {
17914 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17915 }
17916 if (!argp9) {
17917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17918 }
17919 arg9 = reinterpret_cast< wxValidator * >(argp9);
17920 }
17921 if (obj9) {
17922 {
17923 arg10 = wxString_in_helper(obj9);
17924 if (arg10 == NULL) SWIG_fail;
17925 temp10 = true;
17926 }
17927 }
17928 {
17929 if (!wxPyCheckForApp()) SWIG_fail;
17930 PyThreadState* __tstate = wxPyBeginAllowThreads();
17931 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17932 wxPyEndAllowThreads(__tstate);
17933 if (PyErr_Occurred()) SWIG_fail;
17934 }
17935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17936 {
17937 if (temp10)
17938 delete arg10;
17939 }
17940 return resultobj;
17941 fail:
17942 {
17943 if (temp10)
17944 delete arg10;
17945 }
17946 return NULL;
17947 }
17948
17949
17950 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17951 PyObject *resultobj = 0;
17952 wxSlider *result = 0 ;
17953
17954 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17955 {
17956 if (!wxPyCheckForApp()) SWIG_fail;
17957 PyThreadState* __tstate = wxPyBeginAllowThreads();
17958 result = (wxSlider *)new wxSlider();
17959 wxPyEndAllowThreads(__tstate);
17960 if (PyErr_Occurred()) SWIG_fail;
17961 }
17962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17963 return resultobj;
17964 fail:
17965 return NULL;
17966 }
17967
17968
17969 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17970 PyObject *resultobj = 0;
17971 wxSlider *arg1 = (wxSlider *) 0 ;
17972 wxWindow *arg2 = (wxWindow *) 0 ;
17973 int arg3 = (int) -1 ;
17974 int arg4 = (int) 0 ;
17975 int arg5 = (int) 0 ;
17976 int arg6 = (int) 100 ;
17977 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17978 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17979 wxSize const &arg8_defvalue = wxDefaultSize ;
17980 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17981 long arg9 = (long) wxSL_HORIZONTAL ;
17982 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17983 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17984 wxString const &arg11_defvalue = wxPySliderNameStr ;
17985 wxString *arg11 = (wxString *) &arg11_defvalue ;
17986 bool result;
17987 void *argp1 = 0 ;
17988 int res1 = 0 ;
17989 void *argp2 = 0 ;
17990 int res2 = 0 ;
17991 int val3 ;
17992 int ecode3 = 0 ;
17993 int val4 ;
17994 int ecode4 = 0 ;
17995 int val5 ;
17996 int ecode5 = 0 ;
17997 int val6 ;
17998 int ecode6 = 0 ;
17999 wxPoint temp7 ;
18000 wxSize temp8 ;
18001 long val9 ;
18002 int ecode9 = 0 ;
18003 void *argp10 = 0 ;
18004 int res10 = 0 ;
18005 bool temp11 = false ;
18006 PyObject * obj0 = 0 ;
18007 PyObject * obj1 = 0 ;
18008 PyObject * obj2 = 0 ;
18009 PyObject * obj3 = 0 ;
18010 PyObject * obj4 = 0 ;
18011 PyObject * obj5 = 0 ;
18012 PyObject * obj6 = 0 ;
18013 PyObject * obj7 = 0 ;
18014 PyObject * obj8 = 0 ;
18015 PyObject * obj9 = 0 ;
18016 PyObject * obj10 = 0 ;
18017 char * kwnames[] = {
18018 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18019 };
18020
18021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
18022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18023 if (!SWIG_IsOK(res1)) {
18024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
18025 }
18026 arg1 = reinterpret_cast< wxSlider * >(argp1);
18027 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18028 if (!SWIG_IsOK(res2)) {
18029 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18030 }
18031 arg2 = reinterpret_cast< wxWindow * >(argp2);
18032 if (obj2) {
18033 ecode3 = SWIG_AsVal_int(obj2, &val3);
18034 if (!SWIG_IsOK(ecode3)) {
18035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
18036 }
18037 arg3 = static_cast< int >(val3);
18038 }
18039 if (obj3) {
18040 ecode4 = SWIG_AsVal_int(obj3, &val4);
18041 if (!SWIG_IsOK(ecode4)) {
18042 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
18043 }
18044 arg4 = static_cast< int >(val4);
18045 }
18046 if (obj4) {
18047 ecode5 = SWIG_AsVal_int(obj4, &val5);
18048 if (!SWIG_IsOK(ecode5)) {
18049 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
18050 }
18051 arg5 = static_cast< int >(val5);
18052 }
18053 if (obj5) {
18054 ecode6 = SWIG_AsVal_int(obj5, &val6);
18055 if (!SWIG_IsOK(ecode6)) {
18056 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
18057 }
18058 arg6 = static_cast< int >(val6);
18059 }
18060 if (obj6) {
18061 {
18062 arg7 = &temp7;
18063 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
18064 }
18065 }
18066 if (obj7) {
18067 {
18068 arg8 = &temp8;
18069 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
18070 }
18071 }
18072 if (obj8) {
18073 ecode9 = SWIG_AsVal_long(obj8, &val9);
18074 if (!SWIG_IsOK(ecode9)) {
18075 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
18076 }
18077 arg9 = static_cast< long >(val9);
18078 }
18079 if (obj9) {
18080 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
18081 if (!SWIG_IsOK(res10)) {
18082 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
18083 }
18084 if (!argp10) {
18085 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
18086 }
18087 arg10 = reinterpret_cast< wxValidator * >(argp10);
18088 }
18089 if (obj10) {
18090 {
18091 arg11 = wxString_in_helper(obj10);
18092 if (arg11 == NULL) SWIG_fail;
18093 temp11 = true;
18094 }
18095 }
18096 {
18097 PyThreadState* __tstate = wxPyBeginAllowThreads();
18098 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
18099 wxPyEndAllowThreads(__tstate);
18100 if (PyErr_Occurred()) SWIG_fail;
18101 }
18102 {
18103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18104 }
18105 {
18106 if (temp11)
18107 delete arg11;
18108 }
18109 return resultobj;
18110 fail:
18111 {
18112 if (temp11)
18113 delete arg11;
18114 }
18115 return NULL;
18116 }
18117
18118
18119 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18120 PyObject *resultobj = 0;
18121 wxSlider *arg1 = (wxSlider *) 0 ;
18122 int result;
18123 void *argp1 = 0 ;
18124 int res1 = 0 ;
18125 PyObject *swig_obj[1] ;
18126
18127 if (!args) SWIG_fail;
18128 swig_obj[0] = args;
18129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18130 if (!SWIG_IsOK(res1)) {
18131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
18132 }
18133 arg1 = reinterpret_cast< wxSlider * >(argp1);
18134 {
18135 PyThreadState* __tstate = wxPyBeginAllowThreads();
18136 result = (int)((wxSlider const *)arg1)->GetValue();
18137 wxPyEndAllowThreads(__tstate);
18138 if (PyErr_Occurred()) SWIG_fail;
18139 }
18140 resultobj = SWIG_From_int(static_cast< int >(result));
18141 return resultobj;
18142 fail:
18143 return NULL;
18144 }
18145
18146
18147 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18148 PyObject *resultobj = 0;
18149 wxSlider *arg1 = (wxSlider *) 0 ;
18150 int arg2 ;
18151 void *argp1 = 0 ;
18152 int res1 = 0 ;
18153 int val2 ;
18154 int ecode2 = 0 ;
18155 PyObject * obj0 = 0 ;
18156 PyObject * obj1 = 0 ;
18157 char * kwnames[] = {
18158 (char *) "self",(char *) "value", NULL
18159 };
18160
18161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18163 if (!SWIG_IsOK(res1)) {
18164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
18165 }
18166 arg1 = reinterpret_cast< wxSlider * >(argp1);
18167 ecode2 = SWIG_AsVal_int(obj1, &val2);
18168 if (!SWIG_IsOK(ecode2)) {
18169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
18170 }
18171 arg2 = static_cast< int >(val2);
18172 {
18173 PyThreadState* __tstate = wxPyBeginAllowThreads();
18174 (arg1)->SetValue(arg2);
18175 wxPyEndAllowThreads(__tstate);
18176 if (PyErr_Occurred()) SWIG_fail;
18177 }
18178 resultobj = SWIG_Py_Void();
18179 return resultobj;
18180 fail:
18181 return NULL;
18182 }
18183
18184
18185 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18186 PyObject *resultobj = 0;
18187 wxSlider *arg1 = (wxSlider *) 0 ;
18188 int arg2 ;
18189 int arg3 ;
18190 void *argp1 = 0 ;
18191 int res1 = 0 ;
18192 int val2 ;
18193 int ecode2 = 0 ;
18194 int val3 ;
18195 int ecode3 = 0 ;
18196 PyObject * obj0 = 0 ;
18197 PyObject * obj1 = 0 ;
18198 PyObject * obj2 = 0 ;
18199 char * kwnames[] = {
18200 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18201 };
18202
18203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18205 if (!SWIG_IsOK(res1)) {
18206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18207 }
18208 arg1 = reinterpret_cast< wxSlider * >(argp1);
18209 ecode2 = SWIG_AsVal_int(obj1, &val2);
18210 if (!SWIG_IsOK(ecode2)) {
18211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18212 }
18213 arg2 = static_cast< int >(val2);
18214 ecode3 = SWIG_AsVal_int(obj2, &val3);
18215 if (!SWIG_IsOK(ecode3)) {
18216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18217 }
18218 arg3 = static_cast< int >(val3);
18219 {
18220 PyThreadState* __tstate = wxPyBeginAllowThreads();
18221 (arg1)->SetRange(arg2,arg3);
18222 wxPyEndAllowThreads(__tstate);
18223 if (PyErr_Occurred()) SWIG_fail;
18224 }
18225 resultobj = SWIG_Py_Void();
18226 return resultobj;
18227 fail:
18228 return NULL;
18229 }
18230
18231
18232 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18233 PyObject *resultobj = 0;
18234 wxSlider *arg1 = (wxSlider *) 0 ;
18235 int result;
18236 void *argp1 = 0 ;
18237 int res1 = 0 ;
18238 PyObject *swig_obj[1] ;
18239
18240 if (!args) SWIG_fail;
18241 swig_obj[0] = args;
18242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18243 if (!SWIG_IsOK(res1)) {
18244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18245 }
18246 arg1 = reinterpret_cast< wxSlider * >(argp1);
18247 {
18248 PyThreadState* __tstate = wxPyBeginAllowThreads();
18249 result = (int)((wxSlider const *)arg1)->GetMin();
18250 wxPyEndAllowThreads(__tstate);
18251 if (PyErr_Occurred()) SWIG_fail;
18252 }
18253 resultobj = SWIG_From_int(static_cast< int >(result));
18254 return resultobj;
18255 fail:
18256 return NULL;
18257 }
18258
18259
18260 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18261 PyObject *resultobj = 0;
18262 wxSlider *arg1 = (wxSlider *) 0 ;
18263 int result;
18264 void *argp1 = 0 ;
18265 int res1 = 0 ;
18266 PyObject *swig_obj[1] ;
18267
18268 if (!args) SWIG_fail;
18269 swig_obj[0] = args;
18270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18271 if (!SWIG_IsOK(res1)) {
18272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18273 }
18274 arg1 = reinterpret_cast< wxSlider * >(argp1);
18275 {
18276 PyThreadState* __tstate = wxPyBeginAllowThreads();
18277 result = (int)((wxSlider const *)arg1)->GetMax();
18278 wxPyEndAllowThreads(__tstate);
18279 if (PyErr_Occurred()) SWIG_fail;
18280 }
18281 resultobj = SWIG_From_int(static_cast< int >(result));
18282 return resultobj;
18283 fail:
18284 return NULL;
18285 }
18286
18287
18288 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18289 PyObject *resultobj = 0;
18290 wxSlider *arg1 = (wxSlider *) 0 ;
18291 int arg2 ;
18292 void *argp1 = 0 ;
18293 int res1 = 0 ;
18294 int val2 ;
18295 int ecode2 = 0 ;
18296 PyObject * obj0 = 0 ;
18297 PyObject * obj1 = 0 ;
18298 char * kwnames[] = {
18299 (char *) "self",(char *) "minValue", NULL
18300 };
18301
18302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18304 if (!SWIG_IsOK(res1)) {
18305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18306 }
18307 arg1 = reinterpret_cast< wxSlider * >(argp1);
18308 ecode2 = SWIG_AsVal_int(obj1, &val2);
18309 if (!SWIG_IsOK(ecode2)) {
18310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18311 }
18312 arg2 = static_cast< int >(val2);
18313 {
18314 PyThreadState* __tstate = wxPyBeginAllowThreads();
18315 (arg1)->SetMin(arg2);
18316 wxPyEndAllowThreads(__tstate);
18317 if (PyErr_Occurred()) SWIG_fail;
18318 }
18319 resultobj = SWIG_Py_Void();
18320 return resultobj;
18321 fail:
18322 return NULL;
18323 }
18324
18325
18326 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18327 PyObject *resultobj = 0;
18328 wxSlider *arg1 = (wxSlider *) 0 ;
18329 int arg2 ;
18330 void *argp1 = 0 ;
18331 int res1 = 0 ;
18332 int val2 ;
18333 int ecode2 = 0 ;
18334 PyObject * obj0 = 0 ;
18335 PyObject * obj1 = 0 ;
18336 char * kwnames[] = {
18337 (char *) "self",(char *) "maxValue", NULL
18338 };
18339
18340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18342 if (!SWIG_IsOK(res1)) {
18343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18344 }
18345 arg1 = reinterpret_cast< wxSlider * >(argp1);
18346 ecode2 = SWIG_AsVal_int(obj1, &val2);
18347 if (!SWIG_IsOK(ecode2)) {
18348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18349 }
18350 arg2 = static_cast< int >(val2);
18351 {
18352 PyThreadState* __tstate = wxPyBeginAllowThreads();
18353 (arg1)->SetMax(arg2);
18354 wxPyEndAllowThreads(__tstate);
18355 if (PyErr_Occurred()) SWIG_fail;
18356 }
18357 resultobj = SWIG_Py_Void();
18358 return resultobj;
18359 fail:
18360 return NULL;
18361 }
18362
18363
18364 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18365 PyObject *resultobj = 0;
18366 wxSlider *arg1 = (wxSlider *) 0 ;
18367 int arg2 ;
18368 void *argp1 = 0 ;
18369 int res1 = 0 ;
18370 int val2 ;
18371 int ecode2 = 0 ;
18372 PyObject * obj0 = 0 ;
18373 PyObject * obj1 = 0 ;
18374 char * kwnames[] = {
18375 (char *) "self",(char *) "lineSize", NULL
18376 };
18377
18378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18380 if (!SWIG_IsOK(res1)) {
18381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18382 }
18383 arg1 = reinterpret_cast< wxSlider * >(argp1);
18384 ecode2 = SWIG_AsVal_int(obj1, &val2);
18385 if (!SWIG_IsOK(ecode2)) {
18386 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18387 }
18388 arg2 = static_cast< int >(val2);
18389 {
18390 PyThreadState* __tstate = wxPyBeginAllowThreads();
18391 (arg1)->SetLineSize(arg2);
18392 wxPyEndAllowThreads(__tstate);
18393 if (PyErr_Occurred()) SWIG_fail;
18394 }
18395 resultobj = SWIG_Py_Void();
18396 return resultobj;
18397 fail:
18398 return NULL;
18399 }
18400
18401
18402 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18403 PyObject *resultobj = 0;
18404 wxSlider *arg1 = (wxSlider *) 0 ;
18405 int arg2 ;
18406 void *argp1 = 0 ;
18407 int res1 = 0 ;
18408 int val2 ;
18409 int ecode2 = 0 ;
18410 PyObject * obj0 = 0 ;
18411 PyObject * obj1 = 0 ;
18412 char * kwnames[] = {
18413 (char *) "self",(char *) "pageSize", NULL
18414 };
18415
18416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18418 if (!SWIG_IsOK(res1)) {
18419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18420 }
18421 arg1 = reinterpret_cast< wxSlider * >(argp1);
18422 ecode2 = SWIG_AsVal_int(obj1, &val2);
18423 if (!SWIG_IsOK(ecode2)) {
18424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18425 }
18426 arg2 = static_cast< int >(val2);
18427 {
18428 PyThreadState* __tstate = wxPyBeginAllowThreads();
18429 (arg1)->SetPageSize(arg2);
18430 wxPyEndAllowThreads(__tstate);
18431 if (PyErr_Occurred()) SWIG_fail;
18432 }
18433 resultobj = SWIG_Py_Void();
18434 return resultobj;
18435 fail:
18436 return NULL;
18437 }
18438
18439
18440 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18441 PyObject *resultobj = 0;
18442 wxSlider *arg1 = (wxSlider *) 0 ;
18443 int result;
18444 void *argp1 = 0 ;
18445 int res1 = 0 ;
18446 PyObject *swig_obj[1] ;
18447
18448 if (!args) SWIG_fail;
18449 swig_obj[0] = args;
18450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18451 if (!SWIG_IsOK(res1)) {
18452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18453 }
18454 arg1 = reinterpret_cast< wxSlider * >(argp1);
18455 {
18456 PyThreadState* __tstate = wxPyBeginAllowThreads();
18457 result = (int)((wxSlider const *)arg1)->GetLineSize();
18458 wxPyEndAllowThreads(__tstate);
18459 if (PyErr_Occurred()) SWIG_fail;
18460 }
18461 resultobj = SWIG_From_int(static_cast< int >(result));
18462 return resultobj;
18463 fail:
18464 return NULL;
18465 }
18466
18467
18468 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18469 PyObject *resultobj = 0;
18470 wxSlider *arg1 = (wxSlider *) 0 ;
18471 int result;
18472 void *argp1 = 0 ;
18473 int res1 = 0 ;
18474 PyObject *swig_obj[1] ;
18475
18476 if (!args) SWIG_fail;
18477 swig_obj[0] = args;
18478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18479 if (!SWIG_IsOK(res1)) {
18480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18481 }
18482 arg1 = reinterpret_cast< wxSlider * >(argp1);
18483 {
18484 PyThreadState* __tstate = wxPyBeginAllowThreads();
18485 result = (int)((wxSlider const *)arg1)->GetPageSize();
18486 wxPyEndAllowThreads(__tstate);
18487 if (PyErr_Occurred()) SWIG_fail;
18488 }
18489 resultobj = SWIG_From_int(static_cast< int >(result));
18490 return resultobj;
18491 fail:
18492 return NULL;
18493 }
18494
18495
18496 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18497 PyObject *resultobj = 0;
18498 wxSlider *arg1 = (wxSlider *) 0 ;
18499 int arg2 ;
18500 void *argp1 = 0 ;
18501 int res1 = 0 ;
18502 int val2 ;
18503 int ecode2 = 0 ;
18504 PyObject * obj0 = 0 ;
18505 PyObject * obj1 = 0 ;
18506 char * kwnames[] = {
18507 (char *) "self",(char *) "lenPixels", NULL
18508 };
18509
18510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18512 if (!SWIG_IsOK(res1)) {
18513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18514 }
18515 arg1 = reinterpret_cast< wxSlider * >(argp1);
18516 ecode2 = SWIG_AsVal_int(obj1, &val2);
18517 if (!SWIG_IsOK(ecode2)) {
18518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18519 }
18520 arg2 = static_cast< int >(val2);
18521 {
18522 PyThreadState* __tstate = wxPyBeginAllowThreads();
18523 (arg1)->SetThumbLength(arg2);
18524 wxPyEndAllowThreads(__tstate);
18525 if (PyErr_Occurred()) SWIG_fail;
18526 }
18527 resultobj = SWIG_Py_Void();
18528 return resultobj;
18529 fail:
18530 return NULL;
18531 }
18532
18533
18534 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18535 PyObject *resultobj = 0;
18536 wxSlider *arg1 = (wxSlider *) 0 ;
18537 int result;
18538 void *argp1 = 0 ;
18539 int res1 = 0 ;
18540 PyObject *swig_obj[1] ;
18541
18542 if (!args) SWIG_fail;
18543 swig_obj[0] = args;
18544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18545 if (!SWIG_IsOK(res1)) {
18546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18547 }
18548 arg1 = reinterpret_cast< wxSlider * >(argp1);
18549 {
18550 PyThreadState* __tstate = wxPyBeginAllowThreads();
18551 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18552 wxPyEndAllowThreads(__tstate);
18553 if (PyErr_Occurred()) SWIG_fail;
18554 }
18555 resultobj = SWIG_From_int(static_cast< int >(result));
18556 return resultobj;
18557 fail:
18558 return NULL;
18559 }
18560
18561
18562 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18563 PyObject *resultobj = 0;
18564 wxSlider *arg1 = (wxSlider *) 0 ;
18565 int arg2 ;
18566 int arg3 = (int) 1 ;
18567 void *argp1 = 0 ;
18568 int res1 = 0 ;
18569 int val2 ;
18570 int ecode2 = 0 ;
18571 int val3 ;
18572 int ecode3 = 0 ;
18573 PyObject * obj0 = 0 ;
18574 PyObject * obj1 = 0 ;
18575 PyObject * obj2 = 0 ;
18576 char * kwnames[] = {
18577 (char *) "self",(char *) "n",(char *) "pos", NULL
18578 };
18579
18580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18582 if (!SWIG_IsOK(res1)) {
18583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18584 }
18585 arg1 = reinterpret_cast< wxSlider * >(argp1);
18586 ecode2 = SWIG_AsVal_int(obj1, &val2);
18587 if (!SWIG_IsOK(ecode2)) {
18588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18589 }
18590 arg2 = static_cast< int >(val2);
18591 if (obj2) {
18592 ecode3 = SWIG_AsVal_int(obj2, &val3);
18593 if (!SWIG_IsOK(ecode3)) {
18594 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18595 }
18596 arg3 = static_cast< int >(val3);
18597 }
18598 {
18599 PyThreadState* __tstate = wxPyBeginAllowThreads();
18600 (arg1)->SetTickFreq(arg2,arg3);
18601 wxPyEndAllowThreads(__tstate);
18602 if (PyErr_Occurred()) SWIG_fail;
18603 }
18604 resultobj = SWIG_Py_Void();
18605 return resultobj;
18606 fail:
18607 return NULL;
18608 }
18609
18610
18611 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18612 PyObject *resultobj = 0;
18613 wxSlider *arg1 = (wxSlider *) 0 ;
18614 int result;
18615 void *argp1 = 0 ;
18616 int res1 = 0 ;
18617 PyObject *swig_obj[1] ;
18618
18619 if (!args) SWIG_fail;
18620 swig_obj[0] = args;
18621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18622 if (!SWIG_IsOK(res1)) {
18623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18624 }
18625 arg1 = reinterpret_cast< wxSlider * >(argp1);
18626 {
18627 PyThreadState* __tstate = wxPyBeginAllowThreads();
18628 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18629 wxPyEndAllowThreads(__tstate);
18630 if (PyErr_Occurred()) SWIG_fail;
18631 }
18632 resultobj = SWIG_From_int(static_cast< int >(result));
18633 return resultobj;
18634 fail:
18635 return NULL;
18636 }
18637
18638
18639 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18640 PyObject *resultobj = 0;
18641 wxSlider *arg1 = (wxSlider *) 0 ;
18642 void *argp1 = 0 ;
18643 int res1 = 0 ;
18644 PyObject *swig_obj[1] ;
18645
18646 if (!args) SWIG_fail;
18647 swig_obj[0] = args;
18648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18649 if (!SWIG_IsOK(res1)) {
18650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18651 }
18652 arg1 = reinterpret_cast< wxSlider * >(argp1);
18653 {
18654 PyThreadState* __tstate = wxPyBeginAllowThreads();
18655 (arg1)->ClearTicks();
18656 wxPyEndAllowThreads(__tstate);
18657 if (PyErr_Occurred()) SWIG_fail;
18658 }
18659 resultobj = SWIG_Py_Void();
18660 return resultobj;
18661 fail:
18662 return NULL;
18663 }
18664
18665
18666 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18667 PyObject *resultobj = 0;
18668 wxSlider *arg1 = (wxSlider *) 0 ;
18669 int arg2 ;
18670 void *argp1 = 0 ;
18671 int res1 = 0 ;
18672 int val2 ;
18673 int ecode2 = 0 ;
18674 PyObject * obj0 = 0 ;
18675 PyObject * obj1 = 0 ;
18676 char * kwnames[] = {
18677 (char *) "self",(char *) "tickPos", NULL
18678 };
18679
18680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18682 if (!SWIG_IsOK(res1)) {
18683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18684 }
18685 arg1 = reinterpret_cast< wxSlider * >(argp1);
18686 ecode2 = SWIG_AsVal_int(obj1, &val2);
18687 if (!SWIG_IsOK(ecode2)) {
18688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18689 }
18690 arg2 = static_cast< int >(val2);
18691 {
18692 PyThreadState* __tstate = wxPyBeginAllowThreads();
18693 (arg1)->SetTick(arg2);
18694 wxPyEndAllowThreads(__tstate);
18695 if (PyErr_Occurred()) SWIG_fail;
18696 }
18697 resultobj = SWIG_Py_Void();
18698 return resultobj;
18699 fail:
18700 return NULL;
18701 }
18702
18703
18704 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18705 PyObject *resultobj = 0;
18706 wxSlider *arg1 = (wxSlider *) 0 ;
18707 void *argp1 = 0 ;
18708 int res1 = 0 ;
18709 PyObject *swig_obj[1] ;
18710
18711 if (!args) SWIG_fail;
18712 swig_obj[0] = args;
18713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18714 if (!SWIG_IsOK(res1)) {
18715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18716 }
18717 arg1 = reinterpret_cast< wxSlider * >(argp1);
18718 {
18719 PyThreadState* __tstate = wxPyBeginAllowThreads();
18720 (arg1)->ClearSel();
18721 wxPyEndAllowThreads(__tstate);
18722 if (PyErr_Occurred()) SWIG_fail;
18723 }
18724 resultobj = SWIG_Py_Void();
18725 return resultobj;
18726 fail:
18727 return NULL;
18728 }
18729
18730
18731 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18732 PyObject *resultobj = 0;
18733 wxSlider *arg1 = (wxSlider *) 0 ;
18734 int result;
18735 void *argp1 = 0 ;
18736 int res1 = 0 ;
18737 PyObject *swig_obj[1] ;
18738
18739 if (!args) SWIG_fail;
18740 swig_obj[0] = args;
18741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18742 if (!SWIG_IsOK(res1)) {
18743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18744 }
18745 arg1 = reinterpret_cast< wxSlider * >(argp1);
18746 {
18747 PyThreadState* __tstate = wxPyBeginAllowThreads();
18748 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18749 wxPyEndAllowThreads(__tstate);
18750 if (PyErr_Occurred()) SWIG_fail;
18751 }
18752 resultobj = SWIG_From_int(static_cast< int >(result));
18753 return resultobj;
18754 fail:
18755 return NULL;
18756 }
18757
18758
18759 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18760 PyObject *resultobj = 0;
18761 wxSlider *arg1 = (wxSlider *) 0 ;
18762 int result;
18763 void *argp1 = 0 ;
18764 int res1 = 0 ;
18765 PyObject *swig_obj[1] ;
18766
18767 if (!args) SWIG_fail;
18768 swig_obj[0] = args;
18769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18770 if (!SWIG_IsOK(res1)) {
18771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18772 }
18773 arg1 = reinterpret_cast< wxSlider * >(argp1);
18774 {
18775 PyThreadState* __tstate = wxPyBeginAllowThreads();
18776 result = (int)((wxSlider const *)arg1)->GetSelStart();
18777 wxPyEndAllowThreads(__tstate);
18778 if (PyErr_Occurred()) SWIG_fail;
18779 }
18780 resultobj = SWIG_From_int(static_cast< int >(result));
18781 return resultobj;
18782 fail:
18783 return NULL;
18784 }
18785
18786
18787 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18788 PyObject *resultobj = 0;
18789 wxSlider *arg1 = (wxSlider *) 0 ;
18790 int arg2 ;
18791 int arg3 ;
18792 void *argp1 = 0 ;
18793 int res1 = 0 ;
18794 int val2 ;
18795 int ecode2 = 0 ;
18796 int val3 ;
18797 int ecode3 = 0 ;
18798 PyObject * obj0 = 0 ;
18799 PyObject * obj1 = 0 ;
18800 PyObject * obj2 = 0 ;
18801 char * kwnames[] = {
18802 (char *) "self",(char *) "min",(char *) "max", NULL
18803 };
18804
18805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18807 if (!SWIG_IsOK(res1)) {
18808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18809 }
18810 arg1 = reinterpret_cast< wxSlider * >(argp1);
18811 ecode2 = SWIG_AsVal_int(obj1, &val2);
18812 if (!SWIG_IsOK(ecode2)) {
18813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18814 }
18815 arg2 = static_cast< int >(val2);
18816 ecode3 = SWIG_AsVal_int(obj2, &val3);
18817 if (!SWIG_IsOK(ecode3)) {
18818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18819 }
18820 arg3 = static_cast< int >(val3);
18821 {
18822 PyThreadState* __tstate = wxPyBeginAllowThreads();
18823 (arg1)->SetSelection(arg2,arg3);
18824 wxPyEndAllowThreads(__tstate);
18825 if (PyErr_Occurred()) SWIG_fail;
18826 }
18827 resultobj = SWIG_Py_Void();
18828 return resultobj;
18829 fail:
18830 return NULL;
18831 }
18832
18833
18834 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18835 PyObject *resultobj = 0;
18836 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18837 SwigValueWrapper<wxVisualAttributes > result;
18838 int val1 ;
18839 int ecode1 = 0 ;
18840 PyObject * obj0 = 0 ;
18841 char * kwnames[] = {
18842 (char *) "variant", NULL
18843 };
18844
18845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18846 if (obj0) {
18847 ecode1 = SWIG_AsVal_int(obj0, &val1);
18848 if (!SWIG_IsOK(ecode1)) {
18849 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18850 }
18851 arg1 = static_cast< wxWindowVariant >(val1);
18852 }
18853 {
18854 if (!wxPyCheckForApp()) SWIG_fail;
18855 PyThreadState* __tstate = wxPyBeginAllowThreads();
18856 result = wxSlider::GetClassDefaultAttributes(arg1);
18857 wxPyEndAllowThreads(__tstate);
18858 if (PyErr_Occurred()) SWIG_fail;
18859 }
18860 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18861 return resultobj;
18862 fail:
18863 return NULL;
18864 }
18865
18866
18867 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18868 PyObject *obj;
18869 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18870 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18871 return SWIG_Py_Void();
18872 }
18873
18874 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18875 return SWIG_Python_InitShadowInstance(args);
18876 }
18877
18878 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18879 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18880 return 1;
18881 }
18882
18883
18884 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18885 PyObject *pyobj = 0;
18886
18887 {
18888 #if wxUSE_UNICODE
18889 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18890 #else
18891 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18892 #endif
18893 }
18894 return pyobj;
18895 }
18896
18897
18898 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18899 PyObject *resultobj = 0;
18900 wxWindow *arg1 = (wxWindow *) 0 ;
18901 int arg2 = (int) -1 ;
18902 wxString const &arg3_defvalue = wxPyEmptyString ;
18903 wxString *arg3 = (wxString *) &arg3_defvalue ;
18904 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18905 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18906 wxSize const &arg5_defvalue = wxDefaultSize ;
18907 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18908 long arg6 = (long) 0 ;
18909 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18910 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18911 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18912 wxString *arg8 = (wxString *) &arg8_defvalue ;
18913 wxToggleButton *result = 0 ;
18914 void *argp1 = 0 ;
18915 int res1 = 0 ;
18916 int val2 ;
18917 int ecode2 = 0 ;
18918 bool temp3 = false ;
18919 wxPoint temp4 ;
18920 wxSize temp5 ;
18921 long val6 ;
18922 int ecode6 = 0 ;
18923 void *argp7 = 0 ;
18924 int res7 = 0 ;
18925 bool temp8 = false ;
18926 PyObject * obj0 = 0 ;
18927 PyObject * obj1 = 0 ;
18928 PyObject * obj2 = 0 ;
18929 PyObject * obj3 = 0 ;
18930 PyObject * obj4 = 0 ;
18931 PyObject * obj5 = 0 ;
18932 PyObject * obj6 = 0 ;
18933 PyObject * obj7 = 0 ;
18934 char * kwnames[] = {
18935 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18936 };
18937
18938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18940 if (!SWIG_IsOK(res1)) {
18941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18942 }
18943 arg1 = reinterpret_cast< wxWindow * >(argp1);
18944 if (obj1) {
18945 ecode2 = SWIG_AsVal_int(obj1, &val2);
18946 if (!SWIG_IsOK(ecode2)) {
18947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18948 }
18949 arg2 = static_cast< int >(val2);
18950 }
18951 if (obj2) {
18952 {
18953 arg3 = wxString_in_helper(obj2);
18954 if (arg3 == NULL) SWIG_fail;
18955 temp3 = true;
18956 }
18957 }
18958 if (obj3) {
18959 {
18960 arg4 = &temp4;
18961 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18962 }
18963 }
18964 if (obj4) {
18965 {
18966 arg5 = &temp5;
18967 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18968 }
18969 }
18970 if (obj5) {
18971 ecode6 = SWIG_AsVal_long(obj5, &val6);
18972 if (!SWIG_IsOK(ecode6)) {
18973 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18974 }
18975 arg6 = static_cast< long >(val6);
18976 }
18977 if (obj6) {
18978 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18979 if (!SWIG_IsOK(res7)) {
18980 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18981 }
18982 if (!argp7) {
18983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18984 }
18985 arg7 = reinterpret_cast< wxValidator * >(argp7);
18986 }
18987 if (obj7) {
18988 {
18989 arg8 = wxString_in_helper(obj7);
18990 if (arg8 == NULL) SWIG_fail;
18991 temp8 = true;
18992 }
18993 }
18994 {
18995 if (!wxPyCheckForApp()) SWIG_fail;
18996 PyThreadState* __tstate = wxPyBeginAllowThreads();
18997 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18998 wxPyEndAllowThreads(__tstate);
18999 if (PyErr_Occurred()) SWIG_fail;
19000 }
19001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
19002 {
19003 if (temp3)
19004 delete arg3;
19005 }
19006 {
19007 if (temp8)
19008 delete arg8;
19009 }
19010 return resultobj;
19011 fail:
19012 {
19013 if (temp3)
19014 delete arg3;
19015 }
19016 {
19017 if (temp8)
19018 delete arg8;
19019 }
19020 return NULL;
19021 }
19022
19023
19024 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19025 PyObject *resultobj = 0;
19026 wxToggleButton *result = 0 ;
19027
19028 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
19029 {
19030 if (!wxPyCheckForApp()) SWIG_fail;
19031 PyThreadState* __tstate = wxPyBeginAllowThreads();
19032 result = (wxToggleButton *)new wxToggleButton();
19033 wxPyEndAllowThreads(__tstate);
19034 if (PyErr_Occurred()) SWIG_fail;
19035 }
19036 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
19037 return resultobj;
19038 fail:
19039 return NULL;
19040 }
19041
19042
19043 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19044 PyObject *resultobj = 0;
19045 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19046 wxWindow *arg2 = (wxWindow *) 0 ;
19047 int arg3 = (int) -1 ;
19048 wxString const &arg4_defvalue = wxPyEmptyString ;
19049 wxString *arg4 = (wxString *) &arg4_defvalue ;
19050 wxPoint const &arg5_defvalue = wxDefaultPosition ;
19051 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
19052 wxSize const &arg6_defvalue = wxDefaultSize ;
19053 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
19054 long arg7 = (long) 0 ;
19055 wxValidator const &arg8_defvalue = wxDefaultValidator ;
19056 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
19057 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
19058 wxString *arg9 = (wxString *) &arg9_defvalue ;
19059 bool result;
19060 void *argp1 = 0 ;
19061 int res1 = 0 ;
19062 void *argp2 = 0 ;
19063 int res2 = 0 ;
19064 int val3 ;
19065 int ecode3 = 0 ;
19066 bool temp4 = false ;
19067 wxPoint temp5 ;
19068 wxSize temp6 ;
19069 long val7 ;
19070 int ecode7 = 0 ;
19071 void *argp8 = 0 ;
19072 int res8 = 0 ;
19073 bool temp9 = false ;
19074 PyObject * obj0 = 0 ;
19075 PyObject * obj1 = 0 ;
19076 PyObject * obj2 = 0 ;
19077 PyObject * obj3 = 0 ;
19078 PyObject * obj4 = 0 ;
19079 PyObject * obj5 = 0 ;
19080 PyObject * obj6 = 0 ;
19081 PyObject * obj7 = 0 ;
19082 PyObject * obj8 = 0 ;
19083 char * kwnames[] = {
19084 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
19085 };
19086
19087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
19088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19089 if (!SWIG_IsOK(res1)) {
19090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19091 }
19092 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19093 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19094 if (!SWIG_IsOK(res2)) {
19095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
19096 }
19097 arg2 = reinterpret_cast< wxWindow * >(argp2);
19098 if (obj2) {
19099 ecode3 = SWIG_AsVal_int(obj2, &val3);
19100 if (!SWIG_IsOK(ecode3)) {
19101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
19102 }
19103 arg3 = static_cast< int >(val3);
19104 }
19105 if (obj3) {
19106 {
19107 arg4 = wxString_in_helper(obj3);
19108 if (arg4 == NULL) SWIG_fail;
19109 temp4 = true;
19110 }
19111 }
19112 if (obj4) {
19113 {
19114 arg5 = &temp5;
19115 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19116 }
19117 }
19118 if (obj5) {
19119 {
19120 arg6 = &temp6;
19121 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
19122 }
19123 }
19124 if (obj6) {
19125 ecode7 = SWIG_AsVal_long(obj6, &val7);
19126 if (!SWIG_IsOK(ecode7)) {
19127 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
19128 }
19129 arg7 = static_cast< long >(val7);
19130 }
19131 if (obj7) {
19132 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
19133 if (!SWIG_IsOK(res8)) {
19134 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
19135 }
19136 if (!argp8) {
19137 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
19138 }
19139 arg8 = reinterpret_cast< wxValidator * >(argp8);
19140 }
19141 if (obj8) {
19142 {
19143 arg9 = wxString_in_helper(obj8);
19144 if (arg9 == NULL) SWIG_fail;
19145 temp9 = true;
19146 }
19147 }
19148 {
19149 PyThreadState* __tstate = wxPyBeginAllowThreads();
19150 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
19151 wxPyEndAllowThreads(__tstate);
19152 if (PyErr_Occurred()) SWIG_fail;
19153 }
19154 {
19155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19156 }
19157 {
19158 if (temp4)
19159 delete arg4;
19160 }
19161 {
19162 if (temp9)
19163 delete arg9;
19164 }
19165 return resultobj;
19166 fail:
19167 {
19168 if (temp4)
19169 delete arg4;
19170 }
19171 {
19172 if (temp9)
19173 delete arg9;
19174 }
19175 return NULL;
19176 }
19177
19178
19179 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19180 PyObject *resultobj = 0;
19181 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19182 bool arg2 ;
19183 void *argp1 = 0 ;
19184 int res1 = 0 ;
19185 bool val2 ;
19186 int ecode2 = 0 ;
19187 PyObject * obj0 = 0 ;
19188 PyObject * obj1 = 0 ;
19189 char * kwnames[] = {
19190 (char *) "self",(char *) "value", NULL
19191 };
19192
19193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19195 if (!SWIG_IsOK(res1)) {
19196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19197 }
19198 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19199 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19200 if (!SWIG_IsOK(ecode2)) {
19201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19202 }
19203 arg2 = static_cast< bool >(val2);
19204 {
19205 PyThreadState* __tstate = wxPyBeginAllowThreads();
19206 (arg1)->SetValue(arg2);
19207 wxPyEndAllowThreads(__tstate);
19208 if (PyErr_Occurred()) SWIG_fail;
19209 }
19210 resultobj = SWIG_Py_Void();
19211 return resultobj;
19212 fail:
19213 return NULL;
19214 }
19215
19216
19217 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19218 PyObject *resultobj = 0;
19219 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19220 bool result;
19221 void *argp1 = 0 ;
19222 int res1 = 0 ;
19223 PyObject *swig_obj[1] ;
19224
19225 if (!args) SWIG_fail;
19226 swig_obj[0] = args;
19227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19228 if (!SWIG_IsOK(res1)) {
19229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19230 }
19231 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19232 {
19233 PyThreadState* __tstate = wxPyBeginAllowThreads();
19234 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19235 wxPyEndAllowThreads(__tstate);
19236 if (PyErr_Occurred()) SWIG_fail;
19237 }
19238 {
19239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19240 }
19241 return resultobj;
19242 fail:
19243 return NULL;
19244 }
19245
19246
19247 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19248 PyObject *resultobj = 0;
19249 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19250 SwigValueWrapper<wxVisualAttributes > result;
19251 int val1 ;
19252 int ecode1 = 0 ;
19253 PyObject * obj0 = 0 ;
19254 char * kwnames[] = {
19255 (char *) "variant", NULL
19256 };
19257
19258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19259 if (obj0) {
19260 ecode1 = SWIG_AsVal_int(obj0, &val1);
19261 if (!SWIG_IsOK(ecode1)) {
19262 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19263 }
19264 arg1 = static_cast< wxWindowVariant >(val1);
19265 }
19266 {
19267 if (!wxPyCheckForApp()) SWIG_fail;
19268 PyThreadState* __tstate = wxPyBeginAllowThreads();
19269 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19270 wxPyEndAllowThreads(__tstate);
19271 if (PyErr_Occurred()) SWIG_fail;
19272 }
19273 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19274 return resultobj;
19275 fail:
19276 return NULL;
19277 }
19278
19279
19280 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19281 PyObject *obj;
19282 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19283 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19284 return SWIG_Py_Void();
19285 }
19286
19287 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19288 return SWIG_Python_InitShadowInstance(args);
19289 }
19290
19291 SWIGINTERN int NotebookNameStr_set(PyObject *) {
19292 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19293 return 1;
19294 }
19295
19296
19297 SWIGINTERN PyObject *NotebookNameStr_get(void) {
19298 PyObject *pyobj = 0;
19299
19300 {
19301 #if wxUSE_UNICODE
19302 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19303 #else
19304 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19305 #endif
19306 }
19307 return pyobj;
19308 }
19309
19310
19311 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19312 PyObject *resultobj = 0;
19313 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19314 size_t result;
19315 void *argp1 = 0 ;
19316 int res1 = 0 ;
19317 PyObject *swig_obj[1] ;
19318
19319 if (!args) SWIG_fail;
19320 swig_obj[0] = args;
19321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19322 if (!SWIG_IsOK(res1)) {
19323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19324 }
19325 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19326 {
19327 PyThreadState* __tstate = wxPyBeginAllowThreads();
19328 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19329 wxPyEndAllowThreads(__tstate);
19330 if (PyErr_Occurred()) SWIG_fail;
19331 }
19332 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19333 return resultobj;
19334 fail:
19335 return NULL;
19336 }
19337
19338
19339 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19340 PyObject *resultobj = 0;
19341 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19342 size_t arg2 ;
19343 wxWindow *result = 0 ;
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_GetPage",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_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
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_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19363 }
19364 arg2 = static_cast< size_t >(val2);
19365 {
19366 PyThreadState* __tstate = wxPyBeginAllowThreads();
19367 result = (wxWindow *)(arg1)->GetPage(arg2);
19368 wxPyEndAllowThreads(__tstate);
19369 if (PyErr_Occurred()) SWIG_fail;
19370 }
19371 {
19372 resultobj = wxPyMake_wxObject(result, 0);
19373 }
19374 return resultobj;
19375 fail:
19376 return NULL;
19377 }
19378
19379
19380 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19381 PyObject *resultobj = 0;
19382 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19383 wxWindow *result = 0 ;
19384 void *argp1 = 0 ;
19385 int res1 = 0 ;
19386 PyObject *swig_obj[1] ;
19387
19388 if (!args) SWIG_fail;
19389 swig_obj[0] = args;
19390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19391 if (!SWIG_IsOK(res1)) {
19392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19393 }
19394 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19395 {
19396 PyThreadState* __tstate = wxPyBeginAllowThreads();
19397 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19398 wxPyEndAllowThreads(__tstate);
19399 if (PyErr_Occurred()) SWIG_fail;
19400 }
19401 {
19402 resultobj = wxPyMake_wxObject(result, 0);
19403 }
19404 return resultobj;
19405 fail:
19406 return NULL;
19407 }
19408
19409
19410 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19411 PyObject *resultobj = 0;
19412 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19413 int result;
19414 void *argp1 = 0 ;
19415 int res1 = 0 ;
19416 PyObject *swig_obj[1] ;
19417
19418 if (!args) SWIG_fail;
19419 swig_obj[0] = args;
19420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19421 if (!SWIG_IsOK(res1)) {
19422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19423 }
19424 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19425 {
19426 PyThreadState* __tstate = wxPyBeginAllowThreads();
19427 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19428 wxPyEndAllowThreads(__tstate);
19429 if (PyErr_Occurred()) SWIG_fail;
19430 }
19431 resultobj = SWIG_From_int(static_cast< int >(result));
19432 return resultobj;
19433 fail:
19434 return NULL;
19435 }
19436
19437
19438 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19439 PyObject *resultobj = 0;
19440 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19441 size_t arg2 ;
19442 wxString *arg3 = 0 ;
19443 bool result;
19444 void *argp1 = 0 ;
19445 int res1 = 0 ;
19446 size_t val2 ;
19447 int ecode2 = 0 ;
19448 bool temp3 = false ;
19449 PyObject * obj0 = 0 ;
19450 PyObject * obj1 = 0 ;
19451 PyObject * obj2 = 0 ;
19452 char * kwnames[] = {
19453 (char *) "self",(char *) "n",(char *) "strText", NULL
19454 };
19455
19456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19458 if (!SWIG_IsOK(res1)) {
19459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19460 }
19461 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19462 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19463 if (!SWIG_IsOK(ecode2)) {
19464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19465 }
19466 arg2 = static_cast< size_t >(val2);
19467 {
19468 arg3 = wxString_in_helper(obj2);
19469 if (arg3 == NULL) SWIG_fail;
19470 temp3 = true;
19471 }
19472 {
19473 PyThreadState* __tstate = wxPyBeginAllowThreads();
19474 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19475 wxPyEndAllowThreads(__tstate);
19476 if (PyErr_Occurred()) SWIG_fail;
19477 }
19478 {
19479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19480 }
19481 {
19482 if (temp3)
19483 delete arg3;
19484 }
19485 return resultobj;
19486 fail:
19487 {
19488 if (temp3)
19489 delete arg3;
19490 }
19491 return NULL;
19492 }
19493
19494
19495 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19496 PyObject *resultobj = 0;
19497 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19498 size_t arg2 ;
19499 wxString result;
19500 void *argp1 = 0 ;
19501 int res1 = 0 ;
19502 size_t val2 ;
19503 int ecode2 = 0 ;
19504 PyObject * obj0 = 0 ;
19505 PyObject * obj1 = 0 ;
19506 char * kwnames[] = {
19507 (char *) "self",(char *) "n", NULL
19508 };
19509
19510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19512 if (!SWIG_IsOK(res1)) {
19513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19514 }
19515 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19516 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19517 if (!SWIG_IsOK(ecode2)) {
19518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19519 }
19520 arg2 = static_cast< size_t >(val2);
19521 {
19522 PyThreadState* __tstate = wxPyBeginAllowThreads();
19523 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19524 wxPyEndAllowThreads(__tstate);
19525 if (PyErr_Occurred()) SWIG_fail;
19526 }
19527 {
19528 #if wxUSE_UNICODE
19529 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19530 #else
19531 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19532 #endif
19533 }
19534 return resultobj;
19535 fail:
19536 return NULL;
19537 }
19538
19539
19540 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19541 PyObject *resultobj = 0;
19542 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19543 wxImageList *arg2 = (wxImageList *) 0 ;
19544 void *argp1 = 0 ;
19545 int res1 = 0 ;
19546 void *argp2 = 0 ;
19547 int res2 = 0 ;
19548 PyObject * obj0 = 0 ;
19549 PyObject * obj1 = 0 ;
19550 char * kwnames[] = {
19551 (char *) "self",(char *) "imageList", NULL
19552 };
19553
19554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19556 if (!SWIG_IsOK(res1)) {
19557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19558 }
19559 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19560 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19561 if (!SWIG_IsOK(res2)) {
19562 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19563 }
19564 arg2 = reinterpret_cast< wxImageList * >(argp2);
19565 {
19566 PyThreadState* __tstate = wxPyBeginAllowThreads();
19567 (arg1)->SetImageList(arg2);
19568 wxPyEndAllowThreads(__tstate);
19569 if (PyErr_Occurred()) SWIG_fail;
19570 }
19571 resultobj = SWIG_Py_Void();
19572 return resultobj;
19573 fail:
19574 return NULL;
19575 }
19576
19577
19578 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19579 PyObject *resultobj = 0;
19580 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19581 wxImageList *arg2 = (wxImageList *) 0 ;
19582 void *argp1 = 0 ;
19583 int res1 = 0 ;
19584 int res2 = 0 ;
19585 PyObject * obj0 = 0 ;
19586 PyObject * obj1 = 0 ;
19587 char * kwnames[] = {
19588 (char *) "self",(char *) "imageList", NULL
19589 };
19590
19591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19593 if (!SWIG_IsOK(res1)) {
19594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19595 }
19596 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19597 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19598 if (!SWIG_IsOK(res2)) {
19599 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19600 }
19601 {
19602 PyThreadState* __tstate = wxPyBeginAllowThreads();
19603 (arg1)->AssignImageList(arg2);
19604 wxPyEndAllowThreads(__tstate);
19605 if (PyErr_Occurred()) SWIG_fail;
19606 }
19607 resultobj = SWIG_Py_Void();
19608 return resultobj;
19609 fail:
19610 return NULL;
19611 }
19612
19613
19614 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19615 PyObject *resultobj = 0;
19616 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19617 wxImageList *result = 0 ;
19618 void *argp1 = 0 ;
19619 int res1 = 0 ;
19620 PyObject *swig_obj[1] ;
19621
19622 if (!args) SWIG_fail;
19623 swig_obj[0] = args;
19624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19625 if (!SWIG_IsOK(res1)) {
19626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19627 }
19628 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19629 {
19630 PyThreadState* __tstate = wxPyBeginAllowThreads();
19631 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19632 wxPyEndAllowThreads(__tstate);
19633 if (PyErr_Occurred()) SWIG_fail;
19634 }
19635 {
19636 resultobj = wxPyMake_wxObject(result, (bool)0);
19637 }
19638 return resultobj;
19639 fail:
19640 return NULL;
19641 }
19642
19643
19644 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19645 PyObject *resultobj = 0;
19646 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19647 size_t arg2 ;
19648 int result;
19649 void *argp1 = 0 ;
19650 int res1 = 0 ;
19651 size_t val2 ;
19652 int ecode2 = 0 ;
19653 PyObject * obj0 = 0 ;
19654 PyObject * obj1 = 0 ;
19655 char * kwnames[] = {
19656 (char *) "self",(char *) "n", NULL
19657 };
19658
19659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19661 if (!SWIG_IsOK(res1)) {
19662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19663 }
19664 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19665 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19666 if (!SWIG_IsOK(ecode2)) {
19667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19668 }
19669 arg2 = static_cast< size_t >(val2);
19670 {
19671 PyThreadState* __tstate = wxPyBeginAllowThreads();
19672 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19673 wxPyEndAllowThreads(__tstate);
19674 if (PyErr_Occurred()) SWIG_fail;
19675 }
19676 resultobj = SWIG_From_int(static_cast< int >(result));
19677 return resultobj;
19678 fail:
19679 return NULL;
19680 }
19681
19682
19683 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19684 PyObject *resultobj = 0;
19685 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19686 size_t arg2 ;
19687 int arg3 ;
19688 bool result;
19689 void *argp1 = 0 ;
19690 int res1 = 0 ;
19691 size_t val2 ;
19692 int ecode2 = 0 ;
19693 int val3 ;
19694 int ecode3 = 0 ;
19695 PyObject * obj0 = 0 ;
19696 PyObject * obj1 = 0 ;
19697 PyObject * obj2 = 0 ;
19698 char * kwnames[] = {
19699 (char *) "self",(char *) "n",(char *) "imageId", NULL
19700 };
19701
19702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19704 if (!SWIG_IsOK(res1)) {
19705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19706 }
19707 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19708 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19709 if (!SWIG_IsOK(ecode2)) {
19710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19711 }
19712 arg2 = static_cast< size_t >(val2);
19713 ecode3 = SWIG_AsVal_int(obj2, &val3);
19714 if (!SWIG_IsOK(ecode3)) {
19715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19716 }
19717 arg3 = static_cast< int >(val3);
19718 {
19719 PyThreadState* __tstate = wxPyBeginAllowThreads();
19720 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19721 wxPyEndAllowThreads(__tstate);
19722 if (PyErr_Occurred()) SWIG_fail;
19723 }
19724 {
19725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19726 }
19727 return resultobj;
19728 fail:
19729 return NULL;
19730 }
19731
19732
19733 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19734 PyObject *resultobj = 0;
19735 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19736 wxSize *arg2 = 0 ;
19737 void *argp1 = 0 ;
19738 int res1 = 0 ;
19739 wxSize temp2 ;
19740 PyObject * obj0 = 0 ;
19741 PyObject * obj1 = 0 ;
19742 char * kwnames[] = {
19743 (char *) "self",(char *) "size", NULL
19744 };
19745
19746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19748 if (!SWIG_IsOK(res1)) {
19749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19750 }
19751 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19752 {
19753 arg2 = &temp2;
19754 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19755 }
19756 {
19757 PyThreadState* __tstate = wxPyBeginAllowThreads();
19758 (arg1)->SetPageSize((wxSize const &)*arg2);
19759 wxPyEndAllowThreads(__tstate);
19760 if (PyErr_Occurred()) SWIG_fail;
19761 }
19762 resultobj = SWIG_Py_Void();
19763 return resultobj;
19764 fail:
19765 return NULL;
19766 }
19767
19768
19769 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19770 PyObject *resultobj = 0;
19771 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19772 wxSize *arg2 = 0 ;
19773 wxSize result;
19774 void *argp1 = 0 ;
19775 int res1 = 0 ;
19776 wxSize temp2 ;
19777 PyObject * obj0 = 0 ;
19778 PyObject * obj1 = 0 ;
19779 char * kwnames[] = {
19780 (char *) "self",(char *) "sizePage", NULL
19781 };
19782
19783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19785 if (!SWIG_IsOK(res1)) {
19786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19787 }
19788 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19789 {
19790 arg2 = &temp2;
19791 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19792 }
19793 {
19794 PyThreadState* __tstate = wxPyBeginAllowThreads();
19795 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19796 wxPyEndAllowThreads(__tstate);
19797 if (PyErr_Occurred()) SWIG_fail;
19798 }
19799 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19800 return resultobj;
19801 fail:
19802 return NULL;
19803 }
19804
19805
19806 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19807 PyObject *resultobj = 0;
19808 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19809 unsigned int result;
19810 void *argp1 = 0 ;
19811 int res1 = 0 ;
19812 PyObject *swig_obj[1] ;
19813
19814 if (!args) SWIG_fail;
19815 swig_obj[0] = args;
19816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19817 if (!SWIG_IsOK(res1)) {
19818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19819 }
19820 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19821 {
19822 PyThreadState* __tstate = wxPyBeginAllowThreads();
19823 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19824 wxPyEndAllowThreads(__tstate);
19825 if (PyErr_Occurred()) SWIG_fail;
19826 }
19827 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19828 return resultobj;
19829 fail:
19830 return NULL;
19831 }
19832
19833
19834 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19835 PyObject *resultobj = 0;
19836 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19837 unsigned int arg2 ;
19838 void *argp1 = 0 ;
19839 int res1 = 0 ;
19840 unsigned int val2 ;
19841 int ecode2 = 0 ;
19842 PyObject * obj0 = 0 ;
19843 PyObject * obj1 = 0 ;
19844 char * kwnames[] = {
19845 (char *) "self",(char *) "internalBorder", NULL
19846 };
19847
19848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19850 if (!SWIG_IsOK(res1)) {
19851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19852 }
19853 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19854 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19855 if (!SWIG_IsOK(ecode2)) {
19856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19857 }
19858 arg2 = static_cast< unsigned int >(val2);
19859 {
19860 PyThreadState* __tstate = wxPyBeginAllowThreads();
19861 (arg1)->SetInternalBorder(arg2);
19862 wxPyEndAllowThreads(__tstate);
19863 if (PyErr_Occurred()) SWIG_fail;
19864 }
19865 resultobj = SWIG_Py_Void();
19866 return resultobj;
19867 fail:
19868 return NULL;
19869 }
19870
19871
19872 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19873 PyObject *resultobj = 0;
19874 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19875 bool result;
19876 void *argp1 = 0 ;
19877 int res1 = 0 ;
19878 PyObject *swig_obj[1] ;
19879
19880 if (!args) SWIG_fail;
19881 swig_obj[0] = args;
19882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19883 if (!SWIG_IsOK(res1)) {
19884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19885 }
19886 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19887 {
19888 PyThreadState* __tstate = wxPyBeginAllowThreads();
19889 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19890 wxPyEndAllowThreads(__tstate);
19891 if (PyErr_Occurred()) SWIG_fail;
19892 }
19893 {
19894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19895 }
19896 return resultobj;
19897 fail:
19898 return NULL;
19899 }
19900
19901
19902 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19903 PyObject *resultobj = 0;
19904 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19905 int arg2 ;
19906 void *argp1 = 0 ;
19907 int res1 = 0 ;
19908 int val2 ;
19909 int ecode2 = 0 ;
19910 PyObject * obj0 = 0 ;
19911 PyObject * obj1 = 0 ;
19912 char * kwnames[] = {
19913 (char *) "self",(char *) "margin", NULL
19914 };
19915
19916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19918 if (!SWIG_IsOK(res1)) {
19919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19920 }
19921 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19922 ecode2 = SWIG_AsVal_int(obj1, &val2);
19923 if (!SWIG_IsOK(ecode2)) {
19924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19925 }
19926 arg2 = static_cast< int >(val2);
19927 {
19928 PyThreadState* __tstate = wxPyBeginAllowThreads();
19929 (arg1)->SetControlMargin(arg2);
19930 wxPyEndAllowThreads(__tstate);
19931 if (PyErr_Occurred()) SWIG_fail;
19932 }
19933 resultobj = SWIG_Py_Void();
19934 return resultobj;
19935 fail:
19936 return NULL;
19937 }
19938
19939
19940 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19941 PyObject *resultobj = 0;
19942 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19943 int result;
19944 void *argp1 = 0 ;
19945 int res1 = 0 ;
19946 PyObject *swig_obj[1] ;
19947
19948 if (!args) SWIG_fail;
19949 swig_obj[0] = args;
19950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19951 if (!SWIG_IsOK(res1)) {
19952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19953 }
19954 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19955 {
19956 PyThreadState* __tstate = wxPyBeginAllowThreads();
19957 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19958 wxPyEndAllowThreads(__tstate);
19959 if (PyErr_Occurred()) SWIG_fail;
19960 }
19961 resultobj = SWIG_From_int(static_cast< int >(result));
19962 return resultobj;
19963 fail:
19964 return NULL;
19965 }
19966
19967
19968 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19969 PyObject *resultobj = 0;
19970 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19971 bool arg2 ;
19972 void *argp1 = 0 ;
19973 int res1 = 0 ;
19974 bool val2 ;
19975 int ecode2 = 0 ;
19976 PyObject * obj0 = 0 ;
19977 PyObject * obj1 = 0 ;
19978 char * kwnames[] = {
19979 (char *) "self",(char *) "fit", NULL
19980 };
19981
19982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) 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_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19986 }
19987 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19988 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19989 if (!SWIG_IsOK(ecode2)) {
19990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19991 }
19992 arg2 = static_cast< bool >(val2);
19993 {
19994 PyThreadState* __tstate = wxPyBeginAllowThreads();
19995 (arg1)->SetFitToCurrentPage(arg2);
19996 wxPyEndAllowThreads(__tstate);
19997 if (PyErr_Occurred()) SWIG_fail;
19998 }
19999 resultobj = SWIG_Py_Void();
20000 return resultobj;
20001 fail:
20002 return NULL;
20003 }
20004
20005
20006 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20007 PyObject *resultobj = 0;
20008 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20009 bool result;
20010 void *argp1 = 0 ;
20011 int res1 = 0 ;
20012 PyObject *swig_obj[1] ;
20013
20014 if (!args) SWIG_fail;
20015 swig_obj[0] = args;
20016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20017 if (!SWIG_IsOK(res1)) {
20018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20019 }
20020 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20021 {
20022 PyThreadState* __tstate = wxPyBeginAllowThreads();
20023 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
20024 wxPyEndAllowThreads(__tstate);
20025 if (PyErr_Occurred()) SWIG_fail;
20026 }
20027 {
20028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20029 }
20030 return resultobj;
20031 fail:
20032 return NULL;
20033 }
20034
20035
20036 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20037 PyObject *resultobj = 0;
20038 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20039 wxSizer *result = 0 ;
20040 void *argp1 = 0 ;
20041 int res1 = 0 ;
20042 PyObject *swig_obj[1] ;
20043
20044 if (!args) SWIG_fail;
20045 swig_obj[0] = args;
20046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20047 if (!SWIG_IsOK(res1)) {
20048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20049 }
20050 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20051 {
20052 PyThreadState* __tstate = wxPyBeginAllowThreads();
20053 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
20054 wxPyEndAllowThreads(__tstate);
20055 if (PyErr_Occurred()) SWIG_fail;
20056 }
20057 {
20058 resultobj = wxPyMake_wxObject(result, (bool)0);
20059 }
20060 return resultobj;
20061 fail:
20062 return NULL;
20063 }
20064
20065
20066 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20067 PyObject *resultobj = 0;
20068 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20069 size_t arg2 ;
20070 bool result;
20071 void *argp1 = 0 ;
20072 int res1 = 0 ;
20073 size_t val2 ;
20074 int ecode2 = 0 ;
20075 PyObject * obj0 = 0 ;
20076 PyObject * obj1 = 0 ;
20077 char * kwnames[] = {
20078 (char *) "self",(char *) "n", NULL
20079 };
20080
20081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
20082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20083 if (!SWIG_IsOK(res1)) {
20084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20085 }
20086 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20087 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20088 if (!SWIG_IsOK(ecode2)) {
20089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
20090 }
20091 arg2 = static_cast< size_t >(val2);
20092 {
20093 PyThreadState* __tstate = wxPyBeginAllowThreads();
20094 result = (bool)(arg1)->DeletePage(arg2);
20095 wxPyEndAllowThreads(__tstate);
20096 if (PyErr_Occurred()) SWIG_fail;
20097 }
20098 {
20099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20100 }
20101 return resultobj;
20102 fail:
20103 return NULL;
20104 }
20105
20106
20107 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20108 PyObject *resultobj = 0;
20109 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20110 size_t arg2 ;
20111 bool result;
20112 void *argp1 = 0 ;
20113 int res1 = 0 ;
20114 size_t val2 ;
20115 int ecode2 = 0 ;
20116 PyObject * obj0 = 0 ;
20117 PyObject * obj1 = 0 ;
20118 char * kwnames[] = {
20119 (char *) "self",(char *) "n", NULL
20120 };
20121
20122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
20123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20124 if (!SWIG_IsOK(res1)) {
20125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20126 }
20127 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20128 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20129 if (!SWIG_IsOK(ecode2)) {
20130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
20131 }
20132 arg2 = static_cast< size_t >(val2);
20133 {
20134 PyThreadState* __tstate = wxPyBeginAllowThreads();
20135 result = (bool)(arg1)->RemovePage(arg2);
20136 wxPyEndAllowThreads(__tstate);
20137 if (PyErr_Occurred()) SWIG_fail;
20138 }
20139 {
20140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20141 }
20142 return resultobj;
20143 fail:
20144 return NULL;
20145 }
20146
20147
20148 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20149 PyObject *resultobj = 0;
20150 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20151 bool result;
20152 void *argp1 = 0 ;
20153 int res1 = 0 ;
20154 PyObject *swig_obj[1] ;
20155
20156 if (!args) SWIG_fail;
20157 swig_obj[0] = args;
20158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20159 if (!SWIG_IsOK(res1)) {
20160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20161 }
20162 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20163 {
20164 PyThreadState* __tstate = wxPyBeginAllowThreads();
20165 result = (bool)(arg1)->DeleteAllPages();
20166 wxPyEndAllowThreads(__tstate);
20167 if (PyErr_Occurred()) SWIG_fail;
20168 }
20169 {
20170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20171 }
20172 return resultobj;
20173 fail:
20174 return NULL;
20175 }
20176
20177
20178 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20179 PyObject *resultobj = 0;
20180 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20181 wxWindow *arg2 = (wxWindow *) 0 ;
20182 wxString *arg3 = 0 ;
20183 bool arg4 = (bool) false ;
20184 int arg5 = (int) -1 ;
20185 bool result;
20186 void *argp1 = 0 ;
20187 int res1 = 0 ;
20188 void *argp2 = 0 ;
20189 int res2 = 0 ;
20190 bool temp3 = false ;
20191 bool val4 ;
20192 int ecode4 = 0 ;
20193 int val5 ;
20194 int ecode5 = 0 ;
20195 PyObject * obj0 = 0 ;
20196 PyObject * obj1 = 0 ;
20197 PyObject * obj2 = 0 ;
20198 PyObject * obj3 = 0 ;
20199 PyObject * obj4 = 0 ;
20200 char * kwnames[] = {
20201 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20202 };
20203
20204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20206 if (!SWIG_IsOK(res1)) {
20207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20208 }
20209 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20210 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20211 if (!SWIG_IsOK(res2)) {
20212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20213 }
20214 arg2 = reinterpret_cast< wxWindow * >(argp2);
20215 {
20216 arg3 = wxString_in_helper(obj2);
20217 if (arg3 == NULL) SWIG_fail;
20218 temp3 = true;
20219 }
20220 if (obj3) {
20221 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20222 if (!SWIG_IsOK(ecode4)) {
20223 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20224 }
20225 arg4 = static_cast< bool >(val4);
20226 }
20227 if (obj4) {
20228 ecode5 = SWIG_AsVal_int(obj4, &val5);
20229 if (!SWIG_IsOK(ecode5)) {
20230 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20231 }
20232 arg5 = static_cast< int >(val5);
20233 }
20234 {
20235 PyThreadState* __tstate = wxPyBeginAllowThreads();
20236 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20237 wxPyEndAllowThreads(__tstate);
20238 if (PyErr_Occurred()) SWIG_fail;
20239 }
20240 {
20241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20242 }
20243 {
20244 if (temp3)
20245 delete arg3;
20246 }
20247 return resultobj;
20248 fail:
20249 {
20250 if (temp3)
20251 delete arg3;
20252 }
20253 return NULL;
20254 }
20255
20256
20257 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20258 PyObject *resultobj = 0;
20259 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20260 size_t arg2 ;
20261 wxWindow *arg3 = (wxWindow *) 0 ;
20262 wxString *arg4 = 0 ;
20263 bool arg5 = (bool) false ;
20264 int arg6 = (int) -1 ;
20265 bool result;
20266 void *argp1 = 0 ;
20267 int res1 = 0 ;
20268 size_t val2 ;
20269 int ecode2 = 0 ;
20270 void *argp3 = 0 ;
20271 int res3 = 0 ;
20272 bool temp4 = false ;
20273 bool val5 ;
20274 int ecode5 = 0 ;
20275 int val6 ;
20276 int ecode6 = 0 ;
20277 PyObject * obj0 = 0 ;
20278 PyObject * obj1 = 0 ;
20279 PyObject * obj2 = 0 ;
20280 PyObject * obj3 = 0 ;
20281 PyObject * obj4 = 0 ;
20282 PyObject * obj5 = 0 ;
20283 char * kwnames[] = {
20284 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20285 };
20286
20287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20289 if (!SWIG_IsOK(res1)) {
20290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20291 }
20292 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20293 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20294 if (!SWIG_IsOK(ecode2)) {
20295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20296 }
20297 arg2 = static_cast< size_t >(val2);
20298 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20299 if (!SWIG_IsOK(res3)) {
20300 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20301 }
20302 arg3 = reinterpret_cast< wxWindow * >(argp3);
20303 {
20304 arg4 = wxString_in_helper(obj3);
20305 if (arg4 == NULL) SWIG_fail;
20306 temp4 = true;
20307 }
20308 if (obj4) {
20309 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20310 if (!SWIG_IsOK(ecode5)) {
20311 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20312 }
20313 arg5 = static_cast< bool >(val5);
20314 }
20315 if (obj5) {
20316 ecode6 = SWIG_AsVal_int(obj5, &val6);
20317 if (!SWIG_IsOK(ecode6)) {
20318 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20319 }
20320 arg6 = static_cast< int >(val6);
20321 }
20322 {
20323 PyThreadState* __tstate = wxPyBeginAllowThreads();
20324 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20325 wxPyEndAllowThreads(__tstate);
20326 if (PyErr_Occurred()) SWIG_fail;
20327 }
20328 {
20329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20330 }
20331 {
20332 if (temp4)
20333 delete arg4;
20334 }
20335 return resultobj;
20336 fail:
20337 {
20338 if (temp4)
20339 delete arg4;
20340 }
20341 return NULL;
20342 }
20343
20344
20345 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20346 PyObject *resultobj = 0;
20347 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20348 size_t arg2 ;
20349 int result;
20350 void *argp1 = 0 ;
20351 int res1 = 0 ;
20352 size_t val2 ;
20353 int ecode2 = 0 ;
20354 PyObject * obj0 = 0 ;
20355 PyObject * obj1 = 0 ;
20356 char * kwnames[] = {
20357 (char *) "self",(char *) "n", NULL
20358 };
20359
20360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20362 if (!SWIG_IsOK(res1)) {
20363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20364 }
20365 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20366 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20367 if (!SWIG_IsOK(ecode2)) {
20368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20369 }
20370 arg2 = static_cast< size_t >(val2);
20371 {
20372 PyThreadState* __tstate = wxPyBeginAllowThreads();
20373 result = (int)(arg1)->SetSelection(arg2);
20374 wxPyEndAllowThreads(__tstate);
20375 if (PyErr_Occurred()) SWIG_fail;
20376 }
20377 resultobj = SWIG_From_int(static_cast< int >(result));
20378 return resultobj;
20379 fail:
20380 return NULL;
20381 }
20382
20383
20384 SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20385 PyObject *resultobj = 0;
20386 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20387 size_t arg2 ;
20388 int result;
20389 void *argp1 = 0 ;
20390 int res1 = 0 ;
20391 size_t val2 ;
20392 int ecode2 = 0 ;
20393 PyObject * obj0 = 0 ;
20394 PyObject * obj1 = 0 ;
20395 char * kwnames[] = {
20396 (char *) "self",(char *) "n", NULL
20397 };
20398
20399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20401 if (!SWIG_IsOK(res1)) {
20402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20403 }
20404 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20405 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20406 if (!SWIG_IsOK(ecode2)) {
20407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20408 }
20409 arg2 = static_cast< size_t >(val2);
20410 {
20411 PyThreadState* __tstate = wxPyBeginAllowThreads();
20412 result = (int)(arg1)->ChangeSelection(arg2);
20413 wxPyEndAllowThreads(__tstate);
20414 if (PyErr_Occurred()) SWIG_fail;
20415 }
20416 resultobj = SWIG_From_int(static_cast< int >(result));
20417 return resultobj;
20418 fail:
20419 return NULL;
20420 }
20421
20422
20423 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20424 PyObject *resultobj = 0;
20425 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20426 bool arg2 = (bool) true ;
20427 void *argp1 = 0 ;
20428 int res1 = 0 ;
20429 bool val2 ;
20430 int ecode2 = 0 ;
20431 PyObject * obj0 = 0 ;
20432 PyObject * obj1 = 0 ;
20433 char * kwnames[] = {
20434 (char *) "self",(char *) "forward", NULL
20435 };
20436
20437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20439 if (!SWIG_IsOK(res1)) {
20440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20441 }
20442 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20443 if (obj1) {
20444 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20445 if (!SWIG_IsOK(ecode2)) {
20446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20447 }
20448 arg2 = static_cast< bool >(val2);
20449 }
20450 {
20451 PyThreadState* __tstate = wxPyBeginAllowThreads();
20452 (arg1)->AdvanceSelection(arg2);
20453 wxPyEndAllowThreads(__tstate);
20454 if (PyErr_Occurred()) SWIG_fail;
20455 }
20456 resultobj = SWIG_Py_Void();
20457 return resultobj;
20458 fail:
20459 return NULL;
20460 }
20461
20462
20463 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20464 PyObject *resultobj = 0;
20465 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20466 wxPoint *arg2 = 0 ;
20467 long *arg3 = (long *) 0 ;
20468 int result;
20469 void *argp1 = 0 ;
20470 int res1 = 0 ;
20471 wxPoint temp2 ;
20472 long temp3 ;
20473 int res3 = SWIG_TMPOBJ ;
20474 PyObject * obj0 = 0 ;
20475 PyObject * obj1 = 0 ;
20476 char * kwnames[] = {
20477 (char *) "self",(char *) "pt", NULL
20478 };
20479
20480 arg3 = &temp3;
20481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20483 if (!SWIG_IsOK(res1)) {
20484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20485 }
20486 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20487 {
20488 arg2 = &temp2;
20489 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20490 }
20491 {
20492 PyThreadState* __tstate = wxPyBeginAllowThreads();
20493 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20494 wxPyEndAllowThreads(__tstate);
20495 if (PyErr_Occurred()) SWIG_fail;
20496 }
20497 resultobj = SWIG_From_int(static_cast< int >(result));
20498 if (SWIG_IsTmpObj(res3)) {
20499 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20500 } else {
20501 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20502 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20503 }
20504 return resultobj;
20505 fail:
20506 return NULL;
20507 }
20508
20509
20510 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20511 PyObject *resultobj = 0;
20512 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20513 SwigValueWrapper<wxVisualAttributes > result;
20514 int val1 ;
20515 int ecode1 = 0 ;
20516 PyObject * obj0 = 0 ;
20517 char * kwnames[] = {
20518 (char *) "variant", NULL
20519 };
20520
20521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20522 if (obj0) {
20523 ecode1 = SWIG_AsVal_int(obj0, &val1);
20524 if (!SWIG_IsOK(ecode1)) {
20525 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20526 }
20527 arg1 = static_cast< wxWindowVariant >(val1);
20528 }
20529 {
20530 if (!wxPyCheckForApp()) SWIG_fail;
20531 PyThreadState* __tstate = wxPyBeginAllowThreads();
20532 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20533 wxPyEndAllowThreads(__tstate);
20534 if (PyErr_Occurred()) SWIG_fail;
20535 }
20536 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20537 return resultobj;
20538 fail:
20539 return NULL;
20540 }
20541
20542
20543 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20544 PyObject *obj;
20545 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20546 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20547 return SWIG_Py_Void();
20548 }
20549
20550 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20551 PyObject *resultobj = 0;
20552 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20553 int arg2 = (int) 0 ;
20554 int arg3 = (int) -1 ;
20555 int arg4 = (int) -1 ;
20556 wxBookCtrlBaseEvent *result = 0 ;
20557 int val1 ;
20558 int ecode1 = 0 ;
20559 int val2 ;
20560 int ecode2 = 0 ;
20561 int val3 ;
20562 int ecode3 = 0 ;
20563 int val4 ;
20564 int ecode4 = 0 ;
20565 PyObject * obj0 = 0 ;
20566 PyObject * obj1 = 0 ;
20567 PyObject * obj2 = 0 ;
20568 PyObject * obj3 = 0 ;
20569 char * kwnames[] = {
20570 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20571 };
20572
20573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20574 if (obj0) {
20575 ecode1 = SWIG_AsVal_int(obj0, &val1);
20576 if (!SWIG_IsOK(ecode1)) {
20577 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20578 }
20579 arg1 = static_cast< wxEventType >(val1);
20580 }
20581 if (obj1) {
20582 ecode2 = SWIG_AsVal_int(obj1, &val2);
20583 if (!SWIG_IsOK(ecode2)) {
20584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20585 }
20586 arg2 = static_cast< int >(val2);
20587 }
20588 if (obj2) {
20589 ecode3 = SWIG_AsVal_int(obj2, &val3);
20590 if (!SWIG_IsOK(ecode3)) {
20591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20592 }
20593 arg3 = static_cast< int >(val3);
20594 }
20595 if (obj3) {
20596 ecode4 = SWIG_AsVal_int(obj3, &val4);
20597 if (!SWIG_IsOK(ecode4)) {
20598 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20599 }
20600 arg4 = static_cast< int >(val4);
20601 }
20602 {
20603 PyThreadState* __tstate = wxPyBeginAllowThreads();
20604 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20605 wxPyEndAllowThreads(__tstate);
20606 if (PyErr_Occurred()) SWIG_fail;
20607 }
20608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20609 return resultobj;
20610 fail:
20611 return NULL;
20612 }
20613
20614
20615 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20616 PyObject *resultobj = 0;
20617 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20618 int result;
20619 void *argp1 = 0 ;
20620 int res1 = 0 ;
20621 PyObject *swig_obj[1] ;
20622
20623 if (!args) SWIG_fail;
20624 swig_obj[0] = args;
20625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20626 if (!SWIG_IsOK(res1)) {
20627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20628 }
20629 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20630 {
20631 PyThreadState* __tstate = wxPyBeginAllowThreads();
20632 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20633 wxPyEndAllowThreads(__tstate);
20634 if (PyErr_Occurred()) SWIG_fail;
20635 }
20636 resultobj = SWIG_From_int(static_cast< int >(result));
20637 return resultobj;
20638 fail:
20639 return NULL;
20640 }
20641
20642
20643 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20644 PyObject *resultobj = 0;
20645 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20646 int arg2 ;
20647 void *argp1 = 0 ;
20648 int res1 = 0 ;
20649 int val2 ;
20650 int ecode2 = 0 ;
20651 PyObject * obj0 = 0 ;
20652 PyObject * obj1 = 0 ;
20653 char * kwnames[] = {
20654 (char *) "self",(char *) "nSel", NULL
20655 };
20656
20657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20659 if (!SWIG_IsOK(res1)) {
20660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20661 }
20662 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20663 ecode2 = SWIG_AsVal_int(obj1, &val2);
20664 if (!SWIG_IsOK(ecode2)) {
20665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20666 }
20667 arg2 = static_cast< int >(val2);
20668 {
20669 PyThreadState* __tstate = wxPyBeginAllowThreads();
20670 (arg1)->SetSelection(arg2);
20671 wxPyEndAllowThreads(__tstate);
20672 if (PyErr_Occurred()) SWIG_fail;
20673 }
20674 resultobj = SWIG_Py_Void();
20675 return resultobj;
20676 fail:
20677 return NULL;
20678 }
20679
20680
20681 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20682 PyObject *resultobj = 0;
20683 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20684 int result;
20685 void *argp1 = 0 ;
20686 int res1 = 0 ;
20687 PyObject *swig_obj[1] ;
20688
20689 if (!args) SWIG_fail;
20690 swig_obj[0] = args;
20691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20692 if (!SWIG_IsOK(res1)) {
20693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20694 }
20695 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20696 {
20697 PyThreadState* __tstate = wxPyBeginAllowThreads();
20698 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20699 wxPyEndAllowThreads(__tstate);
20700 if (PyErr_Occurred()) SWIG_fail;
20701 }
20702 resultobj = SWIG_From_int(static_cast< int >(result));
20703 return resultobj;
20704 fail:
20705 return NULL;
20706 }
20707
20708
20709 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20710 PyObject *resultobj = 0;
20711 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20712 int arg2 ;
20713 void *argp1 = 0 ;
20714 int res1 = 0 ;
20715 int val2 ;
20716 int ecode2 = 0 ;
20717 PyObject * obj0 = 0 ;
20718 PyObject * obj1 = 0 ;
20719 char * kwnames[] = {
20720 (char *) "self",(char *) "nOldSel", NULL
20721 };
20722
20723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20725 if (!SWIG_IsOK(res1)) {
20726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20727 }
20728 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20729 ecode2 = SWIG_AsVal_int(obj1, &val2);
20730 if (!SWIG_IsOK(ecode2)) {
20731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20732 }
20733 arg2 = static_cast< int >(val2);
20734 {
20735 PyThreadState* __tstate = wxPyBeginAllowThreads();
20736 (arg1)->SetOldSelection(arg2);
20737 wxPyEndAllowThreads(__tstate);
20738 if (PyErr_Occurred()) SWIG_fail;
20739 }
20740 resultobj = SWIG_Py_Void();
20741 return resultobj;
20742 fail:
20743 return NULL;
20744 }
20745
20746
20747 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20748 PyObject *obj;
20749 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20750 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20751 return SWIG_Py_Void();
20752 }
20753
20754 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20755 return SWIG_Python_InitShadowInstance(args);
20756 }
20757
20758 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20759 PyObject *resultobj = 0;
20760 wxWindow *arg1 = (wxWindow *) 0 ;
20761 int arg2 = (int) -1 ;
20762 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20763 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20764 wxSize const &arg4_defvalue = wxDefaultSize ;
20765 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20766 long arg5 = (long) 0 ;
20767 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20768 wxString *arg6 = (wxString *) &arg6_defvalue ;
20769 wxNotebook *result = 0 ;
20770 void *argp1 = 0 ;
20771 int res1 = 0 ;
20772 int val2 ;
20773 int ecode2 = 0 ;
20774 wxPoint temp3 ;
20775 wxSize temp4 ;
20776 long val5 ;
20777 int ecode5 = 0 ;
20778 bool temp6 = false ;
20779 PyObject * obj0 = 0 ;
20780 PyObject * obj1 = 0 ;
20781 PyObject * obj2 = 0 ;
20782 PyObject * obj3 = 0 ;
20783 PyObject * obj4 = 0 ;
20784 PyObject * obj5 = 0 ;
20785 char * kwnames[] = {
20786 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20787 };
20788
20789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20791 if (!SWIG_IsOK(res1)) {
20792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20793 }
20794 arg1 = reinterpret_cast< wxWindow * >(argp1);
20795 if (obj1) {
20796 ecode2 = SWIG_AsVal_int(obj1, &val2);
20797 if (!SWIG_IsOK(ecode2)) {
20798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20799 }
20800 arg2 = static_cast< int >(val2);
20801 }
20802 if (obj2) {
20803 {
20804 arg3 = &temp3;
20805 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20806 }
20807 }
20808 if (obj3) {
20809 {
20810 arg4 = &temp4;
20811 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20812 }
20813 }
20814 if (obj4) {
20815 ecode5 = SWIG_AsVal_long(obj4, &val5);
20816 if (!SWIG_IsOK(ecode5)) {
20817 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20818 }
20819 arg5 = static_cast< long >(val5);
20820 }
20821 if (obj5) {
20822 {
20823 arg6 = wxString_in_helper(obj5);
20824 if (arg6 == NULL) SWIG_fail;
20825 temp6 = true;
20826 }
20827 }
20828 {
20829 if (!wxPyCheckForApp()) SWIG_fail;
20830 PyThreadState* __tstate = wxPyBeginAllowThreads();
20831 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20832 wxPyEndAllowThreads(__tstate);
20833 if (PyErr_Occurred()) SWIG_fail;
20834 }
20835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20836 {
20837 if (temp6)
20838 delete arg6;
20839 }
20840 return resultobj;
20841 fail:
20842 {
20843 if (temp6)
20844 delete arg6;
20845 }
20846 return NULL;
20847 }
20848
20849
20850 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20851 PyObject *resultobj = 0;
20852 wxNotebook *result = 0 ;
20853
20854 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20855 {
20856 if (!wxPyCheckForApp()) SWIG_fail;
20857 PyThreadState* __tstate = wxPyBeginAllowThreads();
20858 result = (wxNotebook *)new wxNotebook();
20859 wxPyEndAllowThreads(__tstate);
20860 if (PyErr_Occurred()) SWIG_fail;
20861 }
20862 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20863 return resultobj;
20864 fail:
20865 return NULL;
20866 }
20867
20868
20869 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20870 PyObject *resultobj = 0;
20871 wxNotebook *arg1 = (wxNotebook *) 0 ;
20872 wxWindow *arg2 = (wxWindow *) 0 ;
20873 int arg3 = (int) -1 ;
20874 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20875 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20876 wxSize const &arg5_defvalue = wxDefaultSize ;
20877 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20878 long arg6 = (long) 0 ;
20879 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20880 wxString *arg7 = (wxString *) &arg7_defvalue ;
20881 bool result;
20882 void *argp1 = 0 ;
20883 int res1 = 0 ;
20884 void *argp2 = 0 ;
20885 int res2 = 0 ;
20886 int val3 ;
20887 int ecode3 = 0 ;
20888 wxPoint temp4 ;
20889 wxSize temp5 ;
20890 long val6 ;
20891 int ecode6 = 0 ;
20892 bool temp7 = false ;
20893 PyObject * obj0 = 0 ;
20894 PyObject * obj1 = 0 ;
20895 PyObject * obj2 = 0 ;
20896 PyObject * obj3 = 0 ;
20897 PyObject * obj4 = 0 ;
20898 PyObject * obj5 = 0 ;
20899 PyObject * obj6 = 0 ;
20900 char * kwnames[] = {
20901 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20902 };
20903
20904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20906 if (!SWIG_IsOK(res1)) {
20907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20908 }
20909 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20910 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20911 if (!SWIG_IsOK(res2)) {
20912 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20913 }
20914 arg2 = reinterpret_cast< wxWindow * >(argp2);
20915 if (obj2) {
20916 ecode3 = SWIG_AsVal_int(obj2, &val3);
20917 if (!SWIG_IsOK(ecode3)) {
20918 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20919 }
20920 arg3 = static_cast< int >(val3);
20921 }
20922 if (obj3) {
20923 {
20924 arg4 = &temp4;
20925 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20926 }
20927 }
20928 if (obj4) {
20929 {
20930 arg5 = &temp5;
20931 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20932 }
20933 }
20934 if (obj5) {
20935 ecode6 = SWIG_AsVal_long(obj5, &val6);
20936 if (!SWIG_IsOK(ecode6)) {
20937 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20938 }
20939 arg6 = static_cast< long >(val6);
20940 }
20941 if (obj6) {
20942 {
20943 arg7 = wxString_in_helper(obj6);
20944 if (arg7 == NULL) SWIG_fail;
20945 temp7 = true;
20946 }
20947 }
20948 {
20949 PyThreadState* __tstate = wxPyBeginAllowThreads();
20950 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20951 wxPyEndAllowThreads(__tstate);
20952 if (PyErr_Occurred()) SWIG_fail;
20953 }
20954 {
20955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20956 }
20957 {
20958 if (temp7)
20959 delete arg7;
20960 }
20961 return resultobj;
20962 fail:
20963 {
20964 if (temp7)
20965 delete arg7;
20966 }
20967 return NULL;
20968 }
20969
20970
20971 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20972 PyObject *resultobj = 0;
20973 wxNotebook *arg1 = (wxNotebook *) 0 ;
20974 int result;
20975 void *argp1 = 0 ;
20976 int res1 = 0 ;
20977 PyObject *swig_obj[1] ;
20978
20979 if (!args) SWIG_fail;
20980 swig_obj[0] = args;
20981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20982 if (!SWIG_IsOK(res1)) {
20983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20984 }
20985 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20986 {
20987 PyThreadState* __tstate = wxPyBeginAllowThreads();
20988 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20989 wxPyEndAllowThreads(__tstate);
20990 if (PyErr_Occurred()) SWIG_fail;
20991 }
20992 resultobj = SWIG_From_int(static_cast< int >(result));
20993 return resultobj;
20994 fail:
20995 return NULL;
20996 }
20997
20998
20999 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21000 PyObject *resultobj = 0;
21001 wxNotebook *arg1 = (wxNotebook *) 0 ;
21002 wxSize *arg2 = 0 ;
21003 void *argp1 = 0 ;
21004 int res1 = 0 ;
21005 wxSize temp2 ;
21006 PyObject * obj0 = 0 ;
21007 PyObject * obj1 = 0 ;
21008 char * kwnames[] = {
21009 (char *) "self",(char *) "padding", NULL
21010 };
21011
21012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
21013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21014 if (!SWIG_IsOK(res1)) {
21015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
21016 }
21017 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21018 {
21019 arg2 = &temp2;
21020 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21021 }
21022 {
21023 PyThreadState* __tstate = wxPyBeginAllowThreads();
21024 (arg1)->SetPadding((wxSize const &)*arg2);
21025 wxPyEndAllowThreads(__tstate);
21026 if (PyErr_Occurred()) SWIG_fail;
21027 }
21028 resultobj = SWIG_Py_Void();
21029 return resultobj;
21030 fail:
21031 return NULL;
21032 }
21033
21034
21035 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21036 PyObject *resultobj = 0;
21037 wxNotebook *arg1 = (wxNotebook *) 0 ;
21038 wxSize *arg2 = 0 ;
21039 void *argp1 = 0 ;
21040 int res1 = 0 ;
21041 wxSize temp2 ;
21042 PyObject * obj0 = 0 ;
21043 PyObject * obj1 = 0 ;
21044 char * kwnames[] = {
21045 (char *) "self",(char *) "sz", NULL
21046 };
21047
21048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
21049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21050 if (!SWIG_IsOK(res1)) {
21051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
21052 }
21053 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21054 {
21055 arg2 = &temp2;
21056 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21057 }
21058 {
21059 PyThreadState* __tstate = wxPyBeginAllowThreads();
21060 (arg1)->SetTabSize((wxSize const &)*arg2);
21061 wxPyEndAllowThreads(__tstate);
21062 if (PyErr_Occurred()) SWIG_fail;
21063 }
21064 resultobj = SWIG_Py_Void();
21065 return resultobj;
21066 fail:
21067 return NULL;
21068 }
21069
21070
21071 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21072 PyObject *resultobj = 0;
21073 wxNotebook *arg1 = (wxNotebook *) 0 ;
21074 wxColour result;
21075 void *argp1 = 0 ;
21076 int res1 = 0 ;
21077 PyObject *swig_obj[1] ;
21078
21079 if (!args) SWIG_fail;
21080 swig_obj[0] = args;
21081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21082 if (!SWIG_IsOK(res1)) {
21083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
21084 }
21085 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21086 {
21087 PyThreadState* __tstate = wxPyBeginAllowThreads();
21088 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
21089 wxPyEndAllowThreads(__tstate);
21090 if (PyErr_Occurred()) SWIG_fail;
21091 }
21092 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
21093 return resultobj;
21094 fail:
21095 return NULL;
21096 }
21097
21098
21099 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21100 PyObject *resultobj = 0;
21101 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
21102 SwigValueWrapper<wxVisualAttributes > result;
21103 int val1 ;
21104 int ecode1 = 0 ;
21105 PyObject * obj0 = 0 ;
21106 char * kwnames[] = {
21107 (char *) "variant", NULL
21108 };
21109
21110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
21111 if (obj0) {
21112 ecode1 = SWIG_AsVal_int(obj0, &val1);
21113 if (!SWIG_IsOK(ecode1)) {
21114 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
21115 }
21116 arg1 = static_cast< wxWindowVariant >(val1);
21117 }
21118 {
21119 if (!wxPyCheckForApp()) SWIG_fail;
21120 PyThreadState* __tstate = wxPyBeginAllowThreads();
21121 result = wxNotebook::GetClassDefaultAttributes(arg1);
21122 wxPyEndAllowThreads(__tstate);
21123 if (PyErr_Occurred()) SWIG_fail;
21124 }
21125 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
21126 return resultobj;
21127 fail:
21128 return NULL;
21129 }
21130
21131
21132 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21133 PyObject *resultobj = 0;
21134 wxNotebook *arg1 = (wxNotebook *) 0 ;
21135 int arg2 ;
21136 bool result;
21137 void *argp1 = 0 ;
21138 int res1 = 0 ;
21139 int val2 ;
21140 int ecode2 = 0 ;
21141 PyObject * obj0 = 0 ;
21142 PyObject * obj1 = 0 ;
21143 char * kwnames[] = {
21144 (char *) "self",(char *) "nPage", NULL
21145 };
21146
21147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
21148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21149 if (!SWIG_IsOK(res1)) {
21150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21151 }
21152 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21153 ecode2 = SWIG_AsVal_int(obj1, &val2);
21154 if (!SWIG_IsOK(ecode2)) {
21155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
21156 }
21157 arg2 = static_cast< int >(val2);
21158 {
21159 PyThreadState* __tstate = wxPyBeginAllowThreads();
21160 result = (bool)(arg1)->SendPageChangingEvent(arg2);
21161 wxPyEndAllowThreads(__tstate);
21162 if (PyErr_Occurred()) SWIG_fail;
21163 }
21164 {
21165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21166 }
21167 return resultobj;
21168 fail:
21169 return NULL;
21170 }
21171
21172
21173 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21174 PyObject *resultobj = 0;
21175 wxNotebook *arg1 = (wxNotebook *) 0 ;
21176 int arg2 ;
21177 int arg3 = (int) -1 ;
21178 void *argp1 = 0 ;
21179 int res1 = 0 ;
21180 int val2 ;
21181 int ecode2 = 0 ;
21182 int val3 ;
21183 int ecode3 = 0 ;
21184 PyObject * obj0 = 0 ;
21185 PyObject * obj1 = 0 ;
21186 PyObject * obj2 = 0 ;
21187 char * kwnames[] = {
21188 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
21189 };
21190
21191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21193 if (!SWIG_IsOK(res1)) {
21194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21195 }
21196 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21197 ecode2 = SWIG_AsVal_int(obj1, &val2);
21198 if (!SWIG_IsOK(ecode2)) {
21199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21200 }
21201 arg2 = static_cast< int >(val2);
21202 if (obj2) {
21203 ecode3 = SWIG_AsVal_int(obj2, &val3);
21204 if (!SWIG_IsOK(ecode3)) {
21205 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21206 }
21207 arg3 = static_cast< int >(val3);
21208 }
21209 {
21210 PyThreadState* __tstate = wxPyBeginAllowThreads();
21211 (arg1)->SendPageChangedEvent(arg2,arg3);
21212 wxPyEndAllowThreads(__tstate);
21213 if (PyErr_Occurred()) SWIG_fail;
21214 }
21215 resultobj = SWIG_Py_Void();
21216 return resultobj;
21217 fail:
21218 return NULL;
21219 }
21220
21221
21222 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21223 PyObject *obj;
21224 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21225 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21226 return SWIG_Py_Void();
21227 }
21228
21229 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21230 return SWIG_Python_InitShadowInstance(args);
21231 }
21232
21233 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21234 PyObject *resultobj = 0;
21235 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21236 int arg2 = (int) 0 ;
21237 int arg3 = (int) -1 ;
21238 int arg4 = (int) -1 ;
21239 wxNotebookEvent *result = 0 ;
21240 int val1 ;
21241 int ecode1 = 0 ;
21242 int val2 ;
21243 int ecode2 = 0 ;
21244 int val3 ;
21245 int ecode3 = 0 ;
21246 int val4 ;
21247 int ecode4 = 0 ;
21248 PyObject * obj0 = 0 ;
21249 PyObject * obj1 = 0 ;
21250 PyObject * obj2 = 0 ;
21251 PyObject * obj3 = 0 ;
21252 char * kwnames[] = {
21253 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21254 };
21255
21256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21257 if (obj0) {
21258 ecode1 = SWIG_AsVal_int(obj0, &val1);
21259 if (!SWIG_IsOK(ecode1)) {
21260 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21261 }
21262 arg1 = static_cast< wxEventType >(val1);
21263 }
21264 if (obj1) {
21265 ecode2 = SWIG_AsVal_int(obj1, &val2);
21266 if (!SWIG_IsOK(ecode2)) {
21267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21268 }
21269 arg2 = static_cast< int >(val2);
21270 }
21271 if (obj2) {
21272 ecode3 = SWIG_AsVal_int(obj2, &val3);
21273 if (!SWIG_IsOK(ecode3)) {
21274 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21275 }
21276 arg3 = static_cast< int >(val3);
21277 }
21278 if (obj3) {
21279 ecode4 = SWIG_AsVal_int(obj3, &val4);
21280 if (!SWIG_IsOK(ecode4)) {
21281 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21282 }
21283 arg4 = static_cast< int >(val4);
21284 }
21285 {
21286 PyThreadState* __tstate = wxPyBeginAllowThreads();
21287 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21288 wxPyEndAllowThreads(__tstate);
21289 if (PyErr_Occurred()) SWIG_fail;
21290 }
21291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21292 return resultobj;
21293 fail:
21294 return NULL;
21295 }
21296
21297
21298 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21299 PyObject *obj;
21300 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21301 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21302 return SWIG_Py_Void();
21303 }
21304
21305 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21306 return SWIG_Python_InitShadowInstance(args);
21307 }
21308
21309 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21310 PyObject *resultobj = 0;
21311 wxWindow *arg1 = (wxWindow *) 0 ;
21312 int arg2 = (int) -1 ;
21313 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21314 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21315 wxSize const &arg4_defvalue = wxDefaultSize ;
21316 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21317 long arg5 = (long) 0 ;
21318 wxString const &arg6_defvalue = wxPyEmptyString ;
21319 wxString *arg6 = (wxString *) &arg6_defvalue ;
21320 wxListbook *result = 0 ;
21321 void *argp1 = 0 ;
21322 int res1 = 0 ;
21323 int val2 ;
21324 int ecode2 = 0 ;
21325 wxPoint temp3 ;
21326 wxSize temp4 ;
21327 long val5 ;
21328 int ecode5 = 0 ;
21329 bool temp6 = false ;
21330 PyObject * obj0 = 0 ;
21331 PyObject * obj1 = 0 ;
21332 PyObject * obj2 = 0 ;
21333 PyObject * obj3 = 0 ;
21334 PyObject * obj4 = 0 ;
21335 PyObject * obj5 = 0 ;
21336 char * kwnames[] = {
21337 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21338 };
21339
21340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21342 if (!SWIG_IsOK(res1)) {
21343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21344 }
21345 arg1 = reinterpret_cast< wxWindow * >(argp1);
21346 if (obj1) {
21347 ecode2 = SWIG_AsVal_int(obj1, &val2);
21348 if (!SWIG_IsOK(ecode2)) {
21349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21350 }
21351 arg2 = static_cast< int >(val2);
21352 }
21353 if (obj2) {
21354 {
21355 arg3 = &temp3;
21356 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21357 }
21358 }
21359 if (obj3) {
21360 {
21361 arg4 = &temp4;
21362 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21363 }
21364 }
21365 if (obj4) {
21366 ecode5 = SWIG_AsVal_long(obj4, &val5);
21367 if (!SWIG_IsOK(ecode5)) {
21368 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21369 }
21370 arg5 = static_cast< long >(val5);
21371 }
21372 if (obj5) {
21373 {
21374 arg6 = wxString_in_helper(obj5);
21375 if (arg6 == NULL) SWIG_fail;
21376 temp6 = true;
21377 }
21378 }
21379 {
21380 if (!wxPyCheckForApp()) SWIG_fail;
21381 PyThreadState* __tstate = wxPyBeginAllowThreads();
21382 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21383 wxPyEndAllowThreads(__tstate);
21384 if (PyErr_Occurred()) SWIG_fail;
21385 }
21386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21387 {
21388 if (temp6)
21389 delete arg6;
21390 }
21391 return resultobj;
21392 fail:
21393 {
21394 if (temp6)
21395 delete arg6;
21396 }
21397 return NULL;
21398 }
21399
21400
21401 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21402 PyObject *resultobj = 0;
21403 wxListbook *result = 0 ;
21404
21405 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21406 {
21407 if (!wxPyCheckForApp()) SWIG_fail;
21408 PyThreadState* __tstate = wxPyBeginAllowThreads();
21409 result = (wxListbook *)new wxListbook();
21410 wxPyEndAllowThreads(__tstate);
21411 if (PyErr_Occurred()) SWIG_fail;
21412 }
21413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21414 return resultobj;
21415 fail:
21416 return NULL;
21417 }
21418
21419
21420 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21421 PyObject *resultobj = 0;
21422 wxListbook *arg1 = (wxListbook *) 0 ;
21423 wxWindow *arg2 = (wxWindow *) 0 ;
21424 int arg3 = (int) -1 ;
21425 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21426 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21427 wxSize const &arg5_defvalue = wxDefaultSize ;
21428 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21429 long arg6 = (long) 0 ;
21430 wxString const &arg7_defvalue = wxPyEmptyString ;
21431 wxString *arg7 = (wxString *) &arg7_defvalue ;
21432 bool result;
21433 void *argp1 = 0 ;
21434 int res1 = 0 ;
21435 void *argp2 = 0 ;
21436 int res2 = 0 ;
21437 int val3 ;
21438 int ecode3 = 0 ;
21439 wxPoint temp4 ;
21440 wxSize temp5 ;
21441 long val6 ;
21442 int ecode6 = 0 ;
21443 bool temp7 = false ;
21444 PyObject * obj0 = 0 ;
21445 PyObject * obj1 = 0 ;
21446 PyObject * obj2 = 0 ;
21447 PyObject * obj3 = 0 ;
21448 PyObject * obj4 = 0 ;
21449 PyObject * obj5 = 0 ;
21450 PyObject * obj6 = 0 ;
21451 char * kwnames[] = {
21452 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21453 };
21454
21455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21457 if (!SWIG_IsOK(res1)) {
21458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21459 }
21460 arg1 = reinterpret_cast< wxListbook * >(argp1);
21461 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21462 if (!SWIG_IsOK(res2)) {
21463 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21464 }
21465 arg2 = reinterpret_cast< wxWindow * >(argp2);
21466 if (obj2) {
21467 ecode3 = SWIG_AsVal_int(obj2, &val3);
21468 if (!SWIG_IsOK(ecode3)) {
21469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21470 }
21471 arg3 = static_cast< int >(val3);
21472 }
21473 if (obj3) {
21474 {
21475 arg4 = &temp4;
21476 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21477 }
21478 }
21479 if (obj4) {
21480 {
21481 arg5 = &temp5;
21482 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21483 }
21484 }
21485 if (obj5) {
21486 ecode6 = SWIG_AsVal_long(obj5, &val6);
21487 if (!SWIG_IsOK(ecode6)) {
21488 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21489 }
21490 arg6 = static_cast< long >(val6);
21491 }
21492 if (obj6) {
21493 {
21494 arg7 = wxString_in_helper(obj6);
21495 if (arg7 == NULL) SWIG_fail;
21496 temp7 = true;
21497 }
21498 }
21499 {
21500 PyThreadState* __tstate = wxPyBeginAllowThreads();
21501 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21502 wxPyEndAllowThreads(__tstate);
21503 if (PyErr_Occurred()) SWIG_fail;
21504 }
21505 {
21506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21507 }
21508 {
21509 if (temp7)
21510 delete arg7;
21511 }
21512 return resultobj;
21513 fail:
21514 {
21515 if (temp7)
21516 delete arg7;
21517 }
21518 return NULL;
21519 }
21520
21521
21522 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21523 PyObject *resultobj = 0;
21524 wxListbook *arg1 = (wxListbook *) 0 ;
21525 wxListView *result = 0 ;
21526 void *argp1 = 0 ;
21527 int res1 = 0 ;
21528 PyObject *swig_obj[1] ;
21529
21530 if (!args) SWIG_fail;
21531 swig_obj[0] = args;
21532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21533 if (!SWIG_IsOK(res1)) {
21534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21535 }
21536 arg1 = reinterpret_cast< wxListbook * >(argp1);
21537 {
21538 PyThreadState* __tstate = wxPyBeginAllowThreads();
21539 result = (wxListView *)(arg1)->GetListView();
21540 wxPyEndAllowThreads(__tstate);
21541 if (PyErr_Occurred()) SWIG_fail;
21542 }
21543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21544 return resultobj;
21545 fail:
21546 return NULL;
21547 }
21548
21549
21550 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21551 PyObject *obj;
21552 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21553 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21554 return SWIG_Py_Void();
21555 }
21556
21557 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21558 return SWIG_Python_InitShadowInstance(args);
21559 }
21560
21561 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21562 PyObject *resultobj = 0;
21563 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21564 int arg2 = (int) 0 ;
21565 int arg3 = (int) -1 ;
21566 int arg4 = (int) -1 ;
21567 wxListbookEvent *result = 0 ;
21568 int val1 ;
21569 int ecode1 = 0 ;
21570 int val2 ;
21571 int ecode2 = 0 ;
21572 int val3 ;
21573 int ecode3 = 0 ;
21574 int val4 ;
21575 int ecode4 = 0 ;
21576 PyObject * obj0 = 0 ;
21577 PyObject * obj1 = 0 ;
21578 PyObject * obj2 = 0 ;
21579 PyObject * obj3 = 0 ;
21580 char * kwnames[] = {
21581 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21582 };
21583
21584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21585 if (obj0) {
21586 ecode1 = SWIG_AsVal_int(obj0, &val1);
21587 if (!SWIG_IsOK(ecode1)) {
21588 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21589 }
21590 arg1 = static_cast< wxEventType >(val1);
21591 }
21592 if (obj1) {
21593 ecode2 = SWIG_AsVal_int(obj1, &val2);
21594 if (!SWIG_IsOK(ecode2)) {
21595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21596 }
21597 arg2 = static_cast< int >(val2);
21598 }
21599 if (obj2) {
21600 ecode3 = SWIG_AsVal_int(obj2, &val3);
21601 if (!SWIG_IsOK(ecode3)) {
21602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21603 }
21604 arg3 = static_cast< int >(val3);
21605 }
21606 if (obj3) {
21607 ecode4 = SWIG_AsVal_int(obj3, &val4);
21608 if (!SWIG_IsOK(ecode4)) {
21609 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21610 }
21611 arg4 = static_cast< int >(val4);
21612 }
21613 {
21614 PyThreadState* __tstate = wxPyBeginAllowThreads();
21615 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21616 wxPyEndAllowThreads(__tstate);
21617 if (PyErr_Occurred()) SWIG_fail;
21618 }
21619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21620 return resultobj;
21621 fail:
21622 return NULL;
21623 }
21624
21625
21626 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21627 PyObject *obj;
21628 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21629 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21630 return SWIG_Py_Void();
21631 }
21632
21633 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21634 return SWIG_Python_InitShadowInstance(args);
21635 }
21636
21637 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21638 PyObject *resultobj = 0;
21639 wxWindow *arg1 = (wxWindow *) 0 ;
21640 int arg2 ;
21641 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21642 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21643 wxSize const &arg4_defvalue = wxDefaultSize ;
21644 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21645 long arg5 = (long) 0 ;
21646 wxString const &arg6_defvalue = wxPyEmptyString ;
21647 wxString *arg6 = (wxString *) &arg6_defvalue ;
21648 wxChoicebook *result = 0 ;
21649 void *argp1 = 0 ;
21650 int res1 = 0 ;
21651 int val2 ;
21652 int ecode2 = 0 ;
21653 wxPoint temp3 ;
21654 wxSize temp4 ;
21655 long val5 ;
21656 int ecode5 = 0 ;
21657 bool temp6 = false ;
21658 PyObject * obj0 = 0 ;
21659 PyObject * obj1 = 0 ;
21660 PyObject * obj2 = 0 ;
21661 PyObject * obj3 = 0 ;
21662 PyObject * obj4 = 0 ;
21663 PyObject * obj5 = 0 ;
21664 char * kwnames[] = {
21665 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21666 };
21667
21668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21670 if (!SWIG_IsOK(res1)) {
21671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21672 }
21673 arg1 = reinterpret_cast< wxWindow * >(argp1);
21674 ecode2 = SWIG_AsVal_int(obj1, &val2);
21675 if (!SWIG_IsOK(ecode2)) {
21676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21677 }
21678 arg2 = static_cast< int >(val2);
21679 if (obj2) {
21680 {
21681 arg3 = &temp3;
21682 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21683 }
21684 }
21685 if (obj3) {
21686 {
21687 arg4 = &temp4;
21688 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21689 }
21690 }
21691 if (obj4) {
21692 ecode5 = SWIG_AsVal_long(obj4, &val5);
21693 if (!SWIG_IsOK(ecode5)) {
21694 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21695 }
21696 arg5 = static_cast< long >(val5);
21697 }
21698 if (obj5) {
21699 {
21700 arg6 = wxString_in_helper(obj5);
21701 if (arg6 == NULL) SWIG_fail;
21702 temp6 = true;
21703 }
21704 }
21705 {
21706 if (!wxPyCheckForApp()) SWIG_fail;
21707 PyThreadState* __tstate = wxPyBeginAllowThreads();
21708 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21709 wxPyEndAllowThreads(__tstate);
21710 if (PyErr_Occurred()) SWIG_fail;
21711 }
21712 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21713 {
21714 if (temp6)
21715 delete arg6;
21716 }
21717 return resultobj;
21718 fail:
21719 {
21720 if (temp6)
21721 delete arg6;
21722 }
21723 return NULL;
21724 }
21725
21726
21727 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21728 PyObject *resultobj = 0;
21729 wxChoicebook *result = 0 ;
21730
21731 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21732 {
21733 if (!wxPyCheckForApp()) SWIG_fail;
21734 PyThreadState* __tstate = wxPyBeginAllowThreads();
21735 result = (wxChoicebook *)new wxChoicebook();
21736 wxPyEndAllowThreads(__tstate);
21737 if (PyErr_Occurred()) SWIG_fail;
21738 }
21739 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21740 return resultobj;
21741 fail:
21742 return NULL;
21743 }
21744
21745
21746 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21747 PyObject *resultobj = 0;
21748 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21749 wxWindow *arg2 = (wxWindow *) 0 ;
21750 int arg3 ;
21751 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21752 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21753 wxSize const &arg5_defvalue = wxDefaultSize ;
21754 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21755 long arg6 = (long) 0 ;
21756 wxString const &arg7_defvalue = wxPyEmptyString ;
21757 wxString *arg7 = (wxString *) &arg7_defvalue ;
21758 bool result;
21759 void *argp1 = 0 ;
21760 int res1 = 0 ;
21761 void *argp2 = 0 ;
21762 int res2 = 0 ;
21763 int val3 ;
21764 int ecode3 = 0 ;
21765 wxPoint temp4 ;
21766 wxSize temp5 ;
21767 long val6 ;
21768 int ecode6 = 0 ;
21769 bool temp7 = false ;
21770 PyObject * obj0 = 0 ;
21771 PyObject * obj1 = 0 ;
21772 PyObject * obj2 = 0 ;
21773 PyObject * obj3 = 0 ;
21774 PyObject * obj4 = 0 ;
21775 PyObject * obj5 = 0 ;
21776 PyObject * obj6 = 0 ;
21777 char * kwnames[] = {
21778 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21779 };
21780
21781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21783 if (!SWIG_IsOK(res1)) {
21784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21785 }
21786 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21787 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21788 if (!SWIG_IsOK(res2)) {
21789 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21790 }
21791 arg2 = reinterpret_cast< wxWindow * >(argp2);
21792 ecode3 = SWIG_AsVal_int(obj2, &val3);
21793 if (!SWIG_IsOK(ecode3)) {
21794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21795 }
21796 arg3 = static_cast< int >(val3);
21797 if (obj3) {
21798 {
21799 arg4 = &temp4;
21800 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21801 }
21802 }
21803 if (obj4) {
21804 {
21805 arg5 = &temp5;
21806 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21807 }
21808 }
21809 if (obj5) {
21810 ecode6 = SWIG_AsVal_long(obj5, &val6);
21811 if (!SWIG_IsOK(ecode6)) {
21812 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21813 }
21814 arg6 = static_cast< long >(val6);
21815 }
21816 if (obj6) {
21817 {
21818 arg7 = wxString_in_helper(obj6);
21819 if (arg7 == NULL) SWIG_fail;
21820 temp7 = true;
21821 }
21822 }
21823 {
21824 PyThreadState* __tstate = wxPyBeginAllowThreads();
21825 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21826 wxPyEndAllowThreads(__tstate);
21827 if (PyErr_Occurred()) SWIG_fail;
21828 }
21829 {
21830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21831 }
21832 {
21833 if (temp7)
21834 delete arg7;
21835 }
21836 return resultobj;
21837 fail:
21838 {
21839 if (temp7)
21840 delete arg7;
21841 }
21842 return NULL;
21843 }
21844
21845
21846 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21847 PyObject *resultobj = 0;
21848 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21849 wxChoice *result = 0 ;
21850 void *argp1 = 0 ;
21851 int res1 = 0 ;
21852 PyObject *swig_obj[1] ;
21853
21854 if (!args) SWIG_fail;
21855 swig_obj[0] = args;
21856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21857 if (!SWIG_IsOK(res1)) {
21858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21859 }
21860 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21861 {
21862 PyThreadState* __tstate = wxPyBeginAllowThreads();
21863 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21864 wxPyEndAllowThreads(__tstate);
21865 if (PyErr_Occurred()) SWIG_fail;
21866 }
21867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21868 return resultobj;
21869 fail:
21870 return NULL;
21871 }
21872
21873
21874 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21875 PyObject *obj;
21876 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21877 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21878 return SWIG_Py_Void();
21879 }
21880
21881 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21882 return SWIG_Python_InitShadowInstance(args);
21883 }
21884
21885 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21886 PyObject *resultobj = 0;
21887 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21888 int arg2 = (int) 0 ;
21889 int arg3 = (int) -1 ;
21890 int arg4 = (int) -1 ;
21891 wxChoicebookEvent *result = 0 ;
21892 int val1 ;
21893 int ecode1 = 0 ;
21894 int val2 ;
21895 int ecode2 = 0 ;
21896 int val3 ;
21897 int ecode3 = 0 ;
21898 int val4 ;
21899 int ecode4 = 0 ;
21900 PyObject * obj0 = 0 ;
21901 PyObject * obj1 = 0 ;
21902 PyObject * obj2 = 0 ;
21903 PyObject * obj3 = 0 ;
21904 char * kwnames[] = {
21905 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21906 };
21907
21908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21909 if (obj0) {
21910 ecode1 = SWIG_AsVal_int(obj0, &val1);
21911 if (!SWIG_IsOK(ecode1)) {
21912 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21913 }
21914 arg1 = static_cast< wxEventType >(val1);
21915 }
21916 if (obj1) {
21917 ecode2 = SWIG_AsVal_int(obj1, &val2);
21918 if (!SWIG_IsOK(ecode2)) {
21919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21920 }
21921 arg2 = static_cast< int >(val2);
21922 }
21923 if (obj2) {
21924 ecode3 = SWIG_AsVal_int(obj2, &val3);
21925 if (!SWIG_IsOK(ecode3)) {
21926 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21927 }
21928 arg3 = static_cast< int >(val3);
21929 }
21930 if (obj3) {
21931 ecode4 = SWIG_AsVal_int(obj3, &val4);
21932 if (!SWIG_IsOK(ecode4)) {
21933 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21934 }
21935 arg4 = static_cast< int >(val4);
21936 }
21937 {
21938 PyThreadState* __tstate = wxPyBeginAllowThreads();
21939 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21940 wxPyEndAllowThreads(__tstate);
21941 if (PyErr_Occurred()) SWIG_fail;
21942 }
21943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21944 return resultobj;
21945 fail:
21946 return NULL;
21947 }
21948
21949
21950 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21951 PyObject *obj;
21952 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21953 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21954 return SWIG_Py_Void();
21955 }
21956
21957 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21958 return SWIG_Python_InitShadowInstance(args);
21959 }
21960
21961 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21962 PyObject *resultobj = 0;
21963 wxWindow *arg1 = (wxWindow *) 0 ;
21964 int arg2 ;
21965 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21966 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21967 wxSize const &arg4_defvalue = wxDefaultSize ;
21968 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21969 long arg5 = (long) wxBK_DEFAULT ;
21970 wxString const &arg6_defvalue = wxPyEmptyString ;
21971 wxString *arg6 = (wxString *) &arg6_defvalue ;
21972 wxTreebook *result = 0 ;
21973 void *argp1 = 0 ;
21974 int res1 = 0 ;
21975 int val2 ;
21976 int ecode2 = 0 ;
21977 wxPoint temp3 ;
21978 wxSize temp4 ;
21979 long val5 ;
21980 int ecode5 = 0 ;
21981 bool temp6 = false ;
21982 PyObject * obj0 = 0 ;
21983 PyObject * obj1 = 0 ;
21984 PyObject * obj2 = 0 ;
21985 PyObject * obj3 = 0 ;
21986 PyObject * obj4 = 0 ;
21987 PyObject * obj5 = 0 ;
21988 char * kwnames[] = {
21989 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21990 };
21991
21992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21994 if (!SWIG_IsOK(res1)) {
21995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21996 }
21997 arg1 = reinterpret_cast< wxWindow * >(argp1);
21998 ecode2 = SWIG_AsVal_int(obj1, &val2);
21999 if (!SWIG_IsOK(ecode2)) {
22000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
22001 }
22002 arg2 = static_cast< int >(val2);
22003 if (obj2) {
22004 {
22005 arg3 = &temp3;
22006 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22007 }
22008 }
22009 if (obj3) {
22010 {
22011 arg4 = &temp4;
22012 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22013 }
22014 }
22015 if (obj4) {
22016 ecode5 = SWIG_AsVal_long(obj4, &val5);
22017 if (!SWIG_IsOK(ecode5)) {
22018 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
22019 }
22020 arg5 = static_cast< long >(val5);
22021 }
22022 if (obj5) {
22023 {
22024 arg6 = wxString_in_helper(obj5);
22025 if (arg6 == NULL) SWIG_fail;
22026 temp6 = true;
22027 }
22028 }
22029 {
22030 if (!wxPyCheckForApp()) SWIG_fail;
22031 PyThreadState* __tstate = wxPyBeginAllowThreads();
22032 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22033 wxPyEndAllowThreads(__tstate);
22034 if (PyErr_Occurred()) SWIG_fail;
22035 }
22036 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
22037 {
22038 if (temp6)
22039 delete arg6;
22040 }
22041 return resultobj;
22042 fail:
22043 {
22044 if (temp6)
22045 delete arg6;
22046 }
22047 return NULL;
22048 }
22049
22050
22051 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22052 PyObject *resultobj = 0;
22053 wxTreebook *result = 0 ;
22054
22055 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
22056 {
22057 if (!wxPyCheckForApp()) SWIG_fail;
22058 PyThreadState* __tstate = wxPyBeginAllowThreads();
22059 result = (wxTreebook *)new wxTreebook();
22060 wxPyEndAllowThreads(__tstate);
22061 if (PyErr_Occurred()) SWIG_fail;
22062 }
22063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
22064 return resultobj;
22065 fail:
22066 return NULL;
22067 }
22068
22069
22070 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22071 PyObject *resultobj = 0;
22072 wxTreebook *arg1 = (wxTreebook *) 0 ;
22073 wxWindow *arg2 = (wxWindow *) 0 ;
22074 int arg3 ;
22075 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22076 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22077 wxSize const &arg5_defvalue = wxDefaultSize ;
22078 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22079 long arg6 = (long) wxBK_DEFAULT ;
22080 wxString const &arg7_defvalue = wxPyEmptyString ;
22081 wxString *arg7 = (wxString *) &arg7_defvalue ;
22082 bool result;
22083 void *argp1 = 0 ;
22084 int res1 = 0 ;
22085 void *argp2 = 0 ;
22086 int res2 = 0 ;
22087 int val3 ;
22088 int ecode3 = 0 ;
22089 wxPoint temp4 ;
22090 wxSize temp5 ;
22091 long val6 ;
22092 int ecode6 = 0 ;
22093 bool temp7 = false ;
22094 PyObject * obj0 = 0 ;
22095 PyObject * obj1 = 0 ;
22096 PyObject * obj2 = 0 ;
22097 PyObject * obj3 = 0 ;
22098 PyObject * obj4 = 0 ;
22099 PyObject * obj5 = 0 ;
22100 PyObject * obj6 = 0 ;
22101 char * kwnames[] = {
22102 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22103 };
22104
22105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22107 if (!SWIG_IsOK(res1)) {
22108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
22109 }
22110 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22111 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22112 if (!SWIG_IsOK(res2)) {
22113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22114 }
22115 arg2 = reinterpret_cast< wxWindow * >(argp2);
22116 ecode3 = SWIG_AsVal_int(obj2, &val3);
22117 if (!SWIG_IsOK(ecode3)) {
22118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
22119 }
22120 arg3 = static_cast< int >(val3);
22121 if (obj3) {
22122 {
22123 arg4 = &temp4;
22124 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22125 }
22126 }
22127 if (obj4) {
22128 {
22129 arg5 = &temp5;
22130 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22131 }
22132 }
22133 if (obj5) {
22134 ecode6 = SWIG_AsVal_long(obj5, &val6);
22135 if (!SWIG_IsOK(ecode6)) {
22136 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
22137 }
22138 arg6 = static_cast< long >(val6);
22139 }
22140 if (obj6) {
22141 {
22142 arg7 = wxString_in_helper(obj6);
22143 if (arg7 == NULL) SWIG_fail;
22144 temp7 = true;
22145 }
22146 }
22147 {
22148 PyThreadState* __tstate = wxPyBeginAllowThreads();
22149 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22150 wxPyEndAllowThreads(__tstate);
22151 if (PyErr_Occurred()) SWIG_fail;
22152 }
22153 {
22154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22155 }
22156 {
22157 if (temp7)
22158 delete arg7;
22159 }
22160 return resultobj;
22161 fail:
22162 {
22163 if (temp7)
22164 delete arg7;
22165 }
22166 return NULL;
22167 }
22168
22169
22170 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22171 PyObject *resultobj = 0;
22172 wxTreebook *arg1 = (wxTreebook *) 0 ;
22173 size_t arg2 ;
22174 wxWindow *arg3 = (wxWindow *) 0 ;
22175 wxString *arg4 = 0 ;
22176 bool arg5 = (bool) false ;
22177 int arg6 = (int) wxNOT_FOUND ;
22178 bool result;
22179 void *argp1 = 0 ;
22180 int res1 = 0 ;
22181 size_t val2 ;
22182 int ecode2 = 0 ;
22183 void *argp3 = 0 ;
22184 int res3 = 0 ;
22185 bool temp4 = false ;
22186 bool val5 ;
22187 int ecode5 = 0 ;
22188 int val6 ;
22189 int ecode6 = 0 ;
22190 PyObject * obj0 = 0 ;
22191 PyObject * obj1 = 0 ;
22192 PyObject * obj2 = 0 ;
22193 PyObject * obj3 = 0 ;
22194 PyObject * obj4 = 0 ;
22195 PyObject * obj5 = 0 ;
22196 char * kwnames[] = {
22197 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22198 };
22199
22200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22202 if (!SWIG_IsOK(res1)) {
22203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22204 }
22205 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22206 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22207 if (!SWIG_IsOK(ecode2)) {
22208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22209 }
22210 arg2 = static_cast< size_t >(val2);
22211 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22212 if (!SWIG_IsOK(res3)) {
22213 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22214 }
22215 arg3 = reinterpret_cast< wxWindow * >(argp3);
22216 {
22217 arg4 = wxString_in_helper(obj3);
22218 if (arg4 == NULL) SWIG_fail;
22219 temp4 = true;
22220 }
22221 if (obj4) {
22222 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22223 if (!SWIG_IsOK(ecode5)) {
22224 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22225 }
22226 arg5 = static_cast< bool >(val5);
22227 }
22228 if (obj5) {
22229 ecode6 = SWIG_AsVal_int(obj5, &val6);
22230 if (!SWIG_IsOK(ecode6)) {
22231 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22232 }
22233 arg6 = static_cast< int >(val6);
22234 }
22235 {
22236 PyThreadState* __tstate = wxPyBeginAllowThreads();
22237 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22238 wxPyEndAllowThreads(__tstate);
22239 if (PyErr_Occurred()) SWIG_fail;
22240 }
22241 {
22242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22243 }
22244 {
22245 if (temp4)
22246 delete arg4;
22247 }
22248 return resultobj;
22249 fail:
22250 {
22251 if (temp4)
22252 delete arg4;
22253 }
22254 return NULL;
22255 }
22256
22257
22258 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22259 PyObject *resultobj = 0;
22260 wxTreebook *arg1 = (wxTreebook *) 0 ;
22261 wxWindow *arg2 = (wxWindow *) 0 ;
22262 wxString *arg3 = 0 ;
22263 bool arg4 = (bool) false ;
22264 int arg5 = (int) wxNOT_FOUND ;
22265 bool result;
22266 void *argp1 = 0 ;
22267 int res1 = 0 ;
22268 void *argp2 = 0 ;
22269 int res2 = 0 ;
22270 bool temp3 = false ;
22271 bool val4 ;
22272 int ecode4 = 0 ;
22273 int val5 ;
22274 int ecode5 = 0 ;
22275 PyObject * obj0 = 0 ;
22276 PyObject * obj1 = 0 ;
22277 PyObject * obj2 = 0 ;
22278 PyObject * obj3 = 0 ;
22279 PyObject * obj4 = 0 ;
22280 char * kwnames[] = {
22281 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22282 };
22283
22284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22286 if (!SWIG_IsOK(res1)) {
22287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22288 }
22289 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22290 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22291 if (!SWIG_IsOK(res2)) {
22292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22293 }
22294 arg2 = reinterpret_cast< wxWindow * >(argp2);
22295 {
22296 arg3 = wxString_in_helper(obj2);
22297 if (arg3 == NULL) SWIG_fail;
22298 temp3 = true;
22299 }
22300 if (obj3) {
22301 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22302 if (!SWIG_IsOK(ecode4)) {
22303 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22304 }
22305 arg4 = static_cast< bool >(val4);
22306 }
22307 if (obj4) {
22308 ecode5 = SWIG_AsVal_int(obj4, &val5);
22309 if (!SWIG_IsOK(ecode5)) {
22310 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22311 }
22312 arg5 = static_cast< int >(val5);
22313 }
22314 {
22315 PyThreadState* __tstate = wxPyBeginAllowThreads();
22316 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22317 wxPyEndAllowThreads(__tstate);
22318 if (PyErr_Occurred()) SWIG_fail;
22319 }
22320 {
22321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22322 }
22323 {
22324 if (temp3)
22325 delete arg3;
22326 }
22327 return resultobj;
22328 fail:
22329 {
22330 if (temp3)
22331 delete arg3;
22332 }
22333 return NULL;
22334 }
22335
22336
22337 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22338 PyObject *resultobj = 0;
22339 wxTreebook *arg1 = (wxTreebook *) 0 ;
22340 size_t arg2 ;
22341 bool result;
22342 void *argp1 = 0 ;
22343 int res1 = 0 ;
22344 size_t val2 ;
22345 int ecode2 = 0 ;
22346 PyObject * obj0 = 0 ;
22347 PyObject * obj1 = 0 ;
22348 char * kwnames[] = {
22349 (char *) "self",(char *) "pos", NULL
22350 };
22351
22352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22354 if (!SWIG_IsOK(res1)) {
22355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22356 }
22357 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22358 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22359 if (!SWIG_IsOK(ecode2)) {
22360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22361 }
22362 arg2 = static_cast< size_t >(val2);
22363 {
22364 PyThreadState* __tstate = wxPyBeginAllowThreads();
22365 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22366 wxPyEndAllowThreads(__tstate);
22367 if (PyErr_Occurred()) SWIG_fail;
22368 }
22369 {
22370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22371 }
22372 return resultobj;
22373 fail:
22374 return NULL;
22375 }
22376
22377
22378 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22379 PyObject *resultobj = 0;
22380 wxTreebook *arg1 = (wxTreebook *) 0 ;
22381 size_t arg2 ;
22382 bool arg3 = (bool) true ;
22383 bool result;
22384 void *argp1 = 0 ;
22385 int res1 = 0 ;
22386 size_t val2 ;
22387 int ecode2 = 0 ;
22388 bool val3 ;
22389 int ecode3 = 0 ;
22390 PyObject * obj0 = 0 ;
22391 PyObject * obj1 = 0 ;
22392 PyObject * obj2 = 0 ;
22393 char * kwnames[] = {
22394 (char *) "self",(char *) "pos",(char *) "expand", NULL
22395 };
22396
22397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22399 if (!SWIG_IsOK(res1)) {
22400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22401 }
22402 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22403 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22404 if (!SWIG_IsOK(ecode2)) {
22405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22406 }
22407 arg2 = static_cast< size_t >(val2);
22408 if (obj2) {
22409 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22410 if (!SWIG_IsOK(ecode3)) {
22411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22412 }
22413 arg3 = static_cast< bool >(val3);
22414 }
22415 {
22416 PyThreadState* __tstate = wxPyBeginAllowThreads();
22417 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22418 wxPyEndAllowThreads(__tstate);
22419 if (PyErr_Occurred()) SWIG_fail;
22420 }
22421 {
22422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22423 }
22424 return resultobj;
22425 fail:
22426 return NULL;
22427 }
22428
22429
22430 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22431 PyObject *resultobj = 0;
22432 wxTreebook *arg1 = (wxTreebook *) 0 ;
22433 size_t arg2 ;
22434 bool result;
22435 void *argp1 = 0 ;
22436 int res1 = 0 ;
22437 size_t val2 ;
22438 int ecode2 = 0 ;
22439 PyObject * obj0 = 0 ;
22440 PyObject * obj1 = 0 ;
22441 char * kwnames[] = {
22442 (char *) "self",(char *) "pos", NULL
22443 };
22444
22445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22447 if (!SWIG_IsOK(res1)) {
22448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22449 }
22450 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22451 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22452 if (!SWIG_IsOK(ecode2)) {
22453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22454 }
22455 arg2 = static_cast< size_t >(val2);
22456 {
22457 PyThreadState* __tstate = wxPyBeginAllowThreads();
22458 result = (bool)(arg1)->CollapseNode(arg2);
22459 wxPyEndAllowThreads(__tstate);
22460 if (PyErr_Occurred()) SWIG_fail;
22461 }
22462 {
22463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22464 }
22465 return resultobj;
22466 fail:
22467 return NULL;
22468 }
22469
22470
22471 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22472 PyObject *resultobj = 0;
22473 wxTreebook *arg1 = (wxTreebook *) 0 ;
22474 size_t arg2 ;
22475 int result;
22476 void *argp1 = 0 ;
22477 int res1 = 0 ;
22478 size_t val2 ;
22479 int ecode2 = 0 ;
22480 PyObject * obj0 = 0 ;
22481 PyObject * obj1 = 0 ;
22482 char * kwnames[] = {
22483 (char *) "self",(char *) "pos", NULL
22484 };
22485
22486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22488 if (!SWIG_IsOK(res1)) {
22489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22490 }
22491 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22492 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22493 if (!SWIG_IsOK(ecode2)) {
22494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22495 }
22496 arg2 = static_cast< size_t >(val2);
22497 {
22498 PyThreadState* __tstate = wxPyBeginAllowThreads();
22499 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22500 wxPyEndAllowThreads(__tstate);
22501 if (PyErr_Occurred()) SWIG_fail;
22502 }
22503 resultobj = SWIG_From_int(static_cast< int >(result));
22504 return resultobj;
22505 fail:
22506 return NULL;
22507 }
22508
22509
22510 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22511 PyObject *resultobj = 0;
22512 wxTreebook *arg1 = (wxTreebook *) 0 ;
22513 wxPyTreeCtrl *result = 0 ;
22514 void *argp1 = 0 ;
22515 int res1 = 0 ;
22516 PyObject *swig_obj[1] ;
22517
22518 if (!args) SWIG_fail;
22519 swig_obj[0] = args;
22520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22521 if (!SWIG_IsOK(res1)) {
22522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22523 }
22524 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22525 {
22526 PyThreadState* __tstate = wxPyBeginAllowThreads();
22527 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22528 wxPyEndAllowThreads(__tstate);
22529 if (PyErr_Occurred()) SWIG_fail;
22530 }
22531 {
22532 resultobj = wxPyMake_wxObject(result, (bool)0);
22533 }
22534 return resultobj;
22535 fail:
22536 return NULL;
22537 }
22538
22539
22540 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22541 PyObject *obj;
22542 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22543 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22544 return SWIG_Py_Void();
22545 }
22546
22547 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22548 return SWIG_Python_InitShadowInstance(args);
22549 }
22550
22551 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22552 PyObject *resultobj = 0;
22553 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22554 int arg2 = (int) 0 ;
22555 int arg3 = (int) wxNOT_FOUND ;
22556 int arg4 = (int) wxNOT_FOUND ;
22557 wxTreebookEvent *result = 0 ;
22558 int val1 ;
22559 int ecode1 = 0 ;
22560 int val2 ;
22561 int ecode2 = 0 ;
22562 int val3 ;
22563 int ecode3 = 0 ;
22564 int val4 ;
22565 int ecode4 = 0 ;
22566 PyObject * obj0 = 0 ;
22567 PyObject * obj1 = 0 ;
22568 PyObject * obj2 = 0 ;
22569 PyObject * obj3 = 0 ;
22570 char * kwnames[] = {
22571 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22572 };
22573
22574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22575 if (obj0) {
22576 ecode1 = SWIG_AsVal_int(obj0, &val1);
22577 if (!SWIG_IsOK(ecode1)) {
22578 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22579 }
22580 arg1 = static_cast< wxEventType >(val1);
22581 }
22582 if (obj1) {
22583 ecode2 = SWIG_AsVal_int(obj1, &val2);
22584 if (!SWIG_IsOK(ecode2)) {
22585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22586 }
22587 arg2 = static_cast< int >(val2);
22588 }
22589 if (obj2) {
22590 ecode3 = SWIG_AsVal_int(obj2, &val3);
22591 if (!SWIG_IsOK(ecode3)) {
22592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22593 }
22594 arg3 = static_cast< int >(val3);
22595 }
22596 if (obj3) {
22597 ecode4 = SWIG_AsVal_int(obj3, &val4);
22598 if (!SWIG_IsOK(ecode4)) {
22599 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22600 }
22601 arg4 = static_cast< int >(val4);
22602 }
22603 {
22604 PyThreadState* __tstate = wxPyBeginAllowThreads();
22605 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22606 wxPyEndAllowThreads(__tstate);
22607 if (PyErr_Occurred()) SWIG_fail;
22608 }
22609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22610 return resultobj;
22611 fail:
22612 return NULL;
22613 }
22614
22615
22616 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22617 PyObject *obj;
22618 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22619 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22620 return SWIG_Py_Void();
22621 }
22622
22623 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22624 return SWIG_Python_InitShadowInstance(args);
22625 }
22626
22627 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22628 PyObject *resultobj = 0;
22629 wxWindow *arg1 = (wxWindow *) 0 ;
22630 int arg2 ;
22631 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22632 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22633 wxSize const &arg4_defvalue = wxDefaultSize ;
22634 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22635 long arg5 = (long) wxBK_DEFAULT ;
22636 wxString const &arg6_defvalue = wxPyEmptyString ;
22637 wxString *arg6 = (wxString *) &arg6_defvalue ;
22638 wxToolbook *result = 0 ;
22639 void *argp1 = 0 ;
22640 int res1 = 0 ;
22641 int val2 ;
22642 int ecode2 = 0 ;
22643 wxPoint temp3 ;
22644 wxSize temp4 ;
22645 long val5 ;
22646 int ecode5 = 0 ;
22647 bool temp6 = false ;
22648 PyObject * obj0 = 0 ;
22649 PyObject * obj1 = 0 ;
22650 PyObject * obj2 = 0 ;
22651 PyObject * obj3 = 0 ;
22652 PyObject * obj4 = 0 ;
22653 PyObject * obj5 = 0 ;
22654 char * kwnames[] = {
22655 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22656 };
22657
22658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22660 if (!SWIG_IsOK(res1)) {
22661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22662 }
22663 arg1 = reinterpret_cast< wxWindow * >(argp1);
22664 ecode2 = SWIG_AsVal_int(obj1, &val2);
22665 if (!SWIG_IsOK(ecode2)) {
22666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22667 }
22668 arg2 = static_cast< int >(val2);
22669 if (obj2) {
22670 {
22671 arg3 = &temp3;
22672 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22673 }
22674 }
22675 if (obj3) {
22676 {
22677 arg4 = &temp4;
22678 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22679 }
22680 }
22681 if (obj4) {
22682 ecode5 = SWIG_AsVal_long(obj4, &val5);
22683 if (!SWIG_IsOK(ecode5)) {
22684 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22685 }
22686 arg5 = static_cast< long >(val5);
22687 }
22688 if (obj5) {
22689 {
22690 arg6 = wxString_in_helper(obj5);
22691 if (arg6 == NULL) SWIG_fail;
22692 temp6 = true;
22693 }
22694 }
22695 {
22696 PyThreadState* __tstate = wxPyBeginAllowThreads();
22697 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22698 wxPyEndAllowThreads(__tstate);
22699 if (PyErr_Occurred()) SWIG_fail;
22700 }
22701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22702 {
22703 if (temp6)
22704 delete arg6;
22705 }
22706 return resultobj;
22707 fail:
22708 {
22709 if (temp6)
22710 delete arg6;
22711 }
22712 return NULL;
22713 }
22714
22715
22716 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22717 PyObject *resultobj = 0;
22718 wxToolbook *result = 0 ;
22719
22720 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22721 {
22722 PyThreadState* __tstate = wxPyBeginAllowThreads();
22723 result = (wxToolbook *)new wxToolbook();
22724 wxPyEndAllowThreads(__tstate);
22725 if (PyErr_Occurred()) SWIG_fail;
22726 }
22727 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22728 return resultobj;
22729 fail:
22730 return NULL;
22731 }
22732
22733
22734 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22735 PyObject *resultobj = 0;
22736 wxToolbook *arg1 = (wxToolbook *) 0 ;
22737 wxWindow *arg2 = (wxWindow *) 0 ;
22738 int arg3 ;
22739 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22740 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22741 wxSize const &arg5_defvalue = wxDefaultSize ;
22742 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22743 long arg6 = (long) 0 ;
22744 wxString const &arg7_defvalue = wxEmptyString ;
22745 wxString *arg7 = (wxString *) &arg7_defvalue ;
22746 bool result;
22747 void *argp1 = 0 ;
22748 int res1 = 0 ;
22749 void *argp2 = 0 ;
22750 int res2 = 0 ;
22751 int val3 ;
22752 int ecode3 = 0 ;
22753 wxPoint temp4 ;
22754 wxSize temp5 ;
22755 long val6 ;
22756 int ecode6 = 0 ;
22757 bool temp7 = false ;
22758 PyObject * obj0 = 0 ;
22759 PyObject * obj1 = 0 ;
22760 PyObject * obj2 = 0 ;
22761 PyObject * obj3 = 0 ;
22762 PyObject * obj4 = 0 ;
22763 PyObject * obj5 = 0 ;
22764 PyObject * obj6 = 0 ;
22765 char * kwnames[] = {
22766 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22767 };
22768
22769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22771 if (!SWIG_IsOK(res1)) {
22772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22773 }
22774 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22775 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22776 if (!SWIG_IsOK(res2)) {
22777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22778 }
22779 arg2 = reinterpret_cast< wxWindow * >(argp2);
22780 ecode3 = SWIG_AsVal_int(obj2, &val3);
22781 if (!SWIG_IsOK(ecode3)) {
22782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22783 }
22784 arg3 = static_cast< int >(val3);
22785 if (obj3) {
22786 {
22787 arg4 = &temp4;
22788 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22789 }
22790 }
22791 if (obj4) {
22792 {
22793 arg5 = &temp5;
22794 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22795 }
22796 }
22797 if (obj5) {
22798 ecode6 = SWIG_AsVal_long(obj5, &val6);
22799 if (!SWIG_IsOK(ecode6)) {
22800 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22801 }
22802 arg6 = static_cast< long >(val6);
22803 }
22804 if (obj6) {
22805 {
22806 arg7 = wxString_in_helper(obj6);
22807 if (arg7 == NULL) SWIG_fail;
22808 temp7 = true;
22809 }
22810 }
22811 {
22812 PyThreadState* __tstate = wxPyBeginAllowThreads();
22813 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22814 wxPyEndAllowThreads(__tstate);
22815 if (PyErr_Occurred()) SWIG_fail;
22816 }
22817 {
22818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22819 }
22820 {
22821 if (temp7)
22822 delete arg7;
22823 }
22824 return resultobj;
22825 fail:
22826 {
22827 if (temp7)
22828 delete arg7;
22829 }
22830 return NULL;
22831 }
22832
22833
22834 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22835 PyObject *resultobj = 0;
22836 wxToolbook *arg1 = (wxToolbook *) 0 ;
22837 wxToolBarBase *result = 0 ;
22838 void *argp1 = 0 ;
22839 int res1 = 0 ;
22840 PyObject *swig_obj[1] ;
22841
22842 if (!args) SWIG_fail;
22843 swig_obj[0] = args;
22844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22845 if (!SWIG_IsOK(res1)) {
22846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22847 }
22848 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22849 {
22850 PyThreadState* __tstate = wxPyBeginAllowThreads();
22851 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22852 wxPyEndAllowThreads(__tstate);
22853 if (PyErr_Occurred()) SWIG_fail;
22854 }
22855 {
22856 resultobj = wxPyMake_wxObject(result, (bool)0);
22857 }
22858 return resultobj;
22859 fail:
22860 return NULL;
22861 }
22862
22863
22864 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22865 PyObject *resultobj = 0;
22866 wxToolbook *arg1 = (wxToolbook *) 0 ;
22867 void *argp1 = 0 ;
22868 int res1 = 0 ;
22869 PyObject *swig_obj[1] ;
22870
22871 if (!args) SWIG_fail;
22872 swig_obj[0] = args;
22873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22874 if (!SWIG_IsOK(res1)) {
22875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22876 }
22877 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22878 {
22879 PyThreadState* __tstate = wxPyBeginAllowThreads();
22880 (arg1)->Realize();
22881 wxPyEndAllowThreads(__tstate);
22882 if (PyErr_Occurred()) SWIG_fail;
22883 }
22884 resultobj = SWIG_Py_Void();
22885 return resultobj;
22886 fail:
22887 return NULL;
22888 }
22889
22890
22891 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22892 PyObject *obj;
22893 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22894 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22895 return SWIG_Py_Void();
22896 }
22897
22898 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22899 return SWIG_Python_InitShadowInstance(args);
22900 }
22901
22902 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22903 PyObject *resultobj = 0;
22904 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22905 int arg2 = (int) 0 ;
22906 int arg3 = (int) wxNOT_FOUND ;
22907 int arg4 = (int) wxNOT_FOUND ;
22908 wxToolbookEvent *result = 0 ;
22909 int val1 ;
22910 int ecode1 = 0 ;
22911 int val2 ;
22912 int ecode2 = 0 ;
22913 int val3 ;
22914 int ecode3 = 0 ;
22915 int val4 ;
22916 int ecode4 = 0 ;
22917 PyObject * obj0 = 0 ;
22918 PyObject * obj1 = 0 ;
22919 PyObject * obj2 = 0 ;
22920 PyObject * obj3 = 0 ;
22921 char * kwnames[] = {
22922 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22923 };
22924
22925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22926 if (obj0) {
22927 ecode1 = SWIG_AsVal_int(obj0, &val1);
22928 if (!SWIG_IsOK(ecode1)) {
22929 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22930 }
22931 arg1 = static_cast< wxEventType >(val1);
22932 }
22933 if (obj1) {
22934 ecode2 = SWIG_AsVal_int(obj1, &val2);
22935 if (!SWIG_IsOK(ecode2)) {
22936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22937 }
22938 arg2 = static_cast< int >(val2);
22939 }
22940 if (obj2) {
22941 ecode3 = SWIG_AsVal_int(obj2, &val3);
22942 if (!SWIG_IsOK(ecode3)) {
22943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22944 }
22945 arg3 = static_cast< int >(val3);
22946 }
22947 if (obj3) {
22948 ecode4 = SWIG_AsVal_int(obj3, &val4);
22949 if (!SWIG_IsOK(ecode4)) {
22950 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22951 }
22952 arg4 = static_cast< int >(val4);
22953 }
22954 {
22955 PyThreadState* __tstate = wxPyBeginAllowThreads();
22956 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22957 wxPyEndAllowThreads(__tstate);
22958 if (PyErr_Occurred()) SWIG_fail;
22959 }
22960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22961 return resultobj;
22962 fail:
22963 return NULL;
22964 }
22965
22966
22967 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22968 PyObject *obj;
22969 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22970 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22971 return SWIG_Py_Void();
22972 }
22973
22974 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22975 return SWIG_Python_InitShadowInstance(args);
22976 }
22977
22978 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22979 PyObject *resultobj = 0;
22980 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22981 int result;
22982 void *argp1 = 0 ;
22983 int res1 = 0 ;
22984 PyObject *swig_obj[1] ;
22985
22986 if (!args) SWIG_fail;
22987 swig_obj[0] = args;
22988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22989 if (!SWIG_IsOK(res1)) {
22990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22991 }
22992 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22993 {
22994 PyThreadState* __tstate = wxPyBeginAllowThreads();
22995 result = (int)(arg1)->GetId();
22996 wxPyEndAllowThreads(__tstate);
22997 if (PyErr_Occurred()) SWIG_fail;
22998 }
22999 resultobj = SWIG_From_int(static_cast< int >(result));
23000 return resultobj;
23001 fail:
23002 return NULL;
23003 }
23004
23005
23006 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23007 PyObject *resultobj = 0;
23008 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23009 wxControl *result = 0 ;
23010 void *argp1 = 0 ;
23011 int res1 = 0 ;
23012 PyObject *swig_obj[1] ;
23013
23014 if (!args) SWIG_fail;
23015 swig_obj[0] = args;
23016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23017 if (!SWIG_IsOK(res1)) {
23018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23019 }
23020 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23021 {
23022 PyThreadState* __tstate = wxPyBeginAllowThreads();
23023 result = (wxControl *)(arg1)->GetControl();
23024 wxPyEndAllowThreads(__tstate);
23025 if (PyErr_Occurred()) SWIG_fail;
23026 }
23027 {
23028 resultobj = wxPyMake_wxObject(result, 0);
23029 }
23030 return resultobj;
23031 fail:
23032 return NULL;
23033 }
23034
23035
23036 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23037 PyObject *resultobj = 0;
23038 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23039 wxToolBarBase *result = 0 ;
23040 void *argp1 = 0 ;
23041 int res1 = 0 ;
23042 PyObject *swig_obj[1] ;
23043
23044 if (!args) SWIG_fail;
23045 swig_obj[0] = args;
23046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23047 if (!SWIG_IsOK(res1)) {
23048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23049 }
23050 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23051 {
23052 PyThreadState* __tstate = wxPyBeginAllowThreads();
23053 result = (wxToolBarBase *)(arg1)->GetToolBar();
23054 wxPyEndAllowThreads(__tstate);
23055 if (PyErr_Occurred()) SWIG_fail;
23056 }
23057 {
23058 resultobj = wxPyMake_wxObject(result, (bool)0);
23059 }
23060 return resultobj;
23061 fail:
23062 return NULL;
23063 }
23064
23065
23066 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23067 PyObject *resultobj = 0;
23068 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23069 int result;
23070 void *argp1 = 0 ;
23071 int res1 = 0 ;
23072 PyObject *swig_obj[1] ;
23073
23074 if (!args) SWIG_fail;
23075 swig_obj[0] = args;
23076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23077 if (!SWIG_IsOK(res1)) {
23078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23079 }
23080 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23081 {
23082 PyThreadState* __tstate = wxPyBeginAllowThreads();
23083 result = (int)(arg1)->IsButton();
23084 wxPyEndAllowThreads(__tstate);
23085 if (PyErr_Occurred()) SWIG_fail;
23086 }
23087 resultobj = SWIG_From_int(static_cast< int >(result));
23088 return resultobj;
23089 fail:
23090 return NULL;
23091 }
23092
23093
23094 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23095 PyObject *resultobj = 0;
23096 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23097 int result;
23098 void *argp1 = 0 ;
23099 int res1 = 0 ;
23100 PyObject *swig_obj[1] ;
23101
23102 if (!args) SWIG_fail;
23103 swig_obj[0] = args;
23104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23105 if (!SWIG_IsOK(res1)) {
23106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23107 }
23108 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23109 {
23110 PyThreadState* __tstate = wxPyBeginAllowThreads();
23111 result = (int)(arg1)->IsControl();
23112 wxPyEndAllowThreads(__tstate);
23113 if (PyErr_Occurred()) SWIG_fail;
23114 }
23115 resultobj = SWIG_From_int(static_cast< int >(result));
23116 return resultobj;
23117 fail:
23118 return NULL;
23119 }
23120
23121
23122 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23123 PyObject *resultobj = 0;
23124 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23125 int result;
23126 void *argp1 = 0 ;
23127 int res1 = 0 ;
23128 PyObject *swig_obj[1] ;
23129
23130 if (!args) SWIG_fail;
23131 swig_obj[0] = args;
23132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23133 if (!SWIG_IsOK(res1)) {
23134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23135 }
23136 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23137 {
23138 PyThreadState* __tstate = wxPyBeginAllowThreads();
23139 result = (int)(arg1)->IsSeparator();
23140 wxPyEndAllowThreads(__tstate);
23141 if (PyErr_Occurred()) SWIG_fail;
23142 }
23143 resultobj = SWIG_From_int(static_cast< int >(result));
23144 return resultobj;
23145 fail:
23146 return NULL;
23147 }
23148
23149
23150 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23151 PyObject *resultobj = 0;
23152 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23153 int result;
23154 void *argp1 = 0 ;
23155 int res1 = 0 ;
23156 PyObject *swig_obj[1] ;
23157
23158 if (!args) SWIG_fail;
23159 swig_obj[0] = args;
23160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23161 if (!SWIG_IsOK(res1)) {
23162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23163 }
23164 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23165 {
23166 PyThreadState* __tstate = wxPyBeginAllowThreads();
23167 result = (int)(arg1)->GetStyle();
23168 wxPyEndAllowThreads(__tstate);
23169 if (PyErr_Occurred()) SWIG_fail;
23170 }
23171 resultobj = SWIG_From_int(static_cast< int >(result));
23172 return resultobj;
23173 fail:
23174 return NULL;
23175 }
23176
23177
23178 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23179 PyObject *resultobj = 0;
23180 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23181 wxItemKind result;
23182 void *argp1 = 0 ;
23183 int res1 = 0 ;
23184 PyObject *swig_obj[1] ;
23185
23186 if (!args) SWIG_fail;
23187 swig_obj[0] = args;
23188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23189 if (!SWIG_IsOK(res1)) {
23190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23191 }
23192 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23193 {
23194 PyThreadState* __tstate = wxPyBeginAllowThreads();
23195 result = (wxItemKind)(arg1)->GetKind();
23196 wxPyEndAllowThreads(__tstate);
23197 if (PyErr_Occurred()) SWIG_fail;
23198 }
23199 resultobj = SWIG_From_int(static_cast< int >(result));
23200 return resultobj;
23201 fail:
23202 return NULL;
23203 }
23204
23205
23206 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23207 PyObject *resultobj = 0;
23208 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23209 bool result;
23210 void *argp1 = 0 ;
23211 int res1 = 0 ;
23212 PyObject *swig_obj[1] ;
23213
23214 if (!args) SWIG_fail;
23215 swig_obj[0] = args;
23216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23217 if (!SWIG_IsOK(res1)) {
23218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23219 }
23220 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23221 {
23222 PyThreadState* __tstate = wxPyBeginAllowThreads();
23223 result = (bool)(arg1)->IsEnabled();
23224 wxPyEndAllowThreads(__tstate);
23225 if (PyErr_Occurred()) SWIG_fail;
23226 }
23227 {
23228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23229 }
23230 return resultobj;
23231 fail:
23232 return NULL;
23233 }
23234
23235
23236 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23237 PyObject *resultobj = 0;
23238 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23239 bool result;
23240 void *argp1 = 0 ;
23241 int res1 = 0 ;
23242 PyObject *swig_obj[1] ;
23243
23244 if (!args) SWIG_fail;
23245 swig_obj[0] = args;
23246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23247 if (!SWIG_IsOK(res1)) {
23248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23249 }
23250 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23251 {
23252 PyThreadState* __tstate = wxPyBeginAllowThreads();
23253 result = (bool)(arg1)->IsToggled();
23254 wxPyEndAllowThreads(__tstate);
23255 if (PyErr_Occurred()) SWIG_fail;
23256 }
23257 {
23258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23259 }
23260 return resultobj;
23261 fail:
23262 return NULL;
23263 }
23264
23265
23266 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23267 PyObject *resultobj = 0;
23268 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23269 bool result;
23270 void *argp1 = 0 ;
23271 int res1 = 0 ;
23272 PyObject *swig_obj[1] ;
23273
23274 if (!args) SWIG_fail;
23275 swig_obj[0] = args;
23276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23277 if (!SWIG_IsOK(res1)) {
23278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23279 }
23280 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23281 {
23282 PyThreadState* __tstate = wxPyBeginAllowThreads();
23283 result = (bool)(arg1)->CanBeToggled();
23284 wxPyEndAllowThreads(__tstate);
23285 if (PyErr_Occurred()) SWIG_fail;
23286 }
23287 {
23288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23289 }
23290 return resultobj;
23291 fail:
23292 return NULL;
23293 }
23294
23295
23296 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23297 PyObject *resultobj = 0;
23298 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23299 wxBitmap *result = 0 ;
23300 void *argp1 = 0 ;
23301 int res1 = 0 ;
23302 PyObject *swig_obj[1] ;
23303
23304 if (!args) SWIG_fail;
23305 swig_obj[0] = args;
23306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23307 if (!SWIG_IsOK(res1)) {
23308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23309 }
23310 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23311 {
23312 PyThreadState* __tstate = wxPyBeginAllowThreads();
23313 {
23314 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23315 result = (wxBitmap *) &_result_ref;
23316 }
23317 wxPyEndAllowThreads(__tstate);
23318 if (PyErr_Occurred()) SWIG_fail;
23319 }
23320 {
23321 wxBitmap* resultptr = new wxBitmap(*result);
23322 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23323 }
23324 return resultobj;
23325 fail:
23326 return NULL;
23327 }
23328
23329
23330 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23331 PyObject *resultobj = 0;
23332 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23333 wxBitmap *result = 0 ;
23334 void *argp1 = 0 ;
23335 int res1 = 0 ;
23336 PyObject *swig_obj[1] ;
23337
23338 if (!args) SWIG_fail;
23339 swig_obj[0] = args;
23340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23341 if (!SWIG_IsOK(res1)) {
23342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23343 }
23344 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23345 {
23346 PyThreadState* __tstate = wxPyBeginAllowThreads();
23347 {
23348 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23349 result = (wxBitmap *) &_result_ref;
23350 }
23351 wxPyEndAllowThreads(__tstate);
23352 if (PyErr_Occurred()) SWIG_fail;
23353 }
23354 {
23355 wxBitmap* resultptr = new wxBitmap(*result);
23356 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23357 }
23358 return resultobj;
23359 fail:
23360 return NULL;
23361 }
23362
23363
23364 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23365 PyObject *resultobj = 0;
23366 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23367 wxBitmap result;
23368 void *argp1 = 0 ;
23369 int res1 = 0 ;
23370 PyObject *swig_obj[1] ;
23371
23372 if (!args) SWIG_fail;
23373 swig_obj[0] = args;
23374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23375 if (!SWIG_IsOK(res1)) {
23376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23377 }
23378 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23379 {
23380 PyThreadState* __tstate = wxPyBeginAllowThreads();
23381 result = (arg1)->GetBitmap();
23382 wxPyEndAllowThreads(__tstate);
23383 if (PyErr_Occurred()) SWIG_fail;
23384 }
23385 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23386 return resultobj;
23387 fail:
23388 return NULL;
23389 }
23390
23391
23392 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23393 PyObject *resultobj = 0;
23394 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23395 wxString result;
23396 void *argp1 = 0 ;
23397 int res1 = 0 ;
23398 PyObject *swig_obj[1] ;
23399
23400 if (!args) SWIG_fail;
23401 swig_obj[0] = args;
23402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23403 if (!SWIG_IsOK(res1)) {
23404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23405 }
23406 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23407 {
23408 PyThreadState* __tstate = wxPyBeginAllowThreads();
23409 result = (arg1)->GetLabel();
23410 wxPyEndAllowThreads(__tstate);
23411 if (PyErr_Occurred()) SWIG_fail;
23412 }
23413 {
23414 #if wxUSE_UNICODE
23415 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23416 #else
23417 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23418 #endif
23419 }
23420 return resultobj;
23421 fail:
23422 return NULL;
23423 }
23424
23425
23426 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23427 PyObject *resultobj = 0;
23428 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23429 wxString result;
23430 void *argp1 = 0 ;
23431 int res1 = 0 ;
23432 PyObject *swig_obj[1] ;
23433
23434 if (!args) SWIG_fail;
23435 swig_obj[0] = args;
23436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23437 if (!SWIG_IsOK(res1)) {
23438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23439 }
23440 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23441 {
23442 PyThreadState* __tstate = wxPyBeginAllowThreads();
23443 result = (arg1)->GetShortHelp();
23444 wxPyEndAllowThreads(__tstate);
23445 if (PyErr_Occurred()) SWIG_fail;
23446 }
23447 {
23448 #if wxUSE_UNICODE
23449 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23450 #else
23451 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23452 #endif
23453 }
23454 return resultobj;
23455 fail:
23456 return NULL;
23457 }
23458
23459
23460 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23461 PyObject *resultobj = 0;
23462 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23463 wxString result;
23464 void *argp1 = 0 ;
23465 int res1 = 0 ;
23466 PyObject *swig_obj[1] ;
23467
23468 if (!args) SWIG_fail;
23469 swig_obj[0] = args;
23470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23471 if (!SWIG_IsOK(res1)) {
23472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23473 }
23474 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23475 {
23476 PyThreadState* __tstate = wxPyBeginAllowThreads();
23477 result = (arg1)->GetLongHelp();
23478 wxPyEndAllowThreads(__tstate);
23479 if (PyErr_Occurred()) SWIG_fail;
23480 }
23481 {
23482 #if wxUSE_UNICODE
23483 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23484 #else
23485 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23486 #endif
23487 }
23488 return resultobj;
23489 fail:
23490 return NULL;
23491 }
23492
23493
23494 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23495 PyObject *resultobj = 0;
23496 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23497 bool arg2 ;
23498 bool result;
23499 void *argp1 = 0 ;
23500 int res1 = 0 ;
23501 bool val2 ;
23502 int ecode2 = 0 ;
23503 PyObject * obj0 = 0 ;
23504 PyObject * obj1 = 0 ;
23505 char * kwnames[] = {
23506 (char *) "self",(char *) "enable", NULL
23507 };
23508
23509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23511 if (!SWIG_IsOK(res1)) {
23512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23513 }
23514 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23515 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23516 if (!SWIG_IsOK(ecode2)) {
23517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23518 }
23519 arg2 = static_cast< bool >(val2);
23520 {
23521 PyThreadState* __tstate = wxPyBeginAllowThreads();
23522 result = (bool)(arg1)->Enable(arg2);
23523 wxPyEndAllowThreads(__tstate);
23524 if (PyErr_Occurred()) SWIG_fail;
23525 }
23526 {
23527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23528 }
23529 return resultobj;
23530 fail:
23531 return NULL;
23532 }
23533
23534
23535 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23536 PyObject *resultobj = 0;
23537 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23538 void *argp1 = 0 ;
23539 int res1 = 0 ;
23540 PyObject *swig_obj[1] ;
23541
23542 if (!args) SWIG_fail;
23543 swig_obj[0] = args;
23544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23545 if (!SWIG_IsOK(res1)) {
23546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23547 }
23548 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23549 {
23550 PyThreadState* __tstate = wxPyBeginAllowThreads();
23551 (arg1)->Toggle();
23552 wxPyEndAllowThreads(__tstate);
23553 if (PyErr_Occurred()) SWIG_fail;
23554 }
23555 resultobj = SWIG_Py_Void();
23556 return resultobj;
23557 fail:
23558 return NULL;
23559 }
23560
23561
23562 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23563 PyObject *resultobj = 0;
23564 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23565 bool arg2 ;
23566 bool result;
23567 void *argp1 = 0 ;
23568 int res1 = 0 ;
23569 bool val2 ;
23570 int ecode2 = 0 ;
23571 PyObject * obj0 = 0 ;
23572 PyObject * obj1 = 0 ;
23573 char * kwnames[] = {
23574 (char *) "self",(char *) "toggle", NULL
23575 };
23576
23577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23579 if (!SWIG_IsOK(res1)) {
23580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23581 }
23582 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23583 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23584 if (!SWIG_IsOK(ecode2)) {
23585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23586 }
23587 arg2 = static_cast< bool >(val2);
23588 {
23589 PyThreadState* __tstate = wxPyBeginAllowThreads();
23590 result = (bool)(arg1)->SetToggle(arg2);
23591 wxPyEndAllowThreads(__tstate);
23592 if (PyErr_Occurred()) SWIG_fail;
23593 }
23594 {
23595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23596 }
23597 return resultobj;
23598 fail:
23599 return NULL;
23600 }
23601
23602
23603 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23604 PyObject *resultobj = 0;
23605 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23606 wxString *arg2 = 0 ;
23607 bool result;
23608 void *argp1 = 0 ;
23609 int res1 = 0 ;
23610 bool temp2 = false ;
23611 PyObject * obj0 = 0 ;
23612 PyObject * obj1 = 0 ;
23613 char * kwnames[] = {
23614 (char *) "self",(char *) "help", NULL
23615 };
23616
23617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23619 if (!SWIG_IsOK(res1)) {
23620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23621 }
23622 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23623 {
23624 arg2 = wxString_in_helper(obj1);
23625 if (arg2 == NULL) SWIG_fail;
23626 temp2 = true;
23627 }
23628 {
23629 PyThreadState* __tstate = wxPyBeginAllowThreads();
23630 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23631 wxPyEndAllowThreads(__tstate);
23632 if (PyErr_Occurred()) SWIG_fail;
23633 }
23634 {
23635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23636 }
23637 {
23638 if (temp2)
23639 delete arg2;
23640 }
23641 return resultobj;
23642 fail:
23643 {
23644 if (temp2)
23645 delete arg2;
23646 }
23647 return NULL;
23648 }
23649
23650
23651 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23652 PyObject *resultobj = 0;
23653 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23654 wxString *arg2 = 0 ;
23655 bool result;
23656 void *argp1 = 0 ;
23657 int res1 = 0 ;
23658 bool temp2 = false ;
23659 PyObject * obj0 = 0 ;
23660 PyObject * obj1 = 0 ;
23661 char * kwnames[] = {
23662 (char *) "self",(char *) "help", NULL
23663 };
23664
23665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23667 if (!SWIG_IsOK(res1)) {
23668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23669 }
23670 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23671 {
23672 arg2 = wxString_in_helper(obj1);
23673 if (arg2 == NULL) SWIG_fail;
23674 temp2 = true;
23675 }
23676 {
23677 PyThreadState* __tstate = wxPyBeginAllowThreads();
23678 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23679 wxPyEndAllowThreads(__tstate);
23680 if (PyErr_Occurred()) SWIG_fail;
23681 }
23682 {
23683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23684 }
23685 {
23686 if (temp2)
23687 delete arg2;
23688 }
23689 return resultobj;
23690 fail:
23691 {
23692 if (temp2)
23693 delete arg2;
23694 }
23695 return NULL;
23696 }
23697
23698
23699 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23700 PyObject *resultobj = 0;
23701 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23702 wxBitmap *arg2 = 0 ;
23703 void *argp1 = 0 ;
23704 int res1 = 0 ;
23705 void *argp2 = 0 ;
23706 int res2 = 0 ;
23707 PyObject * obj0 = 0 ;
23708 PyObject * obj1 = 0 ;
23709 char * kwnames[] = {
23710 (char *) "self",(char *) "bmp", NULL
23711 };
23712
23713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23715 if (!SWIG_IsOK(res1)) {
23716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23717 }
23718 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23719 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23720 if (!SWIG_IsOK(res2)) {
23721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23722 }
23723 if (!argp2) {
23724 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23725 }
23726 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23727 {
23728 PyThreadState* __tstate = wxPyBeginAllowThreads();
23729 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23730 wxPyEndAllowThreads(__tstate);
23731 if (PyErr_Occurred()) SWIG_fail;
23732 }
23733 resultobj = SWIG_Py_Void();
23734 return resultobj;
23735 fail:
23736 return NULL;
23737 }
23738
23739
23740 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23741 PyObject *resultobj = 0;
23742 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23743 wxBitmap *arg2 = 0 ;
23744 void *argp1 = 0 ;
23745 int res1 = 0 ;
23746 void *argp2 = 0 ;
23747 int res2 = 0 ;
23748 PyObject * obj0 = 0 ;
23749 PyObject * obj1 = 0 ;
23750 char * kwnames[] = {
23751 (char *) "self",(char *) "bmp", NULL
23752 };
23753
23754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23756 if (!SWIG_IsOK(res1)) {
23757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23758 }
23759 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23760 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23761 if (!SWIG_IsOK(res2)) {
23762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23763 }
23764 if (!argp2) {
23765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23766 }
23767 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23768 {
23769 PyThreadState* __tstate = wxPyBeginAllowThreads();
23770 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23771 wxPyEndAllowThreads(__tstate);
23772 if (PyErr_Occurred()) SWIG_fail;
23773 }
23774 resultobj = SWIG_Py_Void();
23775 return resultobj;
23776 fail:
23777 return NULL;
23778 }
23779
23780
23781 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23782 PyObject *resultobj = 0;
23783 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23784 wxString *arg2 = 0 ;
23785 void *argp1 = 0 ;
23786 int res1 = 0 ;
23787 bool temp2 = false ;
23788 PyObject * obj0 = 0 ;
23789 PyObject * obj1 = 0 ;
23790 char * kwnames[] = {
23791 (char *) "self",(char *) "label", NULL
23792 };
23793
23794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23796 if (!SWIG_IsOK(res1)) {
23797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23798 }
23799 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23800 {
23801 arg2 = wxString_in_helper(obj1);
23802 if (arg2 == NULL) SWIG_fail;
23803 temp2 = true;
23804 }
23805 {
23806 PyThreadState* __tstate = wxPyBeginAllowThreads();
23807 (arg1)->SetLabel((wxString const &)*arg2);
23808 wxPyEndAllowThreads(__tstate);
23809 if (PyErr_Occurred()) SWIG_fail;
23810 }
23811 resultobj = SWIG_Py_Void();
23812 {
23813 if (temp2)
23814 delete arg2;
23815 }
23816 return resultobj;
23817 fail:
23818 {
23819 if (temp2)
23820 delete arg2;
23821 }
23822 return NULL;
23823 }
23824
23825
23826 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23827 PyObject *resultobj = 0;
23828 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23829 void *argp1 = 0 ;
23830 int res1 = 0 ;
23831 PyObject *swig_obj[1] ;
23832
23833 if (!args) SWIG_fail;
23834 swig_obj[0] = args;
23835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23836 if (!SWIG_IsOK(res1)) {
23837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23838 }
23839 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23840 {
23841 PyThreadState* __tstate = wxPyBeginAllowThreads();
23842 (arg1)->Detach();
23843 wxPyEndAllowThreads(__tstate);
23844 if (PyErr_Occurred()) SWIG_fail;
23845 }
23846 resultobj = SWIG_Py_Void();
23847 return resultobj;
23848 fail:
23849 return NULL;
23850 }
23851
23852
23853 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23854 PyObject *resultobj = 0;
23855 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23856 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23857 void *argp1 = 0 ;
23858 int res1 = 0 ;
23859 void *argp2 = 0 ;
23860 int res2 = 0 ;
23861 PyObject * obj0 = 0 ;
23862 PyObject * obj1 = 0 ;
23863 char * kwnames[] = {
23864 (char *) "self",(char *) "tbar", NULL
23865 };
23866
23867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23869 if (!SWIG_IsOK(res1)) {
23870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23871 }
23872 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23873 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23874 if (!SWIG_IsOK(res2)) {
23875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23876 }
23877 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23878 {
23879 PyThreadState* __tstate = wxPyBeginAllowThreads();
23880 (arg1)->Attach(arg2);
23881 wxPyEndAllowThreads(__tstate);
23882 if (PyErr_Occurred()) SWIG_fail;
23883 }
23884 resultobj = SWIG_Py_Void();
23885 return resultobj;
23886 fail:
23887 return NULL;
23888 }
23889
23890
23891 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23892 PyObject *resultobj = 0;
23893 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23894 PyObject *result = 0 ;
23895 void *argp1 = 0 ;
23896 int res1 = 0 ;
23897 PyObject *swig_obj[1] ;
23898
23899 if (!args) SWIG_fail;
23900 swig_obj[0] = args;
23901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23902 if (!SWIG_IsOK(res1)) {
23903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23904 }
23905 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23906 {
23907 PyThreadState* __tstate = wxPyBeginAllowThreads();
23908 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23909 wxPyEndAllowThreads(__tstate);
23910 if (PyErr_Occurred()) SWIG_fail;
23911 }
23912 resultobj = result;
23913 return resultobj;
23914 fail:
23915 return NULL;
23916 }
23917
23918
23919 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23920 PyObject *resultobj = 0;
23921 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23922 PyObject *arg2 = (PyObject *) 0 ;
23923 void *argp1 = 0 ;
23924 int res1 = 0 ;
23925 PyObject * obj0 = 0 ;
23926 PyObject * obj1 = 0 ;
23927 char * kwnames[] = {
23928 (char *) "self",(char *) "clientData", NULL
23929 };
23930
23931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23933 if (!SWIG_IsOK(res1)) {
23934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23935 }
23936 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23937 arg2 = obj1;
23938 {
23939 PyThreadState* __tstate = wxPyBeginAllowThreads();
23940 wxToolBarToolBase_SetClientData(arg1,arg2);
23941 wxPyEndAllowThreads(__tstate);
23942 if (PyErr_Occurred()) SWIG_fail;
23943 }
23944 resultobj = SWIG_Py_Void();
23945 return resultobj;
23946 fail:
23947 return NULL;
23948 }
23949
23950
23951 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23952 PyObject *obj;
23953 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23954 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23955 return SWIG_Py_Void();
23956 }
23957
23958 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23959 PyObject *resultobj = 0;
23960 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23961 int arg2 ;
23962 wxString *arg3 = 0 ;
23963 wxBitmap *arg4 = 0 ;
23964 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23965 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23966 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23967 wxString const &arg7_defvalue = wxPyEmptyString ;
23968 wxString *arg7 = (wxString *) &arg7_defvalue ;
23969 wxString const &arg8_defvalue = wxPyEmptyString ;
23970 wxString *arg8 = (wxString *) &arg8_defvalue ;
23971 PyObject *arg9 = (PyObject *) NULL ;
23972 wxToolBarToolBase *result = 0 ;
23973 void *argp1 = 0 ;
23974 int res1 = 0 ;
23975 int val2 ;
23976 int ecode2 = 0 ;
23977 bool temp3 = false ;
23978 void *argp4 = 0 ;
23979 int res4 = 0 ;
23980 void *argp5 = 0 ;
23981 int res5 = 0 ;
23982 int val6 ;
23983 int ecode6 = 0 ;
23984 bool temp7 = false ;
23985 bool temp8 = false ;
23986 PyObject * obj0 = 0 ;
23987 PyObject * obj1 = 0 ;
23988 PyObject * obj2 = 0 ;
23989 PyObject * obj3 = 0 ;
23990 PyObject * obj4 = 0 ;
23991 PyObject * obj5 = 0 ;
23992 PyObject * obj6 = 0 ;
23993 PyObject * obj7 = 0 ;
23994 PyObject * obj8 = 0 ;
23995 char * kwnames[] = {
23996 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23997 };
23998
23999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
24000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24001 if (!SWIG_IsOK(res1)) {
24002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24003 }
24004 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24005 ecode2 = SWIG_AsVal_int(obj1, &val2);
24006 if (!SWIG_IsOK(ecode2)) {
24007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
24008 }
24009 arg2 = static_cast< int >(val2);
24010 {
24011 arg3 = wxString_in_helper(obj2);
24012 if (arg3 == NULL) SWIG_fail;
24013 temp3 = true;
24014 }
24015 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
24016 if (!SWIG_IsOK(res4)) {
24017 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24018 }
24019 if (!argp4) {
24020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24021 }
24022 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24023 if (obj4) {
24024 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24025 if (!SWIG_IsOK(res5)) {
24026 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24027 }
24028 if (!argp5) {
24029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24030 }
24031 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24032 }
24033 if (obj5) {
24034 ecode6 = SWIG_AsVal_int(obj5, &val6);
24035 if (!SWIG_IsOK(ecode6)) {
24036 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
24037 }
24038 arg6 = static_cast< wxItemKind >(val6);
24039 }
24040 if (obj6) {
24041 {
24042 arg7 = wxString_in_helper(obj6);
24043 if (arg7 == NULL) SWIG_fail;
24044 temp7 = true;
24045 }
24046 }
24047 if (obj7) {
24048 {
24049 arg8 = wxString_in_helper(obj7);
24050 if (arg8 == NULL) SWIG_fail;
24051 temp8 = true;
24052 }
24053 }
24054 if (obj8) {
24055 arg9 = obj8;
24056 }
24057 {
24058 PyThreadState* __tstate = wxPyBeginAllowThreads();
24059 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
24060 wxPyEndAllowThreads(__tstate);
24061 if (PyErr_Occurred()) SWIG_fail;
24062 }
24063 {
24064 resultobj = wxPyMake_wxObject(result, (bool)0);
24065 }
24066 {
24067 if (temp3)
24068 delete arg3;
24069 }
24070 {
24071 if (temp7)
24072 delete arg7;
24073 }
24074 {
24075 if (temp8)
24076 delete arg8;
24077 }
24078 return resultobj;
24079 fail:
24080 {
24081 if (temp3)
24082 delete arg3;
24083 }
24084 {
24085 if (temp7)
24086 delete arg7;
24087 }
24088 {
24089 if (temp8)
24090 delete arg8;
24091 }
24092 return NULL;
24093 }
24094
24095
24096 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24097 PyObject *resultobj = 0;
24098 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24099 size_t arg2 ;
24100 int arg3 ;
24101 wxString *arg4 = 0 ;
24102 wxBitmap *arg5 = 0 ;
24103 wxBitmap const &arg6_defvalue = wxNullBitmap ;
24104 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
24105 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
24106 wxString const &arg8_defvalue = wxPyEmptyString ;
24107 wxString *arg8 = (wxString *) &arg8_defvalue ;
24108 wxString const &arg9_defvalue = wxPyEmptyString ;
24109 wxString *arg9 = (wxString *) &arg9_defvalue ;
24110 PyObject *arg10 = (PyObject *) NULL ;
24111 wxToolBarToolBase *result = 0 ;
24112 void *argp1 = 0 ;
24113 int res1 = 0 ;
24114 size_t val2 ;
24115 int ecode2 = 0 ;
24116 int val3 ;
24117 int ecode3 = 0 ;
24118 bool temp4 = false ;
24119 void *argp5 = 0 ;
24120 int res5 = 0 ;
24121 void *argp6 = 0 ;
24122 int res6 = 0 ;
24123 int val7 ;
24124 int ecode7 = 0 ;
24125 bool temp8 = false ;
24126 bool temp9 = false ;
24127 PyObject * obj0 = 0 ;
24128 PyObject * obj1 = 0 ;
24129 PyObject * obj2 = 0 ;
24130 PyObject * obj3 = 0 ;
24131 PyObject * obj4 = 0 ;
24132 PyObject * obj5 = 0 ;
24133 PyObject * obj6 = 0 ;
24134 PyObject * obj7 = 0 ;
24135 PyObject * obj8 = 0 ;
24136 PyObject * obj9 = 0 ;
24137 char * kwnames[] = {
24138 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
24139 };
24140
24141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
24142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24143 if (!SWIG_IsOK(res1)) {
24144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24145 }
24146 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24147 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24148 if (!SWIG_IsOK(ecode2)) {
24149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
24150 }
24151 arg2 = static_cast< size_t >(val2);
24152 ecode3 = SWIG_AsVal_int(obj2, &val3);
24153 if (!SWIG_IsOK(ecode3)) {
24154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
24155 }
24156 arg3 = static_cast< int >(val3);
24157 {
24158 arg4 = wxString_in_helper(obj3);
24159 if (arg4 == NULL) SWIG_fail;
24160 temp4 = true;
24161 }
24162 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24163 if (!SWIG_IsOK(res5)) {
24164 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24165 }
24166 if (!argp5) {
24167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24168 }
24169 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24170 if (obj5) {
24171 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
24172 if (!SWIG_IsOK(res6)) {
24173 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24174 }
24175 if (!argp6) {
24176 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24177 }
24178 arg6 = reinterpret_cast< wxBitmap * >(argp6);
24179 }
24180 if (obj6) {
24181 ecode7 = SWIG_AsVal_int(obj6, &val7);
24182 if (!SWIG_IsOK(ecode7)) {
24183 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
24184 }
24185 arg7 = static_cast< wxItemKind >(val7);
24186 }
24187 if (obj7) {
24188 {
24189 arg8 = wxString_in_helper(obj7);
24190 if (arg8 == NULL) SWIG_fail;
24191 temp8 = true;
24192 }
24193 }
24194 if (obj8) {
24195 {
24196 arg9 = wxString_in_helper(obj8);
24197 if (arg9 == NULL) SWIG_fail;
24198 temp9 = true;
24199 }
24200 }
24201 if (obj9) {
24202 arg10 = obj9;
24203 }
24204 {
24205 PyThreadState* __tstate = wxPyBeginAllowThreads();
24206 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24207 wxPyEndAllowThreads(__tstate);
24208 if (PyErr_Occurred()) SWIG_fail;
24209 }
24210 {
24211 resultobj = wxPyMake_wxObject(result, (bool)0);
24212 }
24213 {
24214 if (temp4)
24215 delete arg4;
24216 }
24217 {
24218 if (temp8)
24219 delete arg8;
24220 }
24221 {
24222 if (temp9)
24223 delete arg9;
24224 }
24225 return resultobj;
24226 fail:
24227 {
24228 if (temp4)
24229 delete arg4;
24230 }
24231 {
24232 if (temp8)
24233 delete arg8;
24234 }
24235 {
24236 if (temp9)
24237 delete arg9;
24238 }
24239 return NULL;
24240 }
24241
24242
24243 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24244 PyObject *resultobj = 0;
24245 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24246 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24247 wxToolBarToolBase *result = 0 ;
24248 void *argp1 = 0 ;
24249 int res1 = 0 ;
24250 void *argp2 = 0 ;
24251 int res2 = 0 ;
24252 PyObject * obj0 = 0 ;
24253 PyObject * obj1 = 0 ;
24254 char * kwnames[] = {
24255 (char *) "self",(char *) "tool", NULL
24256 };
24257
24258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24260 if (!SWIG_IsOK(res1)) {
24261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24262 }
24263 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24264 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24265 if (!SWIG_IsOK(res2)) {
24266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24267 }
24268 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24269 {
24270 PyThreadState* __tstate = wxPyBeginAllowThreads();
24271 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24272 wxPyEndAllowThreads(__tstate);
24273 if (PyErr_Occurred()) SWIG_fail;
24274 }
24275 {
24276 resultobj = wxPyMake_wxObject(result, (bool)0);
24277 }
24278 return resultobj;
24279 fail:
24280 return NULL;
24281 }
24282
24283
24284 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24285 PyObject *resultobj = 0;
24286 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24287 size_t arg2 ;
24288 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24289 wxToolBarToolBase *result = 0 ;
24290 void *argp1 = 0 ;
24291 int res1 = 0 ;
24292 size_t val2 ;
24293 int ecode2 = 0 ;
24294 void *argp3 = 0 ;
24295 int res3 = 0 ;
24296 PyObject * obj0 = 0 ;
24297 PyObject * obj1 = 0 ;
24298 PyObject * obj2 = 0 ;
24299 char * kwnames[] = {
24300 (char *) "self",(char *) "pos",(char *) "tool", NULL
24301 };
24302
24303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24305 if (!SWIG_IsOK(res1)) {
24306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24307 }
24308 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24309 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24310 if (!SWIG_IsOK(ecode2)) {
24311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24312 }
24313 arg2 = static_cast< size_t >(val2);
24314 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24315 if (!SWIG_IsOK(res3)) {
24316 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24317 }
24318 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24319 {
24320 PyThreadState* __tstate = wxPyBeginAllowThreads();
24321 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24322 wxPyEndAllowThreads(__tstate);
24323 if (PyErr_Occurred()) SWIG_fail;
24324 }
24325 {
24326 resultobj = wxPyMake_wxObject(result, (bool)0);
24327 }
24328 return resultobj;
24329 fail:
24330 return NULL;
24331 }
24332
24333
24334 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24335 PyObject *resultobj = 0;
24336 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24337 wxControl *arg2 = (wxControl *) 0 ;
24338 wxToolBarToolBase *result = 0 ;
24339 void *argp1 = 0 ;
24340 int res1 = 0 ;
24341 void *argp2 = 0 ;
24342 int res2 = 0 ;
24343 PyObject * obj0 = 0 ;
24344 PyObject * obj1 = 0 ;
24345 char * kwnames[] = {
24346 (char *) "self",(char *) "control", NULL
24347 };
24348
24349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24351 if (!SWIG_IsOK(res1)) {
24352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24353 }
24354 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24355 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24356 if (!SWIG_IsOK(res2)) {
24357 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24358 }
24359 arg2 = reinterpret_cast< wxControl * >(argp2);
24360 {
24361 PyThreadState* __tstate = wxPyBeginAllowThreads();
24362 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24363 wxPyEndAllowThreads(__tstate);
24364 if (PyErr_Occurred()) SWIG_fail;
24365 }
24366 {
24367 resultobj = wxPyMake_wxObject(result, (bool)0);
24368 }
24369 return resultobj;
24370 fail:
24371 return NULL;
24372 }
24373
24374
24375 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24376 PyObject *resultobj = 0;
24377 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24378 size_t arg2 ;
24379 wxControl *arg3 = (wxControl *) 0 ;
24380 wxToolBarToolBase *result = 0 ;
24381 void *argp1 = 0 ;
24382 int res1 = 0 ;
24383 size_t val2 ;
24384 int ecode2 = 0 ;
24385 void *argp3 = 0 ;
24386 int res3 = 0 ;
24387 PyObject * obj0 = 0 ;
24388 PyObject * obj1 = 0 ;
24389 PyObject * obj2 = 0 ;
24390 char * kwnames[] = {
24391 (char *) "self",(char *) "pos",(char *) "control", NULL
24392 };
24393
24394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24396 if (!SWIG_IsOK(res1)) {
24397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24398 }
24399 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24400 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24401 if (!SWIG_IsOK(ecode2)) {
24402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24403 }
24404 arg2 = static_cast< size_t >(val2);
24405 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24406 if (!SWIG_IsOK(res3)) {
24407 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24408 }
24409 arg3 = reinterpret_cast< wxControl * >(argp3);
24410 {
24411 PyThreadState* __tstate = wxPyBeginAllowThreads();
24412 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24413 wxPyEndAllowThreads(__tstate);
24414 if (PyErr_Occurred()) SWIG_fail;
24415 }
24416 {
24417 resultobj = wxPyMake_wxObject(result, (bool)0);
24418 }
24419 return resultobj;
24420 fail:
24421 return NULL;
24422 }
24423
24424
24425 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24426 PyObject *resultobj = 0;
24427 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24428 int arg2 ;
24429 wxControl *result = 0 ;
24430 void *argp1 = 0 ;
24431 int res1 = 0 ;
24432 int val2 ;
24433 int ecode2 = 0 ;
24434 PyObject * obj0 = 0 ;
24435 PyObject * obj1 = 0 ;
24436 char * kwnames[] = {
24437 (char *) "self",(char *) "id", NULL
24438 };
24439
24440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24442 if (!SWIG_IsOK(res1)) {
24443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24444 }
24445 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24446 ecode2 = SWIG_AsVal_int(obj1, &val2);
24447 if (!SWIG_IsOK(ecode2)) {
24448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24449 }
24450 arg2 = static_cast< int >(val2);
24451 {
24452 PyThreadState* __tstate = wxPyBeginAllowThreads();
24453 result = (wxControl *)(arg1)->FindControl(arg2);
24454 wxPyEndAllowThreads(__tstate);
24455 if (PyErr_Occurred()) SWIG_fail;
24456 }
24457 {
24458 resultobj = wxPyMake_wxObject(result, 0);
24459 }
24460 return resultobj;
24461 fail:
24462 return NULL;
24463 }
24464
24465
24466 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24467 PyObject *resultobj = 0;
24468 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24469 wxToolBarToolBase *result = 0 ;
24470 void *argp1 = 0 ;
24471 int res1 = 0 ;
24472 PyObject *swig_obj[1] ;
24473
24474 if (!args) SWIG_fail;
24475 swig_obj[0] = args;
24476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24477 if (!SWIG_IsOK(res1)) {
24478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24479 }
24480 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24481 {
24482 PyThreadState* __tstate = wxPyBeginAllowThreads();
24483 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24484 wxPyEndAllowThreads(__tstate);
24485 if (PyErr_Occurred()) SWIG_fail;
24486 }
24487 {
24488 resultobj = wxPyMake_wxObject(result, (bool)0);
24489 }
24490 return resultobj;
24491 fail:
24492 return NULL;
24493 }
24494
24495
24496 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24497 PyObject *resultobj = 0;
24498 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24499 size_t arg2 ;
24500 wxToolBarToolBase *result = 0 ;
24501 void *argp1 = 0 ;
24502 int res1 = 0 ;
24503 size_t val2 ;
24504 int ecode2 = 0 ;
24505 PyObject * obj0 = 0 ;
24506 PyObject * obj1 = 0 ;
24507 char * kwnames[] = {
24508 (char *) "self",(char *) "pos", NULL
24509 };
24510
24511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24513 if (!SWIG_IsOK(res1)) {
24514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24515 }
24516 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24517 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24518 if (!SWIG_IsOK(ecode2)) {
24519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24520 }
24521 arg2 = static_cast< size_t >(val2);
24522 {
24523 PyThreadState* __tstate = wxPyBeginAllowThreads();
24524 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24525 wxPyEndAllowThreads(__tstate);
24526 if (PyErr_Occurred()) SWIG_fail;
24527 }
24528 {
24529 resultobj = wxPyMake_wxObject(result, (bool)0);
24530 }
24531 return resultobj;
24532 fail:
24533 return NULL;
24534 }
24535
24536
24537 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24538 PyObject *resultobj = 0;
24539 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24540 int arg2 ;
24541 wxToolBarToolBase *result = 0 ;
24542 void *argp1 = 0 ;
24543 int res1 = 0 ;
24544 int val2 ;
24545 int ecode2 = 0 ;
24546 PyObject * obj0 = 0 ;
24547 PyObject * obj1 = 0 ;
24548 char * kwnames[] = {
24549 (char *) "self",(char *) "id", NULL
24550 };
24551
24552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24554 if (!SWIG_IsOK(res1)) {
24555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24556 }
24557 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24558 ecode2 = SWIG_AsVal_int(obj1, &val2);
24559 if (!SWIG_IsOK(ecode2)) {
24560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24561 }
24562 arg2 = static_cast< int >(val2);
24563 {
24564 PyThreadState* __tstate = wxPyBeginAllowThreads();
24565 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24566 wxPyEndAllowThreads(__tstate);
24567 if (PyErr_Occurred()) SWIG_fail;
24568 }
24569 {
24570 resultobj = wxPyMake_wxObject(result, (bool)0);
24571 }
24572 return resultobj;
24573 fail:
24574 return NULL;
24575 }
24576
24577
24578 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24579 PyObject *resultobj = 0;
24580 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24581 size_t arg2 ;
24582 bool result;
24583 void *argp1 = 0 ;
24584 int res1 = 0 ;
24585 size_t val2 ;
24586 int ecode2 = 0 ;
24587 PyObject * obj0 = 0 ;
24588 PyObject * obj1 = 0 ;
24589 char * kwnames[] = {
24590 (char *) "self",(char *) "pos", NULL
24591 };
24592
24593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24595 if (!SWIG_IsOK(res1)) {
24596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24597 }
24598 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24599 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24600 if (!SWIG_IsOK(ecode2)) {
24601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24602 }
24603 arg2 = static_cast< size_t >(val2);
24604 {
24605 PyThreadState* __tstate = wxPyBeginAllowThreads();
24606 result = (bool)(arg1)->DeleteToolByPos(arg2);
24607 wxPyEndAllowThreads(__tstate);
24608 if (PyErr_Occurred()) SWIG_fail;
24609 }
24610 {
24611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24612 }
24613 return resultobj;
24614 fail:
24615 return NULL;
24616 }
24617
24618
24619 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24620 PyObject *resultobj = 0;
24621 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24622 int arg2 ;
24623 bool result;
24624 void *argp1 = 0 ;
24625 int res1 = 0 ;
24626 int val2 ;
24627 int ecode2 = 0 ;
24628 PyObject * obj0 = 0 ;
24629 PyObject * obj1 = 0 ;
24630 char * kwnames[] = {
24631 (char *) "self",(char *) "id", NULL
24632 };
24633
24634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24636 if (!SWIG_IsOK(res1)) {
24637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24638 }
24639 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24640 ecode2 = SWIG_AsVal_int(obj1, &val2);
24641 if (!SWIG_IsOK(ecode2)) {
24642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24643 }
24644 arg2 = static_cast< int >(val2);
24645 {
24646 PyThreadState* __tstate = wxPyBeginAllowThreads();
24647 result = (bool)(arg1)->DeleteTool(arg2);
24648 wxPyEndAllowThreads(__tstate);
24649 if (PyErr_Occurred()) SWIG_fail;
24650 }
24651 {
24652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24653 }
24654 return resultobj;
24655 fail:
24656 return NULL;
24657 }
24658
24659
24660 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24661 PyObject *resultobj = 0;
24662 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24663 void *argp1 = 0 ;
24664 int res1 = 0 ;
24665 PyObject *swig_obj[1] ;
24666
24667 if (!args) SWIG_fail;
24668 swig_obj[0] = args;
24669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24670 if (!SWIG_IsOK(res1)) {
24671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24672 }
24673 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24674 {
24675 PyThreadState* __tstate = wxPyBeginAllowThreads();
24676 (arg1)->ClearTools();
24677 wxPyEndAllowThreads(__tstate);
24678 if (PyErr_Occurred()) SWIG_fail;
24679 }
24680 resultobj = SWIG_Py_Void();
24681 return resultobj;
24682 fail:
24683 return NULL;
24684 }
24685
24686
24687 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24688 PyObject *resultobj = 0;
24689 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24690 bool result;
24691 void *argp1 = 0 ;
24692 int res1 = 0 ;
24693 PyObject *swig_obj[1] ;
24694
24695 if (!args) SWIG_fail;
24696 swig_obj[0] = args;
24697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24698 if (!SWIG_IsOK(res1)) {
24699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24700 }
24701 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24702 {
24703 PyThreadState* __tstate = wxPyBeginAllowThreads();
24704 result = (bool)(arg1)->Realize();
24705 wxPyEndAllowThreads(__tstate);
24706 if (PyErr_Occurred()) SWIG_fail;
24707 }
24708 {
24709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24710 }
24711 return resultobj;
24712 fail:
24713 return NULL;
24714 }
24715
24716
24717 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24718 PyObject *resultobj = 0;
24719 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24720 int arg2 ;
24721 bool arg3 ;
24722 void *argp1 = 0 ;
24723 int res1 = 0 ;
24724 int val2 ;
24725 int ecode2 = 0 ;
24726 bool val3 ;
24727 int ecode3 = 0 ;
24728 PyObject * obj0 = 0 ;
24729 PyObject * obj1 = 0 ;
24730 PyObject * obj2 = 0 ;
24731 char * kwnames[] = {
24732 (char *) "self",(char *) "id",(char *) "enable", NULL
24733 };
24734
24735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24737 if (!SWIG_IsOK(res1)) {
24738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24739 }
24740 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24741 ecode2 = SWIG_AsVal_int(obj1, &val2);
24742 if (!SWIG_IsOK(ecode2)) {
24743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24744 }
24745 arg2 = static_cast< int >(val2);
24746 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24747 if (!SWIG_IsOK(ecode3)) {
24748 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24749 }
24750 arg3 = static_cast< bool >(val3);
24751 {
24752 PyThreadState* __tstate = wxPyBeginAllowThreads();
24753 (arg1)->EnableTool(arg2,arg3);
24754 wxPyEndAllowThreads(__tstate);
24755 if (PyErr_Occurred()) SWIG_fail;
24756 }
24757 resultobj = SWIG_Py_Void();
24758 return resultobj;
24759 fail:
24760 return NULL;
24761 }
24762
24763
24764 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24765 PyObject *resultobj = 0;
24766 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24767 int arg2 ;
24768 bool arg3 ;
24769 void *argp1 = 0 ;
24770 int res1 = 0 ;
24771 int val2 ;
24772 int ecode2 = 0 ;
24773 bool val3 ;
24774 int ecode3 = 0 ;
24775 PyObject * obj0 = 0 ;
24776 PyObject * obj1 = 0 ;
24777 PyObject * obj2 = 0 ;
24778 char * kwnames[] = {
24779 (char *) "self",(char *) "id",(char *) "toggle", NULL
24780 };
24781
24782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24784 if (!SWIG_IsOK(res1)) {
24785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24786 }
24787 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24788 ecode2 = SWIG_AsVal_int(obj1, &val2);
24789 if (!SWIG_IsOK(ecode2)) {
24790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24791 }
24792 arg2 = static_cast< int >(val2);
24793 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24794 if (!SWIG_IsOK(ecode3)) {
24795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24796 }
24797 arg3 = static_cast< bool >(val3);
24798 {
24799 PyThreadState* __tstate = wxPyBeginAllowThreads();
24800 (arg1)->ToggleTool(arg2,arg3);
24801 wxPyEndAllowThreads(__tstate);
24802 if (PyErr_Occurred()) SWIG_fail;
24803 }
24804 resultobj = SWIG_Py_Void();
24805 return resultobj;
24806 fail:
24807 return NULL;
24808 }
24809
24810
24811 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24812 PyObject *resultobj = 0;
24813 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24814 int arg2 ;
24815 bool arg3 ;
24816 void *argp1 = 0 ;
24817 int res1 = 0 ;
24818 int val2 ;
24819 int ecode2 = 0 ;
24820 bool val3 ;
24821 int ecode3 = 0 ;
24822 PyObject * obj0 = 0 ;
24823 PyObject * obj1 = 0 ;
24824 PyObject * obj2 = 0 ;
24825 char * kwnames[] = {
24826 (char *) "self",(char *) "id",(char *) "toggle", NULL
24827 };
24828
24829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24831 if (!SWIG_IsOK(res1)) {
24832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24833 }
24834 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24835 ecode2 = SWIG_AsVal_int(obj1, &val2);
24836 if (!SWIG_IsOK(ecode2)) {
24837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24838 }
24839 arg2 = static_cast< int >(val2);
24840 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24841 if (!SWIG_IsOK(ecode3)) {
24842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24843 }
24844 arg3 = static_cast< bool >(val3);
24845 {
24846 PyThreadState* __tstate = wxPyBeginAllowThreads();
24847 (arg1)->SetToggle(arg2,arg3);
24848 wxPyEndAllowThreads(__tstate);
24849 if (PyErr_Occurred()) SWIG_fail;
24850 }
24851 resultobj = SWIG_Py_Void();
24852 return resultobj;
24853 fail:
24854 return NULL;
24855 }
24856
24857
24858 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24859 PyObject *resultobj = 0;
24860 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24861 int arg2 ;
24862 PyObject *result = 0 ;
24863 void *argp1 = 0 ;
24864 int res1 = 0 ;
24865 int val2 ;
24866 int ecode2 = 0 ;
24867 PyObject * obj0 = 0 ;
24868 PyObject * obj1 = 0 ;
24869 char * kwnames[] = {
24870 (char *) "self",(char *) "id", NULL
24871 };
24872
24873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24875 if (!SWIG_IsOK(res1)) {
24876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24877 }
24878 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24879 ecode2 = SWIG_AsVal_int(obj1, &val2);
24880 if (!SWIG_IsOK(ecode2)) {
24881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24882 }
24883 arg2 = static_cast< int >(val2);
24884 {
24885 PyThreadState* __tstate = wxPyBeginAllowThreads();
24886 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24887 wxPyEndAllowThreads(__tstate);
24888 if (PyErr_Occurred()) SWIG_fail;
24889 }
24890 resultobj = result;
24891 return resultobj;
24892 fail:
24893 return NULL;
24894 }
24895
24896
24897 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24898 PyObject *resultobj = 0;
24899 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24900 int arg2 ;
24901 PyObject *arg3 = (PyObject *) 0 ;
24902 void *argp1 = 0 ;
24903 int res1 = 0 ;
24904 int val2 ;
24905 int ecode2 = 0 ;
24906 PyObject * obj0 = 0 ;
24907 PyObject * obj1 = 0 ;
24908 PyObject * obj2 = 0 ;
24909 char * kwnames[] = {
24910 (char *) "self",(char *) "id",(char *) "clientData", NULL
24911 };
24912
24913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24915 if (!SWIG_IsOK(res1)) {
24916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24917 }
24918 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24919 ecode2 = SWIG_AsVal_int(obj1, &val2);
24920 if (!SWIG_IsOK(ecode2)) {
24921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24922 }
24923 arg2 = static_cast< int >(val2);
24924 arg3 = obj2;
24925 {
24926 PyThreadState* __tstate = wxPyBeginAllowThreads();
24927 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24928 wxPyEndAllowThreads(__tstate);
24929 if (PyErr_Occurred()) SWIG_fail;
24930 }
24931 resultobj = SWIG_Py_Void();
24932 return resultobj;
24933 fail:
24934 return NULL;
24935 }
24936
24937
24938 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24939 PyObject *resultobj = 0;
24940 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24941 int arg2 ;
24942 int result;
24943 void *argp1 = 0 ;
24944 int res1 = 0 ;
24945 int val2 ;
24946 int ecode2 = 0 ;
24947 PyObject * obj0 = 0 ;
24948 PyObject * obj1 = 0 ;
24949 char * kwnames[] = {
24950 (char *) "self",(char *) "id", NULL
24951 };
24952
24953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24955 if (!SWIG_IsOK(res1)) {
24956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24957 }
24958 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24959 ecode2 = SWIG_AsVal_int(obj1, &val2);
24960 if (!SWIG_IsOK(ecode2)) {
24961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24962 }
24963 arg2 = static_cast< int >(val2);
24964 {
24965 PyThreadState* __tstate = wxPyBeginAllowThreads();
24966 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24967 wxPyEndAllowThreads(__tstate);
24968 if (PyErr_Occurred()) SWIG_fail;
24969 }
24970 resultobj = SWIG_From_int(static_cast< int >(result));
24971 return resultobj;
24972 fail:
24973 return NULL;
24974 }
24975
24976
24977 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24978 PyObject *resultobj = 0;
24979 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24980 int arg2 ;
24981 bool result;
24982 void *argp1 = 0 ;
24983 int res1 = 0 ;
24984 int val2 ;
24985 int ecode2 = 0 ;
24986 PyObject * obj0 = 0 ;
24987 PyObject * obj1 = 0 ;
24988 char * kwnames[] = {
24989 (char *) "self",(char *) "id", NULL
24990 };
24991
24992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24994 if (!SWIG_IsOK(res1)) {
24995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24996 }
24997 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24998 ecode2 = SWIG_AsVal_int(obj1, &val2);
24999 if (!SWIG_IsOK(ecode2)) {
25000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
25001 }
25002 arg2 = static_cast< int >(val2);
25003 {
25004 PyThreadState* __tstate = wxPyBeginAllowThreads();
25005 result = (bool)(arg1)->GetToolState(arg2);
25006 wxPyEndAllowThreads(__tstate);
25007 if (PyErr_Occurred()) SWIG_fail;
25008 }
25009 {
25010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25011 }
25012 return resultobj;
25013 fail:
25014 return NULL;
25015 }
25016
25017
25018 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25019 PyObject *resultobj = 0;
25020 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25021 int arg2 ;
25022 bool result;
25023 void *argp1 = 0 ;
25024 int res1 = 0 ;
25025 int val2 ;
25026 int ecode2 = 0 ;
25027 PyObject * obj0 = 0 ;
25028 PyObject * obj1 = 0 ;
25029 char * kwnames[] = {
25030 (char *) "self",(char *) "id", NULL
25031 };
25032
25033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
25034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25035 if (!SWIG_IsOK(res1)) {
25036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25037 }
25038 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25039 ecode2 = SWIG_AsVal_int(obj1, &val2);
25040 if (!SWIG_IsOK(ecode2)) {
25041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
25042 }
25043 arg2 = static_cast< int >(val2);
25044 {
25045 PyThreadState* __tstate = wxPyBeginAllowThreads();
25046 result = (bool)(arg1)->GetToolEnabled(arg2);
25047 wxPyEndAllowThreads(__tstate);
25048 if (PyErr_Occurred()) SWIG_fail;
25049 }
25050 {
25051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25052 }
25053 return resultobj;
25054 fail:
25055 return NULL;
25056 }
25057
25058
25059 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25060 PyObject *resultobj = 0;
25061 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25062 int arg2 ;
25063 wxString *arg3 = 0 ;
25064 void *argp1 = 0 ;
25065 int res1 = 0 ;
25066 int val2 ;
25067 int ecode2 = 0 ;
25068 bool temp3 = false ;
25069 PyObject * obj0 = 0 ;
25070 PyObject * obj1 = 0 ;
25071 PyObject * obj2 = 0 ;
25072 char * kwnames[] = {
25073 (char *) "self",(char *) "id",(char *) "helpString", NULL
25074 };
25075
25076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25078 if (!SWIG_IsOK(res1)) {
25079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25080 }
25081 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25082 ecode2 = SWIG_AsVal_int(obj1, &val2);
25083 if (!SWIG_IsOK(ecode2)) {
25084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25085 }
25086 arg2 = static_cast< int >(val2);
25087 {
25088 arg3 = wxString_in_helper(obj2);
25089 if (arg3 == NULL) SWIG_fail;
25090 temp3 = true;
25091 }
25092 {
25093 PyThreadState* __tstate = wxPyBeginAllowThreads();
25094 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
25095 wxPyEndAllowThreads(__tstate);
25096 if (PyErr_Occurred()) SWIG_fail;
25097 }
25098 resultobj = SWIG_Py_Void();
25099 {
25100 if (temp3)
25101 delete arg3;
25102 }
25103 return resultobj;
25104 fail:
25105 {
25106 if (temp3)
25107 delete arg3;
25108 }
25109 return NULL;
25110 }
25111
25112
25113 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25114 PyObject *resultobj = 0;
25115 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25116 int arg2 ;
25117 wxString result;
25118 void *argp1 = 0 ;
25119 int res1 = 0 ;
25120 int val2 ;
25121 int ecode2 = 0 ;
25122 PyObject * obj0 = 0 ;
25123 PyObject * obj1 = 0 ;
25124 char * kwnames[] = {
25125 (char *) "self",(char *) "id", NULL
25126 };
25127
25128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25130 if (!SWIG_IsOK(res1)) {
25131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25132 }
25133 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25134 ecode2 = SWIG_AsVal_int(obj1, &val2);
25135 if (!SWIG_IsOK(ecode2)) {
25136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25137 }
25138 arg2 = static_cast< int >(val2);
25139 {
25140 PyThreadState* __tstate = wxPyBeginAllowThreads();
25141 result = (arg1)->GetToolShortHelp(arg2);
25142 wxPyEndAllowThreads(__tstate);
25143 if (PyErr_Occurred()) SWIG_fail;
25144 }
25145 {
25146 #if wxUSE_UNICODE
25147 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25148 #else
25149 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25150 #endif
25151 }
25152 return resultobj;
25153 fail:
25154 return NULL;
25155 }
25156
25157
25158 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25159 PyObject *resultobj = 0;
25160 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25161 int arg2 ;
25162 wxString *arg3 = 0 ;
25163 void *argp1 = 0 ;
25164 int res1 = 0 ;
25165 int val2 ;
25166 int ecode2 = 0 ;
25167 bool temp3 = false ;
25168 PyObject * obj0 = 0 ;
25169 PyObject * obj1 = 0 ;
25170 PyObject * obj2 = 0 ;
25171 char * kwnames[] = {
25172 (char *) "self",(char *) "id",(char *) "helpString", NULL
25173 };
25174
25175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25177 if (!SWIG_IsOK(res1)) {
25178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25179 }
25180 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25181 ecode2 = SWIG_AsVal_int(obj1, &val2);
25182 if (!SWIG_IsOK(ecode2)) {
25183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25184 }
25185 arg2 = static_cast< int >(val2);
25186 {
25187 arg3 = wxString_in_helper(obj2);
25188 if (arg3 == NULL) SWIG_fail;
25189 temp3 = true;
25190 }
25191 {
25192 PyThreadState* __tstate = wxPyBeginAllowThreads();
25193 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25194 wxPyEndAllowThreads(__tstate);
25195 if (PyErr_Occurred()) SWIG_fail;
25196 }
25197 resultobj = SWIG_Py_Void();
25198 {
25199 if (temp3)
25200 delete arg3;
25201 }
25202 return resultobj;
25203 fail:
25204 {
25205 if (temp3)
25206 delete arg3;
25207 }
25208 return NULL;
25209 }
25210
25211
25212 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25213 PyObject *resultobj = 0;
25214 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25215 int arg2 ;
25216 wxString result;
25217 void *argp1 = 0 ;
25218 int res1 = 0 ;
25219 int val2 ;
25220 int ecode2 = 0 ;
25221 PyObject * obj0 = 0 ;
25222 PyObject * obj1 = 0 ;
25223 char * kwnames[] = {
25224 (char *) "self",(char *) "id", NULL
25225 };
25226
25227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25229 if (!SWIG_IsOK(res1)) {
25230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25231 }
25232 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25233 ecode2 = SWIG_AsVal_int(obj1, &val2);
25234 if (!SWIG_IsOK(ecode2)) {
25235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25236 }
25237 arg2 = static_cast< int >(val2);
25238 {
25239 PyThreadState* __tstate = wxPyBeginAllowThreads();
25240 result = (arg1)->GetToolLongHelp(arg2);
25241 wxPyEndAllowThreads(__tstate);
25242 if (PyErr_Occurred()) SWIG_fail;
25243 }
25244 {
25245 #if wxUSE_UNICODE
25246 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25247 #else
25248 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25249 #endif
25250 }
25251 return resultobj;
25252 fail:
25253 return NULL;
25254 }
25255
25256
25257 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25258 PyObject *resultobj = 0;
25259 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25260 int arg2 ;
25261 int arg3 ;
25262 void *argp1 = 0 ;
25263 int res1 = 0 ;
25264 int val2 ;
25265 int ecode2 = 0 ;
25266 int val3 ;
25267 int ecode3 = 0 ;
25268 PyObject * obj0 = 0 ;
25269 PyObject * obj1 = 0 ;
25270 PyObject * obj2 = 0 ;
25271 char * kwnames[] = {
25272 (char *) "self",(char *) "x",(char *) "y", NULL
25273 };
25274
25275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25277 if (!SWIG_IsOK(res1)) {
25278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25279 }
25280 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25281 ecode2 = SWIG_AsVal_int(obj1, &val2);
25282 if (!SWIG_IsOK(ecode2)) {
25283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25284 }
25285 arg2 = static_cast< int >(val2);
25286 ecode3 = SWIG_AsVal_int(obj2, &val3);
25287 if (!SWIG_IsOK(ecode3)) {
25288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25289 }
25290 arg3 = static_cast< int >(val3);
25291 {
25292 PyThreadState* __tstate = wxPyBeginAllowThreads();
25293 (arg1)->SetMargins(arg2,arg3);
25294 wxPyEndAllowThreads(__tstate);
25295 if (PyErr_Occurred()) SWIG_fail;
25296 }
25297 resultobj = SWIG_Py_Void();
25298 return resultobj;
25299 fail:
25300 return NULL;
25301 }
25302
25303
25304 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25305 PyObject *resultobj = 0;
25306 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25307 wxSize *arg2 = 0 ;
25308 void *argp1 = 0 ;
25309 int res1 = 0 ;
25310 wxSize temp2 ;
25311 PyObject * obj0 = 0 ;
25312 PyObject * obj1 = 0 ;
25313 char * kwnames[] = {
25314 (char *) "self",(char *) "size", NULL
25315 };
25316
25317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25319 if (!SWIG_IsOK(res1)) {
25320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25321 }
25322 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25323 {
25324 arg2 = &temp2;
25325 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25326 }
25327 {
25328 PyThreadState* __tstate = wxPyBeginAllowThreads();
25329 (arg1)->SetMargins((wxSize const &)*arg2);
25330 wxPyEndAllowThreads(__tstate);
25331 if (PyErr_Occurred()) SWIG_fail;
25332 }
25333 resultobj = SWIG_Py_Void();
25334 return resultobj;
25335 fail:
25336 return NULL;
25337 }
25338
25339
25340 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25341 PyObject *resultobj = 0;
25342 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25343 int arg2 ;
25344 void *argp1 = 0 ;
25345 int res1 = 0 ;
25346 int val2 ;
25347 int ecode2 = 0 ;
25348 PyObject * obj0 = 0 ;
25349 PyObject * obj1 = 0 ;
25350 char * kwnames[] = {
25351 (char *) "self",(char *) "packing", NULL
25352 };
25353
25354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25356 if (!SWIG_IsOK(res1)) {
25357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25358 }
25359 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25360 ecode2 = SWIG_AsVal_int(obj1, &val2);
25361 if (!SWIG_IsOK(ecode2)) {
25362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25363 }
25364 arg2 = static_cast< int >(val2);
25365 {
25366 PyThreadState* __tstate = wxPyBeginAllowThreads();
25367 (arg1)->SetToolPacking(arg2);
25368 wxPyEndAllowThreads(__tstate);
25369 if (PyErr_Occurred()) SWIG_fail;
25370 }
25371 resultobj = SWIG_Py_Void();
25372 return resultobj;
25373 fail:
25374 return NULL;
25375 }
25376
25377
25378 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25379 PyObject *resultobj = 0;
25380 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25381 int arg2 ;
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 *) "separation", NULL
25390 };
25391
25392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",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_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
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_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25401 }
25402 arg2 = static_cast< int >(val2);
25403 {
25404 PyThreadState* __tstate = wxPyBeginAllowThreads();
25405 (arg1)->SetToolSeparation(arg2);
25406 wxPyEndAllowThreads(__tstate);
25407 if (PyErr_Occurred()) SWIG_fail;
25408 }
25409 resultobj = SWIG_Py_Void();
25410 return resultobj;
25411 fail:
25412 return NULL;
25413 }
25414
25415
25416 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25417 PyObject *resultobj = 0;
25418 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25419 wxSize result;
25420 void *argp1 = 0 ;
25421 int res1 = 0 ;
25422 PyObject *swig_obj[1] ;
25423
25424 if (!args) SWIG_fail;
25425 swig_obj[0] = args;
25426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25427 if (!SWIG_IsOK(res1)) {
25428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25429 }
25430 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25431 {
25432 PyThreadState* __tstate = wxPyBeginAllowThreads();
25433 result = (arg1)->GetToolMargins();
25434 wxPyEndAllowThreads(__tstate);
25435 if (PyErr_Occurred()) SWIG_fail;
25436 }
25437 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25438 return resultobj;
25439 fail:
25440 return NULL;
25441 }
25442
25443
25444 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25445 PyObject *resultobj = 0;
25446 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25447 wxSize result;
25448 void *argp1 = 0 ;
25449 int res1 = 0 ;
25450 PyObject *swig_obj[1] ;
25451
25452 if (!args) SWIG_fail;
25453 swig_obj[0] = args;
25454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25455 if (!SWIG_IsOK(res1)) {
25456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25457 }
25458 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25459 {
25460 PyThreadState* __tstate = wxPyBeginAllowThreads();
25461 result = (arg1)->GetMargins();
25462 wxPyEndAllowThreads(__tstate);
25463 if (PyErr_Occurred()) SWIG_fail;
25464 }
25465 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25466 return resultobj;
25467 fail:
25468 return NULL;
25469 }
25470
25471
25472 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25473 PyObject *resultobj = 0;
25474 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25475 int result;
25476 void *argp1 = 0 ;
25477 int res1 = 0 ;
25478 PyObject *swig_obj[1] ;
25479
25480 if (!args) SWIG_fail;
25481 swig_obj[0] = args;
25482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25483 if (!SWIG_IsOK(res1)) {
25484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25485 }
25486 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25487 {
25488 PyThreadState* __tstate = wxPyBeginAllowThreads();
25489 result = (int)(arg1)->GetToolPacking();
25490 wxPyEndAllowThreads(__tstate);
25491 if (PyErr_Occurred()) SWIG_fail;
25492 }
25493 resultobj = SWIG_From_int(static_cast< int >(result));
25494 return resultobj;
25495 fail:
25496 return NULL;
25497 }
25498
25499
25500 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25501 PyObject *resultobj = 0;
25502 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25503 int result;
25504 void *argp1 = 0 ;
25505 int res1 = 0 ;
25506 PyObject *swig_obj[1] ;
25507
25508 if (!args) SWIG_fail;
25509 swig_obj[0] = args;
25510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25511 if (!SWIG_IsOK(res1)) {
25512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25513 }
25514 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25515 {
25516 PyThreadState* __tstate = wxPyBeginAllowThreads();
25517 result = (int)(arg1)->GetToolSeparation();
25518 wxPyEndAllowThreads(__tstate);
25519 if (PyErr_Occurred()) SWIG_fail;
25520 }
25521 resultobj = SWIG_From_int(static_cast< int >(result));
25522 return resultobj;
25523 fail:
25524 return NULL;
25525 }
25526
25527
25528 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25529 PyObject *resultobj = 0;
25530 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25531 int arg2 ;
25532 void *argp1 = 0 ;
25533 int res1 = 0 ;
25534 int val2 ;
25535 int ecode2 = 0 ;
25536 PyObject * obj0 = 0 ;
25537 PyObject * obj1 = 0 ;
25538 char * kwnames[] = {
25539 (char *) "self",(char *) "nRows", NULL
25540 };
25541
25542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25544 if (!SWIG_IsOK(res1)) {
25545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25546 }
25547 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25548 ecode2 = SWIG_AsVal_int(obj1, &val2);
25549 if (!SWIG_IsOK(ecode2)) {
25550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25551 }
25552 arg2 = static_cast< int >(val2);
25553 {
25554 PyThreadState* __tstate = wxPyBeginAllowThreads();
25555 (arg1)->SetRows(arg2);
25556 wxPyEndAllowThreads(__tstate);
25557 if (PyErr_Occurred()) SWIG_fail;
25558 }
25559 resultobj = SWIG_Py_Void();
25560 return resultobj;
25561 fail:
25562 return NULL;
25563 }
25564
25565
25566 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25567 PyObject *resultobj = 0;
25568 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25569 int arg2 ;
25570 int arg3 ;
25571 void *argp1 = 0 ;
25572 int res1 = 0 ;
25573 int val2 ;
25574 int ecode2 = 0 ;
25575 int val3 ;
25576 int ecode3 = 0 ;
25577 PyObject * obj0 = 0 ;
25578 PyObject * obj1 = 0 ;
25579 PyObject * obj2 = 0 ;
25580 char * kwnames[] = {
25581 (char *) "self",(char *) "rows",(char *) "cols", NULL
25582 };
25583
25584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25586 if (!SWIG_IsOK(res1)) {
25587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25588 }
25589 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25590 ecode2 = SWIG_AsVal_int(obj1, &val2);
25591 if (!SWIG_IsOK(ecode2)) {
25592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25593 }
25594 arg2 = static_cast< int >(val2);
25595 ecode3 = SWIG_AsVal_int(obj2, &val3);
25596 if (!SWIG_IsOK(ecode3)) {
25597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25598 }
25599 arg3 = static_cast< int >(val3);
25600 {
25601 PyThreadState* __tstate = wxPyBeginAllowThreads();
25602 (arg1)->SetMaxRowsCols(arg2,arg3);
25603 wxPyEndAllowThreads(__tstate);
25604 if (PyErr_Occurred()) SWIG_fail;
25605 }
25606 resultobj = SWIG_Py_Void();
25607 return resultobj;
25608 fail:
25609 return NULL;
25610 }
25611
25612
25613 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25614 PyObject *resultobj = 0;
25615 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25616 int result;
25617 void *argp1 = 0 ;
25618 int res1 = 0 ;
25619 PyObject *swig_obj[1] ;
25620
25621 if (!args) SWIG_fail;
25622 swig_obj[0] = args;
25623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25624 if (!SWIG_IsOK(res1)) {
25625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25626 }
25627 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25628 {
25629 PyThreadState* __tstate = wxPyBeginAllowThreads();
25630 result = (int)(arg1)->GetMaxRows();
25631 wxPyEndAllowThreads(__tstate);
25632 if (PyErr_Occurred()) SWIG_fail;
25633 }
25634 resultobj = SWIG_From_int(static_cast< int >(result));
25635 return resultobj;
25636 fail:
25637 return NULL;
25638 }
25639
25640
25641 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25642 PyObject *resultobj = 0;
25643 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25644 int result;
25645 void *argp1 = 0 ;
25646 int res1 = 0 ;
25647 PyObject *swig_obj[1] ;
25648
25649 if (!args) SWIG_fail;
25650 swig_obj[0] = args;
25651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25652 if (!SWIG_IsOK(res1)) {
25653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25654 }
25655 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25656 {
25657 PyThreadState* __tstate = wxPyBeginAllowThreads();
25658 result = (int)(arg1)->GetMaxCols();
25659 wxPyEndAllowThreads(__tstate);
25660 if (PyErr_Occurred()) SWIG_fail;
25661 }
25662 resultobj = SWIG_From_int(static_cast< int >(result));
25663 return resultobj;
25664 fail:
25665 return NULL;
25666 }
25667
25668
25669 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25670 PyObject *resultobj = 0;
25671 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25672 wxSize *arg2 = 0 ;
25673 void *argp1 = 0 ;
25674 int res1 = 0 ;
25675 wxSize temp2 ;
25676 PyObject * obj0 = 0 ;
25677 PyObject * obj1 = 0 ;
25678 char * kwnames[] = {
25679 (char *) "self",(char *) "size", NULL
25680 };
25681
25682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25684 if (!SWIG_IsOK(res1)) {
25685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25686 }
25687 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25688 {
25689 arg2 = &temp2;
25690 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25691 }
25692 {
25693 PyThreadState* __tstate = wxPyBeginAllowThreads();
25694 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25695 wxPyEndAllowThreads(__tstate);
25696 if (PyErr_Occurred()) SWIG_fail;
25697 }
25698 resultobj = SWIG_Py_Void();
25699 return resultobj;
25700 fail:
25701 return NULL;
25702 }
25703
25704
25705 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25706 PyObject *resultobj = 0;
25707 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25708 wxSize result;
25709 void *argp1 = 0 ;
25710 int res1 = 0 ;
25711 PyObject *swig_obj[1] ;
25712
25713 if (!args) SWIG_fail;
25714 swig_obj[0] = args;
25715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25716 if (!SWIG_IsOK(res1)) {
25717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25718 }
25719 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25720 {
25721 PyThreadState* __tstate = wxPyBeginAllowThreads();
25722 result = (arg1)->GetToolBitmapSize();
25723 wxPyEndAllowThreads(__tstate);
25724 if (PyErr_Occurred()) SWIG_fail;
25725 }
25726 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25727 return resultobj;
25728 fail:
25729 return NULL;
25730 }
25731
25732
25733 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25734 PyObject *resultobj = 0;
25735 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25736 wxSize result;
25737 void *argp1 = 0 ;
25738 int res1 = 0 ;
25739 PyObject *swig_obj[1] ;
25740
25741 if (!args) SWIG_fail;
25742 swig_obj[0] = args;
25743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25744 if (!SWIG_IsOK(res1)) {
25745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25746 }
25747 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25748 {
25749 PyThreadState* __tstate = wxPyBeginAllowThreads();
25750 result = (arg1)->GetToolSize();
25751 wxPyEndAllowThreads(__tstate);
25752 if (PyErr_Occurred()) SWIG_fail;
25753 }
25754 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25755 return resultobj;
25756 fail:
25757 return NULL;
25758 }
25759
25760
25761 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25762 PyObject *resultobj = 0;
25763 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25764 int arg2 ;
25765 int arg3 ;
25766 wxToolBarToolBase *result = 0 ;
25767 void *argp1 = 0 ;
25768 int res1 = 0 ;
25769 int val2 ;
25770 int ecode2 = 0 ;
25771 int val3 ;
25772 int ecode3 = 0 ;
25773 PyObject * obj0 = 0 ;
25774 PyObject * obj1 = 0 ;
25775 PyObject * obj2 = 0 ;
25776 char * kwnames[] = {
25777 (char *) "self",(char *) "x",(char *) "y", NULL
25778 };
25779
25780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25782 if (!SWIG_IsOK(res1)) {
25783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25784 }
25785 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25786 ecode2 = SWIG_AsVal_int(obj1, &val2);
25787 if (!SWIG_IsOK(ecode2)) {
25788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25789 }
25790 arg2 = static_cast< int >(val2);
25791 ecode3 = SWIG_AsVal_int(obj2, &val3);
25792 if (!SWIG_IsOK(ecode3)) {
25793 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25794 }
25795 arg3 = static_cast< int >(val3);
25796 {
25797 PyThreadState* __tstate = wxPyBeginAllowThreads();
25798 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25799 wxPyEndAllowThreads(__tstate);
25800 if (PyErr_Occurred()) SWIG_fail;
25801 }
25802 {
25803 resultobj = wxPyMake_wxObject(result, (bool)0);
25804 }
25805 return resultobj;
25806 fail:
25807 return NULL;
25808 }
25809
25810
25811 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25812 PyObject *resultobj = 0;
25813 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25814 int arg2 ;
25815 wxToolBarToolBase *result = 0 ;
25816 void *argp1 = 0 ;
25817 int res1 = 0 ;
25818 int val2 ;
25819 int ecode2 = 0 ;
25820 PyObject * obj0 = 0 ;
25821 PyObject * obj1 = 0 ;
25822 char * kwnames[] = {
25823 (char *) "self",(char *) "toolid", NULL
25824 };
25825
25826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25828 if (!SWIG_IsOK(res1)) {
25829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25830 }
25831 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25832 ecode2 = SWIG_AsVal_int(obj1, &val2);
25833 if (!SWIG_IsOK(ecode2)) {
25834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25835 }
25836 arg2 = static_cast< int >(val2);
25837 {
25838 PyThreadState* __tstate = wxPyBeginAllowThreads();
25839 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25840 wxPyEndAllowThreads(__tstate);
25841 if (PyErr_Occurred()) SWIG_fail;
25842 }
25843 {
25844 resultobj = wxPyMake_wxObject(result, (bool)0);
25845 }
25846 return resultobj;
25847 fail:
25848 return NULL;
25849 }
25850
25851
25852 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25853 PyObject *resultobj = 0;
25854 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25855 bool result;
25856 void *argp1 = 0 ;
25857 int res1 = 0 ;
25858 PyObject *swig_obj[1] ;
25859
25860 if (!args) SWIG_fail;
25861 swig_obj[0] = args;
25862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25863 if (!SWIG_IsOK(res1)) {
25864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25865 }
25866 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25867 {
25868 PyThreadState* __tstate = wxPyBeginAllowThreads();
25869 result = (bool)(arg1)->IsVertical();
25870 wxPyEndAllowThreads(__tstate);
25871 if (PyErr_Occurred()) SWIG_fail;
25872 }
25873 {
25874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25875 }
25876 return resultobj;
25877 fail:
25878 return NULL;
25879 }
25880
25881
25882 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25883 PyObject *resultobj = 0;
25884 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25885 size_t result;
25886 void *argp1 = 0 ;
25887 int res1 = 0 ;
25888 PyObject *swig_obj[1] ;
25889
25890 if (!args) SWIG_fail;
25891 swig_obj[0] = args;
25892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25893 if (!SWIG_IsOK(res1)) {
25894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25895 }
25896 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25897 {
25898 PyThreadState* __tstate = wxPyBeginAllowThreads();
25899 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25900 wxPyEndAllowThreads(__tstate);
25901 if (PyErr_Occurred()) SWIG_fail;
25902 }
25903 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25904 return resultobj;
25905 fail:
25906 return NULL;
25907 }
25908
25909
25910 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25911 PyObject *obj;
25912 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25913 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25914 return SWIG_Py_Void();
25915 }
25916
25917 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25918 PyObject *resultobj = 0;
25919 wxWindow *arg1 = (wxWindow *) 0 ;
25920 int arg2 = (int) -1 ;
25921 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25922 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25923 wxSize const &arg4_defvalue = wxDefaultSize ;
25924 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25925 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25926 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25927 wxString *arg6 = (wxString *) &arg6_defvalue ;
25928 wxToolBar *result = 0 ;
25929 void *argp1 = 0 ;
25930 int res1 = 0 ;
25931 int val2 ;
25932 int ecode2 = 0 ;
25933 wxPoint temp3 ;
25934 wxSize temp4 ;
25935 long val5 ;
25936 int ecode5 = 0 ;
25937 bool temp6 = false ;
25938 PyObject * obj0 = 0 ;
25939 PyObject * obj1 = 0 ;
25940 PyObject * obj2 = 0 ;
25941 PyObject * obj3 = 0 ;
25942 PyObject * obj4 = 0 ;
25943 PyObject * obj5 = 0 ;
25944 char * kwnames[] = {
25945 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25946 };
25947
25948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25950 if (!SWIG_IsOK(res1)) {
25951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25952 }
25953 arg1 = reinterpret_cast< wxWindow * >(argp1);
25954 if (obj1) {
25955 ecode2 = SWIG_AsVal_int(obj1, &val2);
25956 if (!SWIG_IsOK(ecode2)) {
25957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25958 }
25959 arg2 = static_cast< int >(val2);
25960 }
25961 if (obj2) {
25962 {
25963 arg3 = &temp3;
25964 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25965 }
25966 }
25967 if (obj3) {
25968 {
25969 arg4 = &temp4;
25970 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25971 }
25972 }
25973 if (obj4) {
25974 ecode5 = SWIG_AsVal_long(obj4, &val5);
25975 if (!SWIG_IsOK(ecode5)) {
25976 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25977 }
25978 arg5 = static_cast< long >(val5);
25979 }
25980 if (obj5) {
25981 {
25982 arg6 = wxString_in_helper(obj5);
25983 if (arg6 == NULL) SWIG_fail;
25984 temp6 = true;
25985 }
25986 }
25987 {
25988 if (!wxPyCheckForApp()) SWIG_fail;
25989 PyThreadState* __tstate = wxPyBeginAllowThreads();
25990 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25991 wxPyEndAllowThreads(__tstate);
25992 if (PyErr_Occurred()) SWIG_fail;
25993 }
25994 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25995 {
25996 if (temp6)
25997 delete arg6;
25998 }
25999 return resultobj;
26000 fail:
26001 {
26002 if (temp6)
26003 delete arg6;
26004 }
26005 return NULL;
26006 }
26007
26008
26009 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26010 PyObject *resultobj = 0;
26011 wxToolBar *result = 0 ;
26012
26013 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
26014 {
26015 if (!wxPyCheckForApp()) SWIG_fail;
26016 PyThreadState* __tstate = wxPyBeginAllowThreads();
26017 result = (wxToolBar *)new wxToolBar();
26018 wxPyEndAllowThreads(__tstate);
26019 if (PyErr_Occurred()) SWIG_fail;
26020 }
26021 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
26022 return resultobj;
26023 fail:
26024 return NULL;
26025 }
26026
26027
26028 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26029 PyObject *resultobj = 0;
26030 wxToolBar *arg1 = (wxToolBar *) 0 ;
26031 wxWindow *arg2 = (wxWindow *) 0 ;
26032 int arg3 = (int) -1 ;
26033 wxPoint const &arg4_defvalue = wxDefaultPosition ;
26034 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
26035 wxSize const &arg5_defvalue = wxDefaultSize ;
26036 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
26037 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
26038 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
26039 wxString *arg7 = (wxString *) &arg7_defvalue ;
26040 bool result;
26041 void *argp1 = 0 ;
26042 int res1 = 0 ;
26043 void *argp2 = 0 ;
26044 int res2 = 0 ;
26045 int val3 ;
26046 int ecode3 = 0 ;
26047 wxPoint temp4 ;
26048 wxSize temp5 ;
26049 long val6 ;
26050 int ecode6 = 0 ;
26051 bool temp7 = false ;
26052 PyObject * obj0 = 0 ;
26053 PyObject * obj1 = 0 ;
26054 PyObject * obj2 = 0 ;
26055 PyObject * obj3 = 0 ;
26056 PyObject * obj4 = 0 ;
26057 PyObject * obj5 = 0 ;
26058 PyObject * obj6 = 0 ;
26059 char * kwnames[] = {
26060 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
26061 };
26062
26063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26065 if (!SWIG_IsOK(res1)) {
26066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
26067 }
26068 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26069 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26070 if (!SWIG_IsOK(res2)) {
26071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
26072 }
26073 arg2 = reinterpret_cast< wxWindow * >(argp2);
26074 if (obj2) {
26075 ecode3 = SWIG_AsVal_int(obj2, &val3);
26076 if (!SWIG_IsOK(ecode3)) {
26077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
26078 }
26079 arg3 = static_cast< int >(val3);
26080 }
26081 if (obj3) {
26082 {
26083 arg4 = &temp4;
26084 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
26085 }
26086 }
26087 if (obj4) {
26088 {
26089 arg5 = &temp5;
26090 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
26091 }
26092 }
26093 if (obj5) {
26094 ecode6 = SWIG_AsVal_long(obj5, &val6);
26095 if (!SWIG_IsOK(ecode6)) {
26096 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
26097 }
26098 arg6 = static_cast< long >(val6);
26099 }
26100 if (obj6) {
26101 {
26102 arg7 = wxString_in_helper(obj6);
26103 if (arg7 == NULL) SWIG_fail;
26104 temp7 = true;
26105 }
26106 }
26107 {
26108 PyThreadState* __tstate = wxPyBeginAllowThreads();
26109 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
26110 wxPyEndAllowThreads(__tstate);
26111 if (PyErr_Occurred()) SWIG_fail;
26112 }
26113 {
26114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26115 }
26116 {
26117 if (temp7)
26118 delete arg7;
26119 }
26120 return resultobj;
26121 fail:
26122 {
26123 if (temp7)
26124 delete arg7;
26125 }
26126 return NULL;
26127 }
26128
26129
26130 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26131 PyObject *resultobj = 0;
26132 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
26133 SwigValueWrapper<wxVisualAttributes > result;
26134 int val1 ;
26135 int ecode1 = 0 ;
26136 PyObject * obj0 = 0 ;
26137 char * kwnames[] = {
26138 (char *) "variant", NULL
26139 };
26140
26141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
26142 if (obj0) {
26143 ecode1 = SWIG_AsVal_int(obj0, &val1);
26144 if (!SWIG_IsOK(ecode1)) {
26145 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
26146 }
26147 arg1 = static_cast< wxWindowVariant >(val1);
26148 }
26149 {
26150 if (!wxPyCheckForApp()) SWIG_fail;
26151 PyThreadState* __tstate = wxPyBeginAllowThreads();
26152 result = wxToolBar::GetClassDefaultAttributes(arg1);
26153 wxPyEndAllowThreads(__tstate);
26154 if (PyErr_Occurred()) SWIG_fail;
26155 }
26156 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
26157 return resultobj;
26158 fail:
26159 return NULL;
26160 }
26161
26162
26163 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26164 PyObject *obj;
26165 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26166 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
26167 return SWIG_Py_Void();
26168 }
26169
26170 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26171 return SWIG_Python_InitShadowInstance(args);
26172 }
26173
26174 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
26175 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
26176 return 1;
26177 }
26178
26179
26180 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
26181 PyObject *pyobj = 0;
26182
26183 {
26184 #if wxUSE_UNICODE
26185 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26186 #else
26187 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26188 #endif
26189 }
26190 return pyobj;
26191 }
26192
26193
26194 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26195 PyObject *resultobj = 0;
26196 wxColour const &arg1_defvalue = wxNullColour ;
26197 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26198 wxColour const &arg2_defvalue = wxNullColour ;
26199 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26200 wxFont const &arg3_defvalue = wxNullFont ;
26201 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26202 wxListItemAttr *result = 0 ;
26203 wxColour temp1 ;
26204 wxColour temp2 ;
26205 void *argp3 = 0 ;
26206 int res3 = 0 ;
26207 PyObject * obj0 = 0 ;
26208 PyObject * obj1 = 0 ;
26209 PyObject * obj2 = 0 ;
26210 char * kwnames[] = {
26211 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26212 };
26213
26214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26215 if (obj0) {
26216 {
26217 arg1 = &temp1;
26218 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
26219 }
26220 }
26221 if (obj1) {
26222 {
26223 arg2 = &temp2;
26224 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26225 }
26226 }
26227 if (obj2) {
26228 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26229 if (!SWIG_IsOK(res3)) {
26230 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26231 }
26232 if (!argp3) {
26233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26234 }
26235 arg3 = reinterpret_cast< wxFont * >(argp3);
26236 }
26237 {
26238 PyThreadState* __tstate = wxPyBeginAllowThreads();
26239 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26240 wxPyEndAllowThreads(__tstate);
26241 if (PyErr_Occurred()) SWIG_fail;
26242 }
26243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26244 return resultobj;
26245 fail:
26246 return NULL;
26247 }
26248
26249
26250 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26251 PyObject *resultobj = 0;
26252 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26253 void *argp1 = 0 ;
26254 int res1 = 0 ;
26255 PyObject *swig_obj[1] ;
26256
26257 if (!args) SWIG_fail;
26258 swig_obj[0] = args;
26259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26260 if (!SWIG_IsOK(res1)) {
26261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26262 }
26263 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26264 {
26265 PyThreadState* __tstate = wxPyBeginAllowThreads();
26266 delete arg1;
26267
26268 wxPyEndAllowThreads(__tstate);
26269 if (PyErr_Occurred()) SWIG_fail;
26270 }
26271 resultobj = SWIG_Py_Void();
26272 return resultobj;
26273 fail:
26274 return NULL;
26275 }
26276
26277
26278 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26279 PyObject *resultobj = 0;
26280 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26281 wxColour *arg2 = 0 ;
26282 void *argp1 = 0 ;
26283 int res1 = 0 ;
26284 wxColour temp2 ;
26285 PyObject * obj0 = 0 ;
26286 PyObject * obj1 = 0 ;
26287 char * kwnames[] = {
26288 (char *) "self",(char *) "colText", NULL
26289 };
26290
26291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26293 if (!SWIG_IsOK(res1)) {
26294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26295 }
26296 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26297 {
26298 arg2 = &temp2;
26299 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26300 }
26301 {
26302 PyThreadState* __tstate = wxPyBeginAllowThreads();
26303 (arg1)->SetTextColour((wxColour const &)*arg2);
26304 wxPyEndAllowThreads(__tstate);
26305 if (PyErr_Occurred()) SWIG_fail;
26306 }
26307 resultobj = SWIG_Py_Void();
26308 return resultobj;
26309 fail:
26310 return NULL;
26311 }
26312
26313
26314 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26315 PyObject *resultobj = 0;
26316 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26317 wxColour *arg2 = 0 ;
26318 void *argp1 = 0 ;
26319 int res1 = 0 ;
26320 wxColour temp2 ;
26321 PyObject * obj0 = 0 ;
26322 PyObject * obj1 = 0 ;
26323 char * kwnames[] = {
26324 (char *) "self",(char *) "colBack", NULL
26325 };
26326
26327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26329 if (!SWIG_IsOK(res1)) {
26330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26331 }
26332 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26333 {
26334 arg2 = &temp2;
26335 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26336 }
26337 {
26338 PyThreadState* __tstate = wxPyBeginAllowThreads();
26339 (arg1)->SetBackgroundColour((wxColour const &)*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_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26351 PyObject *resultobj = 0;
26352 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26353 wxFont *arg2 = 0 ;
26354 void *argp1 = 0 ;
26355 int res1 = 0 ;
26356 void *argp2 = 0 ;
26357 int res2 = 0 ;
26358 PyObject * obj0 = 0 ;
26359 PyObject * obj1 = 0 ;
26360 char * kwnames[] = {
26361 (char *) "self",(char *) "font", NULL
26362 };
26363
26364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26366 if (!SWIG_IsOK(res1)) {
26367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26368 }
26369 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26370 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26371 if (!SWIG_IsOK(res2)) {
26372 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26373 }
26374 if (!argp2) {
26375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26376 }
26377 arg2 = reinterpret_cast< wxFont * >(argp2);
26378 {
26379 PyThreadState* __tstate = wxPyBeginAllowThreads();
26380 (arg1)->SetFont((wxFont const &)*arg2);
26381 wxPyEndAllowThreads(__tstate);
26382 if (PyErr_Occurred()) SWIG_fail;
26383 }
26384 resultobj = SWIG_Py_Void();
26385 return resultobj;
26386 fail:
26387 return NULL;
26388 }
26389
26390
26391 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26392 PyObject *resultobj = 0;
26393 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26394 bool result;
26395 void *argp1 = 0 ;
26396 int res1 = 0 ;
26397 PyObject *swig_obj[1] ;
26398
26399 if (!args) SWIG_fail;
26400 swig_obj[0] = args;
26401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26402 if (!SWIG_IsOK(res1)) {
26403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26404 }
26405 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26406 {
26407 PyThreadState* __tstate = wxPyBeginAllowThreads();
26408 result = (bool)(arg1)->HasTextColour();
26409 wxPyEndAllowThreads(__tstate);
26410 if (PyErr_Occurred()) SWIG_fail;
26411 }
26412 {
26413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26414 }
26415 return resultobj;
26416 fail:
26417 return NULL;
26418 }
26419
26420
26421 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26422 PyObject *resultobj = 0;
26423 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26424 bool result;
26425 void *argp1 = 0 ;
26426 int res1 = 0 ;
26427 PyObject *swig_obj[1] ;
26428
26429 if (!args) SWIG_fail;
26430 swig_obj[0] = args;
26431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26432 if (!SWIG_IsOK(res1)) {
26433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26434 }
26435 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26436 {
26437 PyThreadState* __tstate = wxPyBeginAllowThreads();
26438 result = (bool)(arg1)->HasBackgroundColour();
26439 wxPyEndAllowThreads(__tstate);
26440 if (PyErr_Occurred()) SWIG_fail;
26441 }
26442 {
26443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26444 }
26445 return resultobj;
26446 fail:
26447 return NULL;
26448 }
26449
26450
26451 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26452 PyObject *resultobj = 0;
26453 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26454 bool result;
26455 void *argp1 = 0 ;
26456 int res1 = 0 ;
26457 PyObject *swig_obj[1] ;
26458
26459 if (!args) SWIG_fail;
26460 swig_obj[0] = args;
26461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26462 if (!SWIG_IsOK(res1)) {
26463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26464 }
26465 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26466 {
26467 PyThreadState* __tstate = wxPyBeginAllowThreads();
26468 result = (bool)(arg1)->HasFont();
26469 wxPyEndAllowThreads(__tstate);
26470 if (PyErr_Occurred()) SWIG_fail;
26471 }
26472 {
26473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26474 }
26475 return resultobj;
26476 fail:
26477 return NULL;
26478 }
26479
26480
26481 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26482 PyObject *resultobj = 0;
26483 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26484 wxColour result;
26485 void *argp1 = 0 ;
26486 int res1 = 0 ;
26487 PyObject *swig_obj[1] ;
26488
26489 if (!args) SWIG_fail;
26490 swig_obj[0] = args;
26491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26492 if (!SWIG_IsOK(res1)) {
26493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26494 }
26495 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26496 {
26497 PyThreadState* __tstate = wxPyBeginAllowThreads();
26498 result = (arg1)->GetTextColour();
26499 wxPyEndAllowThreads(__tstate);
26500 if (PyErr_Occurred()) SWIG_fail;
26501 }
26502 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26503 return resultobj;
26504 fail:
26505 return NULL;
26506 }
26507
26508
26509 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26510 PyObject *resultobj = 0;
26511 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26512 wxColour result;
26513 void *argp1 = 0 ;
26514 int res1 = 0 ;
26515 PyObject *swig_obj[1] ;
26516
26517 if (!args) SWIG_fail;
26518 swig_obj[0] = args;
26519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26520 if (!SWIG_IsOK(res1)) {
26521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26522 }
26523 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26524 {
26525 PyThreadState* __tstate = wxPyBeginAllowThreads();
26526 result = (arg1)->GetBackgroundColour();
26527 wxPyEndAllowThreads(__tstate);
26528 if (PyErr_Occurred()) SWIG_fail;
26529 }
26530 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26531 return resultobj;
26532 fail:
26533 return NULL;
26534 }
26535
26536
26537 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26538 PyObject *resultobj = 0;
26539 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26540 wxFont result;
26541 void *argp1 = 0 ;
26542 int res1 = 0 ;
26543 PyObject *swig_obj[1] ;
26544
26545 if (!args) SWIG_fail;
26546 swig_obj[0] = args;
26547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26548 if (!SWIG_IsOK(res1)) {
26549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26550 }
26551 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26552 {
26553 PyThreadState* __tstate = wxPyBeginAllowThreads();
26554 result = (arg1)->GetFont();
26555 wxPyEndAllowThreads(__tstate);
26556 if (PyErr_Occurred()) SWIG_fail;
26557 }
26558 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26559 return resultobj;
26560 fail:
26561 return NULL;
26562 }
26563
26564
26565 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26566 PyObject *resultobj = 0;
26567 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26568 wxListItemAttr *arg2 = 0 ;
26569 void *argp1 = 0 ;
26570 int res1 = 0 ;
26571 void *argp2 = 0 ;
26572 int res2 = 0 ;
26573 PyObject * obj0 = 0 ;
26574 PyObject * obj1 = 0 ;
26575 char * kwnames[] = {
26576 (char *) "self",(char *) "source", NULL
26577 };
26578
26579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26581 if (!SWIG_IsOK(res1)) {
26582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26583 }
26584 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26585 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26586 if (!SWIG_IsOK(res2)) {
26587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26588 }
26589 if (!argp2) {
26590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26591 }
26592 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26593 {
26594 PyThreadState* __tstate = wxPyBeginAllowThreads();
26595 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26596 wxPyEndAllowThreads(__tstate);
26597 if (PyErr_Occurred()) SWIG_fail;
26598 }
26599 resultobj = SWIG_Py_Void();
26600 return resultobj;
26601 fail:
26602 return NULL;
26603 }
26604
26605
26606 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26607 PyObject *resultobj = 0;
26608 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26609 void *argp1 = 0 ;
26610 int res1 = 0 ;
26611 PyObject *swig_obj[1] ;
26612
26613 if (!args) SWIG_fail;
26614 swig_obj[0] = args;
26615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26616 if (!SWIG_IsOK(res1)) {
26617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26618 }
26619 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26620 {
26621 PyThreadState* __tstate = wxPyBeginAllowThreads();
26622 wxListItemAttr_Destroy(arg1);
26623 wxPyEndAllowThreads(__tstate);
26624 if (PyErr_Occurred()) SWIG_fail;
26625 }
26626 resultobj = SWIG_Py_Void();
26627 return resultobj;
26628 fail:
26629 return NULL;
26630 }
26631
26632
26633 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26634 PyObject *obj;
26635 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26636 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26637 return SWIG_Py_Void();
26638 }
26639
26640 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26641 return SWIG_Python_InitShadowInstance(args);
26642 }
26643
26644 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26645 PyObject *resultobj = 0;
26646 wxListItem *result = 0 ;
26647
26648 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26649 {
26650 PyThreadState* __tstate = wxPyBeginAllowThreads();
26651 result = (wxListItem *)new wxListItem();
26652 wxPyEndAllowThreads(__tstate);
26653 if (PyErr_Occurred()) SWIG_fail;
26654 }
26655 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
26656 return resultobj;
26657 fail:
26658 return NULL;
26659 }
26660
26661
26662 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26663 PyObject *resultobj = 0;
26664 wxListItem *arg1 = (wxListItem *) 0 ;
26665 void *argp1 = 0 ;
26666 int res1 = 0 ;
26667 PyObject *swig_obj[1] ;
26668
26669 if (!args) SWIG_fail;
26670 swig_obj[0] = args;
26671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26672 if (!SWIG_IsOK(res1)) {
26673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26674 }
26675 arg1 = reinterpret_cast< wxListItem * >(argp1);
26676 {
26677 PyThreadState* __tstate = wxPyBeginAllowThreads();
26678 delete arg1;
26679
26680 wxPyEndAllowThreads(__tstate);
26681 if (PyErr_Occurred()) SWIG_fail;
26682 }
26683 resultobj = SWIG_Py_Void();
26684 return resultobj;
26685 fail:
26686 return NULL;
26687 }
26688
26689
26690 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26691 PyObject *resultobj = 0;
26692 wxListItem *arg1 = (wxListItem *) 0 ;
26693 void *argp1 = 0 ;
26694 int res1 = 0 ;
26695 PyObject *swig_obj[1] ;
26696
26697 if (!args) SWIG_fail;
26698 swig_obj[0] = args;
26699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26700 if (!SWIG_IsOK(res1)) {
26701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26702 }
26703 arg1 = reinterpret_cast< wxListItem * >(argp1);
26704 {
26705 PyThreadState* __tstate = wxPyBeginAllowThreads();
26706 (arg1)->Clear();
26707 wxPyEndAllowThreads(__tstate);
26708 if (PyErr_Occurred()) SWIG_fail;
26709 }
26710 resultobj = SWIG_Py_Void();
26711 return resultobj;
26712 fail:
26713 return NULL;
26714 }
26715
26716
26717 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26718 PyObject *resultobj = 0;
26719 wxListItem *arg1 = (wxListItem *) 0 ;
26720 void *argp1 = 0 ;
26721 int res1 = 0 ;
26722 PyObject *swig_obj[1] ;
26723
26724 if (!args) SWIG_fail;
26725 swig_obj[0] = args;
26726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26727 if (!SWIG_IsOK(res1)) {
26728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26729 }
26730 arg1 = reinterpret_cast< wxListItem * >(argp1);
26731 {
26732 PyThreadState* __tstate = wxPyBeginAllowThreads();
26733 (arg1)->ClearAttributes();
26734 wxPyEndAllowThreads(__tstate);
26735 if (PyErr_Occurred()) SWIG_fail;
26736 }
26737 resultobj = SWIG_Py_Void();
26738 return resultobj;
26739 fail:
26740 return NULL;
26741 }
26742
26743
26744 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26745 PyObject *resultobj = 0;
26746 wxListItem *arg1 = (wxListItem *) 0 ;
26747 long arg2 ;
26748 void *argp1 = 0 ;
26749 int res1 = 0 ;
26750 long val2 ;
26751 int ecode2 = 0 ;
26752 PyObject * obj0 = 0 ;
26753 PyObject * obj1 = 0 ;
26754 char * kwnames[] = {
26755 (char *) "self",(char *) "mask", NULL
26756 };
26757
26758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26760 if (!SWIG_IsOK(res1)) {
26761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26762 }
26763 arg1 = reinterpret_cast< wxListItem * >(argp1);
26764 ecode2 = SWIG_AsVal_long(obj1, &val2);
26765 if (!SWIG_IsOK(ecode2)) {
26766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26767 }
26768 arg2 = static_cast< long >(val2);
26769 {
26770 PyThreadState* __tstate = wxPyBeginAllowThreads();
26771 (arg1)->SetMask(arg2);
26772 wxPyEndAllowThreads(__tstate);
26773 if (PyErr_Occurred()) SWIG_fail;
26774 }
26775 resultobj = SWIG_Py_Void();
26776 return resultobj;
26777 fail:
26778 return NULL;
26779 }
26780
26781
26782 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26783 PyObject *resultobj = 0;
26784 wxListItem *arg1 = (wxListItem *) 0 ;
26785 long arg2 ;
26786 void *argp1 = 0 ;
26787 int res1 = 0 ;
26788 long val2 ;
26789 int ecode2 = 0 ;
26790 PyObject * obj0 = 0 ;
26791 PyObject * obj1 = 0 ;
26792 char * kwnames[] = {
26793 (char *) "self",(char *) "id", NULL
26794 };
26795
26796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26798 if (!SWIG_IsOK(res1)) {
26799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26800 }
26801 arg1 = reinterpret_cast< wxListItem * >(argp1);
26802 ecode2 = SWIG_AsVal_long(obj1, &val2);
26803 if (!SWIG_IsOK(ecode2)) {
26804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26805 }
26806 arg2 = static_cast< long >(val2);
26807 {
26808 PyThreadState* __tstate = wxPyBeginAllowThreads();
26809 (arg1)->SetId(arg2);
26810 wxPyEndAllowThreads(__tstate);
26811 if (PyErr_Occurred()) SWIG_fail;
26812 }
26813 resultobj = SWIG_Py_Void();
26814 return resultobj;
26815 fail:
26816 return NULL;
26817 }
26818
26819
26820 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26821 PyObject *resultobj = 0;
26822 wxListItem *arg1 = (wxListItem *) 0 ;
26823 int arg2 ;
26824 void *argp1 = 0 ;
26825 int res1 = 0 ;
26826 int val2 ;
26827 int ecode2 = 0 ;
26828 PyObject * obj0 = 0 ;
26829 PyObject * obj1 = 0 ;
26830 char * kwnames[] = {
26831 (char *) "self",(char *) "col", NULL
26832 };
26833
26834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26836 if (!SWIG_IsOK(res1)) {
26837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26838 }
26839 arg1 = reinterpret_cast< wxListItem * >(argp1);
26840 ecode2 = SWIG_AsVal_int(obj1, &val2);
26841 if (!SWIG_IsOK(ecode2)) {
26842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26843 }
26844 arg2 = static_cast< int >(val2);
26845 {
26846 PyThreadState* __tstate = wxPyBeginAllowThreads();
26847 (arg1)->SetColumn(arg2);
26848 wxPyEndAllowThreads(__tstate);
26849 if (PyErr_Occurred()) SWIG_fail;
26850 }
26851 resultobj = SWIG_Py_Void();
26852 return resultobj;
26853 fail:
26854 return NULL;
26855 }
26856
26857
26858 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26859 PyObject *resultobj = 0;
26860 wxListItem *arg1 = (wxListItem *) 0 ;
26861 long arg2 ;
26862 void *argp1 = 0 ;
26863 int res1 = 0 ;
26864 long val2 ;
26865 int ecode2 = 0 ;
26866 PyObject * obj0 = 0 ;
26867 PyObject * obj1 = 0 ;
26868 char * kwnames[] = {
26869 (char *) "self",(char *) "state", NULL
26870 };
26871
26872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26874 if (!SWIG_IsOK(res1)) {
26875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26876 }
26877 arg1 = reinterpret_cast< wxListItem * >(argp1);
26878 ecode2 = SWIG_AsVal_long(obj1, &val2);
26879 if (!SWIG_IsOK(ecode2)) {
26880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26881 }
26882 arg2 = static_cast< long >(val2);
26883 {
26884 PyThreadState* __tstate = wxPyBeginAllowThreads();
26885 (arg1)->SetState(arg2);
26886 wxPyEndAllowThreads(__tstate);
26887 if (PyErr_Occurred()) SWIG_fail;
26888 }
26889 resultobj = SWIG_Py_Void();
26890 return resultobj;
26891 fail:
26892 return NULL;
26893 }
26894
26895
26896 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26897 PyObject *resultobj = 0;
26898 wxListItem *arg1 = (wxListItem *) 0 ;
26899 long arg2 ;
26900 void *argp1 = 0 ;
26901 int res1 = 0 ;
26902 long val2 ;
26903 int ecode2 = 0 ;
26904 PyObject * obj0 = 0 ;
26905 PyObject * obj1 = 0 ;
26906 char * kwnames[] = {
26907 (char *) "self",(char *) "stateMask", NULL
26908 };
26909
26910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26912 if (!SWIG_IsOK(res1)) {
26913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26914 }
26915 arg1 = reinterpret_cast< wxListItem * >(argp1);
26916 ecode2 = SWIG_AsVal_long(obj1, &val2);
26917 if (!SWIG_IsOK(ecode2)) {
26918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26919 }
26920 arg2 = static_cast< long >(val2);
26921 {
26922 PyThreadState* __tstate = wxPyBeginAllowThreads();
26923 (arg1)->SetStateMask(arg2);
26924 wxPyEndAllowThreads(__tstate);
26925 if (PyErr_Occurred()) SWIG_fail;
26926 }
26927 resultobj = SWIG_Py_Void();
26928 return resultobj;
26929 fail:
26930 return NULL;
26931 }
26932
26933
26934 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26935 PyObject *resultobj = 0;
26936 wxListItem *arg1 = (wxListItem *) 0 ;
26937 wxString *arg2 = 0 ;
26938 void *argp1 = 0 ;
26939 int res1 = 0 ;
26940 bool temp2 = false ;
26941 PyObject * obj0 = 0 ;
26942 PyObject * obj1 = 0 ;
26943 char * kwnames[] = {
26944 (char *) "self",(char *) "text", NULL
26945 };
26946
26947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26949 if (!SWIG_IsOK(res1)) {
26950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26951 }
26952 arg1 = reinterpret_cast< wxListItem * >(argp1);
26953 {
26954 arg2 = wxString_in_helper(obj1);
26955 if (arg2 == NULL) SWIG_fail;
26956 temp2 = true;
26957 }
26958 {
26959 PyThreadState* __tstate = wxPyBeginAllowThreads();
26960 (arg1)->SetText((wxString const &)*arg2);
26961 wxPyEndAllowThreads(__tstate);
26962 if (PyErr_Occurred()) SWIG_fail;
26963 }
26964 resultobj = SWIG_Py_Void();
26965 {
26966 if (temp2)
26967 delete arg2;
26968 }
26969 return resultobj;
26970 fail:
26971 {
26972 if (temp2)
26973 delete arg2;
26974 }
26975 return NULL;
26976 }
26977
26978
26979 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26980 PyObject *resultobj = 0;
26981 wxListItem *arg1 = (wxListItem *) 0 ;
26982 int arg2 ;
26983 void *argp1 = 0 ;
26984 int res1 = 0 ;
26985 int val2 ;
26986 int ecode2 = 0 ;
26987 PyObject * obj0 = 0 ;
26988 PyObject * obj1 = 0 ;
26989 char * kwnames[] = {
26990 (char *) "self",(char *) "image", NULL
26991 };
26992
26993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26995 if (!SWIG_IsOK(res1)) {
26996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26997 }
26998 arg1 = reinterpret_cast< wxListItem * >(argp1);
26999 ecode2 = SWIG_AsVal_int(obj1, &val2);
27000 if (!SWIG_IsOK(ecode2)) {
27001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
27002 }
27003 arg2 = static_cast< int >(val2);
27004 {
27005 PyThreadState* __tstate = wxPyBeginAllowThreads();
27006 (arg1)->SetImage(arg2);
27007 wxPyEndAllowThreads(__tstate);
27008 if (PyErr_Occurred()) SWIG_fail;
27009 }
27010 resultobj = SWIG_Py_Void();
27011 return resultobj;
27012 fail:
27013 return NULL;
27014 }
27015
27016
27017 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27018 PyObject *resultobj = 0;
27019 wxListItem *arg1 = (wxListItem *) 0 ;
27020 long arg2 ;
27021 void *argp1 = 0 ;
27022 int res1 = 0 ;
27023 long val2 ;
27024 int ecode2 = 0 ;
27025 PyObject * obj0 = 0 ;
27026 PyObject * obj1 = 0 ;
27027 char * kwnames[] = {
27028 (char *) "self",(char *) "data", NULL
27029 };
27030
27031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
27032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27033 if (!SWIG_IsOK(res1)) {
27034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27035 }
27036 arg1 = reinterpret_cast< wxListItem * >(argp1);
27037 ecode2 = SWIG_AsVal_long(obj1, &val2);
27038 if (!SWIG_IsOK(ecode2)) {
27039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
27040 }
27041 arg2 = static_cast< long >(val2);
27042 {
27043 PyThreadState* __tstate = wxPyBeginAllowThreads();
27044 (arg1)->SetData(arg2);
27045 wxPyEndAllowThreads(__tstate);
27046 if (PyErr_Occurred()) SWIG_fail;
27047 }
27048 resultobj = SWIG_Py_Void();
27049 return resultobj;
27050 fail:
27051 return NULL;
27052 }
27053
27054
27055 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27056 PyObject *resultobj = 0;
27057 wxListItem *arg1 = (wxListItem *) 0 ;
27058 int arg2 ;
27059 void *argp1 = 0 ;
27060 int res1 = 0 ;
27061 int val2 ;
27062 int ecode2 = 0 ;
27063 PyObject * obj0 = 0 ;
27064 PyObject * obj1 = 0 ;
27065 char * kwnames[] = {
27066 (char *) "self",(char *) "width", NULL
27067 };
27068
27069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
27070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27071 if (!SWIG_IsOK(res1)) {
27072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27073 }
27074 arg1 = reinterpret_cast< wxListItem * >(argp1);
27075 ecode2 = SWIG_AsVal_int(obj1, &val2);
27076 if (!SWIG_IsOK(ecode2)) {
27077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
27078 }
27079 arg2 = static_cast< int >(val2);
27080 {
27081 PyThreadState* __tstate = wxPyBeginAllowThreads();
27082 (arg1)->SetWidth(arg2);
27083 wxPyEndAllowThreads(__tstate);
27084 if (PyErr_Occurred()) SWIG_fail;
27085 }
27086 resultobj = SWIG_Py_Void();
27087 return resultobj;
27088 fail:
27089 return NULL;
27090 }
27091
27092
27093 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27094 PyObject *resultobj = 0;
27095 wxListItem *arg1 = (wxListItem *) 0 ;
27096 wxListColumnFormat arg2 ;
27097 void *argp1 = 0 ;
27098 int res1 = 0 ;
27099 int val2 ;
27100 int ecode2 = 0 ;
27101 PyObject * obj0 = 0 ;
27102 PyObject * obj1 = 0 ;
27103 char * kwnames[] = {
27104 (char *) "self",(char *) "align", NULL
27105 };
27106
27107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
27108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27109 if (!SWIG_IsOK(res1)) {
27110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27111 }
27112 arg1 = reinterpret_cast< wxListItem * >(argp1);
27113 ecode2 = SWIG_AsVal_int(obj1, &val2);
27114 if (!SWIG_IsOK(ecode2)) {
27115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
27116 }
27117 arg2 = static_cast< wxListColumnFormat >(val2);
27118 {
27119 PyThreadState* __tstate = wxPyBeginAllowThreads();
27120 (arg1)->SetAlign(arg2);
27121 wxPyEndAllowThreads(__tstate);
27122 if (PyErr_Occurred()) SWIG_fail;
27123 }
27124 resultobj = SWIG_Py_Void();
27125 return resultobj;
27126 fail:
27127 return NULL;
27128 }
27129
27130
27131 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27132 PyObject *resultobj = 0;
27133 wxListItem *arg1 = (wxListItem *) 0 ;
27134 wxColour *arg2 = 0 ;
27135 void *argp1 = 0 ;
27136 int res1 = 0 ;
27137 wxColour temp2 ;
27138 PyObject * obj0 = 0 ;
27139 PyObject * obj1 = 0 ;
27140 char * kwnames[] = {
27141 (char *) "self",(char *) "colText", NULL
27142 };
27143
27144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
27145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27146 if (!SWIG_IsOK(res1)) {
27147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27148 }
27149 arg1 = reinterpret_cast< wxListItem * >(argp1);
27150 {
27151 arg2 = &temp2;
27152 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27153 }
27154 {
27155 PyThreadState* __tstate = wxPyBeginAllowThreads();
27156 (arg1)->SetTextColour((wxColour const &)*arg2);
27157 wxPyEndAllowThreads(__tstate);
27158 if (PyErr_Occurred()) SWIG_fail;
27159 }
27160 resultobj = SWIG_Py_Void();
27161 return resultobj;
27162 fail:
27163 return NULL;
27164 }
27165
27166
27167 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27168 PyObject *resultobj = 0;
27169 wxListItem *arg1 = (wxListItem *) 0 ;
27170 wxColour *arg2 = 0 ;
27171 void *argp1 = 0 ;
27172 int res1 = 0 ;
27173 wxColour temp2 ;
27174 PyObject * obj0 = 0 ;
27175 PyObject * obj1 = 0 ;
27176 char * kwnames[] = {
27177 (char *) "self",(char *) "colBack", NULL
27178 };
27179
27180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
27181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27182 if (!SWIG_IsOK(res1)) {
27183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27184 }
27185 arg1 = reinterpret_cast< wxListItem * >(argp1);
27186 {
27187 arg2 = &temp2;
27188 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27189 }
27190 {
27191 PyThreadState* __tstate = wxPyBeginAllowThreads();
27192 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27193 wxPyEndAllowThreads(__tstate);
27194 if (PyErr_Occurred()) SWIG_fail;
27195 }
27196 resultobj = SWIG_Py_Void();
27197 return resultobj;
27198 fail:
27199 return NULL;
27200 }
27201
27202
27203 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27204 PyObject *resultobj = 0;
27205 wxListItem *arg1 = (wxListItem *) 0 ;
27206 wxFont *arg2 = 0 ;
27207 void *argp1 = 0 ;
27208 int res1 = 0 ;
27209 void *argp2 = 0 ;
27210 int res2 = 0 ;
27211 PyObject * obj0 = 0 ;
27212 PyObject * obj1 = 0 ;
27213 char * kwnames[] = {
27214 (char *) "self",(char *) "font", NULL
27215 };
27216
27217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27219 if (!SWIG_IsOK(res1)) {
27220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27221 }
27222 arg1 = reinterpret_cast< wxListItem * >(argp1);
27223 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27224 if (!SWIG_IsOK(res2)) {
27225 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27226 }
27227 if (!argp2) {
27228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27229 }
27230 arg2 = reinterpret_cast< wxFont * >(argp2);
27231 {
27232 PyThreadState* __tstate = wxPyBeginAllowThreads();
27233 (arg1)->SetFont((wxFont const &)*arg2);
27234 wxPyEndAllowThreads(__tstate);
27235 if (PyErr_Occurred()) SWIG_fail;
27236 }
27237 resultobj = SWIG_Py_Void();
27238 return resultobj;
27239 fail:
27240 return NULL;
27241 }
27242
27243
27244 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27245 PyObject *resultobj = 0;
27246 wxListItem *arg1 = (wxListItem *) 0 ;
27247 long result;
27248 void *argp1 = 0 ;
27249 int res1 = 0 ;
27250 PyObject *swig_obj[1] ;
27251
27252 if (!args) SWIG_fail;
27253 swig_obj[0] = args;
27254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27255 if (!SWIG_IsOK(res1)) {
27256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27257 }
27258 arg1 = reinterpret_cast< wxListItem * >(argp1);
27259 {
27260 PyThreadState* __tstate = wxPyBeginAllowThreads();
27261 result = (long)(arg1)->GetMask();
27262 wxPyEndAllowThreads(__tstate);
27263 if (PyErr_Occurred()) SWIG_fail;
27264 }
27265 resultobj = SWIG_From_long(static_cast< long >(result));
27266 return resultobj;
27267 fail:
27268 return NULL;
27269 }
27270
27271
27272 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27273 PyObject *resultobj = 0;
27274 wxListItem *arg1 = (wxListItem *) 0 ;
27275 long result;
27276 void *argp1 = 0 ;
27277 int res1 = 0 ;
27278 PyObject *swig_obj[1] ;
27279
27280 if (!args) SWIG_fail;
27281 swig_obj[0] = args;
27282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27283 if (!SWIG_IsOK(res1)) {
27284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27285 }
27286 arg1 = reinterpret_cast< wxListItem * >(argp1);
27287 {
27288 PyThreadState* __tstate = wxPyBeginAllowThreads();
27289 result = (long)(arg1)->GetId();
27290 wxPyEndAllowThreads(__tstate);
27291 if (PyErr_Occurred()) SWIG_fail;
27292 }
27293 resultobj = SWIG_From_long(static_cast< long >(result));
27294 return resultobj;
27295 fail:
27296 return NULL;
27297 }
27298
27299
27300 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27301 PyObject *resultobj = 0;
27302 wxListItem *arg1 = (wxListItem *) 0 ;
27303 int result;
27304 void *argp1 = 0 ;
27305 int res1 = 0 ;
27306 PyObject *swig_obj[1] ;
27307
27308 if (!args) SWIG_fail;
27309 swig_obj[0] = args;
27310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27311 if (!SWIG_IsOK(res1)) {
27312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27313 }
27314 arg1 = reinterpret_cast< wxListItem * >(argp1);
27315 {
27316 PyThreadState* __tstate = wxPyBeginAllowThreads();
27317 result = (int)(arg1)->GetColumn();
27318 wxPyEndAllowThreads(__tstate);
27319 if (PyErr_Occurred()) SWIG_fail;
27320 }
27321 resultobj = SWIG_From_int(static_cast< int >(result));
27322 return resultobj;
27323 fail:
27324 return NULL;
27325 }
27326
27327
27328 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27329 PyObject *resultobj = 0;
27330 wxListItem *arg1 = (wxListItem *) 0 ;
27331 long result;
27332 void *argp1 = 0 ;
27333 int res1 = 0 ;
27334 PyObject *swig_obj[1] ;
27335
27336 if (!args) SWIG_fail;
27337 swig_obj[0] = args;
27338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27339 if (!SWIG_IsOK(res1)) {
27340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27341 }
27342 arg1 = reinterpret_cast< wxListItem * >(argp1);
27343 {
27344 PyThreadState* __tstate = wxPyBeginAllowThreads();
27345 result = (long)(arg1)->GetState();
27346 wxPyEndAllowThreads(__tstate);
27347 if (PyErr_Occurred()) SWIG_fail;
27348 }
27349 resultobj = SWIG_From_long(static_cast< long >(result));
27350 return resultobj;
27351 fail:
27352 return NULL;
27353 }
27354
27355
27356 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27357 PyObject *resultobj = 0;
27358 wxListItem *arg1 = (wxListItem *) 0 ;
27359 wxString *result = 0 ;
27360 void *argp1 = 0 ;
27361 int res1 = 0 ;
27362 PyObject *swig_obj[1] ;
27363
27364 if (!args) SWIG_fail;
27365 swig_obj[0] = args;
27366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27367 if (!SWIG_IsOK(res1)) {
27368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27369 }
27370 arg1 = reinterpret_cast< wxListItem * >(argp1);
27371 {
27372 PyThreadState* __tstate = wxPyBeginAllowThreads();
27373 {
27374 wxString const &_result_ref = (arg1)->GetText();
27375 result = (wxString *) &_result_ref;
27376 }
27377 wxPyEndAllowThreads(__tstate);
27378 if (PyErr_Occurred()) SWIG_fail;
27379 }
27380 {
27381 #if wxUSE_UNICODE
27382 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27383 #else
27384 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27385 #endif
27386 }
27387 return resultobj;
27388 fail:
27389 return NULL;
27390 }
27391
27392
27393 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27394 PyObject *resultobj = 0;
27395 wxListItem *arg1 = (wxListItem *) 0 ;
27396 int result;
27397 void *argp1 = 0 ;
27398 int res1 = 0 ;
27399 PyObject *swig_obj[1] ;
27400
27401 if (!args) SWIG_fail;
27402 swig_obj[0] = args;
27403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27404 if (!SWIG_IsOK(res1)) {
27405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27406 }
27407 arg1 = reinterpret_cast< wxListItem * >(argp1);
27408 {
27409 PyThreadState* __tstate = wxPyBeginAllowThreads();
27410 result = (int)(arg1)->GetImage();
27411 wxPyEndAllowThreads(__tstate);
27412 if (PyErr_Occurred()) SWIG_fail;
27413 }
27414 resultobj = SWIG_From_int(static_cast< int >(result));
27415 return resultobj;
27416 fail:
27417 return NULL;
27418 }
27419
27420
27421 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27422 PyObject *resultobj = 0;
27423 wxListItem *arg1 = (wxListItem *) 0 ;
27424 long result;
27425 void *argp1 = 0 ;
27426 int res1 = 0 ;
27427 PyObject *swig_obj[1] ;
27428
27429 if (!args) SWIG_fail;
27430 swig_obj[0] = args;
27431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27432 if (!SWIG_IsOK(res1)) {
27433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27434 }
27435 arg1 = reinterpret_cast< wxListItem * >(argp1);
27436 {
27437 PyThreadState* __tstate = wxPyBeginAllowThreads();
27438 result = (long)(arg1)->GetData();
27439 wxPyEndAllowThreads(__tstate);
27440 if (PyErr_Occurred()) SWIG_fail;
27441 }
27442 resultobj = SWIG_From_long(static_cast< long >(result));
27443 return resultobj;
27444 fail:
27445 return NULL;
27446 }
27447
27448
27449 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27450 PyObject *resultobj = 0;
27451 wxListItem *arg1 = (wxListItem *) 0 ;
27452 int result;
27453 void *argp1 = 0 ;
27454 int res1 = 0 ;
27455 PyObject *swig_obj[1] ;
27456
27457 if (!args) SWIG_fail;
27458 swig_obj[0] = args;
27459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27460 if (!SWIG_IsOK(res1)) {
27461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27462 }
27463 arg1 = reinterpret_cast< wxListItem * >(argp1);
27464 {
27465 PyThreadState* __tstate = wxPyBeginAllowThreads();
27466 result = (int)(arg1)->GetWidth();
27467 wxPyEndAllowThreads(__tstate);
27468 if (PyErr_Occurred()) SWIG_fail;
27469 }
27470 resultobj = SWIG_From_int(static_cast< int >(result));
27471 return resultobj;
27472 fail:
27473 return NULL;
27474 }
27475
27476
27477 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27478 PyObject *resultobj = 0;
27479 wxListItem *arg1 = (wxListItem *) 0 ;
27480 wxListColumnFormat result;
27481 void *argp1 = 0 ;
27482 int res1 = 0 ;
27483 PyObject *swig_obj[1] ;
27484
27485 if (!args) SWIG_fail;
27486 swig_obj[0] = args;
27487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27488 if (!SWIG_IsOK(res1)) {
27489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27490 }
27491 arg1 = reinterpret_cast< wxListItem * >(argp1);
27492 {
27493 PyThreadState* __tstate = wxPyBeginAllowThreads();
27494 result = (wxListColumnFormat)(arg1)->GetAlign();
27495 wxPyEndAllowThreads(__tstate);
27496 if (PyErr_Occurred()) SWIG_fail;
27497 }
27498 resultobj = SWIG_From_int(static_cast< int >(result));
27499 return resultobj;
27500 fail:
27501 return NULL;
27502 }
27503
27504
27505 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27506 PyObject *resultobj = 0;
27507 wxListItem *arg1 = (wxListItem *) 0 ;
27508 wxListItemAttr *result = 0 ;
27509 void *argp1 = 0 ;
27510 int res1 = 0 ;
27511 PyObject *swig_obj[1] ;
27512
27513 if (!args) SWIG_fail;
27514 swig_obj[0] = args;
27515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27516 if (!SWIG_IsOK(res1)) {
27517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27518 }
27519 arg1 = reinterpret_cast< wxListItem * >(argp1);
27520 {
27521 PyThreadState* __tstate = wxPyBeginAllowThreads();
27522 result = (wxListItemAttr *)(arg1)->GetAttributes();
27523 wxPyEndAllowThreads(__tstate);
27524 if (PyErr_Occurred()) SWIG_fail;
27525 }
27526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27527 return resultobj;
27528 fail:
27529 return NULL;
27530 }
27531
27532
27533 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27534 PyObject *resultobj = 0;
27535 wxListItem *arg1 = (wxListItem *) 0 ;
27536 bool result;
27537 void *argp1 = 0 ;
27538 int res1 = 0 ;
27539 PyObject *swig_obj[1] ;
27540
27541 if (!args) SWIG_fail;
27542 swig_obj[0] = args;
27543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27544 if (!SWIG_IsOK(res1)) {
27545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27546 }
27547 arg1 = reinterpret_cast< wxListItem * >(argp1);
27548 {
27549 PyThreadState* __tstate = wxPyBeginAllowThreads();
27550 result = (bool)(arg1)->HasAttributes();
27551 wxPyEndAllowThreads(__tstate);
27552 if (PyErr_Occurred()) SWIG_fail;
27553 }
27554 {
27555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27556 }
27557 return resultobj;
27558 fail:
27559 return NULL;
27560 }
27561
27562
27563 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27564 PyObject *resultobj = 0;
27565 wxListItem *arg1 = (wxListItem *) 0 ;
27566 wxColour result;
27567 void *argp1 = 0 ;
27568 int res1 = 0 ;
27569 PyObject *swig_obj[1] ;
27570
27571 if (!args) SWIG_fail;
27572 swig_obj[0] = args;
27573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27574 if (!SWIG_IsOK(res1)) {
27575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27576 }
27577 arg1 = reinterpret_cast< wxListItem * >(argp1);
27578 {
27579 PyThreadState* __tstate = wxPyBeginAllowThreads();
27580 result = ((wxListItem const *)arg1)->GetTextColour();
27581 wxPyEndAllowThreads(__tstate);
27582 if (PyErr_Occurred()) SWIG_fail;
27583 }
27584 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27585 return resultobj;
27586 fail:
27587 return NULL;
27588 }
27589
27590
27591 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27592 PyObject *resultobj = 0;
27593 wxListItem *arg1 = (wxListItem *) 0 ;
27594 wxColour result;
27595 void *argp1 = 0 ;
27596 int res1 = 0 ;
27597 PyObject *swig_obj[1] ;
27598
27599 if (!args) SWIG_fail;
27600 swig_obj[0] = args;
27601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27602 if (!SWIG_IsOK(res1)) {
27603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27604 }
27605 arg1 = reinterpret_cast< wxListItem * >(argp1);
27606 {
27607 PyThreadState* __tstate = wxPyBeginAllowThreads();
27608 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27609 wxPyEndAllowThreads(__tstate);
27610 if (PyErr_Occurred()) SWIG_fail;
27611 }
27612 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27613 return resultobj;
27614 fail:
27615 return NULL;
27616 }
27617
27618
27619 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27620 PyObject *resultobj = 0;
27621 wxListItem *arg1 = (wxListItem *) 0 ;
27622 wxFont result;
27623 void *argp1 = 0 ;
27624 int res1 = 0 ;
27625 PyObject *swig_obj[1] ;
27626
27627 if (!args) SWIG_fail;
27628 swig_obj[0] = args;
27629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27630 if (!SWIG_IsOK(res1)) {
27631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27632 }
27633 arg1 = reinterpret_cast< wxListItem * >(argp1);
27634 {
27635 PyThreadState* __tstate = wxPyBeginAllowThreads();
27636 result = ((wxListItem const *)arg1)->GetFont();
27637 wxPyEndAllowThreads(__tstate);
27638 if (PyErr_Occurred()) SWIG_fail;
27639 }
27640 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27641 return resultobj;
27642 fail:
27643 return NULL;
27644 }
27645
27646
27647 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27648 PyObject *resultobj = 0;
27649 wxListItem *arg1 = (wxListItem *) 0 ;
27650 long arg2 ;
27651 void *argp1 = 0 ;
27652 int res1 = 0 ;
27653 long val2 ;
27654 int ecode2 = 0 ;
27655 PyObject *swig_obj[2] ;
27656
27657 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27659 if (!SWIG_IsOK(res1)) {
27660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27661 }
27662 arg1 = reinterpret_cast< wxListItem * >(argp1);
27663 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27664 if (!SWIG_IsOK(ecode2)) {
27665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27666 }
27667 arg2 = static_cast< long >(val2);
27668 if (arg1) (arg1)->m_mask = arg2;
27669
27670 resultobj = SWIG_Py_Void();
27671 return resultobj;
27672 fail:
27673 return NULL;
27674 }
27675
27676
27677 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27678 PyObject *resultobj = 0;
27679 wxListItem *arg1 = (wxListItem *) 0 ;
27680 long result;
27681 void *argp1 = 0 ;
27682 int res1 = 0 ;
27683 PyObject *swig_obj[1] ;
27684
27685 if (!args) SWIG_fail;
27686 swig_obj[0] = args;
27687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27688 if (!SWIG_IsOK(res1)) {
27689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27690 }
27691 arg1 = reinterpret_cast< wxListItem * >(argp1);
27692 result = (long) ((arg1)->m_mask);
27693 resultobj = SWIG_From_long(static_cast< long >(result));
27694 return resultobj;
27695 fail:
27696 return NULL;
27697 }
27698
27699
27700 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27701 PyObject *resultobj = 0;
27702 wxListItem *arg1 = (wxListItem *) 0 ;
27703 long arg2 ;
27704 void *argp1 = 0 ;
27705 int res1 = 0 ;
27706 long val2 ;
27707 int ecode2 = 0 ;
27708 PyObject *swig_obj[2] ;
27709
27710 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27712 if (!SWIG_IsOK(res1)) {
27713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27714 }
27715 arg1 = reinterpret_cast< wxListItem * >(argp1);
27716 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27717 if (!SWIG_IsOK(ecode2)) {
27718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27719 }
27720 arg2 = static_cast< long >(val2);
27721 if (arg1) (arg1)->m_itemId = arg2;
27722
27723 resultobj = SWIG_Py_Void();
27724 return resultobj;
27725 fail:
27726 return NULL;
27727 }
27728
27729
27730 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27731 PyObject *resultobj = 0;
27732 wxListItem *arg1 = (wxListItem *) 0 ;
27733 long result;
27734 void *argp1 = 0 ;
27735 int res1 = 0 ;
27736 PyObject *swig_obj[1] ;
27737
27738 if (!args) SWIG_fail;
27739 swig_obj[0] = args;
27740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27741 if (!SWIG_IsOK(res1)) {
27742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27743 }
27744 arg1 = reinterpret_cast< wxListItem * >(argp1);
27745 result = (long) ((arg1)->m_itemId);
27746 resultobj = SWIG_From_long(static_cast< long >(result));
27747 return resultobj;
27748 fail:
27749 return NULL;
27750 }
27751
27752
27753 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27754 PyObject *resultobj = 0;
27755 wxListItem *arg1 = (wxListItem *) 0 ;
27756 int arg2 ;
27757 void *argp1 = 0 ;
27758 int res1 = 0 ;
27759 int val2 ;
27760 int ecode2 = 0 ;
27761 PyObject *swig_obj[2] ;
27762
27763 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27765 if (!SWIG_IsOK(res1)) {
27766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27767 }
27768 arg1 = reinterpret_cast< wxListItem * >(argp1);
27769 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27770 if (!SWIG_IsOK(ecode2)) {
27771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27772 }
27773 arg2 = static_cast< int >(val2);
27774 if (arg1) (arg1)->m_col = arg2;
27775
27776 resultobj = SWIG_Py_Void();
27777 return resultobj;
27778 fail:
27779 return NULL;
27780 }
27781
27782
27783 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27784 PyObject *resultobj = 0;
27785 wxListItem *arg1 = (wxListItem *) 0 ;
27786 int result;
27787 void *argp1 = 0 ;
27788 int res1 = 0 ;
27789 PyObject *swig_obj[1] ;
27790
27791 if (!args) SWIG_fail;
27792 swig_obj[0] = args;
27793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27794 if (!SWIG_IsOK(res1)) {
27795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27796 }
27797 arg1 = reinterpret_cast< wxListItem * >(argp1);
27798 result = (int) ((arg1)->m_col);
27799 resultobj = SWIG_From_int(static_cast< int >(result));
27800 return resultobj;
27801 fail:
27802 return NULL;
27803 }
27804
27805
27806 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27807 PyObject *resultobj = 0;
27808 wxListItem *arg1 = (wxListItem *) 0 ;
27809 long arg2 ;
27810 void *argp1 = 0 ;
27811 int res1 = 0 ;
27812 long val2 ;
27813 int ecode2 = 0 ;
27814 PyObject *swig_obj[2] ;
27815
27816 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27818 if (!SWIG_IsOK(res1)) {
27819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27820 }
27821 arg1 = reinterpret_cast< wxListItem * >(argp1);
27822 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27823 if (!SWIG_IsOK(ecode2)) {
27824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27825 }
27826 arg2 = static_cast< long >(val2);
27827 if (arg1) (arg1)->m_state = arg2;
27828
27829 resultobj = SWIG_Py_Void();
27830 return resultobj;
27831 fail:
27832 return NULL;
27833 }
27834
27835
27836 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27837 PyObject *resultobj = 0;
27838 wxListItem *arg1 = (wxListItem *) 0 ;
27839 long result;
27840 void *argp1 = 0 ;
27841 int res1 = 0 ;
27842 PyObject *swig_obj[1] ;
27843
27844 if (!args) SWIG_fail;
27845 swig_obj[0] = args;
27846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27847 if (!SWIG_IsOK(res1)) {
27848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27849 }
27850 arg1 = reinterpret_cast< wxListItem * >(argp1);
27851 result = (long) ((arg1)->m_state);
27852 resultobj = SWIG_From_long(static_cast< long >(result));
27853 return resultobj;
27854 fail:
27855 return NULL;
27856 }
27857
27858
27859 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27860 PyObject *resultobj = 0;
27861 wxListItem *arg1 = (wxListItem *) 0 ;
27862 long arg2 ;
27863 void *argp1 = 0 ;
27864 int res1 = 0 ;
27865 long val2 ;
27866 int ecode2 = 0 ;
27867 PyObject *swig_obj[2] ;
27868
27869 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27871 if (!SWIG_IsOK(res1)) {
27872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27873 }
27874 arg1 = reinterpret_cast< wxListItem * >(argp1);
27875 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27876 if (!SWIG_IsOK(ecode2)) {
27877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27878 }
27879 arg2 = static_cast< long >(val2);
27880 if (arg1) (arg1)->m_stateMask = arg2;
27881
27882 resultobj = SWIG_Py_Void();
27883 return resultobj;
27884 fail:
27885 return NULL;
27886 }
27887
27888
27889 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27890 PyObject *resultobj = 0;
27891 wxListItem *arg1 = (wxListItem *) 0 ;
27892 long result;
27893 void *argp1 = 0 ;
27894 int res1 = 0 ;
27895 PyObject *swig_obj[1] ;
27896
27897 if (!args) SWIG_fail;
27898 swig_obj[0] = args;
27899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27900 if (!SWIG_IsOK(res1)) {
27901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27902 }
27903 arg1 = reinterpret_cast< wxListItem * >(argp1);
27904 result = (long) ((arg1)->m_stateMask);
27905 resultobj = SWIG_From_long(static_cast< long >(result));
27906 return resultobj;
27907 fail:
27908 return NULL;
27909 }
27910
27911
27912 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27913 PyObject *resultobj = 0;
27914 wxListItem *arg1 = (wxListItem *) 0 ;
27915 wxString *arg2 = (wxString *) 0 ;
27916 void *argp1 = 0 ;
27917 int res1 = 0 ;
27918 bool temp2 = false ;
27919 PyObject *swig_obj[2] ;
27920
27921 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27923 if (!SWIG_IsOK(res1)) {
27924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27925 }
27926 arg1 = reinterpret_cast< wxListItem * >(argp1);
27927 {
27928 arg2 = wxString_in_helper(swig_obj[1]);
27929 if (arg2 == NULL) SWIG_fail;
27930 temp2 = true;
27931 }
27932 if (arg1) (arg1)->m_text = *arg2;
27933
27934 resultobj = SWIG_Py_Void();
27935 {
27936 if (temp2)
27937 delete arg2;
27938 }
27939 return resultobj;
27940 fail:
27941 {
27942 if (temp2)
27943 delete arg2;
27944 }
27945 return NULL;
27946 }
27947
27948
27949 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27950 PyObject *resultobj = 0;
27951 wxListItem *arg1 = (wxListItem *) 0 ;
27952 wxString *result = 0 ;
27953 void *argp1 = 0 ;
27954 int res1 = 0 ;
27955 PyObject *swig_obj[1] ;
27956
27957 if (!args) SWIG_fail;
27958 swig_obj[0] = args;
27959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27960 if (!SWIG_IsOK(res1)) {
27961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27962 }
27963 arg1 = reinterpret_cast< wxListItem * >(argp1);
27964 result = (wxString *)& ((arg1)->m_text);
27965 {
27966 #if wxUSE_UNICODE
27967 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27968 #else
27969 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27970 #endif
27971 }
27972 return resultobj;
27973 fail:
27974 return NULL;
27975 }
27976
27977
27978 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27979 PyObject *resultobj = 0;
27980 wxListItem *arg1 = (wxListItem *) 0 ;
27981 int arg2 ;
27982 void *argp1 = 0 ;
27983 int res1 = 0 ;
27984 int val2 ;
27985 int ecode2 = 0 ;
27986 PyObject *swig_obj[2] ;
27987
27988 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27990 if (!SWIG_IsOK(res1)) {
27991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27992 }
27993 arg1 = reinterpret_cast< wxListItem * >(argp1);
27994 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27995 if (!SWIG_IsOK(ecode2)) {
27996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27997 }
27998 arg2 = static_cast< int >(val2);
27999 if (arg1) (arg1)->m_image = arg2;
28000
28001 resultobj = SWIG_Py_Void();
28002 return resultobj;
28003 fail:
28004 return NULL;
28005 }
28006
28007
28008 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28009 PyObject *resultobj = 0;
28010 wxListItem *arg1 = (wxListItem *) 0 ;
28011 int result;
28012 void *argp1 = 0 ;
28013 int res1 = 0 ;
28014 PyObject *swig_obj[1] ;
28015
28016 if (!args) SWIG_fail;
28017 swig_obj[0] = args;
28018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28019 if (!SWIG_IsOK(res1)) {
28020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28021 }
28022 arg1 = reinterpret_cast< wxListItem * >(argp1);
28023 result = (int) ((arg1)->m_image);
28024 resultobj = SWIG_From_int(static_cast< int >(result));
28025 return resultobj;
28026 fail:
28027 return NULL;
28028 }
28029
28030
28031 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28032 PyObject *resultobj = 0;
28033 wxListItem *arg1 = (wxListItem *) 0 ;
28034 long arg2 ;
28035 void *argp1 = 0 ;
28036 int res1 = 0 ;
28037 long val2 ;
28038 int ecode2 = 0 ;
28039 PyObject *swig_obj[2] ;
28040
28041 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
28042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28043 if (!SWIG_IsOK(res1)) {
28044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28045 }
28046 arg1 = reinterpret_cast< wxListItem * >(argp1);
28047 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28048 if (!SWIG_IsOK(ecode2)) {
28049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
28050 }
28051 arg2 = static_cast< long >(val2);
28052 if (arg1) (arg1)->m_data = arg2;
28053
28054 resultobj = SWIG_Py_Void();
28055 return resultobj;
28056 fail:
28057 return NULL;
28058 }
28059
28060
28061 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28062 PyObject *resultobj = 0;
28063 wxListItem *arg1 = (wxListItem *) 0 ;
28064 long result;
28065 void *argp1 = 0 ;
28066 int res1 = 0 ;
28067 PyObject *swig_obj[1] ;
28068
28069 if (!args) SWIG_fail;
28070 swig_obj[0] = args;
28071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28072 if (!SWIG_IsOK(res1)) {
28073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28074 }
28075 arg1 = reinterpret_cast< wxListItem * >(argp1);
28076 result = (long) ((arg1)->m_data);
28077 resultobj = SWIG_From_long(static_cast< long >(result));
28078 return resultobj;
28079 fail:
28080 return NULL;
28081 }
28082
28083
28084 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28085 PyObject *resultobj = 0;
28086 wxListItem *arg1 = (wxListItem *) 0 ;
28087 int arg2 ;
28088 void *argp1 = 0 ;
28089 int res1 = 0 ;
28090 int val2 ;
28091 int ecode2 = 0 ;
28092 PyObject *swig_obj[2] ;
28093
28094 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
28095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28096 if (!SWIG_IsOK(res1)) {
28097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28098 }
28099 arg1 = reinterpret_cast< wxListItem * >(argp1);
28100 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28101 if (!SWIG_IsOK(ecode2)) {
28102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
28103 }
28104 arg2 = static_cast< int >(val2);
28105 if (arg1) (arg1)->m_format = arg2;
28106
28107 resultobj = SWIG_Py_Void();
28108 return resultobj;
28109 fail:
28110 return NULL;
28111 }
28112
28113
28114 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28115 PyObject *resultobj = 0;
28116 wxListItem *arg1 = (wxListItem *) 0 ;
28117 int result;
28118 void *argp1 = 0 ;
28119 int res1 = 0 ;
28120 PyObject *swig_obj[1] ;
28121
28122 if (!args) SWIG_fail;
28123 swig_obj[0] = args;
28124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28125 if (!SWIG_IsOK(res1)) {
28126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28127 }
28128 arg1 = reinterpret_cast< wxListItem * >(argp1);
28129 result = (int) ((arg1)->m_format);
28130 resultobj = SWIG_From_int(static_cast< int >(result));
28131 return resultobj;
28132 fail:
28133 return NULL;
28134 }
28135
28136
28137 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28138 PyObject *resultobj = 0;
28139 wxListItem *arg1 = (wxListItem *) 0 ;
28140 int arg2 ;
28141 void *argp1 = 0 ;
28142 int res1 = 0 ;
28143 int val2 ;
28144 int ecode2 = 0 ;
28145 PyObject *swig_obj[2] ;
28146
28147 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
28148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28149 if (!SWIG_IsOK(res1)) {
28150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28151 }
28152 arg1 = reinterpret_cast< wxListItem * >(argp1);
28153 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28154 if (!SWIG_IsOK(ecode2)) {
28155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
28156 }
28157 arg2 = static_cast< int >(val2);
28158 if (arg1) (arg1)->m_width = arg2;
28159
28160 resultobj = SWIG_Py_Void();
28161 return resultobj;
28162 fail:
28163 return NULL;
28164 }
28165
28166
28167 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28168 PyObject *resultobj = 0;
28169 wxListItem *arg1 = (wxListItem *) 0 ;
28170 int result;
28171 void *argp1 = 0 ;
28172 int res1 = 0 ;
28173 PyObject *swig_obj[1] ;
28174
28175 if (!args) SWIG_fail;
28176 swig_obj[0] = args;
28177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28178 if (!SWIG_IsOK(res1)) {
28179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28180 }
28181 arg1 = reinterpret_cast< wxListItem * >(argp1);
28182 result = (int) ((arg1)->m_width);
28183 resultobj = SWIG_From_int(static_cast< int >(result));
28184 return resultobj;
28185 fail:
28186 return NULL;
28187 }
28188
28189
28190 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28191 PyObject *obj;
28192 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28193 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28194 return SWIG_Py_Void();
28195 }
28196
28197 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28198 return SWIG_Python_InitShadowInstance(args);
28199 }
28200
28201 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28202 PyObject *resultobj = 0;
28203 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28204 int arg2 = (int) 0 ;
28205 wxListEvent *result = 0 ;
28206 int val1 ;
28207 int ecode1 = 0 ;
28208 int val2 ;
28209 int ecode2 = 0 ;
28210 PyObject * obj0 = 0 ;
28211 PyObject * obj1 = 0 ;
28212 char * kwnames[] = {
28213 (char *) "commandType",(char *) "id", NULL
28214 };
28215
28216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28217 if (obj0) {
28218 ecode1 = SWIG_AsVal_int(obj0, &val1);
28219 if (!SWIG_IsOK(ecode1)) {
28220 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28221 }
28222 arg1 = static_cast< wxEventType >(val1);
28223 }
28224 if (obj1) {
28225 ecode2 = SWIG_AsVal_int(obj1, &val2);
28226 if (!SWIG_IsOK(ecode2)) {
28227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28228 }
28229 arg2 = static_cast< int >(val2);
28230 }
28231 {
28232 PyThreadState* __tstate = wxPyBeginAllowThreads();
28233 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28234 wxPyEndAllowThreads(__tstate);
28235 if (PyErr_Occurred()) SWIG_fail;
28236 }
28237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28238 return resultobj;
28239 fail:
28240 return NULL;
28241 }
28242
28243
28244 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28245 PyObject *resultobj = 0;
28246 wxListEvent *arg1 = (wxListEvent *) 0 ;
28247 int arg2 ;
28248 void *argp1 = 0 ;
28249 int res1 = 0 ;
28250 int val2 ;
28251 int ecode2 = 0 ;
28252 PyObject *swig_obj[2] ;
28253
28254 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28256 if (!SWIG_IsOK(res1)) {
28257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28258 }
28259 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28260 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28261 if (!SWIG_IsOK(ecode2)) {
28262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28263 }
28264 arg2 = static_cast< int >(val2);
28265 if (arg1) (arg1)->m_code = arg2;
28266
28267 resultobj = SWIG_Py_Void();
28268 return resultobj;
28269 fail:
28270 return NULL;
28271 }
28272
28273
28274 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28275 PyObject *resultobj = 0;
28276 wxListEvent *arg1 = (wxListEvent *) 0 ;
28277 int result;
28278 void *argp1 = 0 ;
28279 int res1 = 0 ;
28280 PyObject *swig_obj[1] ;
28281
28282 if (!args) SWIG_fail;
28283 swig_obj[0] = args;
28284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28285 if (!SWIG_IsOK(res1)) {
28286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28287 }
28288 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28289 result = (int) ((arg1)->m_code);
28290 resultobj = SWIG_From_int(static_cast< int >(result));
28291 return resultobj;
28292 fail:
28293 return NULL;
28294 }
28295
28296
28297 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28298 PyObject *resultobj = 0;
28299 wxListEvent *arg1 = (wxListEvent *) 0 ;
28300 long arg2 ;
28301 void *argp1 = 0 ;
28302 int res1 = 0 ;
28303 long val2 ;
28304 int ecode2 = 0 ;
28305 PyObject *swig_obj[2] ;
28306
28307 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28309 if (!SWIG_IsOK(res1)) {
28310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28311 }
28312 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28313 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28314 if (!SWIG_IsOK(ecode2)) {
28315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28316 }
28317 arg2 = static_cast< long >(val2);
28318 if (arg1) (arg1)->m_oldItemIndex = arg2;
28319
28320 resultobj = SWIG_Py_Void();
28321 return resultobj;
28322 fail:
28323 return NULL;
28324 }
28325
28326
28327 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28328 PyObject *resultobj = 0;
28329 wxListEvent *arg1 = (wxListEvent *) 0 ;
28330 long result;
28331 void *argp1 = 0 ;
28332 int res1 = 0 ;
28333 PyObject *swig_obj[1] ;
28334
28335 if (!args) SWIG_fail;
28336 swig_obj[0] = args;
28337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28338 if (!SWIG_IsOK(res1)) {
28339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28340 }
28341 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28342 result = (long) ((arg1)->m_oldItemIndex);
28343 resultobj = SWIG_From_long(static_cast< long >(result));
28344 return resultobj;
28345 fail:
28346 return NULL;
28347 }
28348
28349
28350 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28351 PyObject *resultobj = 0;
28352 wxListEvent *arg1 = (wxListEvent *) 0 ;
28353 long arg2 ;
28354 void *argp1 = 0 ;
28355 int res1 = 0 ;
28356 long val2 ;
28357 int ecode2 = 0 ;
28358 PyObject *swig_obj[2] ;
28359
28360 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28362 if (!SWIG_IsOK(res1)) {
28363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28364 }
28365 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28366 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28367 if (!SWIG_IsOK(ecode2)) {
28368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28369 }
28370 arg2 = static_cast< long >(val2);
28371 if (arg1) (arg1)->m_itemIndex = arg2;
28372
28373 resultobj = SWIG_Py_Void();
28374 return resultobj;
28375 fail:
28376 return NULL;
28377 }
28378
28379
28380 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28381 PyObject *resultobj = 0;
28382 wxListEvent *arg1 = (wxListEvent *) 0 ;
28383 long result;
28384 void *argp1 = 0 ;
28385 int res1 = 0 ;
28386 PyObject *swig_obj[1] ;
28387
28388 if (!args) SWIG_fail;
28389 swig_obj[0] = args;
28390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28391 if (!SWIG_IsOK(res1)) {
28392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28393 }
28394 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28395 result = (long) ((arg1)->m_itemIndex);
28396 resultobj = SWIG_From_long(static_cast< long >(result));
28397 return resultobj;
28398 fail:
28399 return NULL;
28400 }
28401
28402
28403 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28404 PyObject *resultobj = 0;
28405 wxListEvent *arg1 = (wxListEvent *) 0 ;
28406 int arg2 ;
28407 void *argp1 = 0 ;
28408 int res1 = 0 ;
28409 int val2 ;
28410 int ecode2 = 0 ;
28411 PyObject *swig_obj[2] ;
28412
28413 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28415 if (!SWIG_IsOK(res1)) {
28416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28417 }
28418 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28419 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28420 if (!SWIG_IsOK(ecode2)) {
28421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28422 }
28423 arg2 = static_cast< int >(val2);
28424 if (arg1) (arg1)->m_col = arg2;
28425
28426 resultobj = SWIG_Py_Void();
28427 return resultobj;
28428 fail:
28429 return NULL;
28430 }
28431
28432
28433 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28434 PyObject *resultobj = 0;
28435 wxListEvent *arg1 = (wxListEvent *) 0 ;
28436 int result;
28437 void *argp1 = 0 ;
28438 int res1 = 0 ;
28439 PyObject *swig_obj[1] ;
28440
28441 if (!args) SWIG_fail;
28442 swig_obj[0] = args;
28443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28444 if (!SWIG_IsOK(res1)) {
28445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28446 }
28447 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28448 result = (int) ((arg1)->m_col);
28449 resultobj = SWIG_From_int(static_cast< int >(result));
28450 return resultobj;
28451 fail:
28452 return NULL;
28453 }
28454
28455
28456 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28457 PyObject *resultobj = 0;
28458 wxListEvent *arg1 = (wxListEvent *) 0 ;
28459 wxPoint *arg2 = (wxPoint *) 0 ;
28460 void *argp1 = 0 ;
28461 int res1 = 0 ;
28462 void *argp2 = 0 ;
28463 int res2 = 0 ;
28464 PyObject *swig_obj[2] ;
28465
28466 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28468 if (!SWIG_IsOK(res1)) {
28469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28470 }
28471 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28472 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28473 if (!SWIG_IsOK(res2)) {
28474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28475 }
28476 arg2 = reinterpret_cast< wxPoint * >(argp2);
28477 if (arg1) (arg1)->m_pointDrag = *arg2;
28478
28479 resultobj = SWIG_Py_Void();
28480 return resultobj;
28481 fail:
28482 return NULL;
28483 }
28484
28485
28486 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28487 PyObject *resultobj = 0;
28488 wxListEvent *arg1 = (wxListEvent *) 0 ;
28489 wxPoint *result = 0 ;
28490 void *argp1 = 0 ;
28491 int res1 = 0 ;
28492 PyObject *swig_obj[1] ;
28493
28494 if (!args) SWIG_fail;
28495 swig_obj[0] = args;
28496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28497 if (!SWIG_IsOK(res1)) {
28498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28499 }
28500 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28501 result = (wxPoint *)& ((arg1)->m_pointDrag);
28502 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28503 return resultobj;
28504 fail:
28505 return NULL;
28506 }
28507
28508
28509 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28510 PyObject *resultobj = 0;
28511 wxListEvent *arg1 = (wxListEvent *) 0 ;
28512 wxListItem *result = 0 ;
28513 void *argp1 = 0 ;
28514 int res1 = 0 ;
28515 PyObject *swig_obj[1] ;
28516
28517 if (!args) SWIG_fail;
28518 swig_obj[0] = args;
28519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28520 if (!SWIG_IsOK(res1)) {
28521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28522 }
28523 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28524 result = (wxListItem *)& ((arg1)->m_item);
28525 {
28526 resultobj = wxPyMake_wxObject(result, 0);
28527 }
28528 return resultobj;
28529 fail:
28530 return NULL;
28531 }
28532
28533
28534 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28535 PyObject *resultobj = 0;
28536 wxListEvent *arg1 = (wxListEvent *) 0 ;
28537 int result;
28538 void *argp1 = 0 ;
28539 int res1 = 0 ;
28540 PyObject *swig_obj[1] ;
28541
28542 if (!args) SWIG_fail;
28543 swig_obj[0] = args;
28544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28545 if (!SWIG_IsOK(res1)) {
28546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28547 }
28548 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28549 {
28550 PyThreadState* __tstate = wxPyBeginAllowThreads();
28551 result = (int)(arg1)->GetKeyCode();
28552 wxPyEndAllowThreads(__tstate);
28553 if (PyErr_Occurred()) SWIG_fail;
28554 }
28555 resultobj = SWIG_From_int(static_cast< int >(result));
28556 return resultobj;
28557 fail:
28558 return NULL;
28559 }
28560
28561
28562 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28563 PyObject *resultobj = 0;
28564 wxListEvent *arg1 = (wxListEvent *) 0 ;
28565 long result;
28566 void *argp1 = 0 ;
28567 int res1 = 0 ;
28568 PyObject *swig_obj[1] ;
28569
28570 if (!args) SWIG_fail;
28571 swig_obj[0] = args;
28572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28573 if (!SWIG_IsOK(res1)) {
28574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28575 }
28576 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28577 {
28578 PyThreadState* __tstate = wxPyBeginAllowThreads();
28579 result = (long)(arg1)->GetIndex();
28580 wxPyEndAllowThreads(__tstate);
28581 if (PyErr_Occurred()) SWIG_fail;
28582 }
28583 resultobj = SWIG_From_long(static_cast< long >(result));
28584 return resultobj;
28585 fail:
28586 return NULL;
28587 }
28588
28589
28590 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28591 PyObject *resultobj = 0;
28592 wxListEvent *arg1 = (wxListEvent *) 0 ;
28593 int result;
28594 void *argp1 = 0 ;
28595 int res1 = 0 ;
28596 PyObject *swig_obj[1] ;
28597
28598 if (!args) SWIG_fail;
28599 swig_obj[0] = args;
28600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28601 if (!SWIG_IsOK(res1)) {
28602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28603 }
28604 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28605 {
28606 PyThreadState* __tstate = wxPyBeginAllowThreads();
28607 result = (int)(arg1)->GetColumn();
28608 wxPyEndAllowThreads(__tstate);
28609 if (PyErr_Occurred()) SWIG_fail;
28610 }
28611 resultobj = SWIG_From_int(static_cast< int >(result));
28612 return resultobj;
28613 fail:
28614 return NULL;
28615 }
28616
28617
28618 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28619 PyObject *resultobj = 0;
28620 wxListEvent *arg1 = (wxListEvent *) 0 ;
28621 wxPoint result;
28622 void *argp1 = 0 ;
28623 int res1 = 0 ;
28624 PyObject *swig_obj[1] ;
28625
28626 if (!args) SWIG_fail;
28627 swig_obj[0] = args;
28628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28629 if (!SWIG_IsOK(res1)) {
28630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28631 }
28632 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28633 {
28634 PyThreadState* __tstate = wxPyBeginAllowThreads();
28635 result = (arg1)->GetPoint();
28636 wxPyEndAllowThreads(__tstate);
28637 if (PyErr_Occurred()) SWIG_fail;
28638 }
28639 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28640 return resultobj;
28641 fail:
28642 return NULL;
28643 }
28644
28645
28646 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28647 PyObject *resultobj = 0;
28648 wxListEvent *arg1 = (wxListEvent *) 0 ;
28649 wxString *result = 0 ;
28650 void *argp1 = 0 ;
28651 int res1 = 0 ;
28652 PyObject *swig_obj[1] ;
28653
28654 if (!args) SWIG_fail;
28655 swig_obj[0] = args;
28656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28657 if (!SWIG_IsOK(res1)) {
28658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28659 }
28660 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28661 {
28662 PyThreadState* __tstate = wxPyBeginAllowThreads();
28663 {
28664 wxString const &_result_ref = (arg1)->GetLabel();
28665 result = (wxString *) &_result_ref;
28666 }
28667 wxPyEndAllowThreads(__tstate);
28668 if (PyErr_Occurred()) SWIG_fail;
28669 }
28670 {
28671 #if wxUSE_UNICODE
28672 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28673 #else
28674 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28675 #endif
28676 }
28677 return resultobj;
28678 fail:
28679 return NULL;
28680 }
28681
28682
28683 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28684 PyObject *resultobj = 0;
28685 wxListEvent *arg1 = (wxListEvent *) 0 ;
28686 wxString *result = 0 ;
28687 void *argp1 = 0 ;
28688 int res1 = 0 ;
28689 PyObject *swig_obj[1] ;
28690
28691 if (!args) SWIG_fail;
28692 swig_obj[0] = args;
28693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28694 if (!SWIG_IsOK(res1)) {
28695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28696 }
28697 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28698 {
28699 PyThreadState* __tstate = wxPyBeginAllowThreads();
28700 {
28701 wxString const &_result_ref = (arg1)->GetText();
28702 result = (wxString *) &_result_ref;
28703 }
28704 wxPyEndAllowThreads(__tstate);
28705 if (PyErr_Occurred()) SWIG_fail;
28706 }
28707 {
28708 #if wxUSE_UNICODE
28709 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28710 #else
28711 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28712 #endif
28713 }
28714 return resultobj;
28715 fail:
28716 return NULL;
28717 }
28718
28719
28720 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28721 PyObject *resultobj = 0;
28722 wxListEvent *arg1 = (wxListEvent *) 0 ;
28723 int result;
28724 void *argp1 = 0 ;
28725 int res1 = 0 ;
28726 PyObject *swig_obj[1] ;
28727
28728 if (!args) SWIG_fail;
28729 swig_obj[0] = args;
28730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28731 if (!SWIG_IsOK(res1)) {
28732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28733 }
28734 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28735 {
28736 PyThreadState* __tstate = wxPyBeginAllowThreads();
28737 result = (int)(arg1)->GetImage();
28738 wxPyEndAllowThreads(__tstate);
28739 if (PyErr_Occurred()) SWIG_fail;
28740 }
28741 resultobj = SWIG_From_int(static_cast< int >(result));
28742 return resultobj;
28743 fail:
28744 return NULL;
28745 }
28746
28747
28748 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28749 PyObject *resultobj = 0;
28750 wxListEvent *arg1 = (wxListEvent *) 0 ;
28751 long result;
28752 void *argp1 = 0 ;
28753 int res1 = 0 ;
28754 PyObject *swig_obj[1] ;
28755
28756 if (!args) SWIG_fail;
28757 swig_obj[0] = args;
28758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28759 if (!SWIG_IsOK(res1)) {
28760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28761 }
28762 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28763 {
28764 PyThreadState* __tstate = wxPyBeginAllowThreads();
28765 result = (long)(arg1)->GetData();
28766 wxPyEndAllowThreads(__tstate);
28767 if (PyErr_Occurred()) SWIG_fail;
28768 }
28769 resultobj = SWIG_From_long(static_cast< long >(result));
28770 return resultobj;
28771 fail:
28772 return NULL;
28773 }
28774
28775
28776 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28777 PyObject *resultobj = 0;
28778 wxListEvent *arg1 = (wxListEvent *) 0 ;
28779 long result;
28780 void *argp1 = 0 ;
28781 int res1 = 0 ;
28782 PyObject *swig_obj[1] ;
28783
28784 if (!args) SWIG_fail;
28785 swig_obj[0] = args;
28786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28787 if (!SWIG_IsOK(res1)) {
28788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28789 }
28790 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28791 {
28792 PyThreadState* __tstate = wxPyBeginAllowThreads();
28793 result = (long)(arg1)->GetMask();
28794 wxPyEndAllowThreads(__tstate);
28795 if (PyErr_Occurred()) SWIG_fail;
28796 }
28797 resultobj = SWIG_From_long(static_cast< long >(result));
28798 return resultobj;
28799 fail:
28800 return NULL;
28801 }
28802
28803
28804 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28805 PyObject *resultobj = 0;
28806 wxListEvent *arg1 = (wxListEvent *) 0 ;
28807 wxListItem *result = 0 ;
28808 void *argp1 = 0 ;
28809 int res1 = 0 ;
28810 PyObject *swig_obj[1] ;
28811
28812 if (!args) SWIG_fail;
28813 swig_obj[0] = args;
28814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28815 if (!SWIG_IsOK(res1)) {
28816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28817 }
28818 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28819 {
28820 PyThreadState* __tstate = wxPyBeginAllowThreads();
28821 {
28822 wxListItem const &_result_ref = (arg1)->GetItem();
28823 result = (wxListItem *) &_result_ref;
28824 }
28825 wxPyEndAllowThreads(__tstate);
28826 if (PyErr_Occurred()) SWIG_fail;
28827 }
28828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28829 return resultobj;
28830 fail:
28831 return NULL;
28832 }
28833
28834
28835 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28836 PyObject *resultobj = 0;
28837 wxListEvent *arg1 = (wxListEvent *) 0 ;
28838 long result;
28839 void *argp1 = 0 ;
28840 int res1 = 0 ;
28841 PyObject *swig_obj[1] ;
28842
28843 if (!args) SWIG_fail;
28844 swig_obj[0] = args;
28845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28846 if (!SWIG_IsOK(res1)) {
28847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28848 }
28849 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28850 {
28851 PyThreadState* __tstate = wxPyBeginAllowThreads();
28852 result = (long)(arg1)->GetCacheFrom();
28853 wxPyEndAllowThreads(__tstate);
28854 if (PyErr_Occurred()) SWIG_fail;
28855 }
28856 resultobj = SWIG_From_long(static_cast< long >(result));
28857 return resultobj;
28858 fail:
28859 return NULL;
28860 }
28861
28862
28863 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28864 PyObject *resultobj = 0;
28865 wxListEvent *arg1 = (wxListEvent *) 0 ;
28866 long result;
28867 void *argp1 = 0 ;
28868 int res1 = 0 ;
28869 PyObject *swig_obj[1] ;
28870
28871 if (!args) SWIG_fail;
28872 swig_obj[0] = args;
28873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28874 if (!SWIG_IsOK(res1)) {
28875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28876 }
28877 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28878 {
28879 PyThreadState* __tstate = wxPyBeginAllowThreads();
28880 result = (long)(arg1)->GetCacheTo();
28881 wxPyEndAllowThreads(__tstate);
28882 if (PyErr_Occurred()) SWIG_fail;
28883 }
28884 resultobj = SWIG_From_long(static_cast< long >(result));
28885 return resultobj;
28886 fail:
28887 return NULL;
28888 }
28889
28890
28891 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28892 PyObject *resultobj = 0;
28893 wxListEvent *arg1 = (wxListEvent *) 0 ;
28894 bool result;
28895 void *argp1 = 0 ;
28896 int res1 = 0 ;
28897 PyObject *swig_obj[1] ;
28898
28899 if (!args) SWIG_fail;
28900 swig_obj[0] = args;
28901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28902 if (!SWIG_IsOK(res1)) {
28903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28904 }
28905 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28906 {
28907 PyThreadState* __tstate = wxPyBeginAllowThreads();
28908 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28909 wxPyEndAllowThreads(__tstate);
28910 if (PyErr_Occurred()) SWIG_fail;
28911 }
28912 {
28913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28914 }
28915 return resultobj;
28916 fail:
28917 return NULL;
28918 }
28919
28920
28921 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28922 PyObject *resultobj = 0;
28923 wxListEvent *arg1 = (wxListEvent *) 0 ;
28924 bool arg2 ;
28925 void *argp1 = 0 ;
28926 int res1 = 0 ;
28927 bool val2 ;
28928 int ecode2 = 0 ;
28929 PyObject * obj0 = 0 ;
28930 PyObject * obj1 = 0 ;
28931 char * kwnames[] = {
28932 (char *) "self",(char *) "editCancelled", NULL
28933 };
28934
28935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28937 if (!SWIG_IsOK(res1)) {
28938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28939 }
28940 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28941 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28942 if (!SWIG_IsOK(ecode2)) {
28943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28944 }
28945 arg2 = static_cast< bool >(val2);
28946 {
28947 PyThreadState* __tstate = wxPyBeginAllowThreads();
28948 (arg1)->SetEditCanceled(arg2);
28949 wxPyEndAllowThreads(__tstate);
28950 if (PyErr_Occurred()) SWIG_fail;
28951 }
28952 resultobj = SWIG_Py_Void();
28953 return resultobj;
28954 fail:
28955 return NULL;
28956 }
28957
28958
28959 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28960 PyObject *obj;
28961 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28962 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28963 return SWIG_Py_Void();
28964 }
28965
28966 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28967 return SWIG_Python_InitShadowInstance(args);
28968 }
28969
28970 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28971 PyObject *resultobj = 0;
28972 wxWindow *arg1 = (wxWindow *) 0 ;
28973 int arg2 = (int) -1 ;
28974 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28975 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28976 wxSize const &arg4_defvalue = wxDefaultSize ;
28977 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28978 long arg5 = (long) wxLC_ICON ;
28979 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28980 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28981 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28982 wxString *arg7 = (wxString *) &arg7_defvalue ;
28983 wxPyListCtrl *result = 0 ;
28984 void *argp1 = 0 ;
28985 int res1 = 0 ;
28986 int val2 ;
28987 int ecode2 = 0 ;
28988 wxPoint temp3 ;
28989 wxSize temp4 ;
28990 long val5 ;
28991 int ecode5 = 0 ;
28992 void *argp6 = 0 ;
28993 int res6 = 0 ;
28994 bool temp7 = false ;
28995 PyObject * obj0 = 0 ;
28996 PyObject * obj1 = 0 ;
28997 PyObject * obj2 = 0 ;
28998 PyObject * obj3 = 0 ;
28999 PyObject * obj4 = 0 ;
29000 PyObject * obj5 = 0 ;
29001 PyObject * obj6 = 0 ;
29002 char * kwnames[] = {
29003 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29004 };
29005
29006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
29008 if (!SWIG_IsOK(res1)) {
29009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
29010 }
29011 arg1 = reinterpret_cast< wxWindow * >(argp1);
29012 if (obj1) {
29013 ecode2 = SWIG_AsVal_int(obj1, &val2);
29014 if (!SWIG_IsOK(ecode2)) {
29015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
29016 }
29017 arg2 = static_cast< int >(val2);
29018 }
29019 if (obj2) {
29020 {
29021 arg3 = &temp3;
29022 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29023 }
29024 }
29025 if (obj3) {
29026 {
29027 arg4 = &temp4;
29028 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29029 }
29030 }
29031 if (obj4) {
29032 ecode5 = SWIG_AsVal_long(obj4, &val5);
29033 if (!SWIG_IsOK(ecode5)) {
29034 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
29035 }
29036 arg5 = static_cast< long >(val5);
29037 }
29038 if (obj5) {
29039 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
29040 if (!SWIG_IsOK(res6)) {
29041 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
29042 }
29043 if (!argp6) {
29044 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
29045 }
29046 arg6 = reinterpret_cast< wxValidator * >(argp6);
29047 }
29048 if (obj6) {
29049 {
29050 arg7 = wxString_in_helper(obj6);
29051 if (arg7 == NULL) SWIG_fail;
29052 temp7 = true;
29053 }
29054 }
29055 {
29056 if (!wxPyCheckForApp()) SWIG_fail;
29057 PyThreadState* __tstate = wxPyBeginAllowThreads();
29058 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29059 wxPyEndAllowThreads(__tstate);
29060 if (PyErr_Occurred()) SWIG_fail;
29061 }
29062 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
29063 {
29064 if (temp7)
29065 delete arg7;
29066 }
29067 return resultobj;
29068 fail:
29069 {
29070 if (temp7)
29071 delete arg7;
29072 }
29073 return NULL;
29074 }
29075
29076
29077 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29078 PyObject *resultobj = 0;
29079 wxPyListCtrl *result = 0 ;
29080
29081 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
29082 {
29083 if (!wxPyCheckForApp()) SWIG_fail;
29084 PyThreadState* __tstate = wxPyBeginAllowThreads();
29085 result = (wxPyListCtrl *)new wxPyListCtrl();
29086 wxPyEndAllowThreads(__tstate);
29087 if (PyErr_Occurred()) SWIG_fail;
29088 }
29089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
29090 return resultobj;
29091 fail:
29092 return NULL;
29093 }
29094
29095
29096 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29097 PyObject *resultobj = 0;
29098 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29099 wxWindow *arg2 = (wxWindow *) 0 ;
29100 int arg3 = (int) -1 ;
29101 wxPoint const &arg4_defvalue = wxDefaultPosition ;
29102 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
29103 wxSize const &arg5_defvalue = wxDefaultSize ;
29104 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
29105 long arg6 = (long) wxLC_ICON ;
29106 wxValidator const &arg7_defvalue = wxDefaultValidator ;
29107 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
29108 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
29109 wxString *arg8 = (wxString *) &arg8_defvalue ;
29110 bool result;
29111 void *argp1 = 0 ;
29112 int res1 = 0 ;
29113 void *argp2 = 0 ;
29114 int res2 = 0 ;
29115 int val3 ;
29116 int ecode3 = 0 ;
29117 wxPoint temp4 ;
29118 wxSize temp5 ;
29119 long val6 ;
29120 int ecode6 = 0 ;
29121 void *argp7 = 0 ;
29122 int res7 = 0 ;
29123 bool temp8 = false ;
29124 PyObject * obj0 = 0 ;
29125 PyObject * obj1 = 0 ;
29126 PyObject * obj2 = 0 ;
29127 PyObject * obj3 = 0 ;
29128 PyObject * obj4 = 0 ;
29129 PyObject * obj5 = 0 ;
29130 PyObject * obj6 = 0 ;
29131 PyObject * obj7 = 0 ;
29132 char * kwnames[] = {
29133 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29134 };
29135
29136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29138 if (!SWIG_IsOK(res1)) {
29139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29140 }
29141 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29142 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29143 if (!SWIG_IsOK(res2)) {
29144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
29145 }
29146 arg2 = reinterpret_cast< wxWindow * >(argp2);
29147 if (obj2) {
29148 ecode3 = SWIG_AsVal_int(obj2, &val3);
29149 if (!SWIG_IsOK(ecode3)) {
29150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
29151 }
29152 arg3 = static_cast< int >(val3);
29153 }
29154 if (obj3) {
29155 {
29156 arg4 = &temp4;
29157 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29158 }
29159 }
29160 if (obj4) {
29161 {
29162 arg5 = &temp5;
29163 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
29164 }
29165 }
29166 if (obj5) {
29167 ecode6 = SWIG_AsVal_long(obj5, &val6);
29168 if (!SWIG_IsOK(ecode6)) {
29169 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
29170 }
29171 arg6 = static_cast< long >(val6);
29172 }
29173 if (obj6) {
29174 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
29175 if (!SWIG_IsOK(res7)) {
29176 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29177 }
29178 if (!argp7) {
29179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29180 }
29181 arg7 = reinterpret_cast< wxValidator * >(argp7);
29182 }
29183 if (obj7) {
29184 {
29185 arg8 = wxString_in_helper(obj7);
29186 if (arg8 == NULL) SWIG_fail;
29187 temp8 = true;
29188 }
29189 }
29190 {
29191 PyThreadState* __tstate = wxPyBeginAllowThreads();
29192 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29193 wxPyEndAllowThreads(__tstate);
29194 if (PyErr_Occurred()) SWIG_fail;
29195 }
29196 {
29197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29198 }
29199 {
29200 if (temp8)
29201 delete arg8;
29202 }
29203 return resultobj;
29204 fail:
29205 {
29206 if (temp8)
29207 delete arg8;
29208 }
29209 return NULL;
29210 }
29211
29212
29213 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29214 PyObject *resultobj = 0;
29215 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29216 PyObject *arg2 = (PyObject *) 0 ;
29217 PyObject *arg3 = (PyObject *) 0 ;
29218 void *argp1 = 0 ;
29219 int res1 = 0 ;
29220 PyObject * obj0 = 0 ;
29221 PyObject * obj1 = 0 ;
29222 PyObject * obj2 = 0 ;
29223 char * kwnames[] = {
29224 (char *) "self",(char *) "self",(char *) "_class", NULL
29225 };
29226
29227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29229 if (!SWIG_IsOK(res1)) {
29230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29231 }
29232 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29233 arg2 = obj1;
29234 arg3 = obj2;
29235 {
29236 PyThreadState* __tstate = wxPyBeginAllowThreads();
29237 (arg1)->_setCallbackInfo(arg2,arg3);
29238 wxPyEndAllowThreads(__tstate);
29239 if (PyErr_Occurred()) SWIG_fail;
29240 }
29241 resultobj = SWIG_Py_Void();
29242 return resultobj;
29243 fail:
29244 return NULL;
29245 }
29246
29247
29248 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29249 PyObject *resultobj = 0;
29250 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29251 int arg2 ;
29252 wxListItem *result = 0 ;
29253 void *argp1 = 0 ;
29254 int res1 = 0 ;
29255 int val2 ;
29256 int ecode2 = 0 ;
29257 PyObject * obj0 = 0 ;
29258 PyObject * obj1 = 0 ;
29259 char * kwnames[] = {
29260 (char *) "self",(char *) "col", NULL
29261 };
29262
29263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29265 if (!SWIG_IsOK(res1)) {
29266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29267 }
29268 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29269 ecode2 = SWIG_AsVal_int(obj1, &val2);
29270 if (!SWIG_IsOK(ecode2)) {
29271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29272 }
29273 arg2 = static_cast< int >(val2);
29274 {
29275 PyThreadState* __tstate = wxPyBeginAllowThreads();
29276 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29277 wxPyEndAllowThreads(__tstate);
29278 if (PyErr_Occurred()) SWIG_fail;
29279 }
29280 {
29281 resultobj = wxPyMake_wxObject(result, 0);
29282 }
29283 return resultobj;
29284 fail:
29285 return NULL;
29286 }
29287
29288
29289 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29290 PyObject *resultobj = 0;
29291 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29292 int arg2 ;
29293 wxListItem *arg3 = 0 ;
29294 bool result;
29295 void *argp1 = 0 ;
29296 int res1 = 0 ;
29297 int val2 ;
29298 int ecode2 = 0 ;
29299 void *argp3 = 0 ;
29300 int res3 = 0 ;
29301 PyObject * obj0 = 0 ;
29302 PyObject * obj1 = 0 ;
29303 PyObject * obj2 = 0 ;
29304 char * kwnames[] = {
29305 (char *) "self",(char *) "col",(char *) "item", NULL
29306 };
29307
29308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29310 if (!SWIG_IsOK(res1)) {
29311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29312 }
29313 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29314 ecode2 = SWIG_AsVal_int(obj1, &val2);
29315 if (!SWIG_IsOK(ecode2)) {
29316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29317 }
29318 arg2 = static_cast< int >(val2);
29319 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29320 if (!SWIG_IsOK(res3)) {
29321 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29322 }
29323 if (!argp3) {
29324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29325 }
29326 arg3 = reinterpret_cast< wxListItem * >(argp3);
29327 {
29328 PyThreadState* __tstate = wxPyBeginAllowThreads();
29329 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29330 wxPyEndAllowThreads(__tstate);
29331 if (PyErr_Occurred()) SWIG_fail;
29332 }
29333 {
29334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29335 }
29336 return resultobj;
29337 fail:
29338 return NULL;
29339 }
29340
29341
29342 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29343 PyObject *resultobj = 0;
29344 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29345 int arg2 ;
29346 int result;
29347 void *argp1 = 0 ;
29348 int res1 = 0 ;
29349 int val2 ;
29350 int ecode2 = 0 ;
29351 PyObject * obj0 = 0 ;
29352 PyObject * obj1 = 0 ;
29353 char * kwnames[] = {
29354 (char *) "self",(char *) "col", NULL
29355 };
29356
29357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29359 if (!SWIG_IsOK(res1)) {
29360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29361 }
29362 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29363 ecode2 = SWIG_AsVal_int(obj1, &val2);
29364 if (!SWIG_IsOK(ecode2)) {
29365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29366 }
29367 arg2 = static_cast< int >(val2);
29368 {
29369 PyThreadState* __tstate = wxPyBeginAllowThreads();
29370 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29371 wxPyEndAllowThreads(__tstate);
29372 if (PyErr_Occurred()) SWIG_fail;
29373 }
29374 resultobj = SWIG_From_int(static_cast< int >(result));
29375 return resultobj;
29376 fail:
29377 return NULL;
29378 }
29379
29380
29381 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29382 PyObject *resultobj = 0;
29383 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29384 int arg2 ;
29385 int arg3 ;
29386 bool result;
29387 void *argp1 = 0 ;
29388 int res1 = 0 ;
29389 int val2 ;
29390 int ecode2 = 0 ;
29391 int val3 ;
29392 int ecode3 = 0 ;
29393 PyObject * obj0 = 0 ;
29394 PyObject * obj1 = 0 ;
29395 PyObject * obj2 = 0 ;
29396 char * kwnames[] = {
29397 (char *) "self",(char *) "col",(char *) "width", NULL
29398 };
29399
29400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29402 if (!SWIG_IsOK(res1)) {
29403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29404 }
29405 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29406 ecode2 = SWIG_AsVal_int(obj1, &val2);
29407 if (!SWIG_IsOK(ecode2)) {
29408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29409 }
29410 arg2 = static_cast< int >(val2);
29411 ecode3 = SWIG_AsVal_int(obj2, &val3);
29412 if (!SWIG_IsOK(ecode3)) {
29413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29414 }
29415 arg3 = static_cast< int >(val3);
29416 {
29417 PyThreadState* __tstate = wxPyBeginAllowThreads();
29418 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29419 wxPyEndAllowThreads(__tstate);
29420 if (PyErr_Occurred()) SWIG_fail;
29421 }
29422 {
29423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29424 }
29425 return resultobj;
29426 fail:
29427 return NULL;
29428 }
29429
29430
29431 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29432 PyObject *resultobj = 0;
29433 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29434 int result;
29435 void *argp1 = 0 ;
29436 int res1 = 0 ;
29437 PyObject *swig_obj[1] ;
29438
29439 if (!args) SWIG_fail;
29440 swig_obj[0] = args;
29441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29442 if (!SWIG_IsOK(res1)) {
29443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29444 }
29445 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29446 {
29447 PyThreadState* __tstate = wxPyBeginAllowThreads();
29448 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29449 wxPyEndAllowThreads(__tstate);
29450 if (PyErr_Occurred()) SWIG_fail;
29451 }
29452 resultobj = SWIG_From_int(static_cast< int >(result));
29453 return resultobj;
29454 fail:
29455 return NULL;
29456 }
29457
29458
29459 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29460 PyObject *resultobj = 0;
29461 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29462 wxRect result;
29463 void *argp1 = 0 ;
29464 int res1 = 0 ;
29465 PyObject *swig_obj[1] ;
29466
29467 if (!args) SWIG_fail;
29468 swig_obj[0] = args;
29469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29470 if (!SWIG_IsOK(res1)) {
29471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29472 }
29473 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29474 {
29475 PyThreadState* __tstate = wxPyBeginAllowThreads();
29476 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29477 wxPyEndAllowThreads(__tstate);
29478 if (PyErr_Occurred()) SWIG_fail;
29479 }
29480 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29481 return resultobj;
29482 fail:
29483 return NULL;
29484 }
29485
29486
29487 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29488 PyObject *resultobj = 0;
29489 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29490 wxTextCtrl *result = 0 ;
29491 void *argp1 = 0 ;
29492 int res1 = 0 ;
29493 PyObject *swig_obj[1] ;
29494
29495 if (!args) SWIG_fail;
29496 swig_obj[0] = args;
29497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29498 if (!SWIG_IsOK(res1)) {
29499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29500 }
29501 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29502 {
29503 PyThreadState* __tstate = wxPyBeginAllowThreads();
29504 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29505 wxPyEndAllowThreads(__tstate);
29506 if (PyErr_Occurred()) SWIG_fail;
29507 }
29508 {
29509 resultobj = wxPyMake_wxObject(result, 0);
29510 }
29511 return resultobj;
29512 fail:
29513 return NULL;
29514 }
29515
29516
29517 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29518 PyObject *resultobj = 0;
29519 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29520 long arg2 ;
29521 int arg3 = (int) 0 ;
29522 wxListItem *result = 0 ;
29523 void *argp1 = 0 ;
29524 int res1 = 0 ;
29525 long val2 ;
29526 int ecode2 = 0 ;
29527 int val3 ;
29528 int ecode3 = 0 ;
29529 PyObject * obj0 = 0 ;
29530 PyObject * obj1 = 0 ;
29531 PyObject * obj2 = 0 ;
29532 char * kwnames[] = {
29533 (char *) "self",(char *) "itemId",(char *) "col", NULL
29534 };
29535
29536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29538 if (!SWIG_IsOK(res1)) {
29539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29540 }
29541 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29542 ecode2 = SWIG_AsVal_long(obj1, &val2);
29543 if (!SWIG_IsOK(ecode2)) {
29544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29545 }
29546 arg2 = static_cast< long >(val2);
29547 if (obj2) {
29548 ecode3 = SWIG_AsVal_int(obj2, &val3);
29549 if (!SWIG_IsOK(ecode3)) {
29550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29551 }
29552 arg3 = static_cast< int >(val3);
29553 }
29554 {
29555 PyThreadState* __tstate = wxPyBeginAllowThreads();
29556 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29557 wxPyEndAllowThreads(__tstate);
29558 if (PyErr_Occurred()) SWIG_fail;
29559 }
29560 {
29561 resultobj = wxPyMake_wxObject(result, 0);
29562 }
29563 return resultobj;
29564 fail:
29565 return NULL;
29566 }
29567
29568
29569 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29570 PyObject *resultobj = 0;
29571 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29572 wxListItem *arg2 = 0 ;
29573 bool result;
29574 void *argp1 = 0 ;
29575 int res1 = 0 ;
29576 void *argp2 = 0 ;
29577 int res2 = 0 ;
29578 PyObject * obj0 = 0 ;
29579 PyObject * obj1 = 0 ;
29580 char * kwnames[] = {
29581 (char *) "self",(char *) "info", NULL
29582 };
29583
29584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29586 if (!SWIG_IsOK(res1)) {
29587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29588 }
29589 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29590 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29591 if (!SWIG_IsOK(res2)) {
29592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29593 }
29594 if (!argp2) {
29595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29596 }
29597 arg2 = reinterpret_cast< wxListItem * >(argp2);
29598 {
29599 PyThreadState* __tstate = wxPyBeginAllowThreads();
29600 result = (bool)(arg1)->SetItem(*arg2);
29601 wxPyEndAllowThreads(__tstate);
29602 if (PyErr_Occurred()) SWIG_fail;
29603 }
29604 {
29605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29606 }
29607 return resultobj;
29608 fail:
29609 return NULL;
29610 }
29611
29612
29613 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29614 PyObject *resultobj = 0;
29615 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29616 long arg2 ;
29617 int arg3 ;
29618 wxString *arg4 = 0 ;
29619 int arg5 = (int) -1 ;
29620 long result;
29621 void *argp1 = 0 ;
29622 int res1 = 0 ;
29623 long val2 ;
29624 int ecode2 = 0 ;
29625 int val3 ;
29626 int ecode3 = 0 ;
29627 bool temp4 = false ;
29628 int val5 ;
29629 int ecode5 = 0 ;
29630 PyObject * obj0 = 0 ;
29631 PyObject * obj1 = 0 ;
29632 PyObject * obj2 = 0 ;
29633 PyObject * obj3 = 0 ;
29634 PyObject * obj4 = 0 ;
29635 char * kwnames[] = {
29636 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29637 };
29638
29639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29641 if (!SWIG_IsOK(res1)) {
29642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29643 }
29644 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29645 ecode2 = SWIG_AsVal_long(obj1, &val2);
29646 if (!SWIG_IsOK(ecode2)) {
29647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29648 }
29649 arg2 = static_cast< long >(val2);
29650 ecode3 = SWIG_AsVal_int(obj2, &val3);
29651 if (!SWIG_IsOK(ecode3)) {
29652 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29653 }
29654 arg3 = static_cast< int >(val3);
29655 {
29656 arg4 = wxString_in_helper(obj3);
29657 if (arg4 == NULL) SWIG_fail;
29658 temp4 = true;
29659 }
29660 if (obj4) {
29661 ecode5 = SWIG_AsVal_int(obj4, &val5);
29662 if (!SWIG_IsOK(ecode5)) {
29663 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29664 }
29665 arg5 = static_cast< int >(val5);
29666 }
29667 {
29668 PyThreadState* __tstate = wxPyBeginAllowThreads();
29669 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29670 wxPyEndAllowThreads(__tstate);
29671 if (PyErr_Occurred()) SWIG_fail;
29672 }
29673 resultobj = SWIG_From_long(static_cast< long >(result));
29674 {
29675 if (temp4)
29676 delete arg4;
29677 }
29678 return resultobj;
29679 fail:
29680 {
29681 if (temp4)
29682 delete arg4;
29683 }
29684 return NULL;
29685 }
29686
29687
29688 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29689 PyObject *resultobj = 0;
29690 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29691 long arg2 ;
29692 long arg3 ;
29693 int result;
29694 void *argp1 = 0 ;
29695 int res1 = 0 ;
29696 long val2 ;
29697 int ecode2 = 0 ;
29698 long val3 ;
29699 int ecode3 = 0 ;
29700 PyObject * obj0 = 0 ;
29701 PyObject * obj1 = 0 ;
29702 PyObject * obj2 = 0 ;
29703 char * kwnames[] = {
29704 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29705 };
29706
29707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29709 if (!SWIG_IsOK(res1)) {
29710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29711 }
29712 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29713 ecode2 = SWIG_AsVal_long(obj1, &val2);
29714 if (!SWIG_IsOK(ecode2)) {
29715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29716 }
29717 arg2 = static_cast< long >(val2);
29718 ecode3 = SWIG_AsVal_long(obj2, &val3);
29719 if (!SWIG_IsOK(ecode3)) {
29720 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29721 }
29722 arg3 = static_cast< long >(val3);
29723 {
29724 PyThreadState* __tstate = wxPyBeginAllowThreads();
29725 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29726 wxPyEndAllowThreads(__tstate);
29727 if (PyErr_Occurred()) SWIG_fail;
29728 }
29729 resultobj = SWIG_From_int(static_cast< int >(result));
29730 return resultobj;
29731 fail:
29732 return NULL;
29733 }
29734
29735
29736 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29737 PyObject *resultobj = 0;
29738 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29739 long arg2 ;
29740 long arg3 ;
29741 long arg4 ;
29742 bool result;
29743 void *argp1 = 0 ;
29744 int res1 = 0 ;
29745 long val2 ;
29746 int ecode2 = 0 ;
29747 long val3 ;
29748 int ecode3 = 0 ;
29749 long val4 ;
29750 int ecode4 = 0 ;
29751 PyObject * obj0 = 0 ;
29752 PyObject * obj1 = 0 ;
29753 PyObject * obj2 = 0 ;
29754 PyObject * obj3 = 0 ;
29755 char * kwnames[] = {
29756 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29757 };
29758
29759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29761 if (!SWIG_IsOK(res1)) {
29762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29763 }
29764 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29765 ecode2 = SWIG_AsVal_long(obj1, &val2);
29766 if (!SWIG_IsOK(ecode2)) {
29767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29768 }
29769 arg2 = static_cast< long >(val2);
29770 ecode3 = SWIG_AsVal_long(obj2, &val3);
29771 if (!SWIG_IsOK(ecode3)) {
29772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29773 }
29774 arg3 = static_cast< long >(val3);
29775 ecode4 = SWIG_AsVal_long(obj3, &val4);
29776 if (!SWIG_IsOK(ecode4)) {
29777 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29778 }
29779 arg4 = static_cast< long >(val4);
29780 {
29781 PyThreadState* __tstate = wxPyBeginAllowThreads();
29782 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29783 wxPyEndAllowThreads(__tstate);
29784 if (PyErr_Occurred()) SWIG_fail;
29785 }
29786 {
29787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29788 }
29789 return resultobj;
29790 fail:
29791 return NULL;
29792 }
29793
29794
29795 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29796 PyObject *resultobj = 0;
29797 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29798 long arg2 ;
29799 int arg3 ;
29800 int arg4 = (int) -1 ;
29801 bool result;
29802 void *argp1 = 0 ;
29803 int res1 = 0 ;
29804 long val2 ;
29805 int ecode2 = 0 ;
29806 int val3 ;
29807 int ecode3 = 0 ;
29808 int val4 ;
29809 int ecode4 = 0 ;
29810 PyObject * obj0 = 0 ;
29811 PyObject * obj1 = 0 ;
29812 PyObject * obj2 = 0 ;
29813 PyObject * obj3 = 0 ;
29814 char * kwnames[] = {
29815 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29816 };
29817
29818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29820 if (!SWIG_IsOK(res1)) {
29821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29822 }
29823 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29824 ecode2 = SWIG_AsVal_long(obj1, &val2);
29825 if (!SWIG_IsOK(ecode2)) {
29826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29827 }
29828 arg2 = static_cast< long >(val2);
29829 ecode3 = SWIG_AsVal_int(obj2, &val3);
29830 if (!SWIG_IsOK(ecode3)) {
29831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29832 }
29833 arg3 = static_cast< int >(val3);
29834 if (obj3) {
29835 ecode4 = SWIG_AsVal_int(obj3, &val4);
29836 if (!SWIG_IsOK(ecode4)) {
29837 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29838 }
29839 arg4 = static_cast< int >(val4);
29840 }
29841 {
29842 PyThreadState* __tstate = wxPyBeginAllowThreads();
29843 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29844 wxPyEndAllowThreads(__tstate);
29845 if (PyErr_Occurred()) SWIG_fail;
29846 }
29847 {
29848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29849 }
29850 return resultobj;
29851 fail:
29852 return NULL;
29853 }
29854
29855
29856 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29857 PyObject *resultobj = 0;
29858 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29859 long arg2 ;
29860 long arg3 ;
29861 int arg4 ;
29862 bool result;
29863 void *argp1 = 0 ;
29864 int res1 = 0 ;
29865 long val2 ;
29866 int ecode2 = 0 ;
29867 long val3 ;
29868 int ecode3 = 0 ;
29869 int val4 ;
29870 int ecode4 = 0 ;
29871 PyObject * obj0 = 0 ;
29872 PyObject * obj1 = 0 ;
29873 PyObject * obj2 = 0 ;
29874 PyObject * obj3 = 0 ;
29875 char * kwnames[] = {
29876 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29877 };
29878
29879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29881 if (!SWIG_IsOK(res1)) {
29882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29883 }
29884 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29885 ecode2 = SWIG_AsVal_long(obj1, &val2);
29886 if (!SWIG_IsOK(ecode2)) {
29887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29888 }
29889 arg2 = static_cast< long >(val2);
29890 ecode3 = SWIG_AsVal_long(obj2, &val3);
29891 if (!SWIG_IsOK(ecode3)) {
29892 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29893 }
29894 arg3 = static_cast< long >(val3);
29895 ecode4 = SWIG_AsVal_int(obj3, &val4);
29896 if (!SWIG_IsOK(ecode4)) {
29897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29898 }
29899 arg4 = static_cast< int >(val4);
29900 {
29901 PyThreadState* __tstate = wxPyBeginAllowThreads();
29902 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29903 wxPyEndAllowThreads(__tstate);
29904 if (PyErr_Occurred()) SWIG_fail;
29905 }
29906 {
29907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29908 }
29909 return resultobj;
29910 fail:
29911 return NULL;
29912 }
29913
29914
29915 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29916 PyObject *resultobj = 0;
29917 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29918 long arg2 ;
29919 wxString result;
29920 void *argp1 = 0 ;
29921 int res1 = 0 ;
29922 long val2 ;
29923 int ecode2 = 0 ;
29924 PyObject * obj0 = 0 ;
29925 PyObject * obj1 = 0 ;
29926 char * kwnames[] = {
29927 (char *) "self",(char *) "item", NULL
29928 };
29929
29930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29932 if (!SWIG_IsOK(res1)) {
29933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29934 }
29935 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29936 ecode2 = SWIG_AsVal_long(obj1, &val2);
29937 if (!SWIG_IsOK(ecode2)) {
29938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29939 }
29940 arg2 = static_cast< long >(val2);
29941 {
29942 PyThreadState* __tstate = wxPyBeginAllowThreads();
29943 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29944 wxPyEndAllowThreads(__tstate);
29945 if (PyErr_Occurred()) SWIG_fail;
29946 }
29947 {
29948 #if wxUSE_UNICODE
29949 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29950 #else
29951 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29952 #endif
29953 }
29954 return resultobj;
29955 fail:
29956 return NULL;
29957 }
29958
29959
29960 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29961 PyObject *resultobj = 0;
29962 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29963 long arg2 ;
29964 wxString *arg3 = 0 ;
29965 void *argp1 = 0 ;
29966 int res1 = 0 ;
29967 long val2 ;
29968 int ecode2 = 0 ;
29969 bool temp3 = false ;
29970 PyObject * obj0 = 0 ;
29971 PyObject * obj1 = 0 ;
29972 PyObject * obj2 = 0 ;
29973 char * kwnames[] = {
29974 (char *) "self",(char *) "item",(char *) "str", NULL
29975 };
29976
29977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29979 if (!SWIG_IsOK(res1)) {
29980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29981 }
29982 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29983 ecode2 = SWIG_AsVal_long(obj1, &val2);
29984 if (!SWIG_IsOK(ecode2)) {
29985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29986 }
29987 arg2 = static_cast< long >(val2);
29988 {
29989 arg3 = wxString_in_helper(obj2);
29990 if (arg3 == NULL) SWIG_fail;
29991 temp3 = true;
29992 }
29993 {
29994 PyThreadState* __tstate = wxPyBeginAllowThreads();
29995 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29996 wxPyEndAllowThreads(__tstate);
29997 if (PyErr_Occurred()) SWIG_fail;
29998 }
29999 resultobj = SWIG_Py_Void();
30000 {
30001 if (temp3)
30002 delete arg3;
30003 }
30004 return resultobj;
30005 fail:
30006 {
30007 if (temp3)
30008 delete arg3;
30009 }
30010 return NULL;
30011 }
30012
30013
30014 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30015 PyObject *resultobj = 0;
30016 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30017 long arg2 ;
30018 long result;
30019 void *argp1 = 0 ;
30020 int res1 = 0 ;
30021 long val2 ;
30022 int ecode2 = 0 ;
30023 PyObject * obj0 = 0 ;
30024 PyObject * obj1 = 0 ;
30025 char * kwnames[] = {
30026 (char *) "self",(char *) "item", NULL
30027 };
30028
30029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
30030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30031 if (!SWIG_IsOK(res1)) {
30032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30033 }
30034 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30035 ecode2 = SWIG_AsVal_long(obj1, &val2);
30036 if (!SWIG_IsOK(ecode2)) {
30037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
30038 }
30039 arg2 = static_cast< long >(val2);
30040 {
30041 PyThreadState* __tstate = wxPyBeginAllowThreads();
30042 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
30043 wxPyEndAllowThreads(__tstate);
30044 if (PyErr_Occurred()) SWIG_fail;
30045 }
30046 resultobj = SWIG_From_long(static_cast< long >(result));
30047 return resultobj;
30048 fail:
30049 return NULL;
30050 }
30051
30052
30053 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30054 PyObject *resultobj = 0;
30055 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30056 long arg2 ;
30057 long arg3 ;
30058 bool result;
30059 void *argp1 = 0 ;
30060 int res1 = 0 ;
30061 long val2 ;
30062 int ecode2 = 0 ;
30063 long val3 ;
30064 int ecode3 = 0 ;
30065 PyObject * obj0 = 0 ;
30066 PyObject * obj1 = 0 ;
30067 PyObject * obj2 = 0 ;
30068 char * kwnames[] = {
30069 (char *) "self",(char *) "item",(char *) "data", NULL
30070 };
30071
30072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30074 if (!SWIG_IsOK(res1)) {
30075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30076 }
30077 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30078 ecode2 = SWIG_AsVal_long(obj1, &val2);
30079 if (!SWIG_IsOK(ecode2)) {
30080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
30081 }
30082 arg2 = static_cast< long >(val2);
30083 ecode3 = SWIG_AsVal_long(obj2, &val3);
30084 if (!SWIG_IsOK(ecode3)) {
30085 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
30086 }
30087 arg3 = static_cast< long >(val3);
30088 {
30089 PyThreadState* __tstate = wxPyBeginAllowThreads();
30090 result = (bool)(arg1)->SetItemData(arg2,arg3);
30091 wxPyEndAllowThreads(__tstate);
30092 if (PyErr_Occurred()) SWIG_fail;
30093 }
30094 {
30095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30096 }
30097 return resultobj;
30098 fail:
30099 return NULL;
30100 }
30101
30102
30103 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30104 PyObject *resultobj = 0;
30105 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30106 long arg2 ;
30107 wxPoint result;
30108 void *argp1 = 0 ;
30109 int res1 = 0 ;
30110 long val2 ;
30111 int ecode2 = 0 ;
30112 PyObject * obj0 = 0 ;
30113 PyObject * obj1 = 0 ;
30114 char * kwnames[] = {
30115 (char *) "self",(char *) "item", NULL
30116 };
30117
30118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
30119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30120 if (!SWIG_IsOK(res1)) {
30121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30122 }
30123 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30124 ecode2 = SWIG_AsVal_long(obj1, &val2);
30125 if (!SWIG_IsOK(ecode2)) {
30126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
30127 }
30128 arg2 = static_cast< long >(val2);
30129 {
30130 PyThreadState* __tstate = wxPyBeginAllowThreads();
30131 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
30132 wxPyEndAllowThreads(__tstate);
30133 if (PyErr_Occurred()) SWIG_fail;
30134 }
30135 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
30136 return resultobj;
30137 fail:
30138 return NULL;
30139 }
30140
30141
30142 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30143 PyObject *resultobj = 0;
30144 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30145 long arg2 ;
30146 int arg3 = (int) wxLIST_RECT_BOUNDS ;
30147 wxRect result;
30148 void *argp1 = 0 ;
30149 int res1 = 0 ;
30150 long val2 ;
30151 int ecode2 = 0 ;
30152 int val3 ;
30153 int ecode3 = 0 ;
30154 PyObject * obj0 = 0 ;
30155 PyObject * obj1 = 0 ;
30156 PyObject * obj2 = 0 ;
30157 char * kwnames[] = {
30158 (char *) "self",(char *) "item",(char *) "code", NULL
30159 };
30160
30161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30163 if (!SWIG_IsOK(res1)) {
30164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30165 }
30166 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30167 ecode2 = SWIG_AsVal_long(obj1, &val2);
30168 if (!SWIG_IsOK(ecode2)) {
30169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
30170 }
30171 arg2 = static_cast< long >(val2);
30172 if (obj2) {
30173 ecode3 = SWIG_AsVal_int(obj2, &val3);
30174 if (!SWIG_IsOK(ecode3)) {
30175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
30176 }
30177 arg3 = static_cast< int >(val3);
30178 }
30179 {
30180 PyThreadState* __tstate = wxPyBeginAllowThreads();
30181 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
30182 wxPyEndAllowThreads(__tstate);
30183 if (PyErr_Occurred()) SWIG_fail;
30184 }
30185 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
30186 return resultobj;
30187 fail:
30188 return NULL;
30189 }
30190
30191
30192 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30193 PyObject *resultobj = 0;
30194 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30195 long arg2 ;
30196 wxPoint *arg3 = 0 ;
30197 bool result;
30198 void *argp1 = 0 ;
30199 int res1 = 0 ;
30200 long val2 ;
30201 int ecode2 = 0 ;
30202 wxPoint temp3 ;
30203 PyObject * obj0 = 0 ;
30204 PyObject * obj1 = 0 ;
30205 PyObject * obj2 = 0 ;
30206 char * kwnames[] = {
30207 (char *) "self",(char *) "item",(char *) "pos", NULL
30208 };
30209
30210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30212 if (!SWIG_IsOK(res1)) {
30213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30214 }
30215 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30216 ecode2 = SWIG_AsVal_long(obj1, &val2);
30217 if (!SWIG_IsOK(ecode2)) {
30218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30219 }
30220 arg2 = static_cast< long >(val2);
30221 {
30222 arg3 = &temp3;
30223 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30224 }
30225 {
30226 PyThreadState* __tstate = wxPyBeginAllowThreads();
30227 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30228 wxPyEndAllowThreads(__tstate);
30229 if (PyErr_Occurred()) SWIG_fail;
30230 }
30231 {
30232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30233 }
30234 return resultobj;
30235 fail:
30236 return NULL;
30237 }
30238
30239
30240 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30241 PyObject *resultobj = 0;
30242 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30243 int result;
30244 void *argp1 = 0 ;
30245 int res1 = 0 ;
30246 PyObject *swig_obj[1] ;
30247
30248 if (!args) SWIG_fail;
30249 swig_obj[0] = args;
30250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30251 if (!SWIG_IsOK(res1)) {
30252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30253 }
30254 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30255 {
30256 PyThreadState* __tstate = wxPyBeginAllowThreads();
30257 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30258 wxPyEndAllowThreads(__tstate);
30259 if (PyErr_Occurred()) SWIG_fail;
30260 }
30261 resultobj = SWIG_From_int(static_cast< int >(result));
30262 return resultobj;
30263 fail:
30264 return NULL;
30265 }
30266
30267
30268 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30269 PyObject *resultobj = 0;
30270 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30271 int result;
30272 void *argp1 = 0 ;
30273 int res1 = 0 ;
30274 PyObject *swig_obj[1] ;
30275
30276 if (!args) SWIG_fail;
30277 swig_obj[0] = args;
30278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30279 if (!SWIG_IsOK(res1)) {
30280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30281 }
30282 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30283 {
30284 PyThreadState* __tstate = wxPyBeginAllowThreads();
30285 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30286 wxPyEndAllowThreads(__tstate);
30287 if (PyErr_Occurred()) SWIG_fail;
30288 }
30289 resultobj = SWIG_From_int(static_cast< int >(result));
30290 return resultobj;
30291 fail:
30292 return NULL;
30293 }
30294
30295
30296 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30297 PyObject *resultobj = 0;
30298 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30299 wxSize result;
30300 void *argp1 = 0 ;
30301 int res1 = 0 ;
30302 PyObject *swig_obj[1] ;
30303
30304 if (!args) SWIG_fail;
30305 swig_obj[0] = args;
30306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30307 if (!SWIG_IsOK(res1)) {
30308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30309 }
30310 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30311 {
30312 PyThreadState* __tstate = wxPyBeginAllowThreads();
30313 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30314 wxPyEndAllowThreads(__tstate);
30315 if (PyErr_Occurred()) SWIG_fail;
30316 }
30317 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30318 return resultobj;
30319 fail:
30320 return NULL;
30321 }
30322
30323
30324 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30325 PyObject *resultobj = 0;
30326 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30327 int result;
30328 void *argp1 = 0 ;
30329 int res1 = 0 ;
30330 PyObject *swig_obj[1] ;
30331
30332 if (!args) SWIG_fail;
30333 swig_obj[0] = args;
30334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30335 if (!SWIG_IsOK(res1)) {
30336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30337 }
30338 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30339 {
30340 PyThreadState* __tstate = wxPyBeginAllowThreads();
30341 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30342 wxPyEndAllowThreads(__tstate);
30343 if (PyErr_Occurred()) SWIG_fail;
30344 }
30345 resultobj = SWIG_From_int(static_cast< int >(result));
30346 return resultobj;
30347 fail:
30348 return NULL;
30349 }
30350
30351
30352 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30353 PyObject *resultobj = 0;
30354 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30355 wxColour result;
30356 void *argp1 = 0 ;
30357 int res1 = 0 ;
30358 PyObject *swig_obj[1] ;
30359
30360 if (!args) SWIG_fail;
30361 swig_obj[0] = args;
30362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30363 if (!SWIG_IsOK(res1)) {
30364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30365 }
30366 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30367 {
30368 PyThreadState* __tstate = wxPyBeginAllowThreads();
30369 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30370 wxPyEndAllowThreads(__tstate);
30371 if (PyErr_Occurred()) SWIG_fail;
30372 }
30373 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30374 return resultobj;
30375 fail:
30376 return NULL;
30377 }
30378
30379
30380 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30381 PyObject *resultobj = 0;
30382 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30383 wxColour *arg2 = 0 ;
30384 void *argp1 = 0 ;
30385 int res1 = 0 ;
30386 wxColour temp2 ;
30387 PyObject * obj0 = 0 ;
30388 PyObject * obj1 = 0 ;
30389 char * kwnames[] = {
30390 (char *) "self",(char *) "col", NULL
30391 };
30392
30393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30395 if (!SWIG_IsOK(res1)) {
30396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30397 }
30398 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30399 {
30400 arg2 = &temp2;
30401 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30402 }
30403 {
30404 PyThreadState* __tstate = wxPyBeginAllowThreads();
30405 (arg1)->SetTextColour((wxColour const &)*arg2);
30406 wxPyEndAllowThreads(__tstate);
30407 if (PyErr_Occurred()) SWIG_fail;
30408 }
30409 resultobj = SWIG_Py_Void();
30410 return resultobj;
30411 fail:
30412 return NULL;
30413 }
30414
30415
30416 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30417 PyObject *resultobj = 0;
30418 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30419 long result;
30420 void *argp1 = 0 ;
30421 int res1 = 0 ;
30422 PyObject *swig_obj[1] ;
30423
30424 if (!args) SWIG_fail;
30425 swig_obj[0] = args;
30426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30427 if (!SWIG_IsOK(res1)) {
30428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30429 }
30430 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30431 {
30432 PyThreadState* __tstate = wxPyBeginAllowThreads();
30433 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30434 wxPyEndAllowThreads(__tstate);
30435 if (PyErr_Occurred()) SWIG_fail;
30436 }
30437 resultobj = SWIG_From_long(static_cast< long >(result));
30438 return resultobj;
30439 fail:
30440 return NULL;
30441 }
30442
30443
30444 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30445 PyObject *resultobj = 0;
30446 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30447 long arg2 ;
30448 bool arg3 = (bool) true ;
30449 void *argp1 = 0 ;
30450 int res1 = 0 ;
30451 long val2 ;
30452 int ecode2 = 0 ;
30453 bool val3 ;
30454 int ecode3 = 0 ;
30455 PyObject * obj0 = 0 ;
30456 PyObject * obj1 = 0 ;
30457 PyObject * obj2 = 0 ;
30458 char * kwnames[] = {
30459 (char *) "self",(char *) "style",(char *) "add", NULL
30460 };
30461
30462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30464 if (!SWIG_IsOK(res1)) {
30465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30466 }
30467 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30468 ecode2 = SWIG_AsVal_long(obj1, &val2);
30469 if (!SWIG_IsOK(ecode2)) {
30470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30471 }
30472 arg2 = static_cast< long >(val2);
30473 if (obj2) {
30474 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30475 if (!SWIG_IsOK(ecode3)) {
30476 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30477 }
30478 arg3 = static_cast< bool >(val3);
30479 }
30480 {
30481 PyThreadState* __tstate = wxPyBeginAllowThreads();
30482 (arg1)->SetSingleStyle(arg2,arg3);
30483 wxPyEndAllowThreads(__tstate);
30484 if (PyErr_Occurred()) SWIG_fail;
30485 }
30486 resultobj = SWIG_Py_Void();
30487 return resultobj;
30488 fail:
30489 return NULL;
30490 }
30491
30492
30493 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30494 PyObject *resultobj = 0;
30495 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30496 long arg2 ;
30497 int arg3 = (int) wxLIST_NEXT_ALL ;
30498 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30499 long result;
30500 void *argp1 = 0 ;
30501 int res1 = 0 ;
30502 long val2 ;
30503 int ecode2 = 0 ;
30504 int val3 ;
30505 int ecode3 = 0 ;
30506 int val4 ;
30507 int ecode4 = 0 ;
30508 PyObject * obj0 = 0 ;
30509 PyObject * obj1 = 0 ;
30510 PyObject * obj2 = 0 ;
30511 PyObject * obj3 = 0 ;
30512 char * kwnames[] = {
30513 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30514 };
30515
30516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30518 if (!SWIG_IsOK(res1)) {
30519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30520 }
30521 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30522 ecode2 = SWIG_AsVal_long(obj1, &val2);
30523 if (!SWIG_IsOK(ecode2)) {
30524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30525 }
30526 arg2 = static_cast< long >(val2);
30527 if (obj2) {
30528 ecode3 = SWIG_AsVal_int(obj2, &val3);
30529 if (!SWIG_IsOK(ecode3)) {
30530 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30531 }
30532 arg3 = static_cast< int >(val3);
30533 }
30534 if (obj3) {
30535 ecode4 = SWIG_AsVal_int(obj3, &val4);
30536 if (!SWIG_IsOK(ecode4)) {
30537 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30538 }
30539 arg4 = static_cast< int >(val4);
30540 }
30541 {
30542 PyThreadState* __tstate = wxPyBeginAllowThreads();
30543 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30544 wxPyEndAllowThreads(__tstate);
30545 if (PyErr_Occurred()) SWIG_fail;
30546 }
30547 resultobj = SWIG_From_long(static_cast< long >(result));
30548 return resultobj;
30549 fail:
30550 return NULL;
30551 }
30552
30553
30554 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30555 PyObject *resultobj = 0;
30556 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30557 int arg2 ;
30558 wxImageList *result = 0 ;
30559 void *argp1 = 0 ;
30560 int res1 = 0 ;
30561 int val2 ;
30562 int ecode2 = 0 ;
30563 PyObject * obj0 = 0 ;
30564 PyObject * obj1 = 0 ;
30565 char * kwnames[] = {
30566 (char *) "self",(char *) "which", NULL
30567 };
30568
30569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30571 if (!SWIG_IsOK(res1)) {
30572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30573 }
30574 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30575 ecode2 = SWIG_AsVal_int(obj1, &val2);
30576 if (!SWIG_IsOK(ecode2)) {
30577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30578 }
30579 arg2 = static_cast< int >(val2);
30580 {
30581 PyThreadState* __tstate = wxPyBeginAllowThreads();
30582 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30583 wxPyEndAllowThreads(__tstate);
30584 if (PyErr_Occurred()) SWIG_fail;
30585 }
30586 {
30587 resultobj = wxPyMake_wxObject(result, (bool)0);
30588 }
30589 return resultobj;
30590 fail:
30591 return NULL;
30592 }
30593
30594
30595 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30596 PyObject *resultobj = 0;
30597 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30598 wxImageList *arg2 = (wxImageList *) 0 ;
30599 int arg3 ;
30600 void *argp1 = 0 ;
30601 int res1 = 0 ;
30602 void *argp2 = 0 ;
30603 int res2 = 0 ;
30604 int val3 ;
30605 int ecode3 = 0 ;
30606 PyObject * obj0 = 0 ;
30607 PyObject * obj1 = 0 ;
30608 PyObject * obj2 = 0 ;
30609 char * kwnames[] = {
30610 (char *) "self",(char *) "imageList",(char *) "which", NULL
30611 };
30612
30613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30615 if (!SWIG_IsOK(res1)) {
30616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30617 }
30618 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30619 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30620 if (!SWIG_IsOK(res2)) {
30621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30622 }
30623 arg2 = reinterpret_cast< wxImageList * >(argp2);
30624 ecode3 = SWIG_AsVal_int(obj2, &val3);
30625 if (!SWIG_IsOK(ecode3)) {
30626 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30627 }
30628 arg3 = static_cast< int >(val3);
30629 {
30630 PyThreadState* __tstate = wxPyBeginAllowThreads();
30631 (arg1)->SetImageList(arg2,arg3);
30632 wxPyEndAllowThreads(__tstate);
30633 if (PyErr_Occurred()) SWIG_fail;
30634 }
30635 resultobj = SWIG_Py_Void();
30636 return resultobj;
30637 fail:
30638 return NULL;
30639 }
30640
30641
30642 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30643 PyObject *resultobj = 0;
30644 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30645 wxImageList *arg2 = (wxImageList *) 0 ;
30646 int arg3 ;
30647 void *argp1 = 0 ;
30648 int res1 = 0 ;
30649 int res2 = 0 ;
30650 int val3 ;
30651 int ecode3 = 0 ;
30652 PyObject * obj0 = 0 ;
30653 PyObject * obj1 = 0 ;
30654 PyObject * obj2 = 0 ;
30655 char * kwnames[] = {
30656 (char *) "self",(char *) "imageList",(char *) "which", NULL
30657 };
30658
30659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30661 if (!SWIG_IsOK(res1)) {
30662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30663 }
30664 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30665 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30666 if (!SWIG_IsOK(res2)) {
30667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30668 }
30669 ecode3 = SWIG_AsVal_int(obj2, &val3);
30670 if (!SWIG_IsOK(ecode3)) {
30671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30672 }
30673 arg3 = static_cast< int >(val3);
30674 {
30675 PyThreadState* __tstate = wxPyBeginAllowThreads();
30676 (arg1)->AssignImageList(arg2,arg3);
30677 wxPyEndAllowThreads(__tstate);
30678 if (PyErr_Occurred()) SWIG_fail;
30679 }
30680 resultobj = SWIG_Py_Void();
30681 return resultobj;
30682 fail:
30683 return NULL;
30684 }
30685
30686
30687 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30688 PyObject *resultobj = 0;
30689 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30690 bool result;
30691 void *argp1 = 0 ;
30692 int res1 = 0 ;
30693 PyObject *swig_obj[1] ;
30694
30695 if (!args) SWIG_fail;
30696 swig_obj[0] = args;
30697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30698 if (!SWIG_IsOK(res1)) {
30699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30700 }
30701 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30702 {
30703 PyThreadState* __tstate = wxPyBeginAllowThreads();
30704 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30705 wxPyEndAllowThreads(__tstate);
30706 if (PyErr_Occurred()) SWIG_fail;
30707 }
30708 {
30709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30710 }
30711 return resultobj;
30712 fail:
30713 return NULL;
30714 }
30715
30716
30717 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30718 PyObject *resultobj = 0;
30719 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30720 bool result;
30721 void *argp1 = 0 ;
30722 int res1 = 0 ;
30723 PyObject *swig_obj[1] ;
30724
30725 if (!args) SWIG_fail;
30726 swig_obj[0] = args;
30727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30728 if (!SWIG_IsOK(res1)) {
30729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30730 }
30731 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30732 {
30733 PyThreadState* __tstate = wxPyBeginAllowThreads();
30734 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30735 wxPyEndAllowThreads(__tstate);
30736 if (PyErr_Occurred()) SWIG_fail;
30737 }
30738 {
30739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30740 }
30741 return resultobj;
30742 fail:
30743 return NULL;
30744 }
30745
30746
30747 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30748 PyObject *resultobj = 0;
30749 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30750 long arg2 ;
30751 void *argp1 = 0 ;
30752 int res1 = 0 ;
30753 long val2 ;
30754 int ecode2 = 0 ;
30755 PyObject * obj0 = 0 ;
30756 PyObject * obj1 = 0 ;
30757 char * kwnames[] = {
30758 (char *) "self",(char *) "item", NULL
30759 };
30760
30761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30763 if (!SWIG_IsOK(res1)) {
30764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30765 }
30766 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30767 ecode2 = SWIG_AsVal_long(obj1, &val2);
30768 if (!SWIG_IsOK(ecode2)) {
30769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30770 }
30771 arg2 = static_cast< long >(val2);
30772 {
30773 PyThreadState* __tstate = wxPyBeginAllowThreads();
30774 (arg1)->RefreshItem(arg2);
30775 wxPyEndAllowThreads(__tstate);
30776 if (PyErr_Occurred()) SWIG_fail;
30777 }
30778 resultobj = SWIG_Py_Void();
30779 return resultobj;
30780 fail:
30781 return NULL;
30782 }
30783
30784
30785 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30786 PyObject *resultobj = 0;
30787 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30788 long arg2 ;
30789 long arg3 ;
30790 void *argp1 = 0 ;
30791 int res1 = 0 ;
30792 long val2 ;
30793 int ecode2 = 0 ;
30794 long val3 ;
30795 int ecode3 = 0 ;
30796 PyObject * obj0 = 0 ;
30797 PyObject * obj1 = 0 ;
30798 PyObject * obj2 = 0 ;
30799 char * kwnames[] = {
30800 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30801 };
30802
30803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30805 if (!SWIG_IsOK(res1)) {
30806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30807 }
30808 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30809 ecode2 = SWIG_AsVal_long(obj1, &val2);
30810 if (!SWIG_IsOK(ecode2)) {
30811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30812 }
30813 arg2 = static_cast< long >(val2);
30814 ecode3 = SWIG_AsVal_long(obj2, &val3);
30815 if (!SWIG_IsOK(ecode3)) {
30816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30817 }
30818 arg3 = static_cast< long >(val3);
30819 {
30820 PyThreadState* __tstate = wxPyBeginAllowThreads();
30821 (arg1)->RefreshItems(arg2,arg3);
30822 wxPyEndAllowThreads(__tstate);
30823 if (PyErr_Occurred()) SWIG_fail;
30824 }
30825 resultobj = SWIG_Py_Void();
30826 return resultobj;
30827 fail:
30828 return NULL;
30829 }
30830
30831
30832 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30833 PyObject *resultobj = 0;
30834 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30835 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30836 bool result;
30837 void *argp1 = 0 ;
30838 int res1 = 0 ;
30839 int val2 ;
30840 int ecode2 = 0 ;
30841 PyObject * obj0 = 0 ;
30842 PyObject * obj1 = 0 ;
30843 char * kwnames[] = {
30844 (char *) "self",(char *) "flag", NULL
30845 };
30846
30847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30849 if (!SWIG_IsOK(res1)) {
30850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30851 }
30852 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30853 if (obj1) {
30854 ecode2 = SWIG_AsVal_int(obj1, &val2);
30855 if (!SWIG_IsOK(ecode2)) {
30856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30857 }
30858 arg2 = static_cast< int >(val2);
30859 }
30860 {
30861 PyThreadState* __tstate = wxPyBeginAllowThreads();
30862 result = (bool)(arg1)->Arrange(arg2);
30863 wxPyEndAllowThreads(__tstate);
30864 if (PyErr_Occurred()) SWIG_fail;
30865 }
30866 {
30867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30868 }
30869 return resultobj;
30870 fail:
30871 return NULL;
30872 }
30873
30874
30875 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30876 PyObject *resultobj = 0;
30877 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30878 long arg2 ;
30879 bool result;
30880 void *argp1 = 0 ;
30881 int res1 = 0 ;
30882 long val2 ;
30883 int ecode2 = 0 ;
30884 PyObject * obj0 = 0 ;
30885 PyObject * obj1 = 0 ;
30886 char * kwnames[] = {
30887 (char *) "self",(char *) "item", NULL
30888 };
30889
30890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30892 if (!SWIG_IsOK(res1)) {
30893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30894 }
30895 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30896 ecode2 = SWIG_AsVal_long(obj1, &val2);
30897 if (!SWIG_IsOK(ecode2)) {
30898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30899 }
30900 arg2 = static_cast< long >(val2);
30901 {
30902 PyThreadState* __tstate = wxPyBeginAllowThreads();
30903 result = (bool)(arg1)->DeleteItem(arg2);
30904 wxPyEndAllowThreads(__tstate);
30905 if (PyErr_Occurred()) SWIG_fail;
30906 }
30907 {
30908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30909 }
30910 return resultobj;
30911 fail:
30912 return NULL;
30913 }
30914
30915
30916 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30917 PyObject *resultobj = 0;
30918 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30919 bool result;
30920 void *argp1 = 0 ;
30921 int res1 = 0 ;
30922 PyObject *swig_obj[1] ;
30923
30924 if (!args) SWIG_fail;
30925 swig_obj[0] = args;
30926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30927 if (!SWIG_IsOK(res1)) {
30928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30929 }
30930 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30931 {
30932 PyThreadState* __tstate = wxPyBeginAllowThreads();
30933 result = (bool)(arg1)->DeleteAllItems();
30934 wxPyEndAllowThreads(__tstate);
30935 if (PyErr_Occurred()) SWIG_fail;
30936 }
30937 {
30938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30939 }
30940 return resultobj;
30941 fail:
30942 return NULL;
30943 }
30944
30945
30946 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30947 PyObject *resultobj = 0;
30948 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30949 int arg2 ;
30950 bool result;
30951 void *argp1 = 0 ;
30952 int res1 = 0 ;
30953 int val2 ;
30954 int ecode2 = 0 ;
30955 PyObject * obj0 = 0 ;
30956 PyObject * obj1 = 0 ;
30957 char * kwnames[] = {
30958 (char *) "self",(char *) "col", NULL
30959 };
30960
30961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30963 if (!SWIG_IsOK(res1)) {
30964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30965 }
30966 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30967 ecode2 = SWIG_AsVal_int(obj1, &val2);
30968 if (!SWIG_IsOK(ecode2)) {
30969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30970 }
30971 arg2 = static_cast< int >(val2);
30972 {
30973 PyThreadState* __tstate = wxPyBeginAllowThreads();
30974 result = (bool)(arg1)->DeleteColumn(arg2);
30975 wxPyEndAllowThreads(__tstate);
30976 if (PyErr_Occurred()) SWIG_fail;
30977 }
30978 {
30979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30980 }
30981 return resultobj;
30982 fail:
30983 return NULL;
30984 }
30985
30986
30987 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30988 PyObject *resultobj = 0;
30989 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30990 bool result;
30991 void *argp1 = 0 ;
30992 int res1 = 0 ;
30993 PyObject *swig_obj[1] ;
30994
30995 if (!args) SWIG_fail;
30996 swig_obj[0] = args;
30997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30998 if (!SWIG_IsOK(res1)) {
30999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31000 }
31001 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31002 {
31003 PyThreadState* __tstate = wxPyBeginAllowThreads();
31004 result = (bool)(arg1)->DeleteAllColumns();
31005 wxPyEndAllowThreads(__tstate);
31006 if (PyErr_Occurred()) SWIG_fail;
31007 }
31008 {
31009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31010 }
31011 return resultobj;
31012 fail:
31013 return NULL;
31014 }
31015
31016
31017 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31018 PyObject *resultobj = 0;
31019 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31020 void *argp1 = 0 ;
31021 int res1 = 0 ;
31022 PyObject *swig_obj[1] ;
31023
31024 if (!args) SWIG_fail;
31025 swig_obj[0] = args;
31026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31027 if (!SWIG_IsOK(res1)) {
31028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31029 }
31030 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31031 {
31032 PyThreadState* __tstate = wxPyBeginAllowThreads();
31033 (arg1)->ClearAll();
31034 wxPyEndAllowThreads(__tstate);
31035 if (PyErr_Occurred()) SWIG_fail;
31036 }
31037 resultobj = SWIG_Py_Void();
31038 return resultobj;
31039 fail:
31040 return NULL;
31041 }
31042
31043
31044 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31045 PyObject *resultobj = 0;
31046 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31047 long arg2 ;
31048 wxTextCtrl *result = 0 ;
31049 void *argp1 = 0 ;
31050 int res1 = 0 ;
31051 long val2 ;
31052 int ecode2 = 0 ;
31053 PyObject * obj0 = 0 ;
31054 PyObject * obj1 = 0 ;
31055 char * kwnames[] = {
31056 (char *) "self",(char *) "item", NULL
31057 };
31058
31059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
31060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31061 if (!SWIG_IsOK(res1)) {
31062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31063 }
31064 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31065 ecode2 = SWIG_AsVal_long(obj1, &val2);
31066 if (!SWIG_IsOK(ecode2)) {
31067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
31068 }
31069 arg2 = static_cast< long >(val2);
31070 {
31071 PyThreadState* __tstate = wxPyBeginAllowThreads();
31072 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
31073 wxPyEndAllowThreads(__tstate);
31074 if (PyErr_Occurred()) SWIG_fail;
31075 }
31076 {
31077 resultobj = wxPyMake_wxObject(result, 0);
31078 }
31079 return resultobj;
31080 fail:
31081 return NULL;
31082 }
31083
31084
31085 SWIGINTERN PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31086 PyObject *resultobj = 0;
31087 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31088 bool arg2 ;
31089 bool result;
31090 void *argp1 = 0 ;
31091 int res1 = 0 ;
31092 bool val2 ;
31093 int ecode2 = 0 ;
31094 PyObject * obj0 = 0 ;
31095 PyObject * obj1 = 0 ;
31096 char * kwnames[] = {
31097 (char *) "self",(char *) "cancel", NULL
31098 };
31099
31100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
31101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31102 if (!SWIG_IsOK(res1)) {
31103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31104 }
31105 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31106 ecode2 = SWIG_AsVal_bool(obj1, &val2);
31107 if (!SWIG_IsOK(ecode2)) {
31108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "2"" of type '" "bool""'");
31109 }
31110 arg2 = static_cast< bool >(val2);
31111 {
31112 PyThreadState* __tstate = wxPyBeginAllowThreads();
31113 result = (bool)(arg1)->EndEditLabel(arg2);
31114 wxPyEndAllowThreads(__tstate);
31115 if (PyErr_Occurred()) SWIG_fail;
31116 }
31117 {
31118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31119 }
31120 return resultobj;
31121 fail:
31122 return NULL;
31123 }
31124
31125
31126 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31127 PyObject *resultobj = 0;
31128 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31129 long arg2 ;
31130 bool result;
31131 void *argp1 = 0 ;
31132 int res1 = 0 ;
31133 long val2 ;
31134 int ecode2 = 0 ;
31135 PyObject * obj0 = 0 ;
31136 PyObject * obj1 = 0 ;
31137 char * kwnames[] = {
31138 (char *) "self",(char *) "item", NULL
31139 };
31140
31141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
31142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31143 if (!SWIG_IsOK(res1)) {
31144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31145 }
31146 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31147 ecode2 = SWIG_AsVal_long(obj1, &val2);
31148 if (!SWIG_IsOK(ecode2)) {
31149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
31150 }
31151 arg2 = static_cast< long >(val2);
31152 {
31153 PyThreadState* __tstate = wxPyBeginAllowThreads();
31154 result = (bool)(arg1)->EnsureVisible(arg2);
31155 wxPyEndAllowThreads(__tstate);
31156 if (PyErr_Occurred()) SWIG_fail;
31157 }
31158 {
31159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31160 }
31161 return resultobj;
31162 fail:
31163 return NULL;
31164 }
31165
31166
31167 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31168 PyObject *resultobj = 0;
31169 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31170 long arg2 ;
31171 wxString *arg3 = 0 ;
31172 bool arg4 = (bool) false ;
31173 long result;
31174 void *argp1 = 0 ;
31175 int res1 = 0 ;
31176 long val2 ;
31177 int ecode2 = 0 ;
31178 bool temp3 = false ;
31179 bool val4 ;
31180 int ecode4 = 0 ;
31181 PyObject * obj0 = 0 ;
31182 PyObject * obj1 = 0 ;
31183 PyObject * obj2 = 0 ;
31184 PyObject * obj3 = 0 ;
31185 char * kwnames[] = {
31186 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31187 };
31188
31189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31191 if (!SWIG_IsOK(res1)) {
31192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31193 }
31194 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31195 ecode2 = SWIG_AsVal_long(obj1, &val2);
31196 if (!SWIG_IsOK(ecode2)) {
31197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31198 }
31199 arg2 = static_cast< long >(val2);
31200 {
31201 arg3 = wxString_in_helper(obj2);
31202 if (arg3 == NULL) SWIG_fail;
31203 temp3 = true;
31204 }
31205 if (obj3) {
31206 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31207 if (!SWIG_IsOK(ecode4)) {
31208 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31209 }
31210 arg4 = static_cast< bool >(val4);
31211 }
31212 {
31213 PyThreadState* __tstate = wxPyBeginAllowThreads();
31214 result = (long)(arg1)->FindItem(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_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31234 PyObject *resultobj = 0;
31235 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31236 long arg2 ;
31237 long arg3 ;
31238 long result;
31239 void *argp1 = 0 ;
31240 int res1 = 0 ;
31241 long val2 ;
31242 int ecode2 = 0 ;
31243 long val3 ;
31244 int ecode3 = 0 ;
31245 PyObject * obj0 = 0 ;
31246 PyObject * obj1 = 0 ;
31247 PyObject * obj2 = 0 ;
31248 char * kwnames[] = {
31249 (char *) "self",(char *) "start",(char *) "data", NULL
31250 };
31251
31252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",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_FindItemData" "', 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_FindItemData" "', expected argument " "2"" of type '" "long""'");
31261 }
31262 arg2 = static_cast< long >(val2);
31263 ecode3 = SWIG_AsVal_long(obj2, &val3);
31264 if (!SWIG_IsOK(ecode3)) {
31265 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31266 }
31267 arg3 = static_cast< long >(val3);
31268 {
31269 PyThreadState* __tstate = wxPyBeginAllowThreads();
31270 result = (long)(arg1)->FindItem(arg2,arg3);
31271 wxPyEndAllowThreads(__tstate);
31272 if (PyErr_Occurred()) SWIG_fail;
31273 }
31274 resultobj = SWIG_From_long(static_cast< long >(result));
31275 return resultobj;
31276 fail:
31277 return NULL;
31278 }
31279
31280
31281 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31282 PyObject *resultobj = 0;
31283 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31284 long arg2 ;
31285 wxPoint *arg3 = 0 ;
31286 int arg4 ;
31287 long result;
31288 void *argp1 = 0 ;
31289 int res1 = 0 ;
31290 long val2 ;
31291 int ecode2 = 0 ;
31292 wxPoint temp3 ;
31293 int val4 ;
31294 int ecode4 = 0 ;
31295 PyObject * obj0 = 0 ;
31296 PyObject * obj1 = 0 ;
31297 PyObject * obj2 = 0 ;
31298 PyObject * obj3 = 0 ;
31299 char * kwnames[] = {
31300 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31301 };
31302
31303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31305 if (!SWIG_IsOK(res1)) {
31306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31307 }
31308 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31309 ecode2 = SWIG_AsVal_long(obj1, &val2);
31310 if (!SWIG_IsOK(ecode2)) {
31311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31312 }
31313 arg2 = static_cast< long >(val2);
31314 {
31315 arg3 = &temp3;
31316 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31317 }
31318 ecode4 = SWIG_AsVal_int(obj3, &val4);
31319 if (!SWIG_IsOK(ecode4)) {
31320 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31321 }
31322 arg4 = static_cast< int >(val4);
31323 {
31324 PyThreadState* __tstate = wxPyBeginAllowThreads();
31325 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31326 wxPyEndAllowThreads(__tstate);
31327 if (PyErr_Occurred()) SWIG_fail;
31328 }
31329 resultobj = SWIG_From_long(static_cast< long >(result));
31330 return resultobj;
31331 fail:
31332 return NULL;
31333 }
31334
31335
31336 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31337 PyObject *resultobj = 0;
31338 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31339 wxPoint *arg2 = 0 ;
31340 int *arg3 = 0 ;
31341 long result;
31342 void *argp1 = 0 ;
31343 int res1 = 0 ;
31344 wxPoint temp2 ;
31345 int temp3 ;
31346 int res3 = SWIG_TMPOBJ ;
31347 PyObject * obj0 = 0 ;
31348 PyObject * obj1 = 0 ;
31349 char * kwnames[] = {
31350 (char *) "self",(char *) "point", NULL
31351 };
31352
31353 arg3 = &temp3;
31354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31356 if (!SWIG_IsOK(res1)) {
31357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31358 }
31359 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31360 {
31361 arg2 = &temp2;
31362 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31363 }
31364 {
31365 PyThreadState* __tstate = wxPyBeginAllowThreads();
31366 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31367 wxPyEndAllowThreads(__tstate);
31368 if (PyErr_Occurred()) SWIG_fail;
31369 }
31370 resultobj = SWIG_From_long(static_cast< long >(result));
31371 if (SWIG_IsTmpObj(res3)) {
31372 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31373 } else {
31374 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31376 }
31377 return resultobj;
31378 fail:
31379 return NULL;
31380 }
31381
31382
31383 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31384 PyObject *resultobj = 0;
31385 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31386 wxPoint *arg2 = 0 ;
31387 int *arg3 = 0 ;
31388 long *arg4 = (long *) 0 ;
31389 long result;
31390 void *argp1 = 0 ;
31391 int res1 = 0 ;
31392 wxPoint temp2 ;
31393 int temp3 ;
31394 int res3 = SWIG_TMPOBJ ;
31395 long temp4 ;
31396 int res4 = SWIG_TMPOBJ ;
31397 PyObject * obj0 = 0 ;
31398 PyObject * obj1 = 0 ;
31399 char * kwnames[] = {
31400 (char *) "self",(char *) "point", NULL
31401 };
31402
31403 arg3 = &temp3;
31404 arg4 = &temp4;
31405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31407 if (!SWIG_IsOK(res1)) {
31408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31409 }
31410 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31411 {
31412 arg2 = &temp2;
31413 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31414 }
31415 {
31416 PyThreadState* __tstate = wxPyBeginAllowThreads();
31417 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31418 wxPyEndAllowThreads(__tstate);
31419 if (PyErr_Occurred()) SWIG_fail;
31420 }
31421 resultobj = SWIG_From_long(static_cast< long >(result));
31422 if (SWIG_IsTmpObj(res3)) {
31423 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31424 } else {
31425 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31426 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31427 }
31428 if (SWIG_IsTmpObj(res4)) {
31429 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31430 } else {
31431 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31432 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31433 }
31434 return resultobj;
31435 fail:
31436 return NULL;
31437 }
31438
31439
31440 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31441 PyObject *resultobj = 0;
31442 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31443 wxListItem *arg2 = 0 ;
31444 long result;
31445 void *argp1 = 0 ;
31446 int res1 = 0 ;
31447 void *argp2 = 0 ;
31448 int res2 = 0 ;
31449 PyObject * obj0 = 0 ;
31450 PyObject * obj1 = 0 ;
31451 char * kwnames[] = {
31452 (char *) "self",(char *) "info", NULL
31453 };
31454
31455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31457 if (!SWIG_IsOK(res1)) {
31458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31459 }
31460 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31461 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31462 if (!SWIG_IsOK(res2)) {
31463 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31464 }
31465 if (!argp2) {
31466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31467 }
31468 arg2 = reinterpret_cast< wxListItem * >(argp2);
31469 {
31470 PyThreadState* __tstate = wxPyBeginAllowThreads();
31471 result = (long)(arg1)->InsertItem(*arg2);
31472 wxPyEndAllowThreads(__tstate);
31473 if (PyErr_Occurred()) SWIG_fail;
31474 }
31475 resultobj = SWIG_From_long(static_cast< long >(result));
31476 return resultobj;
31477 fail:
31478 return NULL;
31479 }
31480
31481
31482 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31483 PyObject *resultobj = 0;
31484 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31485 long arg2 ;
31486 wxString *arg3 = 0 ;
31487 int arg4 = (int) -1 ;
31488 long result;
31489 void *argp1 = 0 ;
31490 int res1 = 0 ;
31491 long val2 ;
31492 int ecode2 = 0 ;
31493 bool temp3 = false ;
31494 int val4 ;
31495 int ecode4 = 0 ;
31496 PyObject * obj0 = 0 ;
31497 PyObject * obj1 = 0 ;
31498 PyObject * obj2 = 0 ;
31499 PyObject * obj3 = 0 ;
31500 char * kwnames[] = {
31501 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31502 };
31503
31504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31506 if (!SWIG_IsOK(res1)) {
31507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31508 }
31509 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31510 ecode2 = SWIG_AsVal_long(obj1, &val2);
31511 if (!SWIG_IsOK(ecode2)) {
31512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31513 }
31514 arg2 = static_cast< long >(val2);
31515 {
31516 arg3 = wxString_in_helper(obj2);
31517 if (arg3 == NULL) SWIG_fail;
31518 temp3 = true;
31519 }
31520 if (obj3) {
31521 ecode4 = SWIG_AsVal_int(obj3, &val4);
31522 if (!SWIG_IsOK(ecode4)) {
31523 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31524 }
31525 arg4 = static_cast< int >(val4);
31526 }
31527 {
31528 PyThreadState* __tstate = wxPyBeginAllowThreads();
31529 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31530 wxPyEndAllowThreads(__tstate);
31531 if (PyErr_Occurred()) SWIG_fail;
31532 }
31533 resultobj = SWIG_From_long(static_cast< long >(result));
31534 {
31535 if (temp3)
31536 delete arg3;
31537 }
31538 return resultobj;
31539 fail:
31540 {
31541 if (temp3)
31542 delete arg3;
31543 }
31544 return NULL;
31545 }
31546
31547
31548 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31549 PyObject *resultobj = 0;
31550 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31551 long arg2 ;
31552 int arg3 ;
31553 long result;
31554 void *argp1 = 0 ;
31555 int res1 = 0 ;
31556 long val2 ;
31557 int ecode2 = 0 ;
31558 int val3 ;
31559 int ecode3 = 0 ;
31560 PyObject * obj0 = 0 ;
31561 PyObject * obj1 = 0 ;
31562 PyObject * obj2 = 0 ;
31563 char * kwnames[] = {
31564 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31565 };
31566
31567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31569 if (!SWIG_IsOK(res1)) {
31570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31571 }
31572 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31573 ecode2 = SWIG_AsVal_long(obj1, &val2);
31574 if (!SWIG_IsOK(ecode2)) {
31575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31576 }
31577 arg2 = static_cast< long >(val2);
31578 ecode3 = SWIG_AsVal_int(obj2, &val3);
31579 if (!SWIG_IsOK(ecode3)) {
31580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31581 }
31582 arg3 = static_cast< int >(val3);
31583 {
31584 PyThreadState* __tstate = wxPyBeginAllowThreads();
31585 result = (long)(arg1)->InsertItem(arg2,arg3);
31586 wxPyEndAllowThreads(__tstate);
31587 if (PyErr_Occurred()) SWIG_fail;
31588 }
31589 resultobj = SWIG_From_long(static_cast< long >(result));
31590 return resultobj;
31591 fail:
31592 return NULL;
31593 }
31594
31595
31596 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31597 PyObject *resultobj = 0;
31598 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31599 long arg2 ;
31600 wxString *arg3 = 0 ;
31601 int arg4 ;
31602 long result;
31603 void *argp1 = 0 ;
31604 int res1 = 0 ;
31605 long val2 ;
31606 int ecode2 = 0 ;
31607 bool temp3 = false ;
31608 int val4 ;
31609 int ecode4 = 0 ;
31610 PyObject * obj0 = 0 ;
31611 PyObject * obj1 = 0 ;
31612 PyObject * obj2 = 0 ;
31613 PyObject * obj3 = 0 ;
31614 char * kwnames[] = {
31615 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31616 };
31617
31618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31620 if (!SWIG_IsOK(res1)) {
31621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31622 }
31623 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31624 ecode2 = SWIG_AsVal_long(obj1, &val2);
31625 if (!SWIG_IsOK(ecode2)) {
31626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31627 }
31628 arg2 = static_cast< long >(val2);
31629 {
31630 arg3 = wxString_in_helper(obj2);
31631 if (arg3 == NULL) SWIG_fail;
31632 temp3 = true;
31633 }
31634 ecode4 = SWIG_AsVal_int(obj3, &val4);
31635 if (!SWIG_IsOK(ecode4)) {
31636 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31637 }
31638 arg4 = static_cast< int >(val4);
31639 {
31640 PyThreadState* __tstate = wxPyBeginAllowThreads();
31641 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31642 wxPyEndAllowThreads(__tstate);
31643 if (PyErr_Occurred()) SWIG_fail;
31644 }
31645 resultobj = SWIG_From_long(static_cast< long >(result));
31646 {
31647 if (temp3)
31648 delete arg3;
31649 }
31650 return resultobj;
31651 fail:
31652 {
31653 if (temp3)
31654 delete arg3;
31655 }
31656 return NULL;
31657 }
31658
31659
31660 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31661 PyObject *resultobj = 0;
31662 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31663 long arg2 ;
31664 wxListItem *arg3 = 0 ;
31665 long result;
31666 void *argp1 = 0 ;
31667 int res1 = 0 ;
31668 long val2 ;
31669 int ecode2 = 0 ;
31670 void *argp3 = 0 ;
31671 int res3 = 0 ;
31672 PyObject * obj0 = 0 ;
31673 PyObject * obj1 = 0 ;
31674 PyObject * obj2 = 0 ;
31675 char * kwnames[] = {
31676 (char *) "self",(char *) "col",(char *) "info", NULL
31677 };
31678
31679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31681 if (!SWIG_IsOK(res1)) {
31682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31683 }
31684 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31685 ecode2 = SWIG_AsVal_long(obj1, &val2);
31686 if (!SWIG_IsOK(ecode2)) {
31687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31688 }
31689 arg2 = static_cast< long >(val2);
31690 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31691 if (!SWIG_IsOK(res3)) {
31692 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31693 }
31694 if (!argp3) {
31695 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31696 }
31697 arg3 = reinterpret_cast< wxListItem * >(argp3);
31698 {
31699 PyThreadState* __tstate = wxPyBeginAllowThreads();
31700 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31701 wxPyEndAllowThreads(__tstate);
31702 if (PyErr_Occurred()) SWIG_fail;
31703 }
31704 resultobj = SWIG_From_long(static_cast< long >(result));
31705 return resultobj;
31706 fail:
31707 return NULL;
31708 }
31709
31710
31711 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31712 PyObject *resultobj = 0;
31713 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31714 long arg2 ;
31715 wxString *arg3 = 0 ;
31716 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31717 int arg5 = (int) -1 ;
31718 long result;
31719 void *argp1 = 0 ;
31720 int res1 = 0 ;
31721 long val2 ;
31722 int ecode2 = 0 ;
31723 bool temp3 = false ;
31724 int val4 ;
31725 int ecode4 = 0 ;
31726 int val5 ;
31727 int ecode5 = 0 ;
31728 PyObject * obj0 = 0 ;
31729 PyObject * obj1 = 0 ;
31730 PyObject * obj2 = 0 ;
31731 PyObject * obj3 = 0 ;
31732 PyObject * obj4 = 0 ;
31733 char * kwnames[] = {
31734 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31735 };
31736
31737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31739 if (!SWIG_IsOK(res1)) {
31740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31741 }
31742 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31743 ecode2 = SWIG_AsVal_long(obj1, &val2);
31744 if (!SWIG_IsOK(ecode2)) {
31745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31746 }
31747 arg2 = static_cast< long >(val2);
31748 {
31749 arg3 = wxString_in_helper(obj2);
31750 if (arg3 == NULL) SWIG_fail;
31751 temp3 = true;
31752 }
31753 if (obj3) {
31754 ecode4 = SWIG_AsVal_int(obj3, &val4);
31755 if (!SWIG_IsOK(ecode4)) {
31756 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31757 }
31758 arg4 = static_cast< int >(val4);
31759 }
31760 if (obj4) {
31761 ecode5 = SWIG_AsVal_int(obj4, &val5);
31762 if (!SWIG_IsOK(ecode5)) {
31763 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31764 }
31765 arg5 = static_cast< int >(val5);
31766 }
31767 {
31768 PyThreadState* __tstate = wxPyBeginAllowThreads();
31769 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31770 wxPyEndAllowThreads(__tstate);
31771 if (PyErr_Occurred()) SWIG_fail;
31772 }
31773 resultobj = SWIG_From_long(static_cast< long >(result));
31774 {
31775 if (temp3)
31776 delete arg3;
31777 }
31778 return resultobj;
31779 fail:
31780 {
31781 if (temp3)
31782 delete arg3;
31783 }
31784 return NULL;
31785 }
31786
31787
31788 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31789 PyObject *resultobj = 0;
31790 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31791 long arg2 ;
31792 void *argp1 = 0 ;
31793 int res1 = 0 ;
31794 long val2 ;
31795 int ecode2 = 0 ;
31796 PyObject * obj0 = 0 ;
31797 PyObject * obj1 = 0 ;
31798 char * kwnames[] = {
31799 (char *) "self",(char *) "count", NULL
31800 };
31801
31802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31804 if (!SWIG_IsOK(res1)) {
31805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31806 }
31807 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31808 ecode2 = SWIG_AsVal_long(obj1, &val2);
31809 if (!SWIG_IsOK(ecode2)) {
31810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31811 }
31812 arg2 = static_cast< long >(val2);
31813 {
31814 PyThreadState* __tstate = wxPyBeginAllowThreads();
31815 (arg1)->SetItemCount(arg2);
31816 wxPyEndAllowThreads(__tstate);
31817 if (PyErr_Occurred()) SWIG_fail;
31818 }
31819 resultobj = SWIG_Py_Void();
31820 return resultobj;
31821 fail:
31822 return NULL;
31823 }
31824
31825
31826 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31827 PyObject *resultobj = 0;
31828 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31829 int arg2 ;
31830 int arg3 ;
31831 bool result;
31832 void *argp1 = 0 ;
31833 int res1 = 0 ;
31834 int val2 ;
31835 int ecode2 = 0 ;
31836 int val3 ;
31837 int ecode3 = 0 ;
31838 PyObject * obj0 = 0 ;
31839 PyObject * obj1 = 0 ;
31840 PyObject * obj2 = 0 ;
31841 char * kwnames[] = {
31842 (char *) "self",(char *) "dx",(char *) "dy", NULL
31843 };
31844
31845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31847 if (!SWIG_IsOK(res1)) {
31848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31849 }
31850 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31851 ecode2 = SWIG_AsVal_int(obj1, &val2);
31852 if (!SWIG_IsOK(ecode2)) {
31853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31854 }
31855 arg2 = static_cast< int >(val2);
31856 ecode3 = SWIG_AsVal_int(obj2, &val3);
31857 if (!SWIG_IsOK(ecode3)) {
31858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31859 }
31860 arg3 = static_cast< int >(val3);
31861 {
31862 PyThreadState* __tstate = wxPyBeginAllowThreads();
31863 result = (bool)(arg1)->ScrollList(arg2,arg3);
31864 wxPyEndAllowThreads(__tstate);
31865 if (PyErr_Occurred()) SWIG_fail;
31866 }
31867 {
31868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31869 }
31870 return resultobj;
31871 fail:
31872 return NULL;
31873 }
31874
31875
31876 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31877 PyObject *resultobj = 0;
31878 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31879 long arg2 ;
31880 wxColour *arg3 = 0 ;
31881 void *argp1 = 0 ;
31882 int res1 = 0 ;
31883 long val2 ;
31884 int ecode2 = 0 ;
31885 wxColour temp3 ;
31886 PyObject * obj0 = 0 ;
31887 PyObject * obj1 = 0 ;
31888 PyObject * obj2 = 0 ;
31889 char * kwnames[] = {
31890 (char *) "self",(char *) "item",(char *) "col", NULL
31891 };
31892
31893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31895 if (!SWIG_IsOK(res1)) {
31896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31897 }
31898 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31899 ecode2 = SWIG_AsVal_long(obj1, &val2);
31900 if (!SWIG_IsOK(ecode2)) {
31901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31902 }
31903 arg2 = static_cast< long >(val2);
31904 {
31905 arg3 = &temp3;
31906 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31907 }
31908 {
31909 PyThreadState* __tstate = wxPyBeginAllowThreads();
31910 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31911 wxPyEndAllowThreads(__tstate);
31912 if (PyErr_Occurred()) SWIG_fail;
31913 }
31914 resultobj = SWIG_Py_Void();
31915 return resultobj;
31916 fail:
31917 return NULL;
31918 }
31919
31920
31921 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31922 PyObject *resultobj = 0;
31923 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31924 long arg2 ;
31925 wxColour result;
31926 void *argp1 = 0 ;
31927 int res1 = 0 ;
31928 long val2 ;
31929 int ecode2 = 0 ;
31930 PyObject * obj0 = 0 ;
31931 PyObject * obj1 = 0 ;
31932 char * kwnames[] = {
31933 (char *) "self",(char *) "item", NULL
31934 };
31935
31936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31938 if (!SWIG_IsOK(res1)) {
31939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31940 }
31941 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31942 ecode2 = SWIG_AsVal_long(obj1, &val2);
31943 if (!SWIG_IsOK(ecode2)) {
31944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31945 }
31946 arg2 = static_cast< long >(val2);
31947 {
31948 PyThreadState* __tstate = wxPyBeginAllowThreads();
31949 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31950 wxPyEndAllowThreads(__tstate);
31951 if (PyErr_Occurred()) SWIG_fail;
31952 }
31953 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31954 return resultobj;
31955 fail:
31956 return NULL;
31957 }
31958
31959
31960 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31961 PyObject *resultobj = 0;
31962 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31963 long arg2 ;
31964 wxColour *arg3 = 0 ;
31965 void *argp1 = 0 ;
31966 int res1 = 0 ;
31967 long val2 ;
31968 int ecode2 = 0 ;
31969 wxColour temp3 ;
31970 PyObject * obj0 = 0 ;
31971 PyObject * obj1 = 0 ;
31972 PyObject * obj2 = 0 ;
31973 char * kwnames[] = {
31974 (char *) "self",(char *) "item",(char *) "col", NULL
31975 };
31976
31977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31979 if (!SWIG_IsOK(res1)) {
31980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31981 }
31982 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31983 ecode2 = SWIG_AsVal_long(obj1, &val2);
31984 if (!SWIG_IsOK(ecode2)) {
31985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31986 }
31987 arg2 = static_cast< long >(val2);
31988 {
31989 arg3 = &temp3;
31990 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31991 }
31992 {
31993 PyThreadState* __tstate = wxPyBeginAllowThreads();
31994 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31995 wxPyEndAllowThreads(__tstate);
31996 if (PyErr_Occurred()) SWIG_fail;
31997 }
31998 resultobj = SWIG_Py_Void();
31999 return resultobj;
32000 fail:
32001 return NULL;
32002 }
32003
32004
32005 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32006 PyObject *resultobj = 0;
32007 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32008 long arg2 ;
32009 wxColour result;
32010 void *argp1 = 0 ;
32011 int res1 = 0 ;
32012 long val2 ;
32013 int ecode2 = 0 ;
32014 PyObject * obj0 = 0 ;
32015 PyObject * obj1 = 0 ;
32016 char * kwnames[] = {
32017 (char *) "self",(char *) "item", NULL
32018 };
32019
32020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
32021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32022 if (!SWIG_IsOK(res1)) {
32023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32024 }
32025 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32026 ecode2 = SWIG_AsVal_long(obj1, &val2);
32027 if (!SWIG_IsOK(ecode2)) {
32028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
32029 }
32030 arg2 = static_cast< long >(val2);
32031 {
32032 PyThreadState* __tstate = wxPyBeginAllowThreads();
32033 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
32034 wxPyEndAllowThreads(__tstate);
32035 if (PyErr_Occurred()) SWIG_fail;
32036 }
32037 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32038 return resultobj;
32039 fail:
32040 return NULL;
32041 }
32042
32043
32044 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32045 PyObject *resultobj = 0;
32046 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32047 long arg2 ;
32048 wxFont *arg3 = 0 ;
32049 void *argp1 = 0 ;
32050 int res1 = 0 ;
32051 long val2 ;
32052 int ecode2 = 0 ;
32053 void *argp3 = 0 ;
32054 int res3 = 0 ;
32055 PyObject * obj0 = 0 ;
32056 PyObject * obj1 = 0 ;
32057 PyObject * obj2 = 0 ;
32058 char * kwnames[] = {
32059 (char *) "self",(char *) "item",(char *) "f", NULL
32060 };
32061
32062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32064 if (!SWIG_IsOK(res1)) {
32065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32066 }
32067 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32068 ecode2 = SWIG_AsVal_long(obj1, &val2);
32069 if (!SWIG_IsOK(ecode2)) {
32070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
32071 }
32072 arg2 = static_cast< long >(val2);
32073 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
32074 if (!SWIG_IsOK(res3)) {
32075 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32076 }
32077 if (!argp3) {
32078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32079 }
32080 arg3 = reinterpret_cast< wxFont * >(argp3);
32081 {
32082 PyThreadState* __tstate = wxPyBeginAllowThreads();
32083 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
32084 wxPyEndAllowThreads(__tstate);
32085 if (PyErr_Occurred()) SWIG_fail;
32086 }
32087 resultobj = SWIG_Py_Void();
32088 return resultobj;
32089 fail:
32090 return NULL;
32091 }
32092
32093
32094 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32095 PyObject *resultobj = 0;
32096 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32097 long arg2 ;
32098 wxFont result;
32099 void *argp1 = 0 ;
32100 int res1 = 0 ;
32101 long val2 ;
32102 int ecode2 = 0 ;
32103 PyObject * obj0 = 0 ;
32104 PyObject * obj1 = 0 ;
32105 char * kwnames[] = {
32106 (char *) "self",(char *) "item", NULL
32107 };
32108
32109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
32110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32111 if (!SWIG_IsOK(res1)) {
32112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32113 }
32114 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32115 ecode2 = SWIG_AsVal_long(obj1, &val2);
32116 if (!SWIG_IsOK(ecode2)) {
32117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
32118 }
32119 arg2 = static_cast< long >(val2);
32120 {
32121 PyThreadState* __tstate = wxPyBeginAllowThreads();
32122 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
32123 wxPyEndAllowThreads(__tstate);
32124 if (PyErr_Occurred()) SWIG_fail;
32125 }
32126 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
32127 return resultobj;
32128 fail:
32129 return NULL;
32130 }
32131
32132
32133 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32134 PyObject *resultobj = 0;
32135 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32136 PyObject *arg2 = (PyObject *) 0 ;
32137 bool result;
32138 void *argp1 = 0 ;
32139 int res1 = 0 ;
32140 PyObject * obj0 = 0 ;
32141 PyObject * obj1 = 0 ;
32142 char * kwnames[] = {
32143 (char *) "self",(char *) "func", NULL
32144 };
32145
32146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
32147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32148 if (!SWIG_IsOK(res1)) {
32149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32150 }
32151 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32152 arg2 = obj1;
32153 {
32154 PyThreadState* __tstate = wxPyBeginAllowThreads();
32155 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
32156 wxPyEndAllowThreads(__tstate);
32157 if (PyErr_Occurred()) SWIG_fail;
32158 }
32159 {
32160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32161 }
32162 return resultobj;
32163 fail:
32164 return NULL;
32165 }
32166
32167
32168 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32169 PyObject *resultobj = 0;
32170 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32171 wxWindow *result = 0 ;
32172 void *argp1 = 0 ;
32173 int res1 = 0 ;
32174 PyObject *swig_obj[1] ;
32175
32176 if (!args) SWIG_fail;
32177 swig_obj[0] = args;
32178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32179 if (!SWIG_IsOK(res1)) {
32180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32181 }
32182 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32183 {
32184 PyThreadState* __tstate = wxPyBeginAllowThreads();
32185 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
32186 wxPyEndAllowThreads(__tstate);
32187 if (PyErr_Occurred()) SWIG_fail;
32188 }
32189 {
32190 resultobj = wxPyMake_wxObject(result, 0);
32191 }
32192 return resultobj;
32193 fail:
32194 return NULL;
32195 }
32196
32197
32198 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32199 PyObject *resultobj = 0;
32200 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32201 SwigValueWrapper<wxVisualAttributes > result;
32202 int val1 ;
32203 int ecode1 = 0 ;
32204 PyObject * obj0 = 0 ;
32205 char * kwnames[] = {
32206 (char *) "variant", NULL
32207 };
32208
32209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32210 if (obj0) {
32211 ecode1 = SWIG_AsVal_int(obj0, &val1);
32212 if (!SWIG_IsOK(ecode1)) {
32213 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32214 }
32215 arg1 = static_cast< wxWindowVariant >(val1);
32216 }
32217 {
32218 if (!wxPyCheckForApp()) SWIG_fail;
32219 PyThreadState* __tstate = wxPyBeginAllowThreads();
32220 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32221 wxPyEndAllowThreads(__tstate);
32222 if (PyErr_Occurred()) SWIG_fail;
32223 }
32224 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32225 return resultobj;
32226 fail:
32227 return NULL;
32228 }
32229
32230
32231 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32232 PyObject *obj;
32233 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32234 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32235 return SWIG_Py_Void();
32236 }
32237
32238 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32239 return SWIG_Python_InitShadowInstance(args);
32240 }
32241
32242 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32243 PyObject *resultobj = 0;
32244 wxWindow *arg1 = (wxWindow *) 0 ;
32245 int arg2 = (int) -1 ;
32246 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32247 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32248 wxSize const &arg4_defvalue = wxDefaultSize ;
32249 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32250 long arg5 = (long) wxLC_REPORT ;
32251 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32252 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32253 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32254 wxString *arg7 = (wxString *) &arg7_defvalue ;
32255 wxListView *result = 0 ;
32256 void *argp1 = 0 ;
32257 int res1 = 0 ;
32258 int val2 ;
32259 int ecode2 = 0 ;
32260 wxPoint temp3 ;
32261 wxSize temp4 ;
32262 long val5 ;
32263 int ecode5 = 0 ;
32264 void *argp6 = 0 ;
32265 int res6 = 0 ;
32266 bool temp7 = false ;
32267 PyObject * obj0 = 0 ;
32268 PyObject * obj1 = 0 ;
32269 PyObject * obj2 = 0 ;
32270 PyObject * obj3 = 0 ;
32271 PyObject * obj4 = 0 ;
32272 PyObject * obj5 = 0 ;
32273 PyObject * obj6 = 0 ;
32274 char * kwnames[] = {
32275 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32276 };
32277
32278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32280 if (!SWIG_IsOK(res1)) {
32281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32282 }
32283 arg1 = reinterpret_cast< wxWindow * >(argp1);
32284 if (obj1) {
32285 ecode2 = SWIG_AsVal_int(obj1, &val2);
32286 if (!SWIG_IsOK(ecode2)) {
32287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32288 }
32289 arg2 = static_cast< int >(val2);
32290 }
32291 if (obj2) {
32292 {
32293 arg3 = &temp3;
32294 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32295 }
32296 }
32297 if (obj3) {
32298 {
32299 arg4 = &temp4;
32300 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
32301 }
32302 }
32303 if (obj4) {
32304 ecode5 = SWIG_AsVal_long(obj4, &val5);
32305 if (!SWIG_IsOK(ecode5)) {
32306 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32307 }
32308 arg5 = static_cast< long >(val5);
32309 }
32310 if (obj5) {
32311 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32312 if (!SWIG_IsOK(res6)) {
32313 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32314 }
32315 if (!argp6) {
32316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32317 }
32318 arg6 = reinterpret_cast< wxValidator * >(argp6);
32319 }
32320 if (obj6) {
32321 {
32322 arg7 = wxString_in_helper(obj6);
32323 if (arg7 == NULL) SWIG_fail;
32324 temp7 = true;
32325 }
32326 }
32327 {
32328 if (!wxPyCheckForApp()) SWIG_fail;
32329 PyThreadState* __tstate = wxPyBeginAllowThreads();
32330 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32331 wxPyEndAllowThreads(__tstate);
32332 if (PyErr_Occurred()) SWIG_fail;
32333 }
32334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32335 {
32336 if (temp7)
32337 delete arg7;
32338 }
32339 return resultobj;
32340 fail:
32341 {
32342 if (temp7)
32343 delete arg7;
32344 }
32345 return NULL;
32346 }
32347
32348
32349 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32350 PyObject *resultobj = 0;
32351 wxListView *result = 0 ;
32352
32353 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32354 {
32355 if (!wxPyCheckForApp()) SWIG_fail;
32356 PyThreadState* __tstate = wxPyBeginAllowThreads();
32357 result = (wxListView *)new wxListView();
32358 wxPyEndAllowThreads(__tstate);
32359 if (PyErr_Occurred()) SWIG_fail;
32360 }
32361 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32362 return resultobj;
32363 fail:
32364 return NULL;
32365 }
32366
32367
32368 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32369 PyObject *resultobj = 0;
32370 wxListView *arg1 = (wxListView *) 0 ;
32371 wxWindow *arg2 = (wxWindow *) 0 ;
32372 int arg3 = (int) -1 ;
32373 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32374 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32375 wxSize const &arg5_defvalue = wxDefaultSize ;
32376 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32377 long arg6 = (long) wxLC_REPORT ;
32378 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32379 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32380 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32381 wxString *arg8 = (wxString *) &arg8_defvalue ;
32382 bool result;
32383 void *argp1 = 0 ;
32384 int res1 = 0 ;
32385 void *argp2 = 0 ;
32386 int res2 = 0 ;
32387 int val3 ;
32388 int ecode3 = 0 ;
32389 wxPoint temp4 ;
32390 wxSize temp5 ;
32391 long val6 ;
32392 int ecode6 = 0 ;
32393 void *argp7 = 0 ;
32394 int res7 = 0 ;
32395 bool temp8 = false ;
32396 PyObject * obj0 = 0 ;
32397 PyObject * obj1 = 0 ;
32398 PyObject * obj2 = 0 ;
32399 PyObject * obj3 = 0 ;
32400 PyObject * obj4 = 0 ;
32401 PyObject * obj5 = 0 ;
32402 PyObject * obj6 = 0 ;
32403 PyObject * obj7 = 0 ;
32404 char * kwnames[] = {
32405 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32406 };
32407
32408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32410 if (!SWIG_IsOK(res1)) {
32411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32412 }
32413 arg1 = reinterpret_cast< wxListView * >(argp1);
32414 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32415 if (!SWIG_IsOK(res2)) {
32416 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32417 }
32418 arg2 = reinterpret_cast< wxWindow * >(argp2);
32419 if (obj2) {
32420 ecode3 = SWIG_AsVal_int(obj2, &val3);
32421 if (!SWIG_IsOK(ecode3)) {
32422 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32423 }
32424 arg3 = static_cast< int >(val3);
32425 }
32426 if (obj3) {
32427 {
32428 arg4 = &temp4;
32429 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32430 }
32431 }
32432 if (obj4) {
32433 {
32434 arg5 = &temp5;
32435 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32436 }
32437 }
32438 if (obj5) {
32439 ecode6 = SWIG_AsVal_long(obj5, &val6);
32440 if (!SWIG_IsOK(ecode6)) {
32441 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32442 }
32443 arg6 = static_cast< long >(val6);
32444 }
32445 if (obj6) {
32446 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32447 if (!SWIG_IsOK(res7)) {
32448 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32449 }
32450 if (!argp7) {
32451 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32452 }
32453 arg7 = reinterpret_cast< wxValidator * >(argp7);
32454 }
32455 if (obj7) {
32456 {
32457 arg8 = wxString_in_helper(obj7);
32458 if (arg8 == NULL) SWIG_fail;
32459 temp8 = true;
32460 }
32461 }
32462 {
32463 PyThreadState* __tstate = wxPyBeginAllowThreads();
32464 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32465 wxPyEndAllowThreads(__tstate);
32466 if (PyErr_Occurred()) SWIG_fail;
32467 }
32468 {
32469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32470 }
32471 {
32472 if (temp8)
32473 delete arg8;
32474 }
32475 return resultobj;
32476 fail:
32477 {
32478 if (temp8)
32479 delete arg8;
32480 }
32481 return NULL;
32482 }
32483
32484
32485 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32486 PyObject *resultobj = 0;
32487 wxListView *arg1 = (wxListView *) 0 ;
32488 long arg2 ;
32489 bool arg3 = (bool) true ;
32490 void *argp1 = 0 ;
32491 int res1 = 0 ;
32492 long val2 ;
32493 int ecode2 = 0 ;
32494 bool val3 ;
32495 int ecode3 = 0 ;
32496 PyObject * obj0 = 0 ;
32497 PyObject * obj1 = 0 ;
32498 PyObject * obj2 = 0 ;
32499 char * kwnames[] = {
32500 (char *) "self",(char *) "n",(char *) "on", NULL
32501 };
32502
32503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32505 if (!SWIG_IsOK(res1)) {
32506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32507 }
32508 arg1 = reinterpret_cast< wxListView * >(argp1);
32509 ecode2 = SWIG_AsVal_long(obj1, &val2);
32510 if (!SWIG_IsOK(ecode2)) {
32511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32512 }
32513 arg2 = static_cast< long >(val2);
32514 if (obj2) {
32515 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32516 if (!SWIG_IsOK(ecode3)) {
32517 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32518 }
32519 arg3 = static_cast< bool >(val3);
32520 }
32521 {
32522 PyThreadState* __tstate = wxPyBeginAllowThreads();
32523 (arg1)->Select(arg2,arg3);
32524 wxPyEndAllowThreads(__tstate);
32525 if (PyErr_Occurred()) SWIG_fail;
32526 }
32527 resultobj = SWIG_Py_Void();
32528 return resultobj;
32529 fail:
32530 return NULL;
32531 }
32532
32533
32534 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32535 PyObject *resultobj = 0;
32536 wxListView *arg1 = (wxListView *) 0 ;
32537 long arg2 ;
32538 void *argp1 = 0 ;
32539 int res1 = 0 ;
32540 long val2 ;
32541 int ecode2 = 0 ;
32542 PyObject * obj0 = 0 ;
32543 PyObject * obj1 = 0 ;
32544 char * kwnames[] = {
32545 (char *) "self",(char *) "index", NULL
32546 };
32547
32548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32550 if (!SWIG_IsOK(res1)) {
32551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32552 }
32553 arg1 = reinterpret_cast< wxListView * >(argp1);
32554 ecode2 = SWIG_AsVal_long(obj1, &val2);
32555 if (!SWIG_IsOK(ecode2)) {
32556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32557 }
32558 arg2 = static_cast< long >(val2);
32559 {
32560 PyThreadState* __tstate = wxPyBeginAllowThreads();
32561 (arg1)->Focus(arg2);
32562 wxPyEndAllowThreads(__tstate);
32563 if (PyErr_Occurred()) SWIG_fail;
32564 }
32565 resultobj = SWIG_Py_Void();
32566 return resultobj;
32567 fail:
32568 return NULL;
32569 }
32570
32571
32572 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32573 PyObject *resultobj = 0;
32574 wxListView *arg1 = (wxListView *) 0 ;
32575 long result;
32576 void *argp1 = 0 ;
32577 int res1 = 0 ;
32578 PyObject *swig_obj[1] ;
32579
32580 if (!args) SWIG_fail;
32581 swig_obj[0] = args;
32582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32583 if (!SWIG_IsOK(res1)) {
32584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32585 }
32586 arg1 = reinterpret_cast< wxListView * >(argp1);
32587 {
32588 PyThreadState* __tstate = wxPyBeginAllowThreads();
32589 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32590 wxPyEndAllowThreads(__tstate);
32591 if (PyErr_Occurred()) SWIG_fail;
32592 }
32593 resultobj = SWIG_From_long(static_cast< long >(result));
32594 return resultobj;
32595 fail:
32596 return NULL;
32597 }
32598
32599
32600 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32601 PyObject *resultobj = 0;
32602 wxListView *arg1 = (wxListView *) 0 ;
32603 long arg2 ;
32604 long result;
32605 void *argp1 = 0 ;
32606 int res1 = 0 ;
32607 long val2 ;
32608 int ecode2 = 0 ;
32609 PyObject * obj0 = 0 ;
32610 PyObject * obj1 = 0 ;
32611 char * kwnames[] = {
32612 (char *) "self",(char *) "item", NULL
32613 };
32614
32615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32617 if (!SWIG_IsOK(res1)) {
32618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32619 }
32620 arg1 = reinterpret_cast< wxListView * >(argp1);
32621 ecode2 = SWIG_AsVal_long(obj1, &val2);
32622 if (!SWIG_IsOK(ecode2)) {
32623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32624 }
32625 arg2 = static_cast< long >(val2);
32626 {
32627 PyThreadState* __tstate = wxPyBeginAllowThreads();
32628 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32629 wxPyEndAllowThreads(__tstate);
32630 if (PyErr_Occurred()) SWIG_fail;
32631 }
32632 resultobj = SWIG_From_long(static_cast< long >(result));
32633 return resultobj;
32634 fail:
32635 return NULL;
32636 }
32637
32638
32639 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32640 PyObject *resultobj = 0;
32641 wxListView *arg1 = (wxListView *) 0 ;
32642 long result;
32643 void *argp1 = 0 ;
32644 int res1 = 0 ;
32645 PyObject *swig_obj[1] ;
32646
32647 if (!args) SWIG_fail;
32648 swig_obj[0] = args;
32649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32650 if (!SWIG_IsOK(res1)) {
32651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32652 }
32653 arg1 = reinterpret_cast< wxListView * >(argp1);
32654 {
32655 PyThreadState* __tstate = wxPyBeginAllowThreads();
32656 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32657 wxPyEndAllowThreads(__tstate);
32658 if (PyErr_Occurred()) SWIG_fail;
32659 }
32660 resultobj = SWIG_From_long(static_cast< long >(result));
32661 return resultobj;
32662 fail:
32663 return NULL;
32664 }
32665
32666
32667 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32668 PyObject *resultobj = 0;
32669 wxListView *arg1 = (wxListView *) 0 ;
32670 long arg2 ;
32671 bool result;
32672 void *argp1 = 0 ;
32673 int res1 = 0 ;
32674 long val2 ;
32675 int ecode2 = 0 ;
32676 PyObject * obj0 = 0 ;
32677 PyObject * obj1 = 0 ;
32678 char * kwnames[] = {
32679 (char *) "self",(char *) "index", NULL
32680 };
32681
32682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32684 if (!SWIG_IsOK(res1)) {
32685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32686 }
32687 arg1 = reinterpret_cast< wxListView * >(argp1);
32688 ecode2 = SWIG_AsVal_long(obj1, &val2);
32689 if (!SWIG_IsOK(ecode2)) {
32690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32691 }
32692 arg2 = static_cast< long >(val2);
32693 {
32694 PyThreadState* __tstate = wxPyBeginAllowThreads();
32695 result = (bool)(arg1)->IsSelected(arg2);
32696 wxPyEndAllowThreads(__tstate);
32697 if (PyErr_Occurred()) SWIG_fail;
32698 }
32699 {
32700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32701 }
32702 return resultobj;
32703 fail:
32704 return NULL;
32705 }
32706
32707
32708 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32709 PyObject *resultobj = 0;
32710 wxListView *arg1 = (wxListView *) 0 ;
32711 int arg2 ;
32712 int arg3 ;
32713 void *argp1 = 0 ;
32714 int res1 = 0 ;
32715 int val2 ;
32716 int ecode2 = 0 ;
32717 int val3 ;
32718 int ecode3 = 0 ;
32719 PyObject * obj0 = 0 ;
32720 PyObject * obj1 = 0 ;
32721 PyObject * obj2 = 0 ;
32722 char * kwnames[] = {
32723 (char *) "self",(char *) "col",(char *) "image", NULL
32724 };
32725
32726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32728 if (!SWIG_IsOK(res1)) {
32729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32730 }
32731 arg1 = reinterpret_cast< wxListView * >(argp1);
32732 ecode2 = SWIG_AsVal_int(obj1, &val2);
32733 if (!SWIG_IsOK(ecode2)) {
32734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32735 }
32736 arg2 = static_cast< int >(val2);
32737 ecode3 = SWIG_AsVal_int(obj2, &val3);
32738 if (!SWIG_IsOK(ecode3)) {
32739 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32740 }
32741 arg3 = static_cast< int >(val3);
32742 {
32743 PyThreadState* __tstate = wxPyBeginAllowThreads();
32744 (arg1)->SetColumnImage(arg2,arg3);
32745 wxPyEndAllowThreads(__tstate);
32746 if (PyErr_Occurred()) SWIG_fail;
32747 }
32748 resultobj = SWIG_Py_Void();
32749 return resultobj;
32750 fail:
32751 return NULL;
32752 }
32753
32754
32755 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32756 PyObject *resultobj = 0;
32757 wxListView *arg1 = (wxListView *) 0 ;
32758 int arg2 ;
32759 void *argp1 = 0 ;
32760 int res1 = 0 ;
32761 int val2 ;
32762 int ecode2 = 0 ;
32763 PyObject * obj0 = 0 ;
32764 PyObject * obj1 = 0 ;
32765 char * kwnames[] = {
32766 (char *) "self",(char *) "col", NULL
32767 };
32768
32769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32771 if (!SWIG_IsOK(res1)) {
32772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32773 }
32774 arg1 = reinterpret_cast< wxListView * >(argp1);
32775 ecode2 = SWIG_AsVal_int(obj1, &val2);
32776 if (!SWIG_IsOK(ecode2)) {
32777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32778 }
32779 arg2 = static_cast< int >(val2);
32780 {
32781 PyThreadState* __tstate = wxPyBeginAllowThreads();
32782 (arg1)->ClearColumnImage(arg2);
32783 wxPyEndAllowThreads(__tstate);
32784 if (PyErr_Occurred()) SWIG_fail;
32785 }
32786 resultobj = SWIG_Py_Void();
32787 return resultobj;
32788 fail:
32789 return NULL;
32790 }
32791
32792
32793 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32794 PyObject *obj;
32795 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32796 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32797 return SWIG_Py_Void();
32798 }
32799
32800 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32801 return SWIG_Python_InitShadowInstance(args);
32802 }
32803
32804 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32805 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32806 return 1;
32807 }
32808
32809
32810 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32811 PyObject *pyobj = 0;
32812
32813 {
32814 #if wxUSE_UNICODE
32815 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32816 #else
32817 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32818 #endif
32819 }
32820 return pyobj;
32821 }
32822
32823
32824 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32825 PyObject *resultobj = 0;
32826 wxTreeItemId *result = 0 ;
32827
32828 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32829 {
32830 PyThreadState* __tstate = wxPyBeginAllowThreads();
32831 result = (wxTreeItemId *)new wxTreeItemId();
32832 wxPyEndAllowThreads(__tstate);
32833 if (PyErr_Occurred()) SWIG_fail;
32834 }
32835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32836 return resultobj;
32837 fail:
32838 return NULL;
32839 }
32840
32841
32842 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32843 PyObject *resultobj = 0;
32844 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32845 void *argp1 = 0 ;
32846 int res1 = 0 ;
32847 PyObject *swig_obj[1] ;
32848
32849 if (!args) SWIG_fail;
32850 swig_obj[0] = args;
32851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32852 if (!SWIG_IsOK(res1)) {
32853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32854 }
32855 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32856 {
32857 PyThreadState* __tstate = wxPyBeginAllowThreads();
32858 delete arg1;
32859
32860 wxPyEndAllowThreads(__tstate);
32861 if (PyErr_Occurred()) SWIG_fail;
32862 }
32863 resultobj = SWIG_Py_Void();
32864 return resultobj;
32865 fail:
32866 return NULL;
32867 }
32868
32869
32870 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32871 PyObject *resultobj = 0;
32872 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32873 bool result;
32874 void *argp1 = 0 ;
32875 int res1 = 0 ;
32876 PyObject *swig_obj[1] ;
32877
32878 if (!args) SWIG_fail;
32879 swig_obj[0] = args;
32880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32881 if (!SWIG_IsOK(res1)) {
32882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32883 }
32884 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32885 {
32886 PyThreadState* __tstate = wxPyBeginAllowThreads();
32887 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32888 wxPyEndAllowThreads(__tstate);
32889 if (PyErr_Occurred()) SWIG_fail;
32890 }
32891 {
32892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32893 }
32894 return resultobj;
32895 fail:
32896 return NULL;
32897 }
32898
32899
32900 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32901 PyObject *resultobj = 0;
32902 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32903 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32904 bool result;
32905 void *argp1 = 0 ;
32906 int res1 = 0 ;
32907 void *argp2 = 0 ;
32908 int res2 = 0 ;
32909 PyObject * obj0 = 0 ;
32910 PyObject * obj1 = 0 ;
32911 char * kwnames[] = {
32912 (char *) "self",(char *) "other", NULL
32913 };
32914
32915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32917 if (!SWIG_IsOK(res1)) {
32918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32919 }
32920 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32921 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32922 if (!SWIG_IsOK(res2)) {
32923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32924 }
32925 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32926 {
32927 PyThreadState* __tstate = wxPyBeginAllowThreads();
32928 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32929 wxPyEndAllowThreads(__tstate);
32930 if (PyErr_Occurred()) SWIG_fail;
32931 }
32932 {
32933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32934 }
32935 return resultobj;
32936 fail:
32937 return NULL;
32938 }
32939
32940
32941 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32942 PyObject *resultobj = 0;
32943 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32944 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32945 bool result;
32946 void *argp1 = 0 ;
32947 int res1 = 0 ;
32948 void *argp2 = 0 ;
32949 int res2 = 0 ;
32950 PyObject * obj0 = 0 ;
32951 PyObject * obj1 = 0 ;
32952 char * kwnames[] = {
32953 (char *) "self",(char *) "other", NULL
32954 };
32955
32956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32958 if (!SWIG_IsOK(res1)) {
32959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32960 }
32961 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32962 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32963 if (!SWIG_IsOK(res2)) {
32964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32965 }
32966 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32967 {
32968 PyThreadState* __tstate = wxPyBeginAllowThreads();
32969 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32970 wxPyEndAllowThreads(__tstate);
32971 if (PyErr_Occurred()) SWIG_fail;
32972 }
32973 {
32974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32975 }
32976 return resultobj;
32977 fail:
32978 return NULL;
32979 }
32980
32981
32982 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32983 PyObject *resultobj = 0;
32984 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32985 void *arg2 = (void *) 0 ;
32986 void *argp1 = 0 ;
32987 int res1 = 0 ;
32988 int res2 ;
32989 PyObject *swig_obj[2] ;
32990
32991 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32993 if (!SWIG_IsOK(res1)) {
32994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32995 }
32996 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32997 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32998 if (!SWIG_IsOK(res2)) {
32999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
33000 }
33001 if (arg1) (arg1)->m_pItem = arg2;
33002
33003 resultobj = SWIG_Py_Void();
33004 return resultobj;
33005 fail:
33006 return NULL;
33007 }
33008
33009
33010 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33011 PyObject *resultobj = 0;
33012 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33013 void *result = 0 ;
33014 void *argp1 = 0 ;
33015 int res1 = 0 ;
33016 PyObject *swig_obj[1] ;
33017
33018 if (!args) SWIG_fail;
33019 swig_obj[0] = args;
33020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33021 if (!SWIG_IsOK(res1)) {
33022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33023 }
33024 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33025 result = (void *) ((arg1)->m_pItem);
33026 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
33027 return resultobj;
33028 fail:
33029 return NULL;
33030 }
33031
33032
33033 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33034 PyObject *obj;
33035 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33036 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
33037 return SWIG_Py_Void();
33038 }
33039
33040 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33041 return SWIG_Python_InitShadowInstance(args);
33042 }
33043
33044 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33045 PyObject *resultobj = 0;
33046 PyObject *arg1 = (PyObject *) NULL ;
33047 wxPyTreeItemData *result = 0 ;
33048 PyObject * obj0 = 0 ;
33049 char * kwnames[] = {
33050 (char *) "obj", NULL
33051 };
33052
33053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
33054 if (obj0) {
33055 arg1 = obj0;
33056 }
33057 {
33058 PyThreadState* __tstate = wxPyBeginAllowThreads();
33059 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
33060 wxPyEndAllowThreads(__tstate);
33061 if (PyErr_Occurred()) SWIG_fail;
33062 }
33063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
33064 return resultobj;
33065 fail:
33066 return NULL;
33067 }
33068
33069
33070 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33071 PyObject *resultobj = 0;
33072 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33073 void *argp1 = 0 ;
33074 int res1 = 0 ;
33075 PyObject *swig_obj[1] ;
33076
33077 if (!args) SWIG_fail;
33078 swig_obj[0] = args;
33079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
33080 if (!SWIG_IsOK(res1)) {
33081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33082 }
33083 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33084 {
33085 PyThreadState* __tstate = wxPyBeginAllowThreads();
33086 delete arg1;
33087
33088 wxPyEndAllowThreads(__tstate);
33089 if (PyErr_Occurred()) SWIG_fail;
33090 }
33091 resultobj = SWIG_Py_Void();
33092 return resultobj;
33093 fail:
33094 return NULL;
33095 }
33096
33097
33098 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33099 PyObject *resultobj = 0;
33100 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33101 PyObject *result = 0 ;
33102 void *argp1 = 0 ;
33103 int res1 = 0 ;
33104 PyObject *swig_obj[1] ;
33105
33106 if (!args) SWIG_fail;
33107 swig_obj[0] = args;
33108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33109 if (!SWIG_IsOK(res1)) {
33110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33111 }
33112 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33113 {
33114 PyThreadState* __tstate = wxPyBeginAllowThreads();
33115 result = (PyObject *)(arg1)->GetData();
33116 wxPyEndAllowThreads(__tstate);
33117 if (PyErr_Occurred()) SWIG_fail;
33118 }
33119 resultobj = result;
33120 return resultobj;
33121 fail:
33122 return NULL;
33123 }
33124
33125
33126 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33127 PyObject *resultobj = 0;
33128 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33129 PyObject *arg2 = (PyObject *) 0 ;
33130 void *argp1 = 0 ;
33131 int res1 = 0 ;
33132 PyObject * obj0 = 0 ;
33133 PyObject * obj1 = 0 ;
33134 char * kwnames[] = {
33135 (char *) "self",(char *) "obj", NULL
33136 };
33137
33138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
33139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33140 if (!SWIG_IsOK(res1)) {
33141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33142 }
33143 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33144 arg2 = obj1;
33145 {
33146 PyThreadState* __tstate = wxPyBeginAllowThreads();
33147 (arg1)->SetData(arg2);
33148 wxPyEndAllowThreads(__tstate);
33149 if (PyErr_Occurred()) SWIG_fail;
33150 }
33151 resultobj = SWIG_Py_Void();
33152 return resultobj;
33153 fail:
33154 return NULL;
33155 }
33156
33157
33158 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33159 PyObject *resultobj = 0;
33160 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33161 wxTreeItemId *result = 0 ;
33162 void *argp1 = 0 ;
33163 int res1 = 0 ;
33164 PyObject *swig_obj[1] ;
33165
33166 if (!args) SWIG_fail;
33167 swig_obj[0] = args;
33168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33169 if (!SWIG_IsOK(res1)) {
33170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33171 }
33172 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33173 {
33174 PyThreadState* __tstate = wxPyBeginAllowThreads();
33175 {
33176 wxTreeItemId const &_result_ref = (arg1)->GetId();
33177 result = (wxTreeItemId *) &_result_ref;
33178 }
33179 wxPyEndAllowThreads(__tstate);
33180 if (PyErr_Occurred()) SWIG_fail;
33181 }
33182 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33183 return resultobj;
33184 fail:
33185 return NULL;
33186 }
33187
33188
33189 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33190 PyObject *resultobj = 0;
33191 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33192 wxTreeItemId *arg2 = 0 ;
33193 void *argp1 = 0 ;
33194 int res1 = 0 ;
33195 void *argp2 = 0 ;
33196 int res2 = 0 ;
33197 PyObject * obj0 = 0 ;
33198 PyObject * obj1 = 0 ;
33199 char * kwnames[] = {
33200 (char *) "self",(char *) "id", NULL
33201 };
33202
33203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33205 if (!SWIG_IsOK(res1)) {
33206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33207 }
33208 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33209 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33210 if (!SWIG_IsOK(res2)) {
33211 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33212 }
33213 if (!argp2) {
33214 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33215 }
33216 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33217 {
33218 PyThreadState* __tstate = wxPyBeginAllowThreads();
33219 (arg1)->SetId((wxTreeItemId const &)*arg2);
33220 wxPyEndAllowThreads(__tstate);
33221 if (PyErr_Occurred()) SWIG_fail;
33222 }
33223 resultobj = SWIG_Py_Void();
33224 return resultobj;
33225 fail:
33226 return NULL;
33227 }
33228
33229
33230 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33231 PyObject *resultobj = 0;
33232 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33233 void *argp1 = 0 ;
33234 int res1 = 0 ;
33235 PyObject *swig_obj[1] ;
33236
33237 if (!args) SWIG_fail;
33238 swig_obj[0] = args;
33239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33240 if (!SWIG_IsOK(res1)) {
33241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33242 }
33243 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33244 {
33245 PyThreadState* __tstate = wxPyBeginAllowThreads();
33246 wxPyTreeItemData_Destroy(arg1);
33247 wxPyEndAllowThreads(__tstate);
33248 if (PyErr_Occurred()) SWIG_fail;
33249 }
33250 resultobj = SWIG_Py_Void();
33251 return resultobj;
33252 fail:
33253 return NULL;
33254 }
33255
33256
33257 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33258 PyObject *obj;
33259 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33260 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33261 return SWIG_Py_Void();
33262 }
33263
33264 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33265 return SWIG_Python_InitShadowInstance(args);
33266 }
33267
33268 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33269 {
33270 void *argp = 0;
33271 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33272 if (!SWIG_IsOK(res)) {
33273 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33274 }
33275 if (!argp) {
33276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33277 } else {
33278 wxTreeItemId * temp;
33279 temp = reinterpret_cast< wxTreeItemId * >(argp);
33280 wxNullTreeItemId = *temp;
33281 if (SWIG_IsNewObj(res)) delete temp;
33282 }
33283 }
33284 return 0;
33285 fail:
33286 return 1;
33287 }
33288
33289
33290 SWIGINTERN PyObject *NullTreeItemId_get(void) {
33291 PyObject *pyobj = 0;
33292
33293 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33294 return pyobj;
33295 }
33296
33297
33298 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33299 PyObject *resultobj = 0;
33300 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33301 int arg2 = (int) 0 ;
33302 wxTreeEvent *result = 0 ;
33303 int val1 ;
33304 int ecode1 = 0 ;
33305 int val2 ;
33306 int ecode2 = 0 ;
33307
33308 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33309 if (swig_obj[0]) {
33310 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33311 if (!SWIG_IsOK(ecode1)) {
33312 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33313 }
33314 arg1 = static_cast< wxEventType >(val1);
33315 }
33316 if (swig_obj[1]) {
33317 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33318 if (!SWIG_IsOK(ecode2)) {
33319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33320 }
33321 arg2 = static_cast< int >(val2);
33322 }
33323 {
33324 PyThreadState* __tstate = wxPyBeginAllowThreads();
33325 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33326 wxPyEndAllowThreads(__tstate);
33327 if (PyErr_Occurred()) SWIG_fail;
33328 }
33329 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33330 return resultobj;
33331 fail:
33332 return NULL;
33333 }
33334
33335
33336 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33337 PyObject *resultobj = 0;
33338 wxEventType arg1 ;
33339 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33340 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33341 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33342 wxTreeEvent *result = 0 ;
33343 int val1 ;
33344 int ecode1 = 0 ;
33345 void *argp2 = 0 ;
33346 int res2 = 0 ;
33347 void *argp3 = 0 ;
33348 int res3 = 0 ;
33349
33350 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33351 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33352 if (!SWIG_IsOK(ecode1)) {
33353 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33354 }
33355 arg1 = static_cast< wxEventType >(val1);
33356 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33357 if (!SWIG_IsOK(res2)) {
33358 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33359 }
33360 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33361 if (swig_obj[2]) {
33362 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33363 if (!SWIG_IsOK(res3)) {
33364 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33365 }
33366 if (!argp3) {
33367 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33368 }
33369 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33370 }
33371 {
33372 PyThreadState* __tstate = wxPyBeginAllowThreads();
33373 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33374 wxPyEndAllowThreads(__tstate);
33375 if (PyErr_Occurred()) SWIG_fail;
33376 }
33377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33378 return resultobj;
33379 fail:
33380 return NULL;
33381 }
33382
33383
33384 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33385 int argc;
33386 PyObject *argv[4];
33387
33388 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33389 --argc;
33390 if ((argc >= 0) && (argc <= 2)) {
33391 int _v = 0;
33392 if (argc > 1) {
33393 {
33394 {
33395 int res = SWIG_AsVal_int(argv[1], NULL);
33396 _v = SWIG_CheckState(res);
33397 }
33398 }
33399 if (!_v) goto check_1;
33400 }
33401 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33402 }
33403 check_1:
33404
33405 if ((argc >= 2) && (argc <= 3)) {
33406 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33407 }
33408
33409 fail:
33410 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33411 return NULL;
33412 }
33413
33414
33415 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33416 PyObject *resultobj = 0;
33417 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33418 wxTreeItemId result;
33419 void *argp1 = 0 ;
33420 int res1 = 0 ;
33421 PyObject *swig_obj[1] ;
33422
33423 if (!args) SWIG_fail;
33424 swig_obj[0] = args;
33425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33426 if (!SWIG_IsOK(res1)) {
33427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33428 }
33429 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33430 {
33431 PyThreadState* __tstate = wxPyBeginAllowThreads();
33432 result = ((wxTreeEvent const *)arg1)->GetItem();
33433 wxPyEndAllowThreads(__tstate);
33434 if (PyErr_Occurred()) SWIG_fail;
33435 }
33436 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33437 return resultobj;
33438 fail:
33439 return NULL;
33440 }
33441
33442
33443 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33444 PyObject *resultobj = 0;
33445 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33446 wxTreeItemId *arg2 = 0 ;
33447 void *argp1 = 0 ;
33448 int res1 = 0 ;
33449 void *argp2 = 0 ;
33450 int res2 = 0 ;
33451 PyObject * obj0 = 0 ;
33452 PyObject * obj1 = 0 ;
33453 char * kwnames[] = {
33454 (char *) "self",(char *) "item", NULL
33455 };
33456
33457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33459 if (!SWIG_IsOK(res1)) {
33460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33461 }
33462 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33463 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33464 if (!SWIG_IsOK(res2)) {
33465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33466 }
33467 if (!argp2) {
33468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33469 }
33470 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33471 {
33472 PyThreadState* __tstate = wxPyBeginAllowThreads();
33473 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33474 wxPyEndAllowThreads(__tstate);
33475 if (PyErr_Occurred()) SWIG_fail;
33476 }
33477 resultobj = SWIG_Py_Void();
33478 return resultobj;
33479 fail:
33480 return NULL;
33481 }
33482
33483
33484 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33485 PyObject *resultobj = 0;
33486 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33487 wxTreeItemId result;
33488 void *argp1 = 0 ;
33489 int res1 = 0 ;
33490 PyObject *swig_obj[1] ;
33491
33492 if (!args) SWIG_fail;
33493 swig_obj[0] = args;
33494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33495 if (!SWIG_IsOK(res1)) {
33496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33497 }
33498 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33499 {
33500 PyThreadState* __tstate = wxPyBeginAllowThreads();
33501 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33502 wxPyEndAllowThreads(__tstate);
33503 if (PyErr_Occurred()) SWIG_fail;
33504 }
33505 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33506 return resultobj;
33507 fail:
33508 return NULL;
33509 }
33510
33511
33512 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33513 PyObject *resultobj = 0;
33514 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33515 wxTreeItemId *arg2 = 0 ;
33516 void *argp1 = 0 ;
33517 int res1 = 0 ;
33518 void *argp2 = 0 ;
33519 int res2 = 0 ;
33520 PyObject * obj0 = 0 ;
33521 PyObject * obj1 = 0 ;
33522 char * kwnames[] = {
33523 (char *) "self",(char *) "item", NULL
33524 };
33525
33526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33528 if (!SWIG_IsOK(res1)) {
33529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33530 }
33531 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33532 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33533 if (!SWIG_IsOK(res2)) {
33534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33535 }
33536 if (!argp2) {
33537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33538 }
33539 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33540 {
33541 PyThreadState* __tstate = wxPyBeginAllowThreads();
33542 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33543 wxPyEndAllowThreads(__tstate);
33544 if (PyErr_Occurred()) SWIG_fail;
33545 }
33546 resultobj = SWIG_Py_Void();
33547 return resultobj;
33548 fail:
33549 return NULL;
33550 }
33551
33552
33553 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33554 PyObject *resultobj = 0;
33555 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33556 wxPoint result;
33557 void *argp1 = 0 ;
33558 int res1 = 0 ;
33559 PyObject *swig_obj[1] ;
33560
33561 if (!args) SWIG_fail;
33562 swig_obj[0] = args;
33563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33564 if (!SWIG_IsOK(res1)) {
33565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33566 }
33567 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33568 {
33569 PyThreadState* __tstate = wxPyBeginAllowThreads();
33570 result = ((wxTreeEvent const *)arg1)->GetPoint();
33571 wxPyEndAllowThreads(__tstate);
33572 if (PyErr_Occurred()) SWIG_fail;
33573 }
33574 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33575 return resultobj;
33576 fail:
33577 return NULL;
33578 }
33579
33580
33581 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33582 PyObject *resultobj = 0;
33583 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33584 wxPoint *arg2 = 0 ;
33585 void *argp1 = 0 ;
33586 int res1 = 0 ;
33587 wxPoint temp2 ;
33588 PyObject * obj0 = 0 ;
33589 PyObject * obj1 = 0 ;
33590 char * kwnames[] = {
33591 (char *) "self",(char *) "pt", NULL
33592 };
33593
33594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33596 if (!SWIG_IsOK(res1)) {
33597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33598 }
33599 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33600 {
33601 arg2 = &temp2;
33602 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33603 }
33604 {
33605 PyThreadState* __tstate = wxPyBeginAllowThreads();
33606 (arg1)->SetPoint((wxPoint const &)*arg2);
33607 wxPyEndAllowThreads(__tstate);
33608 if (PyErr_Occurred()) SWIG_fail;
33609 }
33610 resultobj = SWIG_Py_Void();
33611 return resultobj;
33612 fail:
33613 return NULL;
33614 }
33615
33616
33617 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33618 PyObject *resultobj = 0;
33619 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33620 wxKeyEvent *result = 0 ;
33621 void *argp1 = 0 ;
33622 int res1 = 0 ;
33623 PyObject *swig_obj[1] ;
33624
33625 if (!args) SWIG_fail;
33626 swig_obj[0] = args;
33627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33628 if (!SWIG_IsOK(res1)) {
33629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33630 }
33631 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33632 {
33633 PyThreadState* __tstate = wxPyBeginAllowThreads();
33634 {
33635 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33636 result = (wxKeyEvent *) &_result_ref;
33637 }
33638 wxPyEndAllowThreads(__tstate);
33639 if (PyErr_Occurred()) SWIG_fail;
33640 }
33641 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33642 return resultobj;
33643 fail:
33644 return NULL;
33645 }
33646
33647
33648 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33649 PyObject *resultobj = 0;
33650 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33651 int result;
33652 void *argp1 = 0 ;
33653 int res1 = 0 ;
33654 PyObject *swig_obj[1] ;
33655
33656 if (!args) SWIG_fail;
33657 swig_obj[0] = args;
33658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33659 if (!SWIG_IsOK(res1)) {
33660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33661 }
33662 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33663 {
33664 PyThreadState* __tstate = wxPyBeginAllowThreads();
33665 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33666 wxPyEndAllowThreads(__tstate);
33667 if (PyErr_Occurred()) SWIG_fail;
33668 }
33669 resultobj = SWIG_From_int(static_cast< int >(result));
33670 return resultobj;
33671 fail:
33672 return NULL;
33673 }
33674
33675
33676 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33677 PyObject *resultobj = 0;
33678 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33679 wxKeyEvent *arg2 = 0 ;
33680 void *argp1 = 0 ;
33681 int res1 = 0 ;
33682 void *argp2 = 0 ;
33683 int res2 = 0 ;
33684 PyObject * obj0 = 0 ;
33685 PyObject * obj1 = 0 ;
33686 char * kwnames[] = {
33687 (char *) "self",(char *) "evt", NULL
33688 };
33689
33690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33692 if (!SWIG_IsOK(res1)) {
33693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33694 }
33695 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33696 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33697 if (!SWIG_IsOK(res2)) {
33698 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33699 }
33700 if (!argp2) {
33701 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33702 }
33703 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33704 {
33705 PyThreadState* __tstate = wxPyBeginAllowThreads();
33706 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33707 wxPyEndAllowThreads(__tstate);
33708 if (PyErr_Occurred()) SWIG_fail;
33709 }
33710 resultobj = SWIG_Py_Void();
33711 return resultobj;
33712 fail:
33713 return NULL;
33714 }
33715
33716
33717 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33718 PyObject *resultobj = 0;
33719 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33720 wxString *result = 0 ;
33721 void *argp1 = 0 ;
33722 int res1 = 0 ;
33723 PyObject *swig_obj[1] ;
33724
33725 if (!args) SWIG_fail;
33726 swig_obj[0] = args;
33727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33728 if (!SWIG_IsOK(res1)) {
33729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33730 }
33731 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33732 {
33733 PyThreadState* __tstate = wxPyBeginAllowThreads();
33734 {
33735 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33736 result = (wxString *) &_result_ref;
33737 }
33738 wxPyEndAllowThreads(__tstate);
33739 if (PyErr_Occurred()) SWIG_fail;
33740 }
33741 {
33742 #if wxUSE_UNICODE
33743 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33744 #else
33745 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33746 #endif
33747 }
33748 return resultobj;
33749 fail:
33750 return NULL;
33751 }
33752
33753
33754 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33755 PyObject *resultobj = 0;
33756 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33757 wxString *arg2 = 0 ;
33758 void *argp1 = 0 ;
33759 int res1 = 0 ;
33760 bool temp2 = false ;
33761 PyObject * obj0 = 0 ;
33762 PyObject * obj1 = 0 ;
33763 char * kwnames[] = {
33764 (char *) "self",(char *) "label", NULL
33765 };
33766
33767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33769 if (!SWIG_IsOK(res1)) {
33770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33771 }
33772 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33773 {
33774 arg2 = wxString_in_helper(obj1);
33775 if (arg2 == NULL) SWIG_fail;
33776 temp2 = true;
33777 }
33778 {
33779 PyThreadState* __tstate = wxPyBeginAllowThreads();
33780 (arg1)->SetLabel((wxString const &)*arg2);
33781 wxPyEndAllowThreads(__tstate);
33782 if (PyErr_Occurred()) SWIG_fail;
33783 }
33784 resultobj = SWIG_Py_Void();
33785 {
33786 if (temp2)
33787 delete arg2;
33788 }
33789 return resultobj;
33790 fail:
33791 {
33792 if (temp2)
33793 delete arg2;
33794 }
33795 return NULL;
33796 }
33797
33798
33799 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33800 PyObject *resultobj = 0;
33801 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33802 bool result;
33803 void *argp1 = 0 ;
33804 int res1 = 0 ;
33805 PyObject *swig_obj[1] ;
33806
33807 if (!args) SWIG_fail;
33808 swig_obj[0] = args;
33809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33810 if (!SWIG_IsOK(res1)) {
33811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33812 }
33813 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33814 {
33815 PyThreadState* __tstate = wxPyBeginAllowThreads();
33816 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33817 wxPyEndAllowThreads(__tstate);
33818 if (PyErr_Occurred()) SWIG_fail;
33819 }
33820 {
33821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33822 }
33823 return resultobj;
33824 fail:
33825 return NULL;
33826 }
33827
33828
33829 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33830 PyObject *resultobj = 0;
33831 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33832 bool arg2 ;
33833 void *argp1 = 0 ;
33834 int res1 = 0 ;
33835 bool val2 ;
33836 int ecode2 = 0 ;
33837 PyObject * obj0 = 0 ;
33838 PyObject * obj1 = 0 ;
33839 char * kwnames[] = {
33840 (char *) "self",(char *) "editCancelled", NULL
33841 };
33842
33843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33845 if (!SWIG_IsOK(res1)) {
33846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33847 }
33848 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33849 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33850 if (!SWIG_IsOK(ecode2)) {
33851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33852 }
33853 arg2 = static_cast< bool >(val2);
33854 {
33855 PyThreadState* __tstate = wxPyBeginAllowThreads();
33856 (arg1)->SetEditCanceled(arg2);
33857 wxPyEndAllowThreads(__tstate);
33858 if (PyErr_Occurred()) SWIG_fail;
33859 }
33860 resultobj = SWIG_Py_Void();
33861 return resultobj;
33862 fail:
33863 return NULL;
33864 }
33865
33866
33867 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33868 PyObject *resultobj = 0;
33869 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33870 wxString *arg2 = 0 ;
33871 void *argp1 = 0 ;
33872 int res1 = 0 ;
33873 bool temp2 = false ;
33874 PyObject * obj0 = 0 ;
33875 PyObject * obj1 = 0 ;
33876 char * kwnames[] = {
33877 (char *) "self",(char *) "toolTip", NULL
33878 };
33879
33880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33882 if (!SWIG_IsOK(res1)) {
33883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33884 }
33885 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33886 {
33887 arg2 = wxString_in_helper(obj1);
33888 if (arg2 == NULL) SWIG_fail;
33889 temp2 = true;
33890 }
33891 {
33892 PyThreadState* __tstate = wxPyBeginAllowThreads();
33893 (arg1)->SetToolTip((wxString const &)*arg2);
33894 wxPyEndAllowThreads(__tstate);
33895 if (PyErr_Occurred()) SWIG_fail;
33896 }
33897 resultobj = SWIG_Py_Void();
33898 {
33899 if (temp2)
33900 delete arg2;
33901 }
33902 return resultobj;
33903 fail:
33904 {
33905 if (temp2)
33906 delete arg2;
33907 }
33908 return NULL;
33909 }
33910
33911
33912 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33913 PyObject *resultobj = 0;
33914 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33915 wxString result;
33916 void *argp1 = 0 ;
33917 int res1 = 0 ;
33918 PyObject *swig_obj[1] ;
33919
33920 if (!args) SWIG_fail;
33921 swig_obj[0] = args;
33922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33923 if (!SWIG_IsOK(res1)) {
33924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33925 }
33926 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33927 {
33928 PyThreadState* __tstate = wxPyBeginAllowThreads();
33929 result = (arg1)->GetToolTip();
33930 wxPyEndAllowThreads(__tstate);
33931 if (PyErr_Occurred()) SWIG_fail;
33932 }
33933 {
33934 #if wxUSE_UNICODE
33935 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33936 #else
33937 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33938 #endif
33939 }
33940 return resultobj;
33941 fail:
33942 return NULL;
33943 }
33944
33945
33946 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33947 PyObject *obj;
33948 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33949 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33950 return SWIG_Py_Void();
33951 }
33952
33953 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33954 return SWIG_Python_InitShadowInstance(args);
33955 }
33956
33957 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33958 PyObject *resultobj = 0;
33959 wxWindow *arg1 = (wxWindow *) 0 ;
33960 int arg2 = (int) -1 ;
33961 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33962 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33963 wxSize const &arg4_defvalue = wxDefaultSize ;
33964 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33965 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33966 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33967 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33968 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33969 wxString *arg7 = (wxString *) &arg7_defvalue ;
33970 wxPyTreeCtrl *result = 0 ;
33971 void *argp1 = 0 ;
33972 int res1 = 0 ;
33973 int val2 ;
33974 int ecode2 = 0 ;
33975 wxPoint temp3 ;
33976 wxSize temp4 ;
33977 long val5 ;
33978 int ecode5 = 0 ;
33979 void *argp6 = 0 ;
33980 int res6 = 0 ;
33981 bool temp7 = false ;
33982 PyObject * obj0 = 0 ;
33983 PyObject * obj1 = 0 ;
33984 PyObject * obj2 = 0 ;
33985 PyObject * obj3 = 0 ;
33986 PyObject * obj4 = 0 ;
33987 PyObject * obj5 = 0 ;
33988 PyObject * obj6 = 0 ;
33989 char * kwnames[] = {
33990 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33991 };
33992
33993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33995 if (!SWIG_IsOK(res1)) {
33996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33997 }
33998 arg1 = reinterpret_cast< wxWindow * >(argp1);
33999 if (obj1) {
34000 ecode2 = SWIG_AsVal_int(obj1, &val2);
34001 if (!SWIG_IsOK(ecode2)) {
34002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
34003 }
34004 arg2 = static_cast< int >(val2);
34005 }
34006 if (obj2) {
34007 {
34008 arg3 = &temp3;
34009 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34010 }
34011 }
34012 if (obj3) {
34013 {
34014 arg4 = &temp4;
34015 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34016 }
34017 }
34018 if (obj4) {
34019 ecode5 = SWIG_AsVal_long(obj4, &val5);
34020 if (!SWIG_IsOK(ecode5)) {
34021 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
34022 }
34023 arg5 = static_cast< long >(val5);
34024 }
34025 if (obj5) {
34026 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
34027 if (!SWIG_IsOK(res6)) {
34028 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
34029 }
34030 if (!argp6) {
34031 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
34032 }
34033 arg6 = reinterpret_cast< wxValidator * >(argp6);
34034 }
34035 if (obj6) {
34036 {
34037 arg7 = wxString_in_helper(obj6);
34038 if (arg7 == NULL) SWIG_fail;
34039 temp7 = true;
34040 }
34041 }
34042 {
34043 if (!wxPyCheckForApp()) SWIG_fail;
34044 PyThreadState* __tstate = wxPyBeginAllowThreads();
34045 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
34046 wxPyEndAllowThreads(__tstate);
34047 if (PyErr_Occurred()) SWIG_fail;
34048 }
34049 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
34050 {
34051 if (temp7)
34052 delete arg7;
34053 }
34054 return resultobj;
34055 fail:
34056 {
34057 if (temp7)
34058 delete arg7;
34059 }
34060 return NULL;
34061 }
34062
34063
34064 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34065 PyObject *resultobj = 0;
34066 wxPyTreeCtrl *result = 0 ;
34067
34068 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
34069 {
34070 if (!wxPyCheckForApp()) SWIG_fail;
34071 PyThreadState* __tstate = wxPyBeginAllowThreads();
34072 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
34073 wxPyEndAllowThreads(__tstate);
34074 if (PyErr_Occurred()) SWIG_fail;
34075 }
34076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
34077 return resultobj;
34078 fail:
34079 return NULL;
34080 }
34081
34082
34083 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34084 PyObject *resultobj = 0;
34085 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34086 wxWindow *arg2 = (wxWindow *) 0 ;
34087 int arg3 = (int) -1 ;
34088 wxPoint const &arg4_defvalue = wxDefaultPosition ;
34089 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
34090 wxSize const &arg5_defvalue = wxDefaultSize ;
34091 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
34092 long arg6 = (long) wxTR_DEFAULT_STYLE ;
34093 wxValidator const &arg7_defvalue = wxDefaultValidator ;
34094 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
34095 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
34096 wxString *arg8 = (wxString *) &arg8_defvalue ;
34097 bool result;
34098 void *argp1 = 0 ;
34099 int res1 = 0 ;
34100 void *argp2 = 0 ;
34101 int res2 = 0 ;
34102 int val3 ;
34103 int ecode3 = 0 ;
34104 wxPoint temp4 ;
34105 wxSize temp5 ;
34106 long val6 ;
34107 int ecode6 = 0 ;
34108 void *argp7 = 0 ;
34109 int res7 = 0 ;
34110 bool temp8 = false ;
34111 PyObject * obj0 = 0 ;
34112 PyObject * obj1 = 0 ;
34113 PyObject * obj2 = 0 ;
34114 PyObject * obj3 = 0 ;
34115 PyObject * obj4 = 0 ;
34116 PyObject * obj5 = 0 ;
34117 PyObject * obj6 = 0 ;
34118 PyObject * obj7 = 0 ;
34119 char * kwnames[] = {
34120 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
34121 };
34122
34123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
34124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34125 if (!SWIG_IsOK(res1)) {
34126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34127 }
34128 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34129 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34130 if (!SWIG_IsOK(res2)) {
34131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
34132 }
34133 arg2 = reinterpret_cast< wxWindow * >(argp2);
34134 if (obj2) {
34135 ecode3 = SWIG_AsVal_int(obj2, &val3);
34136 if (!SWIG_IsOK(ecode3)) {
34137 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
34138 }
34139 arg3 = static_cast< int >(val3);
34140 }
34141 if (obj3) {
34142 {
34143 arg4 = &temp4;
34144 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
34145 }
34146 }
34147 if (obj4) {
34148 {
34149 arg5 = &temp5;
34150 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
34151 }
34152 }
34153 if (obj5) {
34154 ecode6 = SWIG_AsVal_long(obj5, &val6);
34155 if (!SWIG_IsOK(ecode6)) {
34156 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
34157 }
34158 arg6 = static_cast< long >(val6);
34159 }
34160 if (obj6) {
34161 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
34162 if (!SWIG_IsOK(res7)) {
34163 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34164 }
34165 if (!argp7) {
34166 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34167 }
34168 arg7 = reinterpret_cast< wxValidator * >(argp7);
34169 }
34170 if (obj7) {
34171 {
34172 arg8 = wxString_in_helper(obj7);
34173 if (arg8 == NULL) SWIG_fail;
34174 temp8 = true;
34175 }
34176 }
34177 {
34178 PyThreadState* __tstate = wxPyBeginAllowThreads();
34179 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
34180 wxPyEndAllowThreads(__tstate);
34181 if (PyErr_Occurred()) SWIG_fail;
34182 }
34183 {
34184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34185 }
34186 {
34187 if (temp8)
34188 delete arg8;
34189 }
34190 return resultobj;
34191 fail:
34192 {
34193 if (temp8)
34194 delete arg8;
34195 }
34196 return NULL;
34197 }
34198
34199
34200 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34201 PyObject *resultobj = 0;
34202 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34203 PyObject *arg2 = (PyObject *) 0 ;
34204 PyObject *arg3 = (PyObject *) 0 ;
34205 void *argp1 = 0 ;
34206 int res1 = 0 ;
34207 PyObject * obj0 = 0 ;
34208 PyObject * obj1 = 0 ;
34209 PyObject * obj2 = 0 ;
34210 char * kwnames[] = {
34211 (char *) "self",(char *) "self",(char *) "_class", NULL
34212 };
34213
34214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34216 if (!SWIG_IsOK(res1)) {
34217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34218 }
34219 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34220 arg2 = obj1;
34221 arg3 = obj2;
34222 {
34223 PyThreadState* __tstate = wxPyBeginAllowThreads();
34224 (arg1)->_setCallbackInfo(arg2,arg3);
34225 wxPyEndAllowThreads(__tstate);
34226 if (PyErr_Occurred()) SWIG_fail;
34227 }
34228 resultobj = SWIG_Py_Void();
34229 return resultobj;
34230 fail:
34231 return NULL;
34232 }
34233
34234
34235 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34236 PyObject *resultobj = 0;
34237 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34238 unsigned int result;
34239 void *argp1 = 0 ;
34240 int res1 = 0 ;
34241 PyObject *swig_obj[1] ;
34242
34243 if (!args) SWIG_fail;
34244 swig_obj[0] = args;
34245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34246 if (!SWIG_IsOK(res1)) {
34247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34248 }
34249 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34250 {
34251 PyThreadState* __tstate = wxPyBeginAllowThreads();
34252 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
34253 wxPyEndAllowThreads(__tstate);
34254 if (PyErr_Occurred()) SWIG_fail;
34255 }
34256 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34257 return resultobj;
34258 fail:
34259 return NULL;
34260 }
34261
34262
34263 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34264 PyObject *resultobj = 0;
34265 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34266 unsigned int result;
34267 void *argp1 = 0 ;
34268 int res1 = 0 ;
34269 PyObject *swig_obj[1] ;
34270
34271 if (!args) SWIG_fail;
34272 swig_obj[0] = args;
34273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34274 if (!SWIG_IsOK(res1)) {
34275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34276 }
34277 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34278 {
34279 PyThreadState* __tstate = wxPyBeginAllowThreads();
34280 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34281 wxPyEndAllowThreads(__tstate);
34282 if (PyErr_Occurred()) SWIG_fail;
34283 }
34284 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34285 return resultobj;
34286 fail:
34287 return NULL;
34288 }
34289
34290
34291 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34292 PyObject *resultobj = 0;
34293 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34294 unsigned int arg2 ;
34295 void *argp1 = 0 ;
34296 int res1 = 0 ;
34297 unsigned int val2 ;
34298 int ecode2 = 0 ;
34299 PyObject * obj0 = 0 ;
34300 PyObject * obj1 = 0 ;
34301 char * kwnames[] = {
34302 (char *) "self",(char *) "indent", NULL
34303 };
34304
34305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34307 if (!SWIG_IsOK(res1)) {
34308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34309 }
34310 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34311 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34312 if (!SWIG_IsOK(ecode2)) {
34313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34314 }
34315 arg2 = static_cast< unsigned int >(val2);
34316 {
34317 PyThreadState* __tstate = wxPyBeginAllowThreads();
34318 (arg1)->SetIndent(arg2);
34319 wxPyEndAllowThreads(__tstate);
34320 if (PyErr_Occurred()) SWIG_fail;
34321 }
34322 resultobj = SWIG_Py_Void();
34323 return resultobj;
34324 fail:
34325 return NULL;
34326 }
34327
34328
34329 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34330 PyObject *resultobj = 0;
34331 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34332 unsigned int result;
34333 void *argp1 = 0 ;
34334 int res1 = 0 ;
34335 PyObject *swig_obj[1] ;
34336
34337 if (!args) SWIG_fail;
34338 swig_obj[0] = args;
34339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34340 if (!SWIG_IsOK(res1)) {
34341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34342 }
34343 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34344 {
34345 PyThreadState* __tstate = wxPyBeginAllowThreads();
34346 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34347 wxPyEndAllowThreads(__tstate);
34348 if (PyErr_Occurred()) SWIG_fail;
34349 }
34350 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34351 return resultobj;
34352 fail:
34353 return NULL;
34354 }
34355
34356
34357 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34358 PyObject *resultobj = 0;
34359 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34360 unsigned int arg2 ;
34361 void *argp1 = 0 ;
34362 int res1 = 0 ;
34363 unsigned int val2 ;
34364 int ecode2 = 0 ;
34365 PyObject * obj0 = 0 ;
34366 PyObject * obj1 = 0 ;
34367 char * kwnames[] = {
34368 (char *) "self",(char *) "spacing", NULL
34369 };
34370
34371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34373 if (!SWIG_IsOK(res1)) {
34374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34375 }
34376 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34377 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34378 if (!SWIG_IsOK(ecode2)) {
34379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34380 }
34381 arg2 = static_cast< unsigned int >(val2);
34382 {
34383 PyThreadState* __tstate = wxPyBeginAllowThreads();
34384 (arg1)->SetSpacing(arg2);
34385 wxPyEndAllowThreads(__tstate);
34386 if (PyErr_Occurred()) SWIG_fail;
34387 }
34388 resultobj = SWIG_Py_Void();
34389 return resultobj;
34390 fail:
34391 return NULL;
34392 }
34393
34394
34395 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34396 PyObject *resultobj = 0;
34397 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34398 wxImageList *result = 0 ;
34399 void *argp1 = 0 ;
34400 int res1 = 0 ;
34401 PyObject *swig_obj[1] ;
34402
34403 if (!args) SWIG_fail;
34404 swig_obj[0] = args;
34405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34406 if (!SWIG_IsOK(res1)) {
34407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34408 }
34409 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34410 {
34411 PyThreadState* __tstate = wxPyBeginAllowThreads();
34412 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34413 wxPyEndAllowThreads(__tstate);
34414 if (PyErr_Occurred()) SWIG_fail;
34415 }
34416 {
34417 resultobj = wxPyMake_wxObject(result, (bool)0);
34418 }
34419 return resultobj;
34420 fail:
34421 return NULL;
34422 }
34423
34424
34425 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34426 PyObject *resultobj = 0;
34427 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34428 wxImageList *result = 0 ;
34429 void *argp1 = 0 ;
34430 int res1 = 0 ;
34431 PyObject *swig_obj[1] ;
34432
34433 if (!args) SWIG_fail;
34434 swig_obj[0] = args;
34435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34436 if (!SWIG_IsOK(res1)) {
34437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34438 }
34439 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34440 {
34441 PyThreadState* __tstate = wxPyBeginAllowThreads();
34442 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34443 wxPyEndAllowThreads(__tstate);
34444 if (PyErr_Occurred()) SWIG_fail;
34445 }
34446 {
34447 resultobj = wxPyMake_wxObject(result, (bool)0);
34448 }
34449 return resultobj;
34450 fail:
34451 return NULL;
34452 }
34453
34454
34455 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34456 PyObject *resultobj = 0;
34457 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34458 wxImageList *arg2 = (wxImageList *) 0 ;
34459 void *argp1 = 0 ;
34460 int res1 = 0 ;
34461 void *argp2 = 0 ;
34462 int res2 = 0 ;
34463 PyObject * obj0 = 0 ;
34464 PyObject * obj1 = 0 ;
34465 char * kwnames[] = {
34466 (char *) "self",(char *) "imageList", NULL
34467 };
34468
34469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34471 if (!SWIG_IsOK(res1)) {
34472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34473 }
34474 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34475 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34476 if (!SWIG_IsOK(res2)) {
34477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34478 }
34479 arg2 = reinterpret_cast< wxImageList * >(argp2);
34480 {
34481 PyThreadState* __tstate = wxPyBeginAllowThreads();
34482 (arg1)->SetImageList(arg2);
34483 wxPyEndAllowThreads(__tstate);
34484 if (PyErr_Occurred()) SWIG_fail;
34485 }
34486 resultobj = SWIG_Py_Void();
34487 return resultobj;
34488 fail:
34489 return NULL;
34490 }
34491
34492
34493 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34494 PyObject *resultobj = 0;
34495 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34496 wxImageList *arg2 = (wxImageList *) 0 ;
34497 void *argp1 = 0 ;
34498 int res1 = 0 ;
34499 void *argp2 = 0 ;
34500 int res2 = 0 ;
34501 PyObject * obj0 = 0 ;
34502 PyObject * obj1 = 0 ;
34503 char * kwnames[] = {
34504 (char *) "self",(char *) "imageList", NULL
34505 };
34506
34507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34509 if (!SWIG_IsOK(res1)) {
34510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34511 }
34512 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34513 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34514 if (!SWIG_IsOK(res2)) {
34515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34516 }
34517 arg2 = reinterpret_cast< wxImageList * >(argp2);
34518 {
34519 PyThreadState* __tstate = wxPyBeginAllowThreads();
34520 (arg1)->SetStateImageList(arg2);
34521 wxPyEndAllowThreads(__tstate);
34522 if (PyErr_Occurred()) SWIG_fail;
34523 }
34524 resultobj = SWIG_Py_Void();
34525 return resultobj;
34526 fail:
34527 return NULL;
34528 }
34529
34530
34531 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34532 PyObject *resultobj = 0;
34533 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34534 wxImageList *arg2 = (wxImageList *) 0 ;
34535 void *argp1 = 0 ;
34536 int res1 = 0 ;
34537 int res2 = 0 ;
34538 PyObject * obj0 = 0 ;
34539 PyObject * obj1 = 0 ;
34540 char * kwnames[] = {
34541 (char *) "self",(char *) "imageList", NULL
34542 };
34543
34544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34546 if (!SWIG_IsOK(res1)) {
34547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34548 }
34549 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34550 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34551 if (!SWIG_IsOK(res2)) {
34552 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34553 }
34554 {
34555 PyThreadState* __tstate = wxPyBeginAllowThreads();
34556 (arg1)->AssignImageList(arg2);
34557 wxPyEndAllowThreads(__tstate);
34558 if (PyErr_Occurred()) SWIG_fail;
34559 }
34560 resultobj = SWIG_Py_Void();
34561 return resultobj;
34562 fail:
34563 return NULL;
34564 }
34565
34566
34567 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34568 PyObject *resultobj = 0;
34569 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34570 wxImageList *arg2 = (wxImageList *) 0 ;
34571 void *argp1 = 0 ;
34572 int res1 = 0 ;
34573 int res2 = 0 ;
34574 PyObject * obj0 = 0 ;
34575 PyObject * obj1 = 0 ;
34576 char * kwnames[] = {
34577 (char *) "self",(char *) "imageList", NULL
34578 };
34579
34580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34582 if (!SWIG_IsOK(res1)) {
34583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34584 }
34585 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34586 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34587 if (!SWIG_IsOK(res2)) {
34588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34589 }
34590 {
34591 PyThreadState* __tstate = wxPyBeginAllowThreads();
34592 (arg1)->AssignStateImageList(arg2);
34593 wxPyEndAllowThreads(__tstate);
34594 if (PyErr_Occurred()) SWIG_fail;
34595 }
34596 resultobj = SWIG_Py_Void();
34597 return resultobj;
34598 fail:
34599 return NULL;
34600 }
34601
34602
34603 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34604 PyObject *resultobj = 0;
34605 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34606 wxTreeItemId *arg2 = 0 ;
34607 wxString result;
34608 void *argp1 = 0 ;
34609 int res1 = 0 ;
34610 void *argp2 = 0 ;
34611 int res2 = 0 ;
34612 PyObject * obj0 = 0 ;
34613 PyObject * obj1 = 0 ;
34614 char * kwnames[] = {
34615 (char *) "self",(char *) "item", NULL
34616 };
34617
34618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34620 if (!SWIG_IsOK(res1)) {
34621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34622 }
34623 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34624 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34625 if (!SWIG_IsOK(res2)) {
34626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34627 }
34628 if (!argp2) {
34629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34630 }
34631 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34632 {
34633 PyThreadState* __tstate = wxPyBeginAllowThreads();
34634 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34635 wxPyEndAllowThreads(__tstate);
34636 if (PyErr_Occurred()) SWIG_fail;
34637 }
34638 {
34639 #if wxUSE_UNICODE
34640 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34641 #else
34642 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34643 #endif
34644 }
34645 return resultobj;
34646 fail:
34647 return NULL;
34648 }
34649
34650
34651 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34652 PyObject *resultobj = 0;
34653 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34654 wxTreeItemId *arg2 = 0 ;
34655 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34656 int result;
34657 void *argp1 = 0 ;
34658 int res1 = 0 ;
34659 void *argp2 = 0 ;
34660 int res2 = 0 ;
34661 int val3 ;
34662 int ecode3 = 0 ;
34663 PyObject * obj0 = 0 ;
34664 PyObject * obj1 = 0 ;
34665 PyObject * obj2 = 0 ;
34666 char * kwnames[] = {
34667 (char *) "self",(char *) "item",(char *) "which", NULL
34668 };
34669
34670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34672 if (!SWIG_IsOK(res1)) {
34673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34674 }
34675 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34676 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34677 if (!SWIG_IsOK(res2)) {
34678 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34679 }
34680 if (!argp2) {
34681 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34682 }
34683 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34684 if (obj2) {
34685 ecode3 = SWIG_AsVal_int(obj2, &val3);
34686 if (!SWIG_IsOK(ecode3)) {
34687 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34688 }
34689 arg3 = static_cast< wxTreeItemIcon >(val3);
34690 }
34691 {
34692 PyThreadState* __tstate = wxPyBeginAllowThreads();
34693 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34694 wxPyEndAllowThreads(__tstate);
34695 if (PyErr_Occurred()) SWIG_fail;
34696 }
34697 resultobj = SWIG_From_int(static_cast< int >(result));
34698 return resultobj;
34699 fail:
34700 return NULL;
34701 }
34702
34703
34704 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34705 PyObject *resultobj = 0;
34706 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34707 wxTreeItemId *arg2 = 0 ;
34708 wxPyTreeItemData *result = 0 ;
34709 void *argp1 = 0 ;
34710 int res1 = 0 ;
34711 void *argp2 = 0 ;
34712 int res2 = 0 ;
34713 PyObject * obj0 = 0 ;
34714 PyObject * obj1 = 0 ;
34715 char * kwnames[] = {
34716 (char *) "self",(char *) "item", NULL
34717 };
34718
34719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34721 if (!SWIG_IsOK(res1)) {
34722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34723 }
34724 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34725 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34726 if (!SWIG_IsOK(res2)) {
34727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34728 }
34729 if (!argp2) {
34730 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34731 }
34732 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34733 {
34734 PyThreadState* __tstate = wxPyBeginAllowThreads();
34735 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34736 wxPyEndAllowThreads(__tstate);
34737 if (PyErr_Occurred()) SWIG_fail;
34738 }
34739 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34740 return resultobj;
34741 fail:
34742 return NULL;
34743 }
34744
34745
34746 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34747 PyObject *resultobj = 0;
34748 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34749 wxTreeItemId *arg2 = 0 ;
34750 PyObject *result = 0 ;
34751 void *argp1 = 0 ;
34752 int res1 = 0 ;
34753 void *argp2 = 0 ;
34754 int res2 = 0 ;
34755 PyObject * obj0 = 0 ;
34756 PyObject * obj1 = 0 ;
34757 char * kwnames[] = {
34758 (char *) "self",(char *) "item", NULL
34759 };
34760
34761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34763 if (!SWIG_IsOK(res1)) {
34764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34765 }
34766 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34767 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34768 if (!SWIG_IsOK(res2)) {
34769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34770 }
34771 if (!argp2) {
34772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34773 }
34774 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34775 {
34776 PyThreadState* __tstate = wxPyBeginAllowThreads();
34777 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34778 wxPyEndAllowThreads(__tstate);
34779 if (PyErr_Occurred()) SWIG_fail;
34780 }
34781 resultobj = result;
34782 return resultobj;
34783 fail:
34784 return NULL;
34785 }
34786
34787
34788 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34789 PyObject *resultobj = 0;
34790 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34791 wxTreeItemId *arg2 = 0 ;
34792 wxColour result;
34793 void *argp1 = 0 ;
34794 int res1 = 0 ;
34795 void *argp2 = 0 ;
34796 int res2 = 0 ;
34797 PyObject * obj0 = 0 ;
34798 PyObject * obj1 = 0 ;
34799 char * kwnames[] = {
34800 (char *) "self",(char *) "item", NULL
34801 };
34802
34803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34805 if (!SWIG_IsOK(res1)) {
34806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34807 }
34808 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34809 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34810 if (!SWIG_IsOK(res2)) {
34811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34812 }
34813 if (!argp2) {
34814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34815 }
34816 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34817 {
34818 PyThreadState* __tstate = wxPyBeginAllowThreads();
34819 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34820 wxPyEndAllowThreads(__tstate);
34821 if (PyErr_Occurred()) SWIG_fail;
34822 }
34823 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34824 return resultobj;
34825 fail:
34826 return NULL;
34827 }
34828
34829
34830 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34831 PyObject *resultobj = 0;
34832 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34833 wxTreeItemId *arg2 = 0 ;
34834 wxColour result;
34835 void *argp1 = 0 ;
34836 int res1 = 0 ;
34837 void *argp2 = 0 ;
34838 int res2 = 0 ;
34839 PyObject * obj0 = 0 ;
34840 PyObject * obj1 = 0 ;
34841 char * kwnames[] = {
34842 (char *) "self",(char *) "item", NULL
34843 };
34844
34845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34847 if (!SWIG_IsOK(res1)) {
34848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34849 }
34850 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34851 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34852 if (!SWIG_IsOK(res2)) {
34853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34854 }
34855 if (!argp2) {
34856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34857 }
34858 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34859 {
34860 PyThreadState* __tstate = wxPyBeginAllowThreads();
34861 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34862 wxPyEndAllowThreads(__tstate);
34863 if (PyErr_Occurred()) SWIG_fail;
34864 }
34865 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34866 return resultobj;
34867 fail:
34868 return NULL;
34869 }
34870
34871
34872 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34873 PyObject *resultobj = 0;
34874 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34875 wxTreeItemId *arg2 = 0 ;
34876 wxFont result;
34877 void *argp1 = 0 ;
34878 int res1 = 0 ;
34879 void *argp2 = 0 ;
34880 int res2 = 0 ;
34881 PyObject * obj0 = 0 ;
34882 PyObject * obj1 = 0 ;
34883 char * kwnames[] = {
34884 (char *) "self",(char *) "item", NULL
34885 };
34886
34887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34889 if (!SWIG_IsOK(res1)) {
34890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34891 }
34892 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34893 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34894 if (!SWIG_IsOK(res2)) {
34895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34896 }
34897 if (!argp2) {
34898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34899 }
34900 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34901 {
34902 PyThreadState* __tstate = wxPyBeginAllowThreads();
34903 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34904 wxPyEndAllowThreads(__tstate);
34905 if (PyErr_Occurred()) SWIG_fail;
34906 }
34907 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34908 return resultobj;
34909 fail:
34910 return NULL;
34911 }
34912
34913
34914 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34915 PyObject *resultobj = 0;
34916 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34917 wxTreeItemId *arg2 = 0 ;
34918 wxString *arg3 = 0 ;
34919 void *argp1 = 0 ;
34920 int res1 = 0 ;
34921 void *argp2 = 0 ;
34922 int res2 = 0 ;
34923 bool temp3 = false ;
34924 PyObject * obj0 = 0 ;
34925 PyObject * obj1 = 0 ;
34926 PyObject * obj2 = 0 ;
34927 char * kwnames[] = {
34928 (char *) "self",(char *) "item",(char *) "text", NULL
34929 };
34930
34931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34933 if (!SWIG_IsOK(res1)) {
34934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34935 }
34936 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34937 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34938 if (!SWIG_IsOK(res2)) {
34939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34940 }
34941 if (!argp2) {
34942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34943 }
34944 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34945 {
34946 arg3 = wxString_in_helper(obj2);
34947 if (arg3 == NULL) SWIG_fail;
34948 temp3 = true;
34949 }
34950 {
34951 PyThreadState* __tstate = wxPyBeginAllowThreads();
34952 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34953 wxPyEndAllowThreads(__tstate);
34954 if (PyErr_Occurred()) SWIG_fail;
34955 }
34956 resultobj = SWIG_Py_Void();
34957 {
34958 if (temp3)
34959 delete arg3;
34960 }
34961 return resultobj;
34962 fail:
34963 {
34964 if (temp3)
34965 delete arg3;
34966 }
34967 return NULL;
34968 }
34969
34970
34971 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34972 PyObject *resultobj = 0;
34973 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34974 wxTreeItemId *arg2 = 0 ;
34975 int arg3 ;
34976 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34977 void *argp1 = 0 ;
34978 int res1 = 0 ;
34979 void *argp2 = 0 ;
34980 int res2 = 0 ;
34981 int val3 ;
34982 int ecode3 = 0 ;
34983 int val4 ;
34984 int ecode4 = 0 ;
34985 PyObject * obj0 = 0 ;
34986 PyObject * obj1 = 0 ;
34987 PyObject * obj2 = 0 ;
34988 PyObject * obj3 = 0 ;
34989 char * kwnames[] = {
34990 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34991 };
34992
34993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34995 if (!SWIG_IsOK(res1)) {
34996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34997 }
34998 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34999 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35000 if (!SWIG_IsOK(res2)) {
35001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35002 }
35003 if (!argp2) {
35004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35005 }
35006 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35007 ecode3 = SWIG_AsVal_int(obj2, &val3);
35008 if (!SWIG_IsOK(ecode3)) {
35009 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
35010 }
35011 arg3 = static_cast< int >(val3);
35012 if (obj3) {
35013 ecode4 = SWIG_AsVal_int(obj3, &val4);
35014 if (!SWIG_IsOK(ecode4)) {
35015 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
35016 }
35017 arg4 = static_cast< wxTreeItemIcon >(val4);
35018 }
35019 {
35020 PyThreadState* __tstate = wxPyBeginAllowThreads();
35021 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
35022 wxPyEndAllowThreads(__tstate);
35023 if (PyErr_Occurred()) SWIG_fail;
35024 }
35025 resultobj = SWIG_Py_Void();
35026 return resultobj;
35027 fail:
35028 return NULL;
35029 }
35030
35031
35032 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35033 PyObject *resultobj = 0;
35034 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35035 wxTreeItemId *arg2 = 0 ;
35036 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
35037 void *argp1 = 0 ;
35038 int res1 = 0 ;
35039 void *argp2 = 0 ;
35040 int res2 = 0 ;
35041 int res3 = 0 ;
35042 PyObject * obj0 = 0 ;
35043 PyObject * obj1 = 0 ;
35044 PyObject * obj2 = 0 ;
35045 char * kwnames[] = {
35046 (char *) "self",(char *) "item",(char *) "data", NULL
35047 };
35048
35049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35051 if (!SWIG_IsOK(res1)) {
35052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35053 }
35054 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35055 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35056 if (!SWIG_IsOK(res2)) {
35057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35058 }
35059 if (!argp2) {
35060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35061 }
35062 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35063 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35064 if (!SWIG_IsOK(res3)) {
35065 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
35066 }
35067 {
35068 PyThreadState* __tstate = wxPyBeginAllowThreads();
35069 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
35070 wxPyEndAllowThreads(__tstate);
35071 if (PyErr_Occurred()) SWIG_fail;
35072 }
35073 resultobj = SWIG_Py_Void();
35074 return resultobj;
35075 fail:
35076 return NULL;
35077 }
35078
35079
35080 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35081 PyObject *resultobj = 0;
35082 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35083 wxTreeItemId *arg2 = 0 ;
35084 PyObject *arg3 = (PyObject *) 0 ;
35085 void *argp1 = 0 ;
35086 int res1 = 0 ;
35087 void *argp2 = 0 ;
35088 int res2 = 0 ;
35089 PyObject * obj0 = 0 ;
35090 PyObject * obj1 = 0 ;
35091 PyObject * obj2 = 0 ;
35092 char * kwnames[] = {
35093 (char *) "self",(char *) "item",(char *) "obj", NULL
35094 };
35095
35096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35098 if (!SWIG_IsOK(res1)) {
35099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35100 }
35101 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35102 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35103 if (!SWIG_IsOK(res2)) {
35104 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35105 }
35106 if (!argp2) {
35107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35108 }
35109 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35110 arg3 = obj2;
35111 {
35112 PyThreadState* __tstate = wxPyBeginAllowThreads();
35113 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
35114 wxPyEndAllowThreads(__tstate);
35115 if (PyErr_Occurred()) SWIG_fail;
35116 }
35117 resultobj = SWIG_Py_Void();
35118 return resultobj;
35119 fail:
35120 return NULL;
35121 }
35122
35123
35124 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35125 PyObject *resultobj = 0;
35126 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35127 wxTreeItemId *arg2 = 0 ;
35128 bool arg3 = (bool) true ;
35129 void *argp1 = 0 ;
35130 int res1 = 0 ;
35131 void *argp2 = 0 ;
35132 int res2 = 0 ;
35133 bool val3 ;
35134 int ecode3 = 0 ;
35135 PyObject * obj0 = 0 ;
35136 PyObject * obj1 = 0 ;
35137 PyObject * obj2 = 0 ;
35138 char * kwnames[] = {
35139 (char *) "self",(char *) "item",(char *) "has", NULL
35140 };
35141
35142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35144 if (!SWIG_IsOK(res1)) {
35145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35146 }
35147 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35148 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35149 if (!SWIG_IsOK(res2)) {
35150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35151 }
35152 if (!argp2) {
35153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35154 }
35155 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35156 if (obj2) {
35157 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35158 if (!SWIG_IsOK(ecode3)) {
35159 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
35160 }
35161 arg3 = static_cast< bool >(val3);
35162 }
35163 {
35164 PyThreadState* __tstate = wxPyBeginAllowThreads();
35165 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
35166 wxPyEndAllowThreads(__tstate);
35167 if (PyErr_Occurred()) SWIG_fail;
35168 }
35169 resultobj = SWIG_Py_Void();
35170 return resultobj;
35171 fail:
35172 return NULL;
35173 }
35174
35175
35176 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35177 PyObject *resultobj = 0;
35178 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35179 wxTreeItemId *arg2 = 0 ;
35180 bool arg3 = (bool) true ;
35181 void *argp1 = 0 ;
35182 int res1 = 0 ;
35183 void *argp2 = 0 ;
35184 int res2 = 0 ;
35185 bool val3 ;
35186 int ecode3 = 0 ;
35187 PyObject * obj0 = 0 ;
35188 PyObject * obj1 = 0 ;
35189 PyObject * obj2 = 0 ;
35190 char * kwnames[] = {
35191 (char *) "self",(char *) "item",(char *) "bold", NULL
35192 };
35193
35194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35196 if (!SWIG_IsOK(res1)) {
35197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35198 }
35199 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35200 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35201 if (!SWIG_IsOK(res2)) {
35202 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35203 }
35204 if (!argp2) {
35205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35206 }
35207 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35208 if (obj2) {
35209 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35210 if (!SWIG_IsOK(ecode3)) {
35211 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35212 }
35213 arg3 = static_cast< bool >(val3);
35214 }
35215 {
35216 PyThreadState* __tstate = wxPyBeginAllowThreads();
35217 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35218 wxPyEndAllowThreads(__tstate);
35219 if (PyErr_Occurred()) SWIG_fail;
35220 }
35221 resultobj = SWIG_Py_Void();
35222 return resultobj;
35223 fail:
35224 return NULL;
35225 }
35226
35227
35228 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35229 PyObject *resultobj = 0;
35230 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35231 wxTreeItemId *arg2 = 0 ;
35232 bool arg3 = (bool) true ;
35233 void *argp1 = 0 ;
35234 int res1 = 0 ;
35235 void *argp2 = 0 ;
35236 int res2 = 0 ;
35237 bool val3 ;
35238 int ecode3 = 0 ;
35239 PyObject * obj0 = 0 ;
35240 PyObject * obj1 = 0 ;
35241 PyObject * obj2 = 0 ;
35242 char * kwnames[] = {
35243 (char *) "self",(char *) "item",(char *) "highlight", NULL
35244 };
35245
35246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35248 if (!SWIG_IsOK(res1)) {
35249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35250 }
35251 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35252 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35253 if (!SWIG_IsOK(res2)) {
35254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35255 }
35256 if (!argp2) {
35257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35258 }
35259 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35260 if (obj2) {
35261 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35262 if (!SWIG_IsOK(ecode3)) {
35263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35264 }
35265 arg3 = static_cast< bool >(val3);
35266 }
35267 {
35268 PyThreadState* __tstate = wxPyBeginAllowThreads();
35269 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35270 wxPyEndAllowThreads(__tstate);
35271 if (PyErr_Occurred()) SWIG_fail;
35272 }
35273 resultobj = SWIG_Py_Void();
35274 return resultobj;
35275 fail:
35276 return NULL;
35277 }
35278
35279
35280 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35281 PyObject *resultobj = 0;
35282 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35283 wxTreeItemId *arg2 = 0 ;
35284 wxColour *arg3 = 0 ;
35285 void *argp1 = 0 ;
35286 int res1 = 0 ;
35287 void *argp2 = 0 ;
35288 int res2 = 0 ;
35289 wxColour temp3 ;
35290 PyObject * obj0 = 0 ;
35291 PyObject * obj1 = 0 ;
35292 PyObject * obj2 = 0 ;
35293 char * kwnames[] = {
35294 (char *) "self",(char *) "item",(char *) "col", NULL
35295 };
35296
35297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35299 if (!SWIG_IsOK(res1)) {
35300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35301 }
35302 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35303 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35304 if (!SWIG_IsOK(res2)) {
35305 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35306 }
35307 if (!argp2) {
35308 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35309 }
35310 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35311 {
35312 arg3 = &temp3;
35313 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35314 }
35315 {
35316 PyThreadState* __tstate = wxPyBeginAllowThreads();
35317 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35318 wxPyEndAllowThreads(__tstate);
35319 if (PyErr_Occurred()) SWIG_fail;
35320 }
35321 resultobj = SWIG_Py_Void();
35322 return resultobj;
35323 fail:
35324 return NULL;
35325 }
35326
35327
35328 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35329 PyObject *resultobj = 0;
35330 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35331 wxTreeItemId *arg2 = 0 ;
35332 wxColour *arg3 = 0 ;
35333 void *argp1 = 0 ;
35334 int res1 = 0 ;
35335 void *argp2 = 0 ;
35336 int res2 = 0 ;
35337 wxColour temp3 ;
35338 PyObject * obj0 = 0 ;
35339 PyObject * obj1 = 0 ;
35340 PyObject * obj2 = 0 ;
35341 char * kwnames[] = {
35342 (char *) "self",(char *) "item",(char *) "col", NULL
35343 };
35344
35345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35347 if (!SWIG_IsOK(res1)) {
35348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35349 }
35350 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35351 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35352 if (!SWIG_IsOK(res2)) {
35353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35354 }
35355 if (!argp2) {
35356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35357 }
35358 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35359 {
35360 arg3 = &temp3;
35361 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35362 }
35363 {
35364 PyThreadState* __tstate = wxPyBeginAllowThreads();
35365 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35366 wxPyEndAllowThreads(__tstate);
35367 if (PyErr_Occurred()) SWIG_fail;
35368 }
35369 resultobj = SWIG_Py_Void();
35370 return resultobj;
35371 fail:
35372 return NULL;
35373 }
35374
35375
35376 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35377 PyObject *resultobj = 0;
35378 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35379 wxTreeItemId *arg2 = 0 ;
35380 wxFont *arg3 = 0 ;
35381 void *argp1 = 0 ;
35382 int res1 = 0 ;
35383 void *argp2 = 0 ;
35384 int res2 = 0 ;
35385 void *argp3 = 0 ;
35386 int res3 = 0 ;
35387 PyObject * obj0 = 0 ;
35388 PyObject * obj1 = 0 ;
35389 PyObject * obj2 = 0 ;
35390 char * kwnames[] = {
35391 (char *) "self",(char *) "item",(char *) "font", NULL
35392 };
35393
35394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35396 if (!SWIG_IsOK(res1)) {
35397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35398 }
35399 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35400 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35401 if (!SWIG_IsOK(res2)) {
35402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35403 }
35404 if (!argp2) {
35405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35406 }
35407 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35408 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35409 if (!SWIG_IsOK(res3)) {
35410 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35411 }
35412 if (!argp3) {
35413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35414 }
35415 arg3 = reinterpret_cast< wxFont * >(argp3);
35416 {
35417 PyThreadState* __tstate = wxPyBeginAllowThreads();
35418 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35419 wxPyEndAllowThreads(__tstate);
35420 if (PyErr_Occurred()) SWIG_fail;
35421 }
35422 resultobj = SWIG_Py_Void();
35423 return resultobj;
35424 fail:
35425 return NULL;
35426 }
35427
35428
35429 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35430 PyObject *resultobj = 0;
35431 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35432 wxTreeItemId *arg2 = 0 ;
35433 bool result;
35434 void *argp1 = 0 ;
35435 int res1 = 0 ;
35436 void *argp2 = 0 ;
35437 int res2 = 0 ;
35438 PyObject * obj0 = 0 ;
35439 PyObject * obj1 = 0 ;
35440 char * kwnames[] = {
35441 (char *) "self",(char *) "item", NULL
35442 };
35443
35444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35446 if (!SWIG_IsOK(res1)) {
35447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35448 }
35449 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35450 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35451 if (!SWIG_IsOK(res2)) {
35452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35453 }
35454 if (!argp2) {
35455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35456 }
35457 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35458 {
35459 PyThreadState* __tstate = wxPyBeginAllowThreads();
35460 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35461 wxPyEndAllowThreads(__tstate);
35462 if (PyErr_Occurred()) SWIG_fail;
35463 }
35464 {
35465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35466 }
35467 return resultobj;
35468 fail:
35469 return NULL;
35470 }
35471
35472
35473 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35474 PyObject *resultobj = 0;
35475 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35476 wxTreeItemId *arg2 = 0 ;
35477 bool result;
35478 void *argp1 = 0 ;
35479 int res1 = 0 ;
35480 void *argp2 = 0 ;
35481 int res2 = 0 ;
35482 PyObject * obj0 = 0 ;
35483 PyObject * obj1 = 0 ;
35484 char * kwnames[] = {
35485 (char *) "self",(char *) "item", NULL
35486 };
35487
35488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35490 if (!SWIG_IsOK(res1)) {
35491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35492 }
35493 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35494 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35495 if (!SWIG_IsOK(res2)) {
35496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35497 }
35498 if (!argp2) {
35499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35500 }
35501 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35502 {
35503 PyThreadState* __tstate = wxPyBeginAllowThreads();
35504 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35505 wxPyEndAllowThreads(__tstate);
35506 if (PyErr_Occurred()) SWIG_fail;
35507 }
35508 {
35509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35510 }
35511 return resultobj;
35512 fail:
35513 return NULL;
35514 }
35515
35516
35517 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35518 PyObject *resultobj = 0;
35519 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35520 wxTreeItemId *arg2 = 0 ;
35521 bool result;
35522 void *argp1 = 0 ;
35523 int res1 = 0 ;
35524 void *argp2 = 0 ;
35525 int res2 = 0 ;
35526 PyObject * obj0 = 0 ;
35527 PyObject * obj1 = 0 ;
35528 char * kwnames[] = {
35529 (char *) "self",(char *) "item", NULL
35530 };
35531
35532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35534 if (!SWIG_IsOK(res1)) {
35535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35536 }
35537 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35538 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35539 if (!SWIG_IsOK(res2)) {
35540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35541 }
35542 if (!argp2) {
35543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35544 }
35545 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35546 {
35547 PyThreadState* __tstate = wxPyBeginAllowThreads();
35548 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35549 wxPyEndAllowThreads(__tstate);
35550 if (PyErr_Occurred()) SWIG_fail;
35551 }
35552 {
35553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35554 }
35555 return resultobj;
35556 fail:
35557 return NULL;
35558 }
35559
35560
35561 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35562 PyObject *resultobj = 0;
35563 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35564 wxTreeItemId *arg2 = 0 ;
35565 bool result;
35566 void *argp1 = 0 ;
35567 int res1 = 0 ;
35568 void *argp2 = 0 ;
35569 int res2 = 0 ;
35570 PyObject * obj0 = 0 ;
35571 PyObject * obj1 = 0 ;
35572 char * kwnames[] = {
35573 (char *) "self",(char *) "item", NULL
35574 };
35575
35576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35578 if (!SWIG_IsOK(res1)) {
35579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35580 }
35581 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35582 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35583 if (!SWIG_IsOK(res2)) {
35584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35585 }
35586 if (!argp2) {
35587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35588 }
35589 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35590 {
35591 PyThreadState* __tstate = wxPyBeginAllowThreads();
35592 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35593 wxPyEndAllowThreads(__tstate);
35594 if (PyErr_Occurred()) SWIG_fail;
35595 }
35596 {
35597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35598 }
35599 return resultobj;
35600 fail:
35601 return NULL;
35602 }
35603
35604
35605 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35606 PyObject *resultobj = 0;
35607 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35608 wxTreeItemId *arg2 = 0 ;
35609 bool result;
35610 void *argp1 = 0 ;
35611 int res1 = 0 ;
35612 void *argp2 = 0 ;
35613 int res2 = 0 ;
35614 PyObject * obj0 = 0 ;
35615 PyObject * obj1 = 0 ;
35616 char * kwnames[] = {
35617 (char *) "self",(char *) "item", NULL
35618 };
35619
35620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35622 if (!SWIG_IsOK(res1)) {
35623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35624 }
35625 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35626 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35627 if (!SWIG_IsOK(res2)) {
35628 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35629 }
35630 if (!argp2) {
35631 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35632 }
35633 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35634 {
35635 PyThreadState* __tstate = wxPyBeginAllowThreads();
35636 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35637 wxPyEndAllowThreads(__tstate);
35638 if (PyErr_Occurred()) SWIG_fail;
35639 }
35640 {
35641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35642 }
35643 return resultobj;
35644 fail:
35645 return NULL;
35646 }
35647
35648
35649 SWIGINTERN PyObject *_wrap_TreeCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35650 PyObject *resultobj = 0;
35651 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35652 bool result;
35653 void *argp1 = 0 ;
35654 int res1 = 0 ;
35655 PyObject *swig_obj[1] ;
35656
35657 if (!args) SWIG_fail;
35658 swig_obj[0] = args;
35659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35660 if (!SWIG_IsOK(res1)) {
35661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35662 }
35663 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35664 {
35665 PyThreadState* __tstate = wxPyBeginAllowThreads();
35666 result = (bool)((wxPyTreeCtrl const *)arg1)->IsEmpty();
35667 wxPyEndAllowThreads(__tstate);
35668 if (PyErr_Occurred()) SWIG_fail;
35669 }
35670 {
35671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35672 }
35673 return resultobj;
35674 fail:
35675 return NULL;
35676 }
35677
35678
35679 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35680 PyObject *resultobj = 0;
35681 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35682 wxTreeItemId *arg2 = 0 ;
35683 bool arg3 = (bool) true ;
35684 size_t result;
35685 void *argp1 = 0 ;
35686 int res1 = 0 ;
35687 void *argp2 = 0 ;
35688 int res2 = 0 ;
35689 bool val3 ;
35690 int ecode3 = 0 ;
35691 PyObject * obj0 = 0 ;
35692 PyObject * obj1 = 0 ;
35693 PyObject * obj2 = 0 ;
35694 char * kwnames[] = {
35695 (char *) "self",(char *) "item",(char *) "recursively", NULL
35696 };
35697
35698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35700 if (!SWIG_IsOK(res1)) {
35701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35702 }
35703 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35704 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35705 if (!SWIG_IsOK(res2)) {
35706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35707 }
35708 if (!argp2) {
35709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35710 }
35711 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35712 if (obj2) {
35713 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35714 if (!SWIG_IsOK(ecode3)) {
35715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35716 }
35717 arg3 = static_cast< bool >(val3);
35718 }
35719 {
35720 PyThreadState* __tstate = wxPyBeginAllowThreads();
35721 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35722 wxPyEndAllowThreads(__tstate);
35723 if (PyErr_Occurred()) SWIG_fail;
35724 }
35725 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35726 return resultobj;
35727 fail:
35728 return NULL;
35729 }
35730
35731
35732 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35733 PyObject *resultobj = 0;
35734 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35735 wxTreeItemId result;
35736 void *argp1 = 0 ;
35737 int res1 = 0 ;
35738 PyObject *swig_obj[1] ;
35739
35740 if (!args) SWIG_fail;
35741 swig_obj[0] = args;
35742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35743 if (!SWIG_IsOK(res1)) {
35744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35745 }
35746 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35747 {
35748 PyThreadState* __tstate = wxPyBeginAllowThreads();
35749 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35750 wxPyEndAllowThreads(__tstate);
35751 if (PyErr_Occurred()) SWIG_fail;
35752 }
35753 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35754 return resultobj;
35755 fail:
35756 return NULL;
35757 }
35758
35759
35760 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35761 PyObject *resultobj = 0;
35762 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35763 wxTreeItemId result;
35764 void *argp1 = 0 ;
35765 int res1 = 0 ;
35766 PyObject *swig_obj[1] ;
35767
35768 if (!args) SWIG_fail;
35769 swig_obj[0] = args;
35770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35771 if (!SWIG_IsOK(res1)) {
35772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35773 }
35774 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35775 {
35776 PyThreadState* __tstate = wxPyBeginAllowThreads();
35777 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35778 wxPyEndAllowThreads(__tstate);
35779 if (PyErr_Occurred()) SWIG_fail;
35780 }
35781 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35782 return resultobj;
35783 fail:
35784 return NULL;
35785 }
35786
35787
35788 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35789 PyObject *resultobj = 0;
35790 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35791 PyObject *result = 0 ;
35792 void *argp1 = 0 ;
35793 int res1 = 0 ;
35794 PyObject *swig_obj[1] ;
35795
35796 if (!args) SWIG_fail;
35797 swig_obj[0] = args;
35798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35799 if (!SWIG_IsOK(res1)) {
35800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35801 }
35802 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35803 {
35804 PyThreadState* __tstate = wxPyBeginAllowThreads();
35805 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35806 wxPyEndAllowThreads(__tstate);
35807 if (PyErr_Occurred()) SWIG_fail;
35808 }
35809 resultobj = result;
35810 return resultobj;
35811 fail:
35812 return NULL;
35813 }
35814
35815
35816 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35817 PyObject *resultobj = 0;
35818 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35819 wxTreeItemId *arg2 = 0 ;
35820 wxTreeItemId result;
35821 void *argp1 = 0 ;
35822 int res1 = 0 ;
35823 void *argp2 = 0 ;
35824 int res2 = 0 ;
35825 PyObject * obj0 = 0 ;
35826 PyObject * obj1 = 0 ;
35827 char * kwnames[] = {
35828 (char *) "self",(char *) "item", NULL
35829 };
35830
35831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35833 if (!SWIG_IsOK(res1)) {
35834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35835 }
35836 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35837 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35838 if (!SWIG_IsOK(res2)) {
35839 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35840 }
35841 if (!argp2) {
35842 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35843 }
35844 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35845 {
35846 PyThreadState* __tstate = wxPyBeginAllowThreads();
35847 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35848 wxPyEndAllowThreads(__tstate);
35849 if (PyErr_Occurred()) SWIG_fail;
35850 }
35851 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35852 return resultobj;
35853 fail:
35854 return NULL;
35855 }
35856
35857
35858 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35859 PyObject *resultobj = 0;
35860 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35861 wxTreeItemId *arg2 = 0 ;
35862 PyObject *result = 0 ;
35863 void *argp1 = 0 ;
35864 int res1 = 0 ;
35865 void *argp2 = 0 ;
35866 int res2 = 0 ;
35867 PyObject * obj0 = 0 ;
35868 PyObject * obj1 = 0 ;
35869 char * kwnames[] = {
35870 (char *) "self",(char *) "item", NULL
35871 };
35872
35873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35875 if (!SWIG_IsOK(res1)) {
35876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35877 }
35878 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35879 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35880 if (!SWIG_IsOK(res2)) {
35881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35882 }
35883 if (!argp2) {
35884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35885 }
35886 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35887 {
35888 PyThreadState* __tstate = wxPyBeginAllowThreads();
35889 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35890 wxPyEndAllowThreads(__tstate);
35891 if (PyErr_Occurred()) SWIG_fail;
35892 }
35893 resultobj = result;
35894 return resultobj;
35895 fail:
35896 return NULL;
35897 }
35898
35899
35900 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35901 PyObject *resultobj = 0;
35902 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35903 wxTreeItemId *arg2 = 0 ;
35904 void *arg3 = (void *) 0 ;
35905 PyObject *result = 0 ;
35906 void *argp1 = 0 ;
35907 int res1 = 0 ;
35908 void *argp2 = 0 ;
35909 int res2 = 0 ;
35910 int res3 ;
35911 PyObject * obj0 = 0 ;
35912 PyObject * obj1 = 0 ;
35913 PyObject * obj2 = 0 ;
35914 char * kwnames[] = {
35915 (char *) "self",(char *) "item",(char *) "cookie", NULL
35916 };
35917
35918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35920 if (!SWIG_IsOK(res1)) {
35921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35922 }
35923 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35924 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35925 if (!SWIG_IsOK(res2)) {
35926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35927 }
35928 if (!argp2) {
35929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35930 }
35931 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35932 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35933 if (!SWIG_IsOK(res3)) {
35934 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35935 }
35936 {
35937 PyThreadState* __tstate = wxPyBeginAllowThreads();
35938 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35939 wxPyEndAllowThreads(__tstate);
35940 if (PyErr_Occurred()) SWIG_fail;
35941 }
35942 resultobj = result;
35943 return resultobj;
35944 fail:
35945 return NULL;
35946 }
35947
35948
35949 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35950 PyObject *resultobj = 0;
35951 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35952 wxTreeItemId *arg2 = 0 ;
35953 wxTreeItemId result;
35954 void *argp1 = 0 ;
35955 int res1 = 0 ;
35956 void *argp2 = 0 ;
35957 int res2 = 0 ;
35958 PyObject * obj0 = 0 ;
35959 PyObject * obj1 = 0 ;
35960 char * kwnames[] = {
35961 (char *) "self",(char *) "item", NULL
35962 };
35963
35964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35966 if (!SWIG_IsOK(res1)) {
35967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35968 }
35969 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35970 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35971 if (!SWIG_IsOK(res2)) {
35972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35973 }
35974 if (!argp2) {
35975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35976 }
35977 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35978 {
35979 PyThreadState* __tstate = wxPyBeginAllowThreads();
35980 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35981 wxPyEndAllowThreads(__tstate);
35982 if (PyErr_Occurred()) SWIG_fail;
35983 }
35984 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35985 return resultobj;
35986 fail:
35987 return NULL;
35988 }
35989
35990
35991 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35992 PyObject *resultobj = 0;
35993 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35994 wxTreeItemId *arg2 = 0 ;
35995 wxTreeItemId result;
35996 void *argp1 = 0 ;
35997 int res1 = 0 ;
35998 void *argp2 = 0 ;
35999 int res2 = 0 ;
36000 PyObject * obj0 = 0 ;
36001 PyObject * obj1 = 0 ;
36002 char * kwnames[] = {
36003 (char *) "self",(char *) "item", NULL
36004 };
36005
36006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
36007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36008 if (!SWIG_IsOK(res1)) {
36009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36010 }
36011 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36012 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36013 if (!SWIG_IsOK(res2)) {
36014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36015 }
36016 if (!argp2) {
36017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36018 }
36019 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36020 {
36021 PyThreadState* __tstate = wxPyBeginAllowThreads();
36022 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
36023 wxPyEndAllowThreads(__tstate);
36024 if (PyErr_Occurred()) SWIG_fail;
36025 }
36026 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36027 return resultobj;
36028 fail:
36029 return NULL;
36030 }
36031
36032
36033 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36034 PyObject *resultobj = 0;
36035 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36036 wxTreeItemId *arg2 = 0 ;
36037 wxTreeItemId result;
36038 void *argp1 = 0 ;
36039 int res1 = 0 ;
36040 void *argp2 = 0 ;
36041 int res2 = 0 ;
36042 PyObject * obj0 = 0 ;
36043 PyObject * obj1 = 0 ;
36044 char * kwnames[] = {
36045 (char *) "self",(char *) "item", NULL
36046 };
36047
36048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
36049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36050 if (!SWIG_IsOK(res1)) {
36051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36052 }
36053 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36054 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36055 if (!SWIG_IsOK(res2)) {
36056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36057 }
36058 if (!argp2) {
36059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36060 }
36061 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36062 {
36063 PyThreadState* __tstate = wxPyBeginAllowThreads();
36064 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
36065 wxPyEndAllowThreads(__tstate);
36066 if (PyErr_Occurred()) SWIG_fail;
36067 }
36068 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36069 return resultobj;
36070 fail:
36071 return NULL;
36072 }
36073
36074
36075 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36076 PyObject *resultobj = 0;
36077 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36078 wxTreeItemId result;
36079 void *argp1 = 0 ;
36080 int res1 = 0 ;
36081 PyObject *swig_obj[1] ;
36082
36083 if (!args) SWIG_fail;
36084 swig_obj[0] = args;
36085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36086 if (!SWIG_IsOK(res1)) {
36087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36088 }
36089 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36090 {
36091 PyThreadState* __tstate = wxPyBeginAllowThreads();
36092 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
36093 wxPyEndAllowThreads(__tstate);
36094 if (PyErr_Occurred()) SWIG_fail;
36095 }
36096 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36097 return resultobj;
36098 fail:
36099 return NULL;
36100 }
36101
36102
36103 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36104 PyObject *resultobj = 0;
36105 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36106 wxTreeItemId *arg2 = 0 ;
36107 wxTreeItemId result;
36108 void *argp1 = 0 ;
36109 int res1 = 0 ;
36110 void *argp2 = 0 ;
36111 int res2 = 0 ;
36112 PyObject * obj0 = 0 ;
36113 PyObject * obj1 = 0 ;
36114 char * kwnames[] = {
36115 (char *) "self",(char *) "item", NULL
36116 };
36117
36118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36120 if (!SWIG_IsOK(res1)) {
36121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36122 }
36123 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36124 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36125 if (!SWIG_IsOK(res2)) {
36126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36127 }
36128 if (!argp2) {
36129 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36130 }
36131 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36132 {
36133 PyThreadState* __tstate = wxPyBeginAllowThreads();
36134 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
36135 wxPyEndAllowThreads(__tstate);
36136 if (PyErr_Occurred()) SWIG_fail;
36137 }
36138 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36139 return resultobj;
36140 fail:
36141 return NULL;
36142 }
36143
36144
36145 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36146 PyObject *resultobj = 0;
36147 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36148 wxTreeItemId *arg2 = 0 ;
36149 wxTreeItemId result;
36150 void *argp1 = 0 ;
36151 int res1 = 0 ;
36152 void *argp2 = 0 ;
36153 int res2 = 0 ;
36154 PyObject * obj0 = 0 ;
36155 PyObject * obj1 = 0 ;
36156 char * kwnames[] = {
36157 (char *) "self",(char *) "item", NULL
36158 };
36159
36160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36162 if (!SWIG_IsOK(res1)) {
36163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36164 }
36165 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36166 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36167 if (!SWIG_IsOK(res2)) {
36168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36169 }
36170 if (!argp2) {
36171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36172 }
36173 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36174 {
36175 PyThreadState* __tstate = wxPyBeginAllowThreads();
36176 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
36177 wxPyEndAllowThreads(__tstate);
36178 if (PyErr_Occurred()) SWIG_fail;
36179 }
36180 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36181 return resultobj;
36182 fail:
36183 return NULL;
36184 }
36185
36186
36187 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36188 PyObject *resultobj = 0;
36189 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36190 wxString *arg2 = 0 ;
36191 int arg3 = (int) -1 ;
36192 int arg4 = (int) -1 ;
36193 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
36194 wxTreeItemId result;
36195 void *argp1 = 0 ;
36196 int res1 = 0 ;
36197 bool temp2 = false ;
36198 int val3 ;
36199 int ecode3 = 0 ;
36200 int val4 ;
36201 int ecode4 = 0 ;
36202 int res5 = 0 ;
36203 PyObject * obj0 = 0 ;
36204 PyObject * obj1 = 0 ;
36205 PyObject * obj2 = 0 ;
36206 PyObject * obj3 = 0 ;
36207 PyObject * obj4 = 0 ;
36208 char * kwnames[] = {
36209 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36210 };
36211
36212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36214 if (!SWIG_IsOK(res1)) {
36215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36216 }
36217 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36218 {
36219 arg2 = wxString_in_helper(obj1);
36220 if (arg2 == NULL) SWIG_fail;
36221 temp2 = true;
36222 }
36223 if (obj2) {
36224 ecode3 = SWIG_AsVal_int(obj2, &val3);
36225 if (!SWIG_IsOK(ecode3)) {
36226 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36227 }
36228 arg3 = static_cast< int >(val3);
36229 }
36230 if (obj3) {
36231 ecode4 = SWIG_AsVal_int(obj3, &val4);
36232 if (!SWIG_IsOK(ecode4)) {
36233 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36234 }
36235 arg4 = static_cast< int >(val4);
36236 }
36237 if (obj4) {
36238 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36239 if (!SWIG_IsOK(res5)) {
36240 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36241 }
36242 }
36243 {
36244 PyThreadState* __tstate = wxPyBeginAllowThreads();
36245 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36246 wxPyEndAllowThreads(__tstate);
36247 if (PyErr_Occurred()) SWIG_fail;
36248 }
36249 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36250 {
36251 if (temp2)
36252 delete arg2;
36253 }
36254 return resultobj;
36255 fail:
36256 {
36257 if (temp2)
36258 delete arg2;
36259 }
36260 return NULL;
36261 }
36262
36263
36264 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36265 PyObject *resultobj = 0;
36266 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36267 wxTreeItemId *arg2 = 0 ;
36268 wxString *arg3 = 0 ;
36269 int arg4 = (int) -1 ;
36270 int arg5 = (int) -1 ;
36271 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36272 wxTreeItemId result;
36273 void *argp1 = 0 ;
36274 int res1 = 0 ;
36275 void *argp2 = 0 ;
36276 int res2 = 0 ;
36277 bool temp3 = false ;
36278 int val4 ;
36279 int ecode4 = 0 ;
36280 int val5 ;
36281 int ecode5 = 0 ;
36282 int res6 = 0 ;
36283 PyObject * obj0 = 0 ;
36284 PyObject * obj1 = 0 ;
36285 PyObject * obj2 = 0 ;
36286 PyObject * obj3 = 0 ;
36287 PyObject * obj4 = 0 ;
36288 PyObject * obj5 = 0 ;
36289 char * kwnames[] = {
36290 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36291 };
36292
36293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36295 if (!SWIG_IsOK(res1)) {
36296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36297 }
36298 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36299 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36300 if (!SWIG_IsOK(res2)) {
36301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36302 }
36303 if (!argp2) {
36304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36305 }
36306 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36307 {
36308 arg3 = wxString_in_helper(obj2);
36309 if (arg3 == NULL) SWIG_fail;
36310 temp3 = true;
36311 }
36312 if (obj3) {
36313 ecode4 = SWIG_AsVal_int(obj3, &val4);
36314 if (!SWIG_IsOK(ecode4)) {
36315 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36316 }
36317 arg4 = static_cast< int >(val4);
36318 }
36319 if (obj4) {
36320 ecode5 = SWIG_AsVal_int(obj4, &val5);
36321 if (!SWIG_IsOK(ecode5)) {
36322 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36323 }
36324 arg5 = static_cast< int >(val5);
36325 }
36326 if (obj5) {
36327 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36328 if (!SWIG_IsOK(res6)) {
36329 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36330 }
36331 }
36332 {
36333 PyThreadState* __tstate = wxPyBeginAllowThreads();
36334 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36335 wxPyEndAllowThreads(__tstate);
36336 if (PyErr_Occurred()) SWIG_fail;
36337 }
36338 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36339 {
36340 if (temp3)
36341 delete arg3;
36342 }
36343 return resultobj;
36344 fail:
36345 {
36346 if (temp3)
36347 delete arg3;
36348 }
36349 return NULL;
36350 }
36351
36352
36353 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36354 PyObject *resultobj = 0;
36355 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36356 wxTreeItemId *arg2 = 0 ;
36357 wxTreeItemId *arg3 = 0 ;
36358 wxString *arg4 = 0 ;
36359 int arg5 = (int) -1 ;
36360 int arg6 = (int) -1 ;
36361 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36362 wxTreeItemId result;
36363 void *argp1 = 0 ;
36364 int res1 = 0 ;
36365 void *argp2 = 0 ;
36366 int res2 = 0 ;
36367 void *argp3 = 0 ;
36368 int res3 = 0 ;
36369 bool temp4 = false ;
36370 int val5 ;
36371 int ecode5 = 0 ;
36372 int val6 ;
36373 int ecode6 = 0 ;
36374 int res7 = 0 ;
36375 PyObject * obj0 = 0 ;
36376 PyObject * obj1 = 0 ;
36377 PyObject * obj2 = 0 ;
36378 PyObject * obj3 = 0 ;
36379 PyObject * obj4 = 0 ;
36380 PyObject * obj5 = 0 ;
36381 PyObject * obj6 = 0 ;
36382 char * kwnames[] = {
36383 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36384 };
36385
36386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36388 if (!SWIG_IsOK(res1)) {
36389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36390 }
36391 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36392 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36393 if (!SWIG_IsOK(res2)) {
36394 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36395 }
36396 if (!argp2) {
36397 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36398 }
36399 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36400 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36401 if (!SWIG_IsOK(res3)) {
36402 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36403 }
36404 if (!argp3) {
36405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36406 }
36407 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36408 {
36409 arg4 = wxString_in_helper(obj3);
36410 if (arg4 == NULL) SWIG_fail;
36411 temp4 = true;
36412 }
36413 if (obj4) {
36414 ecode5 = SWIG_AsVal_int(obj4, &val5);
36415 if (!SWIG_IsOK(ecode5)) {
36416 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36417 }
36418 arg5 = static_cast< int >(val5);
36419 }
36420 if (obj5) {
36421 ecode6 = SWIG_AsVal_int(obj5, &val6);
36422 if (!SWIG_IsOK(ecode6)) {
36423 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36424 }
36425 arg6 = static_cast< int >(val6);
36426 }
36427 if (obj6) {
36428 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36429 if (!SWIG_IsOK(res7)) {
36430 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36431 }
36432 }
36433 {
36434 PyThreadState* __tstate = wxPyBeginAllowThreads();
36435 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36436 wxPyEndAllowThreads(__tstate);
36437 if (PyErr_Occurred()) SWIG_fail;
36438 }
36439 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36440 {
36441 if (temp4)
36442 delete arg4;
36443 }
36444 return resultobj;
36445 fail:
36446 {
36447 if (temp4)
36448 delete arg4;
36449 }
36450 return NULL;
36451 }
36452
36453
36454 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36455 PyObject *resultobj = 0;
36456 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36457 wxTreeItemId *arg2 = 0 ;
36458 size_t arg3 ;
36459 wxString *arg4 = 0 ;
36460 int arg5 = (int) -1 ;
36461 int arg6 = (int) -1 ;
36462 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36463 wxTreeItemId result;
36464 void *argp1 = 0 ;
36465 int res1 = 0 ;
36466 void *argp2 = 0 ;
36467 int res2 = 0 ;
36468 size_t val3 ;
36469 int ecode3 = 0 ;
36470 bool temp4 = false ;
36471 int val5 ;
36472 int ecode5 = 0 ;
36473 int val6 ;
36474 int ecode6 = 0 ;
36475 int res7 = 0 ;
36476 PyObject * obj0 = 0 ;
36477 PyObject * obj1 = 0 ;
36478 PyObject * obj2 = 0 ;
36479 PyObject * obj3 = 0 ;
36480 PyObject * obj4 = 0 ;
36481 PyObject * obj5 = 0 ;
36482 PyObject * obj6 = 0 ;
36483 char * kwnames[] = {
36484 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36485 };
36486
36487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36489 if (!SWIG_IsOK(res1)) {
36490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36491 }
36492 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36493 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36494 if (!SWIG_IsOK(res2)) {
36495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36496 }
36497 if (!argp2) {
36498 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36499 }
36500 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36501 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36502 if (!SWIG_IsOK(ecode3)) {
36503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36504 }
36505 arg3 = static_cast< size_t >(val3);
36506 {
36507 arg4 = wxString_in_helper(obj3);
36508 if (arg4 == NULL) SWIG_fail;
36509 temp4 = true;
36510 }
36511 if (obj4) {
36512 ecode5 = SWIG_AsVal_int(obj4, &val5);
36513 if (!SWIG_IsOK(ecode5)) {
36514 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36515 }
36516 arg5 = static_cast< int >(val5);
36517 }
36518 if (obj5) {
36519 ecode6 = SWIG_AsVal_int(obj5, &val6);
36520 if (!SWIG_IsOK(ecode6)) {
36521 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36522 }
36523 arg6 = static_cast< int >(val6);
36524 }
36525 if (obj6) {
36526 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36527 if (!SWIG_IsOK(res7)) {
36528 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36529 }
36530 }
36531 {
36532 PyThreadState* __tstate = wxPyBeginAllowThreads();
36533 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36534 wxPyEndAllowThreads(__tstate);
36535 if (PyErr_Occurred()) SWIG_fail;
36536 }
36537 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36538 {
36539 if (temp4)
36540 delete arg4;
36541 }
36542 return resultobj;
36543 fail:
36544 {
36545 if (temp4)
36546 delete arg4;
36547 }
36548 return NULL;
36549 }
36550
36551
36552 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36553 PyObject *resultobj = 0;
36554 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36555 wxTreeItemId *arg2 = 0 ;
36556 wxString *arg3 = 0 ;
36557 int arg4 = (int) -1 ;
36558 int arg5 = (int) -1 ;
36559 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36560 wxTreeItemId result;
36561 void *argp1 = 0 ;
36562 int res1 = 0 ;
36563 void *argp2 = 0 ;
36564 int res2 = 0 ;
36565 bool temp3 = false ;
36566 int val4 ;
36567 int ecode4 = 0 ;
36568 int val5 ;
36569 int ecode5 = 0 ;
36570 int res6 = 0 ;
36571 PyObject * obj0 = 0 ;
36572 PyObject * obj1 = 0 ;
36573 PyObject * obj2 = 0 ;
36574 PyObject * obj3 = 0 ;
36575 PyObject * obj4 = 0 ;
36576 PyObject * obj5 = 0 ;
36577 char * kwnames[] = {
36578 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36579 };
36580
36581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36583 if (!SWIG_IsOK(res1)) {
36584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36585 }
36586 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36587 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36588 if (!SWIG_IsOK(res2)) {
36589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36590 }
36591 if (!argp2) {
36592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36593 }
36594 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36595 {
36596 arg3 = wxString_in_helper(obj2);
36597 if (arg3 == NULL) SWIG_fail;
36598 temp3 = true;
36599 }
36600 if (obj3) {
36601 ecode4 = SWIG_AsVal_int(obj3, &val4);
36602 if (!SWIG_IsOK(ecode4)) {
36603 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36604 }
36605 arg4 = static_cast< int >(val4);
36606 }
36607 if (obj4) {
36608 ecode5 = SWIG_AsVal_int(obj4, &val5);
36609 if (!SWIG_IsOK(ecode5)) {
36610 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36611 }
36612 arg5 = static_cast< int >(val5);
36613 }
36614 if (obj5) {
36615 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36616 if (!SWIG_IsOK(res6)) {
36617 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36618 }
36619 }
36620 {
36621 PyThreadState* __tstate = wxPyBeginAllowThreads();
36622 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36623 wxPyEndAllowThreads(__tstate);
36624 if (PyErr_Occurred()) SWIG_fail;
36625 }
36626 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36627 {
36628 if (temp3)
36629 delete arg3;
36630 }
36631 return resultobj;
36632 fail:
36633 {
36634 if (temp3)
36635 delete arg3;
36636 }
36637 return NULL;
36638 }
36639
36640
36641 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36642 PyObject *resultobj = 0;
36643 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36644 wxTreeItemId *arg2 = 0 ;
36645 void *argp1 = 0 ;
36646 int res1 = 0 ;
36647 void *argp2 = 0 ;
36648 int res2 = 0 ;
36649 PyObject * obj0 = 0 ;
36650 PyObject * obj1 = 0 ;
36651 char * kwnames[] = {
36652 (char *) "self",(char *) "item", NULL
36653 };
36654
36655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36657 if (!SWIG_IsOK(res1)) {
36658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36659 }
36660 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36661 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36662 if (!SWIG_IsOK(res2)) {
36663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36664 }
36665 if (!argp2) {
36666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36667 }
36668 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36669 {
36670 PyThreadState* __tstate = wxPyBeginAllowThreads();
36671 (arg1)->Delete((wxTreeItemId const &)*arg2);
36672 wxPyEndAllowThreads(__tstate);
36673 if (PyErr_Occurred()) SWIG_fail;
36674 }
36675 resultobj = SWIG_Py_Void();
36676 return resultobj;
36677 fail:
36678 return NULL;
36679 }
36680
36681
36682 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36683 PyObject *resultobj = 0;
36684 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36685 wxTreeItemId *arg2 = 0 ;
36686 void *argp1 = 0 ;
36687 int res1 = 0 ;
36688 void *argp2 = 0 ;
36689 int res2 = 0 ;
36690 PyObject * obj0 = 0 ;
36691 PyObject * obj1 = 0 ;
36692 char * kwnames[] = {
36693 (char *) "self",(char *) "item", NULL
36694 };
36695
36696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36698 if (!SWIG_IsOK(res1)) {
36699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36700 }
36701 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36702 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36703 if (!SWIG_IsOK(res2)) {
36704 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36705 }
36706 if (!argp2) {
36707 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36708 }
36709 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36710 {
36711 PyThreadState* __tstate = wxPyBeginAllowThreads();
36712 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36713 wxPyEndAllowThreads(__tstate);
36714 if (PyErr_Occurred()) SWIG_fail;
36715 }
36716 resultobj = SWIG_Py_Void();
36717 return resultobj;
36718 fail:
36719 return NULL;
36720 }
36721
36722
36723 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36724 PyObject *resultobj = 0;
36725 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36726 void *argp1 = 0 ;
36727 int res1 = 0 ;
36728 PyObject *swig_obj[1] ;
36729
36730 if (!args) SWIG_fail;
36731 swig_obj[0] = args;
36732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36733 if (!SWIG_IsOK(res1)) {
36734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36735 }
36736 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36737 {
36738 PyThreadState* __tstate = wxPyBeginAllowThreads();
36739 (arg1)->DeleteAllItems();
36740 wxPyEndAllowThreads(__tstate);
36741 if (PyErr_Occurred()) SWIG_fail;
36742 }
36743 resultobj = SWIG_Py_Void();
36744 return resultobj;
36745 fail:
36746 return NULL;
36747 }
36748
36749
36750 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36751 PyObject *resultobj = 0;
36752 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36753 wxTreeItemId *arg2 = 0 ;
36754 void *argp1 = 0 ;
36755 int res1 = 0 ;
36756 void *argp2 = 0 ;
36757 int res2 = 0 ;
36758 PyObject * obj0 = 0 ;
36759 PyObject * obj1 = 0 ;
36760 char * kwnames[] = {
36761 (char *) "self",(char *) "item", NULL
36762 };
36763
36764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36766 if (!SWIG_IsOK(res1)) {
36767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36768 }
36769 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36770 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36771 if (!SWIG_IsOK(res2)) {
36772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36773 }
36774 if (!argp2) {
36775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36776 }
36777 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36778 {
36779 PyThreadState* __tstate = wxPyBeginAllowThreads();
36780 (arg1)->Expand((wxTreeItemId const &)*arg2);
36781 wxPyEndAllowThreads(__tstate);
36782 if (PyErr_Occurred()) SWIG_fail;
36783 }
36784 resultobj = SWIG_Py_Void();
36785 return resultobj;
36786 fail:
36787 return NULL;
36788 }
36789
36790
36791 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36792 PyObject *resultobj = 0;
36793 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36794 wxTreeItemId *arg2 = 0 ;
36795 void *argp1 = 0 ;
36796 int res1 = 0 ;
36797 void *argp2 = 0 ;
36798 int res2 = 0 ;
36799 PyObject * obj0 = 0 ;
36800 PyObject * obj1 = 0 ;
36801 char * kwnames[] = {
36802 (char *) "self",(char *) "item", NULL
36803 };
36804
36805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36807 if (!SWIG_IsOK(res1)) {
36808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36809 }
36810 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36811 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36812 if (!SWIG_IsOK(res2)) {
36813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36814 }
36815 if (!argp2) {
36816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36817 }
36818 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36819 {
36820 PyThreadState* __tstate = wxPyBeginAllowThreads();
36821 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36822 wxPyEndAllowThreads(__tstate);
36823 if (PyErr_Occurred()) SWIG_fail;
36824 }
36825 resultobj = SWIG_Py_Void();
36826 return resultobj;
36827 fail:
36828 return NULL;
36829 }
36830
36831
36832 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36833 PyObject *resultobj = 0;
36834 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36835 void *argp1 = 0 ;
36836 int res1 = 0 ;
36837 PyObject *swig_obj[1] ;
36838
36839 if (!args) SWIG_fail;
36840 swig_obj[0] = args;
36841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36842 if (!SWIG_IsOK(res1)) {
36843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36844 }
36845 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36846 {
36847 PyThreadState* __tstate = wxPyBeginAllowThreads();
36848 (arg1)->ExpandAll();
36849 wxPyEndAllowThreads(__tstate);
36850 if (PyErr_Occurred()) SWIG_fail;
36851 }
36852 resultobj = SWIG_Py_Void();
36853 return resultobj;
36854 fail:
36855 return NULL;
36856 }
36857
36858
36859 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36860 PyObject *resultobj = 0;
36861 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36862 wxTreeItemId *arg2 = 0 ;
36863 void *argp1 = 0 ;
36864 int res1 = 0 ;
36865 void *argp2 = 0 ;
36866 int res2 = 0 ;
36867 PyObject * obj0 = 0 ;
36868 PyObject * obj1 = 0 ;
36869 char * kwnames[] = {
36870 (char *) "self",(char *) "item", NULL
36871 };
36872
36873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36875 if (!SWIG_IsOK(res1)) {
36876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36877 }
36878 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36879 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36880 if (!SWIG_IsOK(res2)) {
36881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36882 }
36883 if (!argp2) {
36884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36885 }
36886 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36887 {
36888 PyThreadState* __tstate = wxPyBeginAllowThreads();
36889 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36890 wxPyEndAllowThreads(__tstate);
36891 if (PyErr_Occurred()) SWIG_fail;
36892 }
36893 resultobj = SWIG_Py_Void();
36894 return resultobj;
36895 fail:
36896 return NULL;
36897 }
36898
36899
36900 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36901 PyObject *resultobj = 0;
36902 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36903 wxTreeItemId *arg2 = 0 ;
36904 void *argp1 = 0 ;
36905 int res1 = 0 ;
36906 void *argp2 = 0 ;
36907 int res2 = 0 ;
36908 PyObject * obj0 = 0 ;
36909 PyObject * obj1 = 0 ;
36910 char * kwnames[] = {
36911 (char *) "self",(char *) "item", NULL
36912 };
36913
36914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36916 if (!SWIG_IsOK(res1)) {
36917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36918 }
36919 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36920 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36921 if (!SWIG_IsOK(res2)) {
36922 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36923 }
36924 if (!argp2) {
36925 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36926 }
36927 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36928 {
36929 PyThreadState* __tstate = wxPyBeginAllowThreads();
36930 (arg1)->CollapseAllChildren((wxTreeItemId const &)*arg2);
36931 wxPyEndAllowThreads(__tstate);
36932 if (PyErr_Occurred()) SWIG_fail;
36933 }
36934 resultobj = SWIG_Py_Void();
36935 return resultobj;
36936 fail:
36937 return NULL;
36938 }
36939
36940
36941 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36942 PyObject *resultobj = 0;
36943 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36944 void *argp1 = 0 ;
36945 int res1 = 0 ;
36946 PyObject *swig_obj[1] ;
36947
36948 if (!args) SWIG_fail;
36949 swig_obj[0] = args;
36950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36951 if (!SWIG_IsOK(res1)) {
36952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36953 }
36954 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36955 {
36956 PyThreadState* __tstate = wxPyBeginAllowThreads();
36957 (arg1)->CollapseAll();
36958 wxPyEndAllowThreads(__tstate);
36959 if (PyErr_Occurred()) SWIG_fail;
36960 }
36961 resultobj = SWIG_Py_Void();
36962 return resultobj;
36963 fail:
36964 return NULL;
36965 }
36966
36967
36968 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36969 PyObject *resultobj = 0;
36970 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36971 wxTreeItemId *arg2 = 0 ;
36972 void *argp1 = 0 ;
36973 int res1 = 0 ;
36974 void *argp2 = 0 ;
36975 int res2 = 0 ;
36976 PyObject * obj0 = 0 ;
36977 PyObject * obj1 = 0 ;
36978 char * kwnames[] = {
36979 (char *) "self",(char *) "item", NULL
36980 };
36981
36982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36984 if (!SWIG_IsOK(res1)) {
36985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36986 }
36987 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36988 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36989 if (!SWIG_IsOK(res2)) {
36990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36991 }
36992 if (!argp2) {
36993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36994 }
36995 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36996 {
36997 PyThreadState* __tstate = wxPyBeginAllowThreads();
36998 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36999 wxPyEndAllowThreads(__tstate);
37000 if (PyErr_Occurred()) SWIG_fail;
37001 }
37002 resultobj = SWIG_Py_Void();
37003 return resultobj;
37004 fail:
37005 return NULL;
37006 }
37007
37008
37009 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37010 PyObject *resultobj = 0;
37011 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37012 wxTreeItemId *arg2 = 0 ;
37013 void *argp1 = 0 ;
37014 int res1 = 0 ;
37015 void *argp2 = 0 ;
37016 int res2 = 0 ;
37017 PyObject * obj0 = 0 ;
37018 PyObject * obj1 = 0 ;
37019 char * kwnames[] = {
37020 (char *) "self",(char *) "item", NULL
37021 };
37022
37023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
37024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37025 if (!SWIG_IsOK(res1)) {
37026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37027 }
37028 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37029 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37030 if (!SWIG_IsOK(res2)) {
37031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37032 }
37033 if (!argp2) {
37034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37035 }
37036 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37037 {
37038 PyThreadState* __tstate = wxPyBeginAllowThreads();
37039 (arg1)->Toggle((wxTreeItemId const &)*arg2);
37040 wxPyEndAllowThreads(__tstate);
37041 if (PyErr_Occurred()) SWIG_fail;
37042 }
37043 resultobj = SWIG_Py_Void();
37044 return resultobj;
37045 fail:
37046 return NULL;
37047 }
37048
37049
37050 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37051 PyObject *resultobj = 0;
37052 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37053 void *argp1 = 0 ;
37054 int res1 = 0 ;
37055 PyObject *swig_obj[1] ;
37056
37057 if (!args) SWIG_fail;
37058 swig_obj[0] = args;
37059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37060 if (!SWIG_IsOK(res1)) {
37061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37062 }
37063 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37064 {
37065 PyThreadState* __tstate = wxPyBeginAllowThreads();
37066 (arg1)->Unselect();
37067 wxPyEndAllowThreads(__tstate);
37068 if (PyErr_Occurred()) SWIG_fail;
37069 }
37070 resultobj = SWIG_Py_Void();
37071 return resultobj;
37072 fail:
37073 return NULL;
37074 }
37075
37076
37077 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37078 PyObject *resultobj = 0;
37079 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37080 wxTreeItemId *arg2 = 0 ;
37081 void *argp1 = 0 ;
37082 int res1 = 0 ;
37083 void *argp2 = 0 ;
37084 int res2 = 0 ;
37085 PyObject * obj0 = 0 ;
37086 PyObject * obj1 = 0 ;
37087 char * kwnames[] = {
37088 (char *) "self",(char *) "item", NULL
37089 };
37090
37091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
37092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37093 if (!SWIG_IsOK(res1)) {
37094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37095 }
37096 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37097 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37098 if (!SWIG_IsOK(res2)) {
37099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37100 }
37101 if (!argp2) {
37102 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37103 }
37104 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37105 {
37106 PyThreadState* __tstate = wxPyBeginAllowThreads();
37107 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
37108 wxPyEndAllowThreads(__tstate);
37109 if (PyErr_Occurred()) SWIG_fail;
37110 }
37111 resultobj = SWIG_Py_Void();
37112 return resultobj;
37113 fail:
37114 return NULL;
37115 }
37116
37117
37118 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37119 PyObject *resultobj = 0;
37120 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37121 void *argp1 = 0 ;
37122 int res1 = 0 ;
37123 PyObject *swig_obj[1] ;
37124
37125 if (!args) SWIG_fail;
37126 swig_obj[0] = args;
37127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37128 if (!SWIG_IsOK(res1)) {
37129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37130 }
37131 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37132 {
37133 PyThreadState* __tstate = wxPyBeginAllowThreads();
37134 (arg1)->UnselectAll();
37135 wxPyEndAllowThreads(__tstate);
37136 if (PyErr_Occurred()) SWIG_fail;
37137 }
37138 resultobj = SWIG_Py_Void();
37139 return resultobj;
37140 fail:
37141 return NULL;
37142 }
37143
37144
37145 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37146 PyObject *resultobj = 0;
37147 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37148 wxTreeItemId *arg2 = 0 ;
37149 bool arg3 = (bool) true ;
37150 void *argp1 = 0 ;
37151 int res1 = 0 ;
37152 void *argp2 = 0 ;
37153 int res2 = 0 ;
37154 bool val3 ;
37155 int ecode3 = 0 ;
37156 PyObject * obj0 = 0 ;
37157 PyObject * obj1 = 0 ;
37158 PyObject * obj2 = 0 ;
37159 char * kwnames[] = {
37160 (char *) "self",(char *) "item",(char *) "select", NULL
37161 };
37162
37163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37165 if (!SWIG_IsOK(res1)) {
37166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37167 }
37168 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37169 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37170 if (!SWIG_IsOK(res2)) {
37171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37172 }
37173 if (!argp2) {
37174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37175 }
37176 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37177 if (obj2) {
37178 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37179 if (!SWIG_IsOK(ecode3)) {
37180 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
37181 }
37182 arg3 = static_cast< bool >(val3);
37183 }
37184 {
37185 PyThreadState* __tstate = wxPyBeginAllowThreads();
37186 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
37187 wxPyEndAllowThreads(__tstate);
37188 if (PyErr_Occurred()) SWIG_fail;
37189 }
37190 resultobj = SWIG_Py_Void();
37191 return resultobj;
37192 fail:
37193 return NULL;
37194 }
37195
37196
37197 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37198 PyObject *resultobj = 0;
37199 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37200 wxTreeItemId *arg2 = 0 ;
37201 void *argp1 = 0 ;
37202 int res1 = 0 ;
37203 void *argp2 = 0 ;
37204 int res2 = 0 ;
37205 PyObject * obj0 = 0 ;
37206 PyObject * obj1 = 0 ;
37207 char * kwnames[] = {
37208 (char *) "self",(char *) "item", NULL
37209 };
37210
37211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
37212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37213 if (!SWIG_IsOK(res1)) {
37214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37215 }
37216 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37217 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37218 if (!SWIG_IsOK(res2)) {
37219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37220 }
37221 if (!argp2) {
37222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37223 }
37224 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37225 {
37226 PyThreadState* __tstate = wxPyBeginAllowThreads();
37227 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
37228 wxPyEndAllowThreads(__tstate);
37229 if (PyErr_Occurred()) SWIG_fail;
37230 }
37231 resultobj = SWIG_Py_Void();
37232 return resultobj;
37233 fail:
37234 return NULL;
37235 }
37236
37237
37238 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37239 PyObject *resultobj = 0;
37240 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37241 wxTreeItemId *arg2 = 0 ;
37242 void *argp1 = 0 ;
37243 int res1 = 0 ;
37244 void *argp2 = 0 ;
37245 int res2 = 0 ;
37246 PyObject * obj0 = 0 ;
37247 PyObject * obj1 = 0 ;
37248 char * kwnames[] = {
37249 (char *) "self",(char *) "item", NULL
37250 };
37251
37252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
37253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37254 if (!SWIG_IsOK(res1)) {
37255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37256 }
37257 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37258 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37259 if (!SWIG_IsOK(res2)) {
37260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37261 }
37262 if (!argp2) {
37263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37264 }
37265 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37266 {
37267 PyThreadState* __tstate = wxPyBeginAllowThreads();
37268 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
37269 wxPyEndAllowThreads(__tstate);
37270 if (PyErr_Occurred()) SWIG_fail;
37271 }
37272 resultobj = SWIG_Py_Void();
37273 return resultobj;
37274 fail:
37275 return NULL;
37276 }
37277
37278
37279 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37280 PyObject *resultobj = 0;
37281 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37282 wxTreeItemId *arg2 = 0 ;
37283 void *argp1 = 0 ;
37284 int res1 = 0 ;
37285 void *argp2 = 0 ;
37286 int res2 = 0 ;
37287 PyObject * obj0 = 0 ;
37288 PyObject * obj1 = 0 ;
37289 char * kwnames[] = {
37290 (char *) "self",(char *) "item", NULL
37291 };
37292
37293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37295 if (!SWIG_IsOK(res1)) {
37296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37297 }
37298 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37299 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37300 if (!SWIG_IsOK(res2)) {
37301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37302 }
37303 if (!argp2) {
37304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37305 }
37306 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37307 {
37308 PyThreadState* __tstate = wxPyBeginAllowThreads();
37309 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37310 wxPyEndAllowThreads(__tstate);
37311 if (PyErr_Occurred()) SWIG_fail;
37312 }
37313 resultobj = SWIG_Py_Void();
37314 return resultobj;
37315 fail:
37316 return NULL;
37317 }
37318
37319
37320 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37321 PyObject *resultobj = 0;
37322 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37323 wxTreeItemId *arg2 = 0 ;
37324 void *argp1 = 0 ;
37325 int res1 = 0 ;
37326 void *argp2 = 0 ;
37327 int res2 = 0 ;
37328 PyObject * obj0 = 0 ;
37329 PyObject * obj1 = 0 ;
37330 char * kwnames[] = {
37331 (char *) "self",(char *) "item", NULL
37332 };
37333
37334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37336 if (!SWIG_IsOK(res1)) {
37337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37338 }
37339 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37340 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37341 if (!SWIG_IsOK(res2)) {
37342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37343 }
37344 if (!argp2) {
37345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37346 }
37347 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37348 {
37349 PyThreadState* __tstate = wxPyBeginAllowThreads();
37350 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37351 wxPyEndAllowThreads(__tstate);
37352 if (PyErr_Occurred()) SWIG_fail;
37353 }
37354 resultobj = SWIG_Py_Void();
37355 return resultobj;
37356 fail:
37357 return NULL;
37358 }
37359
37360
37361 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37362 PyObject *resultobj = 0;
37363 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37364 wxTextCtrl *result = 0 ;
37365 void *argp1 = 0 ;
37366 int res1 = 0 ;
37367 PyObject *swig_obj[1] ;
37368
37369 if (!args) SWIG_fail;
37370 swig_obj[0] = args;
37371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37372 if (!SWIG_IsOK(res1)) {
37373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37374 }
37375 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37376 {
37377 PyThreadState* __tstate = wxPyBeginAllowThreads();
37378 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37379 wxPyEndAllowThreads(__tstate);
37380 if (PyErr_Occurred()) SWIG_fail;
37381 }
37382 {
37383 resultobj = wxPyMake_wxObject(result, 0);
37384 }
37385 return resultobj;
37386 fail:
37387 return NULL;
37388 }
37389
37390
37391 SWIGINTERN PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37392 PyObject *resultobj = 0;
37393 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37394 wxTreeItemId *arg2 = 0 ;
37395 bool arg3 = (bool) false ;
37396 void *argp1 = 0 ;
37397 int res1 = 0 ;
37398 void *argp2 = 0 ;
37399 int res2 = 0 ;
37400 bool val3 ;
37401 int ecode3 = 0 ;
37402 PyObject * obj0 = 0 ;
37403 PyObject * obj1 = 0 ;
37404 PyObject * obj2 = 0 ;
37405 char * kwnames[] = {
37406 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
37407 };
37408
37409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37411 if (!SWIG_IsOK(res1)) {
37412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37413 }
37414 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37415 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37416 if (!SWIG_IsOK(res2)) {
37417 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37418 }
37419 if (!argp2) {
37420 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37421 }
37422 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37423 if (obj2) {
37424 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37425 if (!SWIG_IsOK(ecode3)) {
37426 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "3"" of type '" "bool""'");
37427 }
37428 arg3 = static_cast< bool >(val3);
37429 }
37430 {
37431 PyThreadState* __tstate = wxPyBeginAllowThreads();
37432 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
37433 wxPyEndAllowThreads(__tstate);
37434 if (PyErr_Occurred()) SWIG_fail;
37435 }
37436 resultobj = SWIG_Py_Void();
37437 return resultobj;
37438 fail:
37439 return NULL;
37440 }
37441
37442
37443 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37444 PyObject *resultobj = 0;
37445 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37446 wxTreeItemId *arg2 = 0 ;
37447 void *argp1 = 0 ;
37448 int res1 = 0 ;
37449 void *argp2 = 0 ;
37450 int res2 = 0 ;
37451 PyObject * obj0 = 0 ;
37452 PyObject * obj1 = 0 ;
37453 char * kwnames[] = {
37454 (char *) "self",(char *) "item", NULL
37455 };
37456
37457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37459 if (!SWIG_IsOK(res1)) {
37460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37461 }
37462 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37463 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37464 if (!SWIG_IsOK(res2)) {
37465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37466 }
37467 if (!argp2) {
37468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37469 }
37470 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37471 {
37472 PyThreadState* __tstate = wxPyBeginAllowThreads();
37473 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37474 wxPyEndAllowThreads(__tstate);
37475 if (PyErr_Occurred()) SWIG_fail;
37476 }
37477 resultobj = SWIG_Py_Void();
37478 return resultobj;
37479 fail:
37480 return NULL;
37481 }
37482
37483
37484 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37485 PyObject *resultobj = 0;
37486 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37487 wxPoint *arg2 = 0 ;
37488 int *arg3 = 0 ;
37489 wxTreeItemId result;
37490 void *argp1 = 0 ;
37491 int res1 = 0 ;
37492 wxPoint temp2 ;
37493 int temp3 ;
37494 int res3 = SWIG_TMPOBJ ;
37495 PyObject * obj0 = 0 ;
37496 PyObject * obj1 = 0 ;
37497 char * kwnames[] = {
37498 (char *) "self",(char *) "point", NULL
37499 };
37500
37501 arg3 = &temp3;
37502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37504 if (!SWIG_IsOK(res1)) {
37505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37506 }
37507 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37508 {
37509 arg2 = &temp2;
37510 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37511 }
37512 {
37513 PyThreadState* __tstate = wxPyBeginAllowThreads();
37514 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37515 wxPyEndAllowThreads(__tstate);
37516 if (PyErr_Occurred()) SWIG_fail;
37517 }
37518 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37519 if (SWIG_IsTmpObj(res3)) {
37520 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37521 } else {
37522 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37523 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37524 }
37525 return resultobj;
37526 fail:
37527 return NULL;
37528 }
37529
37530
37531 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37532 PyObject *resultobj = 0;
37533 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37534 wxTreeItemId *arg2 = 0 ;
37535 bool arg3 = (bool) false ;
37536 PyObject *result = 0 ;
37537 void *argp1 = 0 ;
37538 int res1 = 0 ;
37539 void *argp2 = 0 ;
37540 int res2 = 0 ;
37541 bool val3 ;
37542 int ecode3 = 0 ;
37543 PyObject * obj0 = 0 ;
37544 PyObject * obj1 = 0 ;
37545 PyObject * obj2 = 0 ;
37546 char * kwnames[] = {
37547 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37548 };
37549
37550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37552 if (!SWIG_IsOK(res1)) {
37553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37554 }
37555 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37556 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37557 if (!SWIG_IsOK(res2)) {
37558 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37559 }
37560 if (!argp2) {
37561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37562 }
37563 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37564 if (obj2) {
37565 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37566 if (!SWIG_IsOK(ecode3)) {
37567 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37568 }
37569 arg3 = static_cast< bool >(val3);
37570 }
37571 {
37572 PyThreadState* __tstate = wxPyBeginAllowThreads();
37573 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37574 wxPyEndAllowThreads(__tstate);
37575 if (PyErr_Occurred()) SWIG_fail;
37576 }
37577 resultobj = result;
37578 return resultobj;
37579 fail:
37580 return NULL;
37581 }
37582
37583
37584 SWIGINTERN PyObject *_wrap_TreeCtrl_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37585 PyObject *resultobj = 0;
37586 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37587 wxTreeItemId *arg2 = 0 ;
37588 int arg3 ;
37589 void *argp1 = 0 ;
37590 int res1 = 0 ;
37591 void *argp2 = 0 ;
37592 int res2 = 0 ;
37593 int val3 ;
37594 int ecode3 = 0 ;
37595 PyObject * obj0 = 0 ;
37596 PyObject * obj1 = 0 ;
37597 PyObject * obj2 = 0 ;
37598 char * kwnames[] = {
37599 (char *) "self",(char *) "node",(char *) "state", NULL
37600 };
37601
37602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37604 if (!SWIG_IsOK(res1)) {
37605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37606 }
37607 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37608 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37609 if (!SWIG_IsOK(res2)) {
37610 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37611 }
37612 if (!argp2) {
37613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37614 }
37615 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37616 ecode3 = SWIG_AsVal_int(obj2, &val3);
37617 if (!SWIG_IsOK(ecode3)) {
37618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetState" "', expected argument " "3"" of type '" "int""'");
37619 }
37620 arg3 = static_cast< int >(val3);
37621 {
37622 PyThreadState* __tstate = wxPyBeginAllowThreads();
37623 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
37624 wxPyEndAllowThreads(__tstate);
37625 if (PyErr_Occurred()) SWIG_fail;
37626 }
37627 resultobj = SWIG_Py_Void();
37628 return resultobj;
37629 fail:
37630 return NULL;
37631 }
37632
37633
37634 SWIGINTERN PyObject *_wrap_TreeCtrl_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37635 PyObject *resultobj = 0;
37636 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37637 wxTreeItemId *arg2 = 0 ;
37638 int result;
37639 void *argp1 = 0 ;
37640 int res1 = 0 ;
37641 void *argp2 = 0 ;
37642 int res2 = 0 ;
37643 PyObject * obj0 = 0 ;
37644 PyObject * obj1 = 0 ;
37645 char * kwnames[] = {
37646 (char *) "self",(char *) "node", NULL
37647 };
37648
37649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) SWIG_fail;
37650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37651 if (!SWIG_IsOK(res1)) {
37652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37653 }
37654 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37655 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37656 if (!SWIG_IsOK(res2)) {
37657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37658 }
37659 if (!argp2) {
37660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37661 }
37662 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37663 {
37664 PyThreadState* __tstate = wxPyBeginAllowThreads();
37665 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
37666 wxPyEndAllowThreads(__tstate);
37667 if (PyErr_Occurred()) SWIG_fail;
37668 }
37669 resultobj = SWIG_From_int(static_cast< int >(result));
37670 return resultobj;
37671 fail:
37672 return NULL;
37673 }
37674
37675
37676 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37677 PyObject *resultobj = 0;
37678 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37679 SwigValueWrapper<wxVisualAttributes > result;
37680 int val1 ;
37681 int ecode1 = 0 ;
37682 PyObject * obj0 = 0 ;
37683 char * kwnames[] = {
37684 (char *) "variant", NULL
37685 };
37686
37687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37688 if (obj0) {
37689 ecode1 = SWIG_AsVal_int(obj0, &val1);
37690 if (!SWIG_IsOK(ecode1)) {
37691 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37692 }
37693 arg1 = static_cast< wxWindowVariant >(val1);
37694 }
37695 {
37696 if (!wxPyCheckForApp()) SWIG_fail;
37697 PyThreadState* __tstate = wxPyBeginAllowThreads();
37698 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37699 wxPyEndAllowThreads(__tstate);
37700 if (PyErr_Occurred()) SWIG_fail;
37701 }
37702 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37703 return resultobj;
37704 fail:
37705 return NULL;
37706 }
37707
37708
37709 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37710 PyObject *resultobj = 0;
37711 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37712 bool arg2 ;
37713 void *argp1 = 0 ;
37714 int res1 = 0 ;
37715 bool val2 ;
37716 int ecode2 = 0 ;
37717 PyObject * obj0 = 0 ;
37718 PyObject * obj1 = 0 ;
37719 char * kwnames[] = {
37720 (char *) "self",(char *) "q", NULL
37721 };
37722
37723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37725 if (!SWIG_IsOK(res1)) {
37726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37727 }
37728 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37729 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37730 if (!SWIG_IsOK(ecode2)) {
37731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37732 }
37733 arg2 = static_cast< bool >(val2);
37734 {
37735 PyThreadState* __tstate = wxPyBeginAllowThreads();
37736 (arg1)->SetQuickBestSize(arg2);
37737 wxPyEndAllowThreads(__tstate);
37738 if (PyErr_Occurred()) SWIG_fail;
37739 }
37740 resultobj = SWIG_Py_Void();
37741 return resultobj;
37742 fail:
37743 return NULL;
37744 }
37745
37746
37747 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37748 PyObject *resultobj = 0;
37749 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37750 bool result;
37751 void *argp1 = 0 ;
37752 int res1 = 0 ;
37753 PyObject *swig_obj[1] ;
37754
37755 if (!args) SWIG_fail;
37756 swig_obj[0] = args;
37757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37758 if (!SWIG_IsOK(res1)) {
37759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37760 }
37761 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37762 {
37763 PyThreadState* __tstate = wxPyBeginAllowThreads();
37764 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37765 wxPyEndAllowThreads(__tstate);
37766 if (PyErr_Occurred()) SWIG_fail;
37767 }
37768 {
37769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37770 }
37771 return resultobj;
37772 fail:
37773 return NULL;
37774 }
37775
37776
37777 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37778 PyObject *obj;
37779 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37780 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37781 return SWIG_Py_Void();
37782 }
37783
37784 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37785 return SWIG_Python_InitShadowInstance(args);
37786 }
37787
37788 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37789 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37790 return 1;
37791 }
37792
37793
37794 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37795 PyObject *pyobj = 0;
37796
37797 {
37798 #if wxUSE_UNICODE
37799 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37800 #else
37801 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37802 #endif
37803 }
37804 return pyobj;
37805 }
37806
37807
37808 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37809 PyObject *resultobj = 0;
37810 wxWindow *arg1 = (wxWindow *) 0 ;
37811 int arg2 = (int) (int)-1 ;
37812 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37813 wxString *arg3 = (wxString *) &arg3_defvalue ;
37814 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37815 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37816 wxSize const &arg5_defvalue = wxDefaultSize ;
37817 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37818 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37819 wxString const &arg7_defvalue = wxPyEmptyString ;
37820 wxString *arg7 = (wxString *) &arg7_defvalue ;
37821 int arg8 = (int) 0 ;
37822 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37823 wxString *arg9 = (wxString *) &arg9_defvalue ;
37824 wxGenericDirCtrl *result = 0 ;
37825 void *argp1 = 0 ;
37826 int res1 = 0 ;
37827 int val2 ;
37828 int ecode2 = 0 ;
37829 bool temp3 = false ;
37830 wxPoint temp4 ;
37831 wxSize temp5 ;
37832 long val6 ;
37833 int ecode6 = 0 ;
37834 bool temp7 = false ;
37835 int val8 ;
37836 int ecode8 = 0 ;
37837 bool temp9 = false ;
37838 PyObject * obj0 = 0 ;
37839 PyObject * obj1 = 0 ;
37840 PyObject * obj2 = 0 ;
37841 PyObject * obj3 = 0 ;
37842 PyObject * obj4 = 0 ;
37843 PyObject * obj5 = 0 ;
37844 PyObject * obj6 = 0 ;
37845 PyObject * obj7 = 0 ;
37846 PyObject * obj8 = 0 ;
37847 char * kwnames[] = {
37848 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37849 };
37850
37851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37853 if (!SWIG_IsOK(res1)) {
37854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37855 }
37856 arg1 = reinterpret_cast< wxWindow * >(argp1);
37857 if (obj1) {
37858 ecode2 = SWIG_AsVal_int(obj1, &val2);
37859 if (!SWIG_IsOK(ecode2)) {
37860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37861 }
37862 arg2 = static_cast< int >(val2);
37863 }
37864 if (obj2) {
37865 {
37866 arg3 = wxString_in_helper(obj2);
37867 if (arg3 == NULL) SWIG_fail;
37868 temp3 = true;
37869 }
37870 }
37871 if (obj3) {
37872 {
37873 arg4 = &temp4;
37874 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37875 }
37876 }
37877 if (obj4) {
37878 {
37879 arg5 = &temp5;
37880 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37881 }
37882 }
37883 if (obj5) {
37884 ecode6 = SWIG_AsVal_long(obj5, &val6);
37885 if (!SWIG_IsOK(ecode6)) {
37886 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37887 }
37888 arg6 = static_cast< long >(val6);
37889 }
37890 if (obj6) {
37891 {
37892 arg7 = wxString_in_helper(obj6);
37893 if (arg7 == NULL) SWIG_fail;
37894 temp7 = true;
37895 }
37896 }
37897 if (obj7) {
37898 ecode8 = SWIG_AsVal_int(obj7, &val8);
37899 if (!SWIG_IsOK(ecode8)) {
37900 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37901 }
37902 arg8 = static_cast< int >(val8);
37903 }
37904 if (obj8) {
37905 {
37906 arg9 = wxString_in_helper(obj8);
37907 if (arg9 == NULL) SWIG_fail;
37908 temp9 = true;
37909 }
37910 }
37911 {
37912 if (!wxPyCheckForApp()) SWIG_fail;
37913 PyThreadState* __tstate = wxPyBeginAllowThreads();
37914 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37915 wxPyEndAllowThreads(__tstate);
37916 if (PyErr_Occurred()) SWIG_fail;
37917 }
37918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37919 {
37920 if (temp3)
37921 delete arg3;
37922 }
37923 {
37924 if (temp7)
37925 delete arg7;
37926 }
37927 {
37928 if (temp9)
37929 delete arg9;
37930 }
37931 return resultobj;
37932 fail:
37933 {
37934 if (temp3)
37935 delete arg3;
37936 }
37937 {
37938 if (temp7)
37939 delete arg7;
37940 }
37941 {
37942 if (temp9)
37943 delete arg9;
37944 }
37945 return NULL;
37946 }
37947
37948
37949 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37950 PyObject *resultobj = 0;
37951 wxGenericDirCtrl *result = 0 ;
37952
37953 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37954 {
37955 if (!wxPyCheckForApp()) SWIG_fail;
37956 PyThreadState* __tstate = wxPyBeginAllowThreads();
37957 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37958 wxPyEndAllowThreads(__tstate);
37959 if (PyErr_Occurred()) SWIG_fail;
37960 }
37961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37962 return resultobj;
37963 fail:
37964 return NULL;
37965 }
37966
37967
37968 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37969 PyObject *resultobj = 0;
37970 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37971 wxWindow *arg2 = (wxWindow *) 0 ;
37972 int arg3 = (int) (int)-1 ;
37973 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37974 wxString *arg4 = (wxString *) &arg4_defvalue ;
37975 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37976 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37977 wxSize const &arg6_defvalue = wxDefaultSize ;
37978 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37979 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37980 wxString const &arg8_defvalue = wxPyEmptyString ;
37981 wxString *arg8 = (wxString *) &arg8_defvalue ;
37982 int arg9 = (int) 0 ;
37983 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37984 wxString *arg10 = (wxString *) &arg10_defvalue ;
37985 bool result;
37986 void *argp1 = 0 ;
37987 int res1 = 0 ;
37988 void *argp2 = 0 ;
37989 int res2 = 0 ;
37990 int val3 ;
37991 int ecode3 = 0 ;
37992 bool temp4 = false ;
37993 wxPoint temp5 ;
37994 wxSize temp6 ;
37995 long val7 ;
37996 int ecode7 = 0 ;
37997 bool temp8 = false ;
37998 int val9 ;
37999 int ecode9 = 0 ;
38000 bool temp10 = false ;
38001 PyObject * obj0 = 0 ;
38002 PyObject * obj1 = 0 ;
38003 PyObject * obj2 = 0 ;
38004 PyObject * obj3 = 0 ;
38005 PyObject * obj4 = 0 ;
38006 PyObject * obj5 = 0 ;
38007 PyObject * obj6 = 0 ;
38008 PyObject * obj7 = 0 ;
38009 PyObject * obj8 = 0 ;
38010 PyObject * obj9 = 0 ;
38011 char * kwnames[] = {
38012 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
38013 };
38014
38015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
38016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38017 if (!SWIG_IsOK(res1)) {
38018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38019 }
38020 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38021 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
38022 if (!SWIG_IsOK(res2)) {
38023 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
38024 }
38025 arg2 = reinterpret_cast< wxWindow * >(argp2);
38026 if (obj2) {
38027 ecode3 = SWIG_AsVal_int(obj2, &val3);
38028 if (!SWIG_IsOK(ecode3)) {
38029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38030 }
38031 arg3 = static_cast< int >(val3);
38032 }
38033 if (obj3) {
38034 {
38035 arg4 = wxString_in_helper(obj3);
38036 if (arg4 == NULL) SWIG_fail;
38037 temp4 = true;
38038 }
38039 }
38040 if (obj4) {
38041 {
38042 arg5 = &temp5;
38043 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
38044 }
38045 }
38046 if (obj5) {
38047 {
38048 arg6 = &temp6;
38049 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
38050 }
38051 }
38052 if (obj6) {
38053 ecode7 = SWIG_AsVal_long(obj6, &val7);
38054 if (!SWIG_IsOK(ecode7)) {
38055 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
38056 }
38057 arg7 = static_cast< long >(val7);
38058 }
38059 if (obj7) {
38060 {
38061 arg8 = wxString_in_helper(obj7);
38062 if (arg8 == NULL) SWIG_fail;
38063 temp8 = true;
38064 }
38065 }
38066 if (obj8) {
38067 ecode9 = SWIG_AsVal_int(obj8, &val9);
38068 if (!SWIG_IsOK(ecode9)) {
38069 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
38070 }
38071 arg9 = static_cast< int >(val9);
38072 }
38073 if (obj9) {
38074 {
38075 arg10 = wxString_in_helper(obj9);
38076 if (arg10 == NULL) SWIG_fail;
38077 temp10 = true;
38078 }
38079 }
38080 {
38081 PyThreadState* __tstate = wxPyBeginAllowThreads();
38082 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
38083 wxPyEndAllowThreads(__tstate);
38084 if (PyErr_Occurred()) SWIG_fail;
38085 }
38086 {
38087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38088 }
38089 {
38090 if (temp4)
38091 delete arg4;
38092 }
38093 {
38094 if (temp8)
38095 delete arg8;
38096 }
38097 {
38098 if (temp10)
38099 delete arg10;
38100 }
38101 return resultobj;
38102 fail:
38103 {
38104 if (temp4)
38105 delete arg4;
38106 }
38107 {
38108 if (temp8)
38109 delete arg8;
38110 }
38111 {
38112 if (temp10)
38113 delete arg10;
38114 }
38115 return NULL;
38116 }
38117
38118
38119 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38120 PyObject *resultobj = 0;
38121 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38122 wxString *arg2 = 0 ;
38123 bool result;
38124 void *argp1 = 0 ;
38125 int res1 = 0 ;
38126 bool temp2 = false ;
38127 PyObject * obj0 = 0 ;
38128 PyObject * obj1 = 0 ;
38129 char * kwnames[] = {
38130 (char *) "self",(char *) "path", NULL
38131 };
38132
38133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
38134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38135 if (!SWIG_IsOK(res1)) {
38136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38137 }
38138 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38139 {
38140 arg2 = wxString_in_helper(obj1);
38141 if (arg2 == NULL) SWIG_fail;
38142 temp2 = true;
38143 }
38144 {
38145 PyThreadState* __tstate = wxPyBeginAllowThreads();
38146 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
38147 wxPyEndAllowThreads(__tstate);
38148 if (PyErr_Occurred()) SWIG_fail;
38149 }
38150 {
38151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38152 }
38153 {
38154 if (temp2)
38155 delete arg2;
38156 }
38157 return resultobj;
38158 fail:
38159 {
38160 if (temp2)
38161 delete arg2;
38162 }
38163 return NULL;
38164 }
38165
38166
38167 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38168 PyObject *resultobj = 0;
38169 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38170 wxString *arg2 = 0 ;
38171 bool result;
38172 void *argp1 = 0 ;
38173 int res1 = 0 ;
38174 bool temp2 = false ;
38175 PyObject * obj0 = 0 ;
38176 PyObject * obj1 = 0 ;
38177 char * kwnames[] = {
38178 (char *) "self",(char *) "path", NULL
38179 };
38180
38181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
38182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38183 if (!SWIG_IsOK(res1)) {
38184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38185 }
38186 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38187 {
38188 arg2 = wxString_in_helper(obj1);
38189 if (arg2 == NULL) SWIG_fail;
38190 temp2 = true;
38191 }
38192 {
38193 PyThreadState* __tstate = wxPyBeginAllowThreads();
38194 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
38195 wxPyEndAllowThreads(__tstate);
38196 if (PyErr_Occurred()) SWIG_fail;
38197 }
38198 {
38199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38200 }
38201 {
38202 if (temp2)
38203 delete arg2;
38204 }
38205 return resultobj;
38206 fail:
38207 {
38208 if (temp2)
38209 delete arg2;
38210 }
38211 return NULL;
38212 }
38213
38214
38215 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38216 PyObject *resultobj = 0;
38217 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38218 wxString result;
38219 void *argp1 = 0 ;
38220 int res1 = 0 ;
38221 PyObject *swig_obj[1] ;
38222
38223 if (!args) SWIG_fail;
38224 swig_obj[0] = args;
38225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38226 if (!SWIG_IsOK(res1)) {
38227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38228 }
38229 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38230 {
38231 PyThreadState* __tstate = wxPyBeginAllowThreads();
38232 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
38233 wxPyEndAllowThreads(__tstate);
38234 if (PyErr_Occurred()) SWIG_fail;
38235 }
38236 {
38237 #if wxUSE_UNICODE
38238 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38239 #else
38240 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38241 #endif
38242 }
38243 return resultobj;
38244 fail:
38245 return NULL;
38246 }
38247
38248
38249 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38250 PyObject *resultobj = 0;
38251 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38252 wxString *arg2 = 0 ;
38253 void *argp1 = 0 ;
38254 int res1 = 0 ;
38255 bool temp2 = false ;
38256 PyObject * obj0 = 0 ;
38257 PyObject * obj1 = 0 ;
38258 char * kwnames[] = {
38259 (char *) "self",(char *) "path", NULL
38260 };
38261
38262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
38263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38264 if (!SWIG_IsOK(res1)) {
38265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38266 }
38267 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38268 {
38269 arg2 = wxString_in_helper(obj1);
38270 if (arg2 == NULL) SWIG_fail;
38271 temp2 = true;
38272 }
38273 {
38274 PyThreadState* __tstate = wxPyBeginAllowThreads();
38275 (arg1)->SetDefaultPath((wxString const &)*arg2);
38276 wxPyEndAllowThreads(__tstate);
38277 if (PyErr_Occurred()) SWIG_fail;
38278 }
38279 resultobj = SWIG_Py_Void();
38280 {
38281 if (temp2)
38282 delete arg2;
38283 }
38284 return resultobj;
38285 fail:
38286 {
38287 if (temp2)
38288 delete arg2;
38289 }
38290 return NULL;
38291 }
38292
38293
38294 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38295 PyObject *resultobj = 0;
38296 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38297 wxString result;
38298 void *argp1 = 0 ;
38299 int res1 = 0 ;
38300 PyObject *swig_obj[1] ;
38301
38302 if (!args) SWIG_fail;
38303 swig_obj[0] = args;
38304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38305 if (!SWIG_IsOK(res1)) {
38306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38307 }
38308 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38309 {
38310 PyThreadState* __tstate = wxPyBeginAllowThreads();
38311 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
38312 wxPyEndAllowThreads(__tstate);
38313 if (PyErr_Occurred()) SWIG_fail;
38314 }
38315 {
38316 #if wxUSE_UNICODE
38317 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38318 #else
38319 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38320 #endif
38321 }
38322 return resultobj;
38323 fail:
38324 return NULL;
38325 }
38326
38327
38328 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38329 PyObject *resultobj = 0;
38330 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38331 wxString result;
38332 void *argp1 = 0 ;
38333 int res1 = 0 ;
38334 PyObject *swig_obj[1] ;
38335
38336 if (!args) SWIG_fail;
38337 swig_obj[0] = args;
38338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38339 if (!SWIG_IsOK(res1)) {
38340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38341 }
38342 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38343 {
38344 PyThreadState* __tstate = wxPyBeginAllowThreads();
38345 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
38346 wxPyEndAllowThreads(__tstate);
38347 if (PyErr_Occurred()) SWIG_fail;
38348 }
38349 {
38350 #if wxUSE_UNICODE
38351 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38352 #else
38353 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38354 #endif
38355 }
38356 return resultobj;
38357 fail:
38358 return NULL;
38359 }
38360
38361
38362 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38363 PyObject *resultobj = 0;
38364 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38365 wxString *arg2 = 0 ;
38366 void *argp1 = 0 ;
38367 int res1 = 0 ;
38368 bool temp2 = false ;
38369 PyObject * obj0 = 0 ;
38370 PyObject * obj1 = 0 ;
38371 char * kwnames[] = {
38372 (char *) "self",(char *) "path", NULL
38373 };
38374
38375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
38376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38377 if (!SWIG_IsOK(res1)) {
38378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38379 }
38380 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38381 {
38382 arg2 = wxString_in_helper(obj1);
38383 if (arg2 == NULL) SWIG_fail;
38384 temp2 = true;
38385 }
38386 {
38387 PyThreadState* __tstate = wxPyBeginAllowThreads();
38388 (arg1)->SetPath((wxString const &)*arg2);
38389 wxPyEndAllowThreads(__tstate);
38390 if (PyErr_Occurred()) SWIG_fail;
38391 }
38392 resultobj = SWIG_Py_Void();
38393 {
38394 if (temp2)
38395 delete arg2;
38396 }
38397 return resultobj;
38398 fail:
38399 {
38400 if (temp2)
38401 delete arg2;
38402 }
38403 return NULL;
38404 }
38405
38406
38407 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38408 PyObject *resultobj = 0;
38409 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38410 bool arg2 ;
38411 void *argp1 = 0 ;
38412 int res1 = 0 ;
38413 bool val2 ;
38414 int ecode2 = 0 ;
38415 PyObject * obj0 = 0 ;
38416 PyObject * obj1 = 0 ;
38417 char * kwnames[] = {
38418 (char *) "self",(char *) "show", NULL
38419 };
38420
38421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
38422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38423 if (!SWIG_IsOK(res1)) {
38424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38425 }
38426 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38427 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38428 if (!SWIG_IsOK(ecode2)) {
38429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38430 }
38431 arg2 = static_cast< bool >(val2);
38432 {
38433 PyThreadState* __tstate = wxPyBeginAllowThreads();
38434 (arg1)->ShowHidden(arg2);
38435 wxPyEndAllowThreads(__tstate);
38436 if (PyErr_Occurred()) SWIG_fail;
38437 }
38438 resultobj = SWIG_Py_Void();
38439 return resultobj;
38440 fail:
38441 return NULL;
38442 }
38443
38444
38445 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38446 PyObject *resultobj = 0;
38447 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38448 bool result;
38449 void *argp1 = 0 ;
38450 int res1 = 0 ;
38451 PyObject *swig_obj[1] ;
38452
38453 if (!args) SWIG_fail;
38454 swig_obj[0] = args;
38455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38456 if (!SWIG_IsOK(res1)) {
38457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38458 }
38459 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38460 {
38461 PyThreadState* __tstate = wxPyBeginAllowThreads();
38462 result = (bool)(arg1)->GetShowHidden();
38463 wxPyEndAllowThreads(__tstate);
38464 if (PyErr_Occurred()) SWIG_fail;
38465 }
38466 {
38467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38468 }
38469 return resultobj;
38470 fail:
38471 return NULL;
38472 }
38473
38474
38475 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38476 PyObject *resultobj = 0;
38477 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38478 wxString result;
38479 void *argp1 = 0 ;
38480 int res1 = 0 ;
38481 PyObject *swig_obj[1] ;
38482
38483 if (!args) SWIG_fail;
38484 swig_obj[0] = args;
38485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38486 if (!SWIG_IsOK(res1)) {
38487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38488 }
38489 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38490 {
38491 PyThreadState* __tstate = wxPyBeginAllowThreads();
38492 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38493 wxPyEndAllowThreads(__tstate);
38494 if (PyErr_Occurred()) SWIG_fail;
38495 }
38496 {
38497 #if wxUSE_UNICODE
38498 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38499 #else
38500 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38501 #endif
38502 }
38503 return resultobj;
38504 fail:
38505 return NULL;
38506 }
38507
38508
38509 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38510 PyObject *resultobj = 0;
38511 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38512 wxString *arg2 = 0 ;
38513 void *argp1 = 0 ;
38514 int res1 = 0 ;
38515 bool temp2 = false ;
38516 PyObject * obj0 = 0 ;
38517 PyObject * obj1 = 0 ;
38518 char * kwnames[] = {
38519 (char *) "self",(char *) "filter", NULL
38520 };
38521
38522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38524 if (!SWIG_IsOK(res1)) {
38525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38526 }
38527 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38528 {
38529 arg2 = wxString_in_helper(obj1);
38530 if (arg2 == NULL) SWIG_fail;
38531 temp2 = true;
38532 }
38533 {
38534 PyThreadState* __tstate = wxPyBeginAllowThreads();
38535 (arg1)->SetFilter((wxString const &)*arg2);
38536 wxPyEndAllowThreads(__tstate);
38537 if (PyErr_Occurred()) SWIG_fail;
38538 }
38539 resultobj = SWIG_Py_Void();
38540 {
38541 if (temp2)
38542 delete arg2;
38543 }
38544 return resultobj;
38545 fail:
38546 {
38547 if (temp2)
38548 delete arg2;
38549 }
38550 return NULL;
38551 }
38552
38553
38554 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38555 PyObject *resultobj = 0;
38556 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38557 int result;
38558 void *argp1 = 0 ;
38559 int res1 = 0 ;
38560 PyObject *swig_obj[1] ;
38561
38562 if (!args) SWIG_fail;
38563 swig_obj[0] = args;
38564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38565 if (!SWIG_IsOK(res1)) {
38566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38567 }
38568 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38569 {
38570 PyThreadState* __tstate = wxPyBeginAllowThreads();
38571 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38572 wxPyEndAllowThreads(__tstate);
38573 if (PyErr_Occurred()) SWIG_fail;
38574 }
38575 resultobj = SWIG_From_int(static_cast< int >(result));
38576 return resultobj;
38577 fail:
38578 return NULL;
38579 }
38580
38581
38582 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38583 PyObject *resultobj = 0;
38584 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38585 int arg2 ;
38586 void *argp1 = 0 ;
38587 int res1 = 0 ;
38588 int val2 ;
38589 int ecode2 = 0 ;
38590 PyObject * obj0 = 0 ;
38591 PyObject * obj1 = 0 ;
38592 char * kwnames[] = {
38593 (char *) "self",(char *) "n", NULL
38594 };
38595
38596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38598 if (!SWIG_IsOK(res1)) {
38599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38600 }
38601 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38602 ecode2 = SWIG_AsVal_int(obj1, &val2);
38603 if (!SWIG_IsOK(ecode2)) {
38604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38605 }
38606 arg2 = static_cast< int >(val2);
38607 {
38608 PyThreadState* __tstate = wxPyBeginAllowThreads();
38609 (arg1)->SetFilterIndex(arg2);
38610 wxPyEndAllowThreads(__tstate);
38611 if (PyErr_Occurred()) SWIG_fail;
38612 }
38613 resultobj = SWIG_Py_Void();
38614 return resultobj;
38615 fail:
38616 return NULL;
38617 }
38618
38619
38620 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38621 PyObject *resultobj = 0;
38622 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38623 wxTreeItemId result;
38624 void *argp1 = 0 ;
38625 int res1 = 0 ;
38626 PyObject *swig_obj[1] ;
38627
38628 if (!args) SWIG_fail;
38629 swig_obj[0] = args;
38630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38631 if (!SWIG_IsOK(res1)) {
38632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38633 }
38634 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38635 {
38636 PyThreadState* __tstate = wxPyBeginAllowThreads();
38637 result = (arg1)->GetRootId();
38638 wxPyEndAllowThreads(__tstate);
38639 if (PyErr_Occurred()) SWIG_fail;
38640 }
38641 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38642 return resultobj;
38643 fail:
38644 return NULL;
38645 }
38646
38647
38648 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38649 PyObject *resultobj = 0;
38650 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38651 wxPyTreeCtrl *result = 0 ;
38652 void *argp1 = 0 ;
38653 int res1 = 0 ;
38654 PyObject *swig_obj[1] ;
38655
38656 if (!args) SWIG_fail;
38657 swig_obj[0] = args;
38658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38659 if (!SWIG_IsOK(res1)) {
38660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38661 }
38662 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38663 {
38664 PyThreadState* __tstate = wxPyBeginAllowThreads();
38665 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38666 wxPyEndAllowThreads(__tstate);
38667 if (PyErr_Occurred()) SWIG_fail;
38668 }
38669 {
38670 resultobj = wxPyMake_wxObject(result, 0);
38671 }
38672 return resultobj;
38673 fail:
38674 return NULL;
38675 }
38676
38677
38678 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38679 PyObject *resultobj = 0;
38680 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38681 wxDirFilterListCtrl *result = 0 ;
38682 void *argp1 = 0 ;
38683 int res1 = 0 ;
38684 PyObject *swig_obj[1] ;
38685
38686 if (!args) SWIG_fail;
38687 swig_obj[0] = args;
38688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38689 if (!SWIG_IsOK(res1)) {
38690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38691 }
38692 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38693 {
38694 PyThreadState* __tstate = wxPyBeginAllowThreads();
38695 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38696 wxPyEndAllowThreads(__tstate);
38697 if (PyErr_Occurred()) SWIG_fail;
38698 }
38699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38700 return resultobj;
38701 fail:
38702 return NULL;
38703 }
38704
38705
38706 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38707 PyObject *resultobj = 0;
38708 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38709 wxTreeItemId arg2 ;
38710 wxString *arg3 = 0 ;
38711 bool *arg4 = 0 ;
38712 wxTreeItemId result;
38713 void *argp1 = 0 ;
38714 int res1 = 0 ;
38715 void *argp2 ;
38716 int res2 = 0 ;
38717 bool temp3 = false ;
38718 bool temp4 ;
38719 int res4 = SWIG_TMPOBJ ;
38720 PyObject * obj0 = 0 ;
38721 PyObject * obj1 = 0 ;
38722 PyObject * obj2 = 0 ;
38723 char * kwnames[] = {
38724 (char *) "self",(char *) "parentId",(char *) "path", NULL
38725 };
38726
38727 arg4 = &temp4;
38728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38730 if (!SWIG_IsOK(res1)) {
38731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38732 }
38733 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38734 {
38735 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38736 if (!SWIG_IsOK(res2)) {
38737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38738 }
38739 if (!argp2) {
38740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38741 } else {
38742 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38743 arg2 = *temp;
38744 if (SWIG_IsNewObj(res2)) delete temp;
38745 }
38746 }
38747 {
38748 arg3 = wxString_in_helper(obj2);
38749 if (arg3 == NULL) SWIG_fail;
38750 temp3 = true;
38751 }
38752 {
38753 PyThreadState* __tstate = wxPyBeginAllowThreads();
38754 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38755 wxPyEndAllowThreads(__tstate);
38756 if (PyErr_Occurred()) SWIG_fail;
38757 }
38758 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38759 if (SWIG_IsTmpObj(res4)) {
38760 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38761 } else {
38762 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38763 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38764 }
38765 {
38766 if (temp3)
38767 delete arg3;
38768 }
38769 return resultobj;
38770 fail:
38771 {
38772 if (temp3)
38773 delete arg3;
38774 }
38775 return NULL;
38776 }
38777
38778
38779 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38780 PyObject *resultobj = 0;
38781 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38782 void *argp1 = 0 ;
38783 int res1 = 0 ;
38784 PyObject *swig_obj[1] ;
38785
38786 if (!args) SWIG_fail;
38787 swig_obj[0] = args;
38788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38789 if (!SWIG_IsOK(res1)) {
38790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38791 }
38792 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38793 {
38794 PyThreadState* __tstate = wxPyBeginAllowThreads();
38795 (arg1)->DoResize();
38796 wxPyEndAllowThreads(__tstate);
38797 if (PyErr_Occurred()) SWIG_fail;
38798 }
38799 resultobj = SWIG_Py_Void();
38800 return resultobj;
38801 fail:
38802 return NULL;
38803 }
38804
38805
38806 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38807 PyObject *resultobj = 0;
38808 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38809 void *argp1 = 0 ;
38810 int res1 = 0 ;
38811 PyObject *swig_obj[1] ;
38812
38813 if (!args) SWIG_fail;
38814 swig_obj[0] = args;
38815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38816 if (!SWIG_IsOK(res1)) {
38817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38818 }
38819 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38820 {
38821 PyThreadState* __tstate = wxPyBeginAllowThreads();
38822 (arg1)->ReCreateTree();
38823 wxPyEndAllowThreads(__tstate);
38824 if (PyErr_Occurred()) SWIG_fail;
38825 }
38826 resultobj = SWIG_Py_Void();
38827 return resultobj;
38828 fail:
38829 return NULL;
38830 }
38831
38832
38833 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38834 PyObject *obj;
38835 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38836 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38837 return SWIG_Py_Void();
38838 }
38839
38840 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38841 return SWIG_Python_InitShadowInstance(args);
38842 }
38843
38844 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38845 PyObject *resultobj = 0;
38846 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38847 int arg2 = (int) (int)-1 ;
38848 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38849 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38850 wxSize const &arg4_defvalue = wxDefaultSize ;
38851 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38852 long arg5 = (long) 0 ;
38853 wxDirFilterListCtrl *result = 0 ;
38854 void *argp1 = 0 ;
38855 int res1 = 0 ;
38856 int val2 ;
38857 int ecode2 = 0 ;
38858 wxPoint temp3 ;
38859 wxSize temp4 ;
38860 long val5 ;
38861 int ecode5 = 0 ;
38862 PyObject * obj0 = 0 ;
38863 PyObject * obj1 = 0 ;
38864 PyObject * obj2 = 0 ;
38865 PyObject * obj3 = 0 ;
38866 PyObject * obj4 = 0 ;
38867 char * kwnames[] = {
38868 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38869 };
38870
38871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38873 if (!SWIG_IsOK(res1)) {
38874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38875 }
38876 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38877 if (obj1) {
38878 ecode2 = SWIG_AsVal_int(obj1, &val2);
38879 if (!SWIG_IsOK(ecode2)) {
38880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38881 }
38882 arg2 = static_cast< int >(val2);
38883 }
38884 if (obj2) {
38885 {
38886 arg3 = &temp3;
38887 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38888 }
38889 }
38890 if (obj3) {
38891 {
38892 arg4 = &temp4;
38893 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38894 }
38895 }
38896 if (obj4) {
38897 ecode5 = SWIG_AsVal_long(obj4, &val5);
38898 if (!SWIG_IsOK(ecode5)) {
38899 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38900 }
38901 arg5 = static_cast< long >(val5);
38902 }
38903 {
38904 if (!wxPyCheckForApp()) SWIG_fail;
38905 PyThreadState* __tstate = wxPyBeginAllowThreads();
38906 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38907 wxPyEndAllowThreads(__tstate);
38908 if (PyErr_Occurred()) SWIG_fail;
38909 }
38910 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38911 return resultobj;
38912 fail:
38913 return NULL;
38914 }
38915
38916
38917 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38918 PyObject *resultobj = 0;
38919 wxDirFilterListCtrl *result = 0 ;
38920
38921 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38922 {
38923 if (!wxPyCheckForApp()) SWIG_fail;
38924 PyThreadState* __tstate = wxPyBeginAllowThreads();
38925 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38926 wxPyEndAllowThreads(__tstate);
38927 if (PyErr_Occurred()) SWIG_fail;
38928 }
38929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38930 return resultobj;
38931 fail:
38932 return NULL;
38933 }
38934
38935
38936 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38937 PyObject *resultobj = 0;
38938 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38939 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38940 int arg3 = (int) (int)-1 ;
38941 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38942 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38943 wxSize const &arg5_defvalue = wxDefaultSize ;
38944 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38945 long arg6 = (long) 0 ;
38946 bool result;
38947 void *argp1 = 0 ;
38948 int res1 = 0 ;
38949 void *argp2 = 0 ;
38950 int res2 = 0 ;
38951 int val3 ;
38952 int ecode3 = 0 ;
38953 wxPoint temp4 ;
38954 wxSize temp5 ;
38955 long val6 ;
38956 int ecode6 = 0 ;
38957 PyObject * obj0 = 0 ;
38958 PyObject * obj1 = 0 ;
38959 PyObject * obj2 = 0 ;
38960 PyObject * obj3 = 0 ;
38961 PyObject * obj4 = 0 ;
38962 PyObject * obj5 = 0 ;
38963 char * kwnames[] = {
38964 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38965 };
38966
38967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38969 if (!SWIG_IsOK(res1)) {
38970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38971 }
38972 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38973 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38974 if (!SWIG_IsOK(res2)) {
38975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38976 }
38977 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38978 if (obj2) {
38979 ecode3 = SWIG_AsVal_int(obj2, &val3);
38980 if (!SWIG_IsOK(ecode3)) {
38981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38982 }
38983 arg3 = static_cast< int >(val3);
38984 }
38985 if (obj3) {
38986 {
38987 arg4 = &temp4;
38988 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38989 }
38990 }
38991 if (obj4) {
38992 {
38993 arg5 = &temp5;
38994 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38995 }
38996 }
38997 if (obj5) {
38998 ecode6 = SWIG_AsVal_long(obj5, &val6);
38999 if (!SWIG_IsOK(ecode6)) {
39000 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
39001 }
39002 arg6 = static_cast< long >(val6);
39003 }
39004 {
39005 PyThreadState* __tstate = wxPyBeginAllowThreads();
39006 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
39007 wxPyEndAllowThreads(__tstate);
39008 if (PyErr_Occurred()) SWIG_fail;
39009 }
39010 {
39011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39012 }
39013 return resultobj;
39014 fail:
39015 return NULL;
39016 }
39017
39018
39019 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39020 PyObject *resultobj = 0;
39021 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
39022 wxString *arg2 = 0 ;
39023 int arg3 ;
39024 void *argp1 = 0 ;
39025 int res1 = 0 ;
39026 bool temp2 = false ;
39027 int val3 ;
39028 int ecode3 = 0 ;
39029 PyObject * obj0 = 0 ;
39030 PyObject * obj1 = 0 ;
39031 PyObject * obj2 = 0 ;
39032 char * kwnames[] = {
39033 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
39034 };
39035
39036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
39038 if (!SWIG_IsOK(res1)) {
39039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
39040 }
39041 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
39042 {
39043 arg2 = wxString_in_helper(obj1);
39044 if (arg2 == NULL) SWIG_fail;
39045 temp2 = true;
39046 }
39047 ecode3 = SWIG_AsVal_int(obj2, &val3);
39048 if (!SWIG_IsOK(ecode3)) {
39049 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
39050 }
39051 arg3 = static_cast< int >(val3);
39052 {
39053 PyThreadState* __tstate = wxPyBeginAllowThreads();
39054 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
39055 wxPyEndAllowThreads(__tstate);
39056 if (PyErr_Occurred()) SWIG_fail;
39057 }
39058 resultobj = SWIG_Py_Void();
39059 {
39060 if (temp2)
39061 delete arg2;
39062 }
39063 return resultobj;
39064 fail:
39065 {
39066 if (temp2)
39067 delete arg2;
39068 }
39069 return NULL;
39070 }
39071
39072
39073 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39074 PyObject *obj;
39075 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39076 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
39077 return SWIG_Py_Void();
39078 }
39079
39080 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39081 return SWIG_Python_InitShadowInstance(args);
39082 }
39083
39084 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39085 PyObject *resultobj = 0;
39086 wxWindow *arg1 = (wxWindow *) 0 ;
39087 int arg2 = (int) (int)-1 ;
39088 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39089 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39090 wxSize const &arg4_defvalue = wxDefaultSize ;
39091 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39092 long arg5 = (long) 0 ;
39093 wxValidator const &arg6_defvalue = wxDefaultValidator ;
39094 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
39095 wxString const &arg7_defvalue = wxPyControlNameStr ;
39096 wxString *arg7 = (wxString *) &arg7_defvalue ;
39097 wxPyControl *result = 0 ;
39098 void *argp1 = 0 ;
39099 int res1 = 0 ;
39100 int val2 ;
39101 int ecode2 = 0 ;
39102 wxPoint temp3 ;
39103 wxSize temp4 ;
39104 long val5 ;
39105 int ecode5 = 0 ;
39106 void *argp6 = 0 ;
39107 int res6 = 0 ;
39108 bool temp7 = false ;
39109 PyObject * obj0 = 0 ;
39110 PyObject * obj1 = 0 ;
39111 PyObject * obj2 = 0 ;
39112 PyObject * obj3 = 0 ;
39113 PyObject * obj4 = 0 ;
39114 PyObject * obj5 = 0 ;
39115 PyObject * obj6 = 0 ;
39116 char * kwnames[] = {
39117 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
39118 };
39119
39120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
39121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39122 if (!SWIG_IsOK(res1)) {
39123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
39124 }
39125 arg1 = reinterpret_cast< wxWindow * >(argp1);
39126 if (obj1) {
39127 ecode2 = SWIG_AsVal_int(obj1, &val2);
39128 if (!SWIG_IsOK(ecode2)) {
39129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
39130 }
39131 arg2 = static_cast< int >(val2);
39132 }
39133 if (obj2) {
39134 {
39135 arg3 = &temp3;
39136 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39137 }
39138 }
39139 if (obj3) {
39140 {
39141 arg4 = &temp4;
39142 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39143 }
39144 }
39145 if (obj4) {
39146 ecode5 = SWIG_AsVal_long(obj4, &val5);
39147 if (!SWIG_IsOK(ecode5)) {
39148 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
39149 }
39150 arg5 = static_cast< long >(val5);
39151 }
39152 if (obj5) {
39153 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
39154 if (!SWIG_IsOK(res6)) {
39155 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
39156 }
39157 if (!argp6) {
39158 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
39159 }
39160 arg6 = reinterpret_cast< wxValidator * >(argp6);
39161 }
39162 if (obj6) {
39163 {
39164 arg7 = wxString_in_helper(obj6);
39165 if (arg7 == NULL) SWIG_fail;
39166 temp7 = true;
39167 }
39168 }
39169 {
39170 if (!wxPyCheckForApp()) SWIG_fail;
39171 PyThreadState* __tstate = wxPyBeginAllowThreads();
39172 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
39173 wxPyEndAllowThreads(__tstate);
39174 if (PyErr_Occurred()) SWIG_fail;
39175 }
39176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
39177 {
39178 if (temp7)
39179 delete arg7;
39180 }
39181 return resultobj;
39182 fail:
39183 {
39184 if (temp7)
39185 delete arg7;
39186 }
39187 return NULL;
39188 }
39189
39190
39191 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39192 PyObject *resultobj = 0;
39193 wxPyControl *result = 0 ;
39194
39195 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
39196 {
39197 if (!wxPyCheckForApp()) SWIG_fail;
39198 PyThreadState* __tstate = wxPyBeginAllowThreads();
39199 result = (wxPyControl *)new wxPyControl();
39200 wxPyEndAllowThreads(__tstate);
39201 if (PyErr_Occurred()) SWIG_fail;
39202 }
39203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
39204 return resultobj;
39205 fail:
39206 return NULL;
39207 }
39208
39209
39210 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39211 PyObject *resultobj = 0;
39212 wxPyControl *arg1 = (wxPyControl *) 0 ;
39213 PyObject *arg2 = (PyObject *) 0 ;
39214 PyObject *arg3 = (PyObject *) 0 ;
39215 void *argp1 = 0 ;
39216 int res1 = 0 ;
39217 PyObject * obj0 = 0 ;
39218 PyObject * obj1 = 0 ;
39219 PyObject * obj2 = 0 ;
39220 char * kwnames[] = {
39221 (char *) "self",(char *) "self",(char *) "_class", NULL
39222 };
39223
39224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39226 if (!SWIG_IsOK(res1)) {
39227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
39228 }
39229 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39230 arg2 = obj1;
39231 arg3 = obj2;
39232 {
39233 PyThreadState* __tstate = wxPyBeginAllowThreads();
39234 (arg1)->_setCallbackInfo(arg2,arg3);
39235 wxPyEndAllowThreads(__tstate);
39236 if (PyErr_Occurred()) SWIG_fail;
39237 }
39238 resultobj = SWIG_Py_Void();
39239 return resultobj;
39240 fail:
39241 return NULL;
39242 }
39243
39244
39245 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39246 PyObject *resultobj = 0;
39247 wxPyControl *arg1 = (wxPyControl *) 0 ;
39248 wxDC *arg2 = (wxDC *) 0 ;
39249 bool result;
39250 void *argp1 = 0 ;
39251 int res1 = 0 ;
39252 void *argp2 = 0 ;
39253 int res2 = 0 ;
39254 PyObject * obj0 = 0 ;
39255 PyObject * obj1 = 0 ;
39256 char * kwnames[] = {
39257 (char *) "self",(char *) "dc", NULL
39258 };
39259
39260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39262 if (!SWIG_IsOK(res1)) {
39263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
39264 }
39265 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39266 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
39267 if (!SWIG_IsOK(res2)) {
39268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
39269 }
39270 arg2 = reinterpret_cast< wxDC * >(argp2);
39271 {
39272 PyThreadState* __tstate = wxPyBeginAllowThreads();
39273 result = (bool)(arg1)->DoEraseBackground(arg2);
39274 wxPyEndAllowThreads(__tstate);
39275 if (PyErr_Occurred()) SWIG_fail;
39276 }
39277 {
39278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39279 }
39280 return resultobj;
39281 fail:
39282 return NULL;
39283 }
39284
39285
39286 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39287 PyObject *resultobj = 0;
39288 wxPyControl *arg1 = (wxPyControl *) 0 ;
39289 int arg2 ;
39290 int arg3 ;
39291 int arg4 ;
39292 int arg5 ;
39293 void *argp1 = 0 ;
39294 int res1 = 0 ;
39295 int val2 ;
39296 int ecode2 = 0 ;
39297 int val3 ;
39298 int ecode3 = 0 ;
39299 int val4 ;
39300 int ecode4 = 0 ;
39301 int val5 ;
39302 int ecode5 = 0 ;
39303 PyObject * obj0 = 0 ;
39304 PyObject * obj1 = 0 ;
39305 PyObject * obj2 = 0 ;
39306 PyObject * obj3 = 0 ;
39307 PyObject * obj4 = 0 ;
39308 char * kwnames[] = {
39309 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
39310 };
39311
39312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39314 if (!SWIG_IsOK(res1)) {
39315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
39316 }
39317 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39318 ecode2 = SWIG_AsVal_int(obj1, &val2);
39319 if (!SWIG_IsOK(ecode2)) {
39320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
39321 }
39322 arg2 = static_cast< int >(val2);
39323 ecode3 = SWIG_AsVal_int(obj2, &val3);
39324 if (!SWIG_IsOK(ecode3)) {
39325 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
39326 }
39327 arg3 = static_cast< int >(val3);
39328 ecode4 = SWIG_AsVal_int(obj3, &val4);
39329 if (!SWIG_IsOK(ecode4)) {
39330 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
39331 }
39332 arg4 = static_cast< int >(val4);
39333 ecode5 = SWIG_AsVal_int(obj4, &val5);
39334 if (!SWIG_IsOK(ecode5)) {
39335 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
39336 }
39337 arg5 = static_cast< int >(val5);
39338 {
39339 PyThreadState* __tstate = wxPyBeginAllowThreads();
39340 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
39341 wxPyEndAllowThreads(__tstate);
39342 if (PyErr_Occurred()) SWIG_fail;
39343 }
39344 resultobj = SWIG_Py_Void();
39345 return resultobj;
39346 fail:
39347 return NULL;
39348 }
39349
39350
39351 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39352 PyObject *resultobj = 0;
39353 wxPyControl *arg1 = (wxPyControl *) 0 ;
39354 int arg2 ;
39355 int arg3 ;
39356 int arg4 ;
39357 int arg5 ;
39358 int arg6 = (int) wxSIZE_AUTO ;
39359 void *argp1 = 0 ;
39360 int res1 = 0 ;
39361 int val2 ;
39362 int ecode2 = 0 ;
39363 int val3 ;
39364 int ecode3 = 0 ;
39365 int val4 ;
39366 int ecode4 = 0 ;
39367 int val5 ;
39368 int ecode5 = 0 ;
39369 int val6 ;
39370 int ecode6 = 0 ;
39371 PyObject * obj0 = 0 ;
39372 PyObject * obj1 = 0 ;
39373 PyObject * obj2 = 0 ;
39374 PyObject * obj3 = 0 ;
39375 PyObject * obj4 = 0 ;
39376 PyObject * obj5 = 0 ;
39377 char * kwnames[] = {
39378 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
39379 };
39380
39381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39383 if (!SWIG_IsOK(res1)) {
39384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39385 }
39386 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39387 ecode2 = SWIG_AsVal_int(obj1, &val2);
39388 if (!SWIG_IsOK(ecode2)) {
39389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
39390 }
39391 arg2 = static_cast< int >(val2);
39392 ecode3 = SWIG_AsVal_int(obj2, &val3);
39393 if (!SWIG_IsOK(ecode3)) {
39394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
39395 }
39396 arg3 = static_cast< int >(val3);
39397 ecode4 = SWIG_AsVal_int(obj3, &val4);
39398 if (!SWIG_IsOK(ecode4)) {
39399 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39400 }
39401 arg4 = static_cast< int >(val4);
39402 ecode5 = SWIG_AsVal_int(obj4, &val5);
39403 if (!SWIG_IsOK(ecode5)) {
39404 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39405 }
39406 arg5 = static_cast< int >(val5);
39407 if (obj5) {
39408 ecode6 = SWIG_AsVal_int(obj5, &val6);
39409 if (!SWIG_IsOK(ecode6)) {
39410 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39411 }
39412 arg6 = static_cast< int >(val6);
39413 }
39414 {
39415 PyThreadState* __tstate = wxPyBeginAllowThreads();
39416 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39417 wxPyEndAllowThreads(__tstate);
39418 if (PyErr_Occurred()) SWIG_fail;
39419 }
39420 resultobj = SWIG_Py_Void();
39421 return resultobj;
39422 fail:
39423 return NULL;
39424 }
39425
39426
39427 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39428 PyObject *resultobj = 0;
39429 wxPyControl *arg1 = (wxPyControl *) 0 ;
39430 int arg2 ;
39431 int arg3 ;
39432 void *argp1 = 0 ;
39433 int res1 = 0 ;
39434 int val2 ;
39435 int ecode2 = 0 ;
39436 int val3 ;
39437 int ecode3 = 0 ;
39438 PyObject * obj0 = 0 ;
39439 PyObject * obj1 = 0 ;
39440 PyObject * obj2 = 0 ;
39441 char * kwnames[] = {
39442 (char *) "self",(char *) "width",(char *) "height", NULL
39443 };
39444
39445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39447 if (!SWIG_IsOK(res1)) {
39448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39449 }
39450 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39451 ecode2 = SWIG_AsVal_int(obj1, &val2);
39452 if (!SWIG_IsOK(ecode2)) {
39453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39454 }
39455 arg2 = static_cast< int >(val2);
39456 ecode3 = SWIG_AsVal_int(obj2, &val3);
39457 if (!SWIG_IsOK(ecode3)) {
39458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39459 }
39460 arg3 = static_cast< int >(val3);
39461 {
39462 PyThreadState* __tstate = wxPyBeginAllowThreads();
39463 (arg1)->DoSetClientSize(arg2,arg3);
39464 wxPyEndAllowThreads(__tstate);
39465 if (PyErr_Occurred()) SWIG_fail;
39466 }
39467 resultobj = SWIG_Py_Void();
39468 return resultobj;
39469 fail:
39470 return NULL;
39471 }
39472
39473
39474 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39475 PyObject *resultobj = 0;
39476 wxPyControl *arg1 = (wxPyControl *) 0 ;
39477 int arg2 ;
39478 int arg3 ;
39479 void *argp1 = 0 ;
39480 int res1 = 0 ;
39481 int val2 ;
39482 int ecode2 = 0 ;
39483 int val3 ;
39484 int ecode3 = 0 ;
39485 PyObject * obj0 = 0 ;
39486 PyObject * obj1 = 0 ;
39487 PyObject * obj2 = 0 ;
39488 char * kwnames[] = {
39489 (char *) "self",(char *) "x",(char *) "y", NULL
39490 };
39491
39492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39494 if (!SWIG_IsOK(res1)) {
39495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39496 }
39497 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39498 ecode2 = SWIG_AsVal_int(obj1, &val2);
39499 if (!SWIG_IsOK(ecode2)) {
39500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39501 }
39502 arg2 = static_cast< int >(val2);
39503 ecode3 = SWIG_AsVal_int(obj2, &val3);
39504 if (!SWIG_IsOK(ecode3)) {
39505 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39506 }
39507 arg3 = static_cast< int >(val3);
39508 {
39509 PyThreadState* __tstate = wxPyBeginAllowThreads();
39510 (arg1)->DoSetVirtualSize(arg2,arg3);
39511 wxPyEndAllowThreads(__tstate);
39512 if (PyErr_Occurred()) SWIG_fail;
39513 }
39514 resultobj = SWIG_Py_Void();
39515 return resultobj;
39516 fail:
39517 return NULL;
39518 }
39519
39520
39521 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39522 PyObject *resultobj = 0;
39523 wxPyControl *arg1 = (wxPyControl *) 0 ;
39524 int *arg2 = (int *) 0 ;
39525 int *arg3 = (int *) 0 ;
39526 void *argp1 = 0 ;
39527 int res1 = 0 ;
39528 int temp2 ;
39529 int res2 = SWIG_TMPOBJ ;
39530 int temp3 ;
39531 int res3 = SWIG_TMPOBJ ;
39532 PyObject *swig_obj[1] ;
39533
39534 arg2 = &temp2;
39535 arg3 = &temp3;
39536 if (!args) SWIG_fail;
39537 swig_obj[0] = args;
39538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39539 if (!SWIG_IsOK(res1)) {
39540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39541 }
39542 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39543 {
39544 PyThreadState* __tstate = wxPyBeginAllowThreads();
39545 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39546 wxPyEndAllowThreads(__tstate);
39547 if (PyErr_Occurred()) SWIG_fail;
39548 }
39549 resultobj = SWIG_Py_Void();
39550 if (SWIG_IsTmpObj(res2)) {
39551 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39552 } else {
39553 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39554 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39555 }
39556 if (SWIG_IsTmpObj(res3)) {
39557 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39558 } else {
39559 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39560 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39561 }
39562 return resultobj;
39563 fail:
39564 return NULL;
39565 }
39566
39567
39568 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39569 PyObject *resultobj = 0;
39570 wxPyControl *arg1 = (wxPyControl *) 0 ;
39571 int *arg2 = (int *) 0 ;
39572 int *arg3 = (int *) 0 ;
39573 void *argp1 = 0 ;
39574 int res1 = 0 ;
39575 int temp2 ;
39576 int res2 = SWIG_TMPOBJ ;
39577 int temp3 ;
39578 int res3 = SWIG_TMPOBJ ;
39579 PyObject *swig_obj[1] ;
39580
39581 arg2 = &temp2;
39582 arg3 = &temp3;
39583 if (!args) SWIG_fail;
39584 swig_obj[0] = args;
39585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39586 if (!SWIG_IsOK(res1)) {
39587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39588 }
39589 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39590 {
39591 PyThreadState* __tstate = wxPyBeginAllowThreads();
39592 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39593 wxPyEndAllowThreads(__tstate);
39594 if (PyErr_Occurred()) SWIG_fail;
39595 }
39596 resultobj = SWIG_Py_Void();
39597 if (SWIG_IsTmpObj(res2)) {
39598 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39599 } else {
39600 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39601 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39602 }
39603 if (SWIG_IsTmpObj(res3)) {
39604 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39605 } else {
39606 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39607 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39608 }
39609 return resultobj;
39610 fail:
39611 return NULL;
39612 }
39613
39614
39615 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39616 PyObject *resultobj = 0;
39617 wxPyControl *arg1 = (wxPyControl *) 0 ;
39618 int *arg2 = (int *) 0 ;
39619 int *arg3 = (int *) 0 ;
39620 void *argp1 = 0 ;
39621 int res1 = 0 ;
39622 int temp2 ;
39623 int res2 = SWIG_TMPOBJ ;
39624 int temp3 ;
39625 int res3 = SWIG_TMPOBJ ;
39626 PyObject *swig_obj[1] ;
39627
39628 arg2 = &temp2;
39629 arg3 = &temp3;
39630 if (!args) SWIG_fail;
39631 swig_obj[0] = args;
39632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39633 if (!SWIG_IsOK(res1)) {
39634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39635 }
39636 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39637 {
39638 PyThreadState* __tstate = wxPyBeginAllowThreads();
39639 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39640 wxPyEndAllowThreads(__tstate);
39641 if (PyErr_Occurred()) SWIG_fail;
39642 }
39643 resultobj = SWIG_Py_Void();
39644 if (SWIG_IsTmpObj(res2)) {
39645 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39646 } else {
39647 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39648 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39649 }
39650 if (SWIG_IsTmpObj(res3)) {
39651 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39652 } else {
39653 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39654 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39655 }
39656 return resultobj;
39657 fail:
39658 return NULL;
39659 }
39660
39661
39662 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39663 PyObject *resultobj = 0;
39664 wxPyControl *arg1 = (wxPyControl *) 0 ;
39665 wxSize result;
39666 void *argp1 = 0 ;
39667 int res1 = 0 ;
39668 PyObject *swig_obj[1] ;
39669
39670 if (!args) SWIG_fail;
39671 swig_obj[0] = args;
39672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39673 if (!SWIG_IsOK(res1)) {
39674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39675 }
39676 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39677 {
39678 PyThreadState* __tstate = wxPyBeginAllowThreads();
39679 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39680 wxPyEndAllowThreads(__tstate);
39681 if (PyErr_Occurred()) SWIG_fail;
39682 }
39683 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39684 return resultobj;
39685 fail:
39686 return NULL;
39687 }
39688
39689
39690 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39691 PyObject *resultobj = 0;
39692 wxPyControl *arg1 = (wxPyControl *) 0 ;
39693 wxSize result;
39694 void *argp1 = 0 ;
39695 int res1 = 0 ;
39696 PyObject *swig_obj[1] ;
39697
39698 if (!args) SWIG_fail;
39699 swig_obj[0] = args;
39700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39701 if (!SWIG_IsOK(res1)) {
39702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39703 }
39704 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39705 {
39706 PyThreadState* __tstate = wxPyBeginAllowThreads();
39707 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39708 wxPyEndAllowThreads(__tstate);
39709 if (PyErr_Occurred()) SWIG_fail;
39710 }
39711 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39712 return resultobj;
39713 fail:
39714 return NULL;
39715 }
39716
39717
39718 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39719 PyObject *resultobj = 0;
39720 wxPyControl *arg1 = (wxPyControl *) 0 ;
39721 SwigValueWrapper<wxVisualAttributes > result;
39722 void *argp1 = 0 ;
39723 int res1 = 0 ;
39724 PyObject *swig_obj[1] ;
39725
39726 if (!args) SWIG_fail;
39727 swig_obj[0] = args;
39728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39729 if (!SWIG_IsOK(res1)) {
39730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39731 }
39732 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39733 {
39734 PyThreadState* __tstate = wxPyBeginAllowThreads();
39735 result = (arg1)->GetDefaultAttributes();
39736 wxPyEndAllowThreads(__tstate);
39737 if (PyErr_Occurred()) SWIG_fail;
39738 }
39739 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39740 return resultobj;
39741 fail:
39742 return NULL;
39743 }
39744
39745
39746 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39747 PyObject *resultobj = 0;
39748 wxPyControl *arg1 = (wxPyControl *) 0 ;
39749 void *argp1 = 0 ;
39750 int res1 = 0 ;
39751 PyObject *swig_obj[1] ;
39752
39753 if (!args) SWIG_fail;
39754 swig_obj[0] = args;
39755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39756 if (!SWIG_IsOK(res1)) {
39757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39758 }
39759 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39760 {
39761 PyThreadState* __tstate = wxPyBeginAllowThreads();
39762 (arg1)->OnInternalIdle();
39763 wxPyEndAllowThreads(__tstate);
39764 if (PyErr_Occurred()) SWIG_fail;
39765 }
39766 resultobj = SWIG_Py_Void();
39767 return resultobj;
39768 fail:
39769 return NULL;
39770 }
39771
39772
39773 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39774 PyObject *obj;
39775 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39776 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39777 return SWIG_Py_Void();
39778 }
39779
39780 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39781 return SWIG_Python_InitShadowInstance(args);
39782 }
39783
39784 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39785 PyObject *resultobj = 0;
39786 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39787 int arg2 = (int) 0 ;
39788 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39789 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39790 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39791 wxHelpEvent *result = 0 ;
39792 int val1 ;
39793 int ecode1 = 0 ;
39794 int val2 ;
39795 int ecode2 = 0 ;
39796 wxPoint temp3 ;
39797 int val4 ;
39798 int ecode4 = 0 ;
39799 PyObject * obj0 = 0 ;
39800 PyObject * obj1 = 0 ;
39801 PyObject * obj2 = 0 ;
39802 PyObject * obj3 = 0 ;
39803 char * kwnames[] = {
39804 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39805 };
39806
39807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39808 if (obj0) {
39809 ecode1 = SWIG_AsVal_int(obj0, &val1);
39810 if (!SWIG_IsOK(ecode1)) {
39811 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39812 }
39813 arg1 = static_cast< wxEventType >(val1);
39814 }
39815 if (obj1) {
39816 ecode2 = SWIG_AsVal_int(obj1, &val2);
39817 if (!SWIG_IsOK(ecode2)) {
39818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39819 }
39820 arg2 = static_cast< int >(val2);
39821 }
39822 if (obj2) {
39823 {
39824 arg3 = &temp3;
39825 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39826 }
39827 }
39828 if (obj3) {
39829 ecode4 = SWIG_AsVal_int(obj3, &val4);
39830 if (!SWIG_IsOK(ecode4)) {
39831 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39832 }
39833 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39834 }
39835 {
39836 PyThreadState* __tstate = wxPyBeginAllowThreads();
39837 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39838 wxPyEndAllowThreads(__tstate);
39839 if (PyErr_Occurred()) SWIG_fail;
39840 }
39841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39842 return resultobj;
39843 fail:
39844 return NULL;
39845 }
39846
39847
39848 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39849 PyObject *resultobj = 0;
39850 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39851 wxPoint result;
39852 void *argp1 = 0 ;
39853 int res1 = 0 ;
39854 PyObject *swig_obj[1] ;
39855
39856 if (!args) SWIG_fail;
39857 swig_obj[0] = args;
39858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39859 if (!SWIG_IsOK(res1)) {
39860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39861 }
39862 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39863 {
39864 PyThreadState* __tstate = wxPyBeginAllowThreads();
39865 result = ((wxHelpEvent const *)arg1)->GetPosition();
39866 wxPyEndAllowThreads(__tstate);
39867 if (PyErr_Occurred()) SWIG_fail;
39868 }
39869 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39870 return resultobj;
39871 fail:
39872 return NULL;
39873 }
39874
39875
39876 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39877 PyObject *resultobj = 0;
39878 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39879 wxPoint *arg2 = 0 ;
39880 void *argp1 = 0 ;
39881 int res1 = 0 ;
39882 wxPoint temp2 ;
39883 PyObject * obj0 = 0 ;
39884 PyObject * obj1 = 0 ;
39885 char * kwnames[] = {
39886 (char *) "self",(char *) "pos", NULL
39887 };
39888
39889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39891 if (!SWIG_IsOK(res1)) {
39892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39893 }
39894 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39895 {
39896 arg2 = &temp2;
39897 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39898 }
39899 {
39900 PyThreadState* __tstate = wxPyBeginAllowThreads();
39901 (arg1)->SetPosition((wxPoint const &)*arg2);
39902 wxPyEndAllowThreads(__tstate);
39903 if (PyErr_Occurred()) SWIG_fail;
39904 }
39905 resultobj = SWIG_Py_Void();
39906 return resultobj;
39907 fail:
39908 return NULL;
39909 }
39910
39911
39912 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39913 PyObject *resultobj = 0;
39914 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39915 wxString *result = 0 ;
39916 void *argp1 = 0 ;
39917 int res1 = 0 ;
39918 PyObject *swig_obj[1] ;
39919
39920 if (!args) SWIG_fail;
39921 swig_obj[0] = args;
39922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39923 if (!SWIG_IsOK(res1)) {
39924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39925 }
39926 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39927 {
39928 PyThreadState* __tstate = wxPyBeginAllowThreads();
39929 {
39930 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39931 result = (wxString *) &_result_ref;
39932 }
39933 wxPyEndAllowThreads(__tstate);
39934 if (PyErr_Occurred()) SWIG_fail;
39935 }
39936 {
39937 #if wxUSE_UNICODE
39938 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39939 #else
39940 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39941 #endif
39942 }
39943 return resultobj;
39944 fail:
39945 return NULL;
39946 }
39947
39948
39949 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39950 PyObject *resultobj = 0;
39951 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39952 wxString *arg2 = 0 ;
39953 void *argp1 = 0 ;
39954 int res1 = 0 ;
39955 bool temp2 = false ;
39956 PyObject * obj0 = 0 ;
39957 PyObject * obj1 = 0 ;
39958 char * kwnames[] = {
39959 (char *) "self",(char *) "link", NULL
39960 };
39961
39962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39964 if (!SWIG_IsOK(res1)) {
39965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39966 }
39967 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39968 {
39969 arg2 = wxString_in_helper(obj1);
39970 if (arg2 == NULL) SWIG_fail;
39971 temp2 = true;
39972 }
39973 {
39974 PyThreadState* __tstate = wxPyBeginAllowThreads();
39975 (arg1)->SetLink((wxString const &)*arg2);
39976 wxPyEndAllowThreads(__tstate);
39977 if (PyErr_Occurred()) SWIG_fail;
39978 }
39979 resultobj = SWIG_Py_Void();
39980 {
39981 if (temp2)
39982 delete arg2;
39983 }
39984 return resultobj;
39985 fail:
39986 {
39987 if (temp2)
39988 delete arg2;
39989 }
39990 return NULL;
39991 }
39992
39993
39994 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39995 PyObject *resultobj = 0;
39996 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39997 wxString *result = 0 ;
39998 void *argp1 = 0 ;
39999 int res1 = 0 ;
40000 PyObject *swig_obj[1] ;
40001
40002 if (!args) SWIG_fail;
40003 swig_obj[0] = args;
40004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40005 if (!SWIG_IsOK(res1)) {
40006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
40007 }
40008 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40009 {
40010 PyThreadState* __tstate = wxPyBeginAllowThreads();
40011 {
40012 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
40013 result = (wxString *) &_result_ref;
40014 }
40015 wxPyEndAllowThreads(__tstate);
40016 if (PyErr_Occurred()) SWIG_fail;
40017 }
40018 {
40019 #if wxUSE_UNICODE
40020 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
40021 #else
40022 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
40023 #endif
40024 }
40025 return resultobj;
40026 fail:
40027 return NULL;
40028 }
40029
40030
40031 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40032 PyObject *resultobj = 0;
40033 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40034 wxString *arg2 = 0 ;
40035 void *argp1 = 0 ;
40036 int res1 = 0 ;
40037 bool temp2 = false ;
40038 PyObject * obj0 = 0 ;
40039 PyObject * obj1 = 0 ;
40040 char * kwnames[] = {
40041 (char *) "self",(char *) "target", NULL
40042 };
40043
40044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
40045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40046 if (!SWIG_IsOK(res1)) {
40047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40048 }
40049 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40050 {
40051 arg2 = wxString_in_helper(obj1);
40052 if (arg2 == NULL) SWIG_fail;
40053 temp2 = true;
40054 }
40055 {
40056 PyThreadState* __tstate = wxPyBeginAllowThreads();
40057 (arg1)->SetTarget((wxString const &)*arg2);
40058 wxPyEndAllowThreads(__tstate);
40059 if (PyErr_Occurred()) SWIG_fail;
40060 }
40061 resultobj = SWIG_Py_Void();
40062 {
40063 if (temp2)
40064 delete arg2;
40065 }
40066 return resultobj;
40067 fail:
40068 {
40069 if (temp2)
40070 delete arg2;
40071 }
40072 return NULL;
40073 }
40074
40075
40076 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40077 PyObject *resultobj = 0;
40078 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40079 wxHelpEvent::Origin result;
40080 void *argp1 = 0 ;
40081 int res1 = 0 ;
40082 PyObject *swig_obj[1] ;
40083
40084 if (!args) SWIG_fail;
40085 swig_obj[0] = args;
40086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40087 if (!SWIG_IsOK(res1)) {
40088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
40089 }
40090 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40091 {
40092 PyThreadState* __tstate = wxPyBeginAllowThreads();
40093 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
40094 wxPyEndAllowThreads(__tstate);
40095 if (PyErr_Occurred()) SWIG_fail;
40096 }
40097 resultobj = SWIG_From_int(static_cast< int >(result));
40098 return resultobj;
40099 fail:
40100 return NULL;
40101 }
40102
40103
40104 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40105 PyObject *resultobj = 0;
40106 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40107 wxHelpEvent::Origin arg2 ;
40108 void *argp1 = 0 ;
40109 int res1 = 0 ;
40110 int val2 ;
40111 int ecode2 = 0 ;
40112 PyObject * obj0 = 0 ;
40113 PyObject * obj1 = 0 ;
40114 char * kwnames[] = {
40115 (char *) "self",(char *) "origin", NULL
40116 };
40117
40118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
40119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40120 if (!SWIG_IsOK(res1)) {
40121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40122 }
40123 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40124 ecode2 = SWIG_AsVal_int(obj1, &val2);
40125 if (!SWIG_IsOK(ecode2)) {
40126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
40127 }
40128 arg2 = static_cast< wxHelpEvent::Origin >(val2);
40129 {
40130 PyThreadState* __tstate = wxPyBeginAllowThreads();
40131 (arg1)->SetOrigin(arg2);
40132 wxPyEndAllowThreads(__tstate);
40133 if (PyErr_Occurred()) SWIG_fail;
40134 }
40135 resultobj = SWIG_Py_Void();
40136 return resultobj;
40137 fail:
40138 return NULL;
40139 }
40140
40141
40142 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40143 PyObject *obj;
40144 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40145 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
40146 return SWIG_Py_Void();
40147 }
40148
40149 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40150 return SWIG_Python_InitShadowInstance(args);
40151 }
40152
40153 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40154 PyObject *resultobj = 0;
40155 wxWindow *arg1 = (wxWindow *) NULL ;
40156 bool arg2 = (bool) true ;
40157 wxContextHelp *result = 0 ;
40158 void *argp1 = 0 ;
40159 int res1 = 0 ;
40160 bool val2 ;
40161 int ecode2 = 0 ;
40162 PyObject * obj0 = 0 ;
40163 PyObject * obj1 = 0 ;
40164 char * kwnames[] = {
40165 (char *) "window",(char *) "doNow", NULL
40166 };
40167
40168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40169 if (obj0) {
40170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40171 if (!SWIG_IsOK(res1)) {
40172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
40173 }
40174 arg1 = reinterpret_cast< wxWindow * >(argp1);
40175 }
40176 if (obj1) {
40177 ecode2 = SWIG_AsVal_bool(obj1, &val2);
40178 if (!SWIG_IsOK(ecode2)) {
40179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
40180 }
40181 arg2 = static_cast< bool >(val2);
40182 }
40183 {
40184 if (!wxPyCheckForApp()) SWIG_fail;
40185 PyThreadState* __tstate = wxPyBeginAllowThreads();
40186 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
40187 wxPyEndAllowThreads(__tstate);
40188 if (PyErr_Occurred()) SWIG_fail;
40189 }
40190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
40191 return resultobj;
40192 fail:
40193 return NULL;
40194 }
40195
40196
40197 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40198 PyObject *resultobj = 0;
40199 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40200 void *argp1 = 0 ;
40201 int res1 = 0 ;
40202 PyObject *swig_obj[1] ;
40203
40204 if (!args) SWIG_fail;
40205 swig_obj[0] = args;
40206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
40207 if (!SWIG_IsOK(res1)) {
40208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40209 }
40210 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40211 {
40212 PyThreadState* __tstate = wxPyBeginAllowThreads();
40213 delete arg1;
40214
40215 wxPyEndAllowThreads(__tstate);
40216 if (PyErr_Occurred()) SWIG_fail;
40217 }
40218 resultobj = SWIG_Py_Void();
40219 return resultobj;
40220 fail:
40221 return NULL;
40222 }
40223
40224
40225 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40226 PyObject *resultobj = 0;
40227 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40228 wxWindow *arg2 = (wxWindow *) NULL ;
40229 bool result;
40230 void *argp1 = 0 ;
40231 int res1 = 0 ;
40232 void *argp2 = 0 ;
40233 int res2 = 0 ;
40234 PyObject * obj0 = 0 ;
40235 PyObject * obj1 = 0 ;
40236 char * kwnames[] = {
40237 (char *) "self",(char *) "window", NULL
40238 };
40239
40240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40242 if (!SWIG_IsOK(res1)) {
40243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40244 }
40245 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40246 if (obj1) {
40247 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40248 if (!SWIG_IsOK(res2)) {
40249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40250 }
40251 arg2 = reinterpret_cast< wxWindow * >(argp2);
40252 }
40253 {
40254 PyThreadState* __tstate = wxPyBeginAllowThreads();
40255 result = (bool)(arg1)->BeginContextHelp(arg2);
40256 wxPyEndAllowThreads(__tstate);
40257 if (PyErr_Occurred()) SWIG_fail;
40258 }
40259 {
40260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40261 }
40262 return resultobj;
40263 fail:
40264 return NULL;
40265 }
40266
40267
40268 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40269 PyObject *resultobj = 0;
40270 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40271 bool result;
40272 void *argp1 = 0 ;
40273 int res1 = 0 ;
40274 PyObject *swig_obj[1] ;
40275
40276 if (!args) SWIG_fail;
40277 swig_obj[0] = args;
40278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40279 if (!SWIG_IsOK(res1)) {
40280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40281 }
40282 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40283 {
40284 PyThreadState* __tstate = wxPyBeginAllowThreads();
40285 result = (bool)(arg1)->EndContextHelp();
40286 wxPyEndAllowThreads(__tstate);
40287 if (PyErr_Occurred()) SWIG_fail;
40288 }
40289 {
40290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40291 }
40292 return resultobj;
40293 fail:
40294 return NULL;
40295 }
40296
40297
40298 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40299 PyObject *obj;
40300 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40301 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
40302 return SWIG_Py_Void();
40303 }
40304
40305 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40306 return SWIG_Python_InitShadowInstance(args);
40307 }
40308
40309 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40310 PyObject *resultobj = 0;
40311 wxWindow *arg1 = (wxWindow *) 0 ;
40312 int arg2 = (int) wxID_CONTEXT_HELP ;
40313 wxPoint const &arg3_defvalue = wxDefaultPosition ;
40314 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
40315 wxSize const &arg4_defvalue = wxDefaultSize ;
40316 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
40317 long arg5 = (long) wxBU_AUTODRAW ;
40318 wxContextHelpButton *result = 0 ;
40319 void *argp1 = 0 ;
40320 int res1 = 0 ;
40321 int val2 ;
40322 int ecode2 = 0 ;
40323 wxPoint temp3 ;
40324 wxSize temp4 ;
40325 long val5 ;
40326 int ecode5 = 0 ;
40327 PyObject * obj0 = 0 ;
40328 PyObject * obj1 = 0 ;
40329 PyObject * obj2 = 0 ;
40330 PyObject * obj3 = 0 ;
40331 PyObject * obj4 = 0 ;
40332 char * kwnames[] = {
40333 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
40334 };
40335
40336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40338 if (!SWIG_IsOK(res1)) {
40339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
40340 }
40341 arg1 = reinterpret_cast< wxWindow * >(argp1);
40342 if (obj1) {
40343 ecode2 = SWIG_AsVal_int(obj1, &val2);
40344 if (!SWIG_IsOK(ecode2)) {
40345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
40346 }
40347 arg2 = static_cast< int >(val2);
40348 }
40349 if (obj2) {
40350 {
40351 arg3 = &temp3;
40352 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40353 }
40354 }
40355 if (obj3) {
40356 {
40357 arg4 = &temp4;
40358 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
40359 }
40360 }
40361 if (obj4) {
40362 ecode5 = SWIG_AsVal_long(obj4, &val5);
40363 if (!SWIG_IsOK(ecode5)) {
40364 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
40365 }
40366 arg5 = static_cast< long >(val5);
40367 }
40368 {
40369 if (!wxPyCheckForApp()) SWIG_fail;
40370 PyThreadState* __tstate = wxPyBeginAllowThreads();
40371 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
40372 wxPyEndAllowThreads(__tstate);
40373 if (PyErr_Occurred()) SWIG_fail;
40374 }
40375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
40376 return resultobj;
40377 fail:
40378 return NULL;
40379 }
40380
40381
40382 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40383 PyObject *obj;
40384 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40385 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
40386 return SWIG_Py_Void();
40387 }
40388
40389 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40390 return SWIG_Python_InitShadowInstance(args);
40391 }
40392
40393 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40394 PyObject *resultobj = 0;
40395 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40396 void *argp1 = 0 ;
40397 int res1 = 0 ;
40398 PyObject *swig_obj[1] ;
40399
40400 if (!args) SWIG_fail;
40401 swig_obj[0] = args;
40402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40403 if (!SWIG_IsOK(res1)) {
40404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40405 }
40406 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40407 {
40408 PyThreadState* __tstate = wxPyBeginAllowThreads();
40409 delete arg1;
40410
40411 wxPyEndAllowThreads(__tstate);
40412 if (PyErr_Occurred()) SWIG_fail;
40413 }
40414 resultobj = SWIG_Py_Void();
40415 return resultobj;
40416 fail:
40417 return NULL;
40418 }
40419
40420
40421 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40422 PyObject *resultobj = 0;
40423 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40424 wxHelpProvider *result = 0 ;
40425 int res1 = 0 ;
40426 PyObject * obj0 = 0 ;
40427 char * kwnames[] = {
40428 (char *) "helpProvider", NULL
40429 };
40430
40431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40432 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40433 if (!SWIG_IsOK(res1)) {
40434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40435 }
40436 {
40437 PyThreadState* __tstate = wxPyBeginAllowThreads();
40438 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40439 wxPyEndAllowThreads(__tstate);
40440 if (PyErr_Occurred()) SWIG_fail;
40441 }
40442 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40443 return resultobj;
40444 fail:
40445 return NULL;
40446 }
40447
40448
40449 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40450 PyObject *resultobj = 0;
40451 wxHelpProvider *result = 0 ;
40452
40453 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40454 {
40455 PyThreadState* __tstate = wxPyBeginAllowThreads();
40456 result = (wxHelpProvider *)wxHelpProvider::Get();
40457 wxPyEndAllowThreads(__tstate);
40458 if (PyErr_Occurred()) SWIG_fail;
40459 }
40460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40461 return resultobj;
40462 fail:
40463 return NULL;
40464 }
40465
40466
40467 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40468 PyObject *resultobj = 0;
40469 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40470 wxWindow *arg2 = (wxWindow *) 0 ;
40471 wxString result;
40472 void *argp1 = 0 ;
40473 int res1 = 0 ;
40474 void *argp2 = 0 ;
40475 int res2 = 0 ;
40476 PyObject * obj0 = 0 ;
40477 PyObject * obj1 = 0 ;
40478 char * kwnames[] = {
40479 (char *) "self",(char *) "window", NULL
40480 };
40481
40482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40484 if (!SWIG_IsOK(res1)) {
40485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40486 }
40487 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40488 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40489 if (!SWIG_IsOK(res2)) {
40490 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40491 }
40492 arg2 = reinterpret_cast< wxWindow * >(argp2);
40493 {
40494 PyThreadState* __tstate = wxPyBeginAllowThreads();
40495 result = (arg1)->GetHelp((wxWindow const *)arg2);
40496 wxPyEndAllowThreads(__tstate);
40497 if (PyErr_Occurred()) SWIG_fail;
40498 }
40499 {
40500 #if wxUSE_UNICODE
40501 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40502 #else
40503 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40504 #endif
40505 }
40506 return resultobj;
40507 fail:
40508 return NULL;
40509 }
40510
40511
40512 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40513 PyObject *resultobj = 0;
40514 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40515 wxWindow *arg2 = (wxWindow *) 0 ;
40516 bool result;
40517 void *argp1 = 0 ;
40518 int res1 = 0 ;
40519 void *argp2 = 0 ;
40520 int res2 = 0 ;
40521 PyObject * obj0 = 0 ;
40522 PyObject * obj1 = 0 ;
40523 char * kwnames[] = {
40524 (char *) "self",(char *) "window", NULL
40525 };
40526
40527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40529 if (!SWIG_IsOK(res1)) {
40530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40531 }
40532 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40533 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40534 if (!SWIG_IsOK(res2)) {
40535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40536 }
40537 arg2 = reinterpret_cast< wxWindow * >(argp2);
40538 {
40539 PyThreadState* __tstate = wxPyBeginAllowThreads();
40540 result = (bool)(arg1)->ShowHelp(arg2);
40541 wxPyEndAllowThreads(__tstate);
40542 if (PyErr_Occurred()) SWIG_fail;
40543 }
40544 {
40545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40546 }
40547 return resultobj;
40548 fail:
40549 return NULL;
40550 }
40551
40552
40553 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40554 PyObject *resultobj = 0;
40555 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40556 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40557 wxPoint *arg3 = 0 ;
40558 wxHelpEvent::Origin arg4 ;
40559 bool result;
40560 void *argp1 = 0 ;
40561 int res1 = 0 ;
40562 void *argp2 = 0 ;
40563 int res2 = 0 ;
40564 wxPoint temp3 ;
40565 int val4 ;
40566 int ecode4 = 0 ;
40567 PyObject * obj0 = 0 ;
40568 PyObject * obj1 = 0 ;
40569 PyObject * obj2 = 0 ;
40570 PyObject * obj3 = 0 ;
40571 char * kwnames[] = {
40572 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40573 };
40574
40575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40577 if (!SWIG_IsOK(res1)) {
40578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40579 }
40580 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40581 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40582 if (!SWIG_IsOK(res2)) {
40583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40584 }
40585 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40586 {
40587 arg3 = &temp3;
40588 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40589 }
40590 ecode4 = SWIG_AsVal_int(obj3, &val4);
40591 if (!SWIG_IsOK(ecode4)) {
40592 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40593 }
40594 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40595 {
40596 PyThreadState* __tstate = wxPyBeginAllowThreads();
40597 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40598 wxPyEndAllowThreads(__tstate);
40599 if (PyErr_Occurred()) SWIG_fail;
40600 }
40601 {
40602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40603 }
40604 return resultobj;
40605 fail:
40606 return NULL;
40607 }
40608
40609
40610 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40611 PyObject *resultobj = 0;
40612 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40613 wxWindow *arg2 = (wxWindow *) 0 ;
40614 wxString *arg3 = 0 ;
40615 void *argp1 = 0 ;
40616 int res1 = 0 ;
40617 void *argp2 = 0 ;
40618 int res2 = 0 ;
40619 bool temp3 = false ;
40620 PyObject * obj0 = 0 ;
40621 PyObject * obj1 = 0 ;
40622 PyObject * obj2 = 0 ;
40623 char * kwnames[] = {
40624 (char *) "self",(char *) "window",(char *) "text", NULL
40625 };
40626
40627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40629 if (!SWIG_IsOK(res1)) {
40630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40631 }
40632 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40633 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40634 if (!SWIG_IsOK(res2)) {
40635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40636 }
40637 arg2 = reinterpret_cast< wxWindow * >(argp2);
40638 {
40639 arg3 = wxString_in_helper(obj2);
40640 if (arg3 == NULL) SWIG_fail;
40641 temp3 = true;
40642 }
40643 {
40644 PyThreadState* __tstate = wxPyBeginAllowThreads();
40645 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40646 wxPyEndAllowThreads(__tstate);
40647 if (PyErr_Occurred()) SWIG_fail;
40648 }
40649 resultobj = SWIG_Py_Void();
40650 {
40651 if (temp3)
40652 delete arg3;
40653 }
40654 return resultobj;
40655 fail:
40656 {
40657 if (temp3)
40658 delete arg3;
40659 }
40660 return NULL;
40661 }
40662
40663
40664 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40665 PyObject *resultobj = 0;
40666 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40667 int arg2 ;
40668 wxString *arg3 = 0 ;
40669 void *argp1 = 0 ;
40670 int res1 = 0 ;
40671 int val2 ;
40672 int ecode2 = 0 ;
40673 bool temp3 = false ;
40674 PyObject * obj0 = 0 ;
40675 PyObject * obj1 = 0 ;
40676 PyObject * obj2 = 0 ;
40677 char * kwnames[] = {
40678 (char *) "self",(char *) "id",(char *) "text", NULL
40679 };
40680
40681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40683 if (!SWIG_IsOK(res1)) {
40684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40685 }
40686 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40687 ecode2 = SWIG_AsVal_int(obj1, &val2);
40688 if (!SWIG_IsOK(ecode2)) {
40689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40690 }
40691 arg2 = static_cast< int >(val2);
40692 {
40693 arg3 = wxString_in_helper(obj2);
40694 if (arg3 == NULL) SWIG_fail;
40695 temp3 = true;
40696 }
40697 {
40698 PyThreadState* __tstate = wxPyBeginAllowThreads();
40699 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40700 wxPyEndAllowThreads(__tstate);
40701 if (PyErr_Occurred()) SWIG_fail;
40702 }
40703 resultobj = SWIG_Py_Void();
40704 {
40705 if (temp3)
40706 delete arg3;
40707 }
40708 return resultobj;
40709 fail:
40710 {
40711 if (temp3)
40712 delete arg3;
40713 }
40714 return NULL;
40715 }
40716
40717
40718 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40719 PyObject *resultobj = 0;
40720 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40721 wxWindow *arg2 = (wxWindow *) 0 ;
40722 void *argp1 = 0 ;
40723 int res1 = 0 ;
40724 void *argp2 = 0 ;
40725 int res2 = 0 ;
40726 PyObject * obj0 = 0 ;
40727 PyObject * obj1 = 0 ;
40728 char * kwnames[] = {
40729 (char *) "self",(char *) "window", NULL
40730 };
40731
40732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40734 if (!SWIG_IsOK(res1)) {
40735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40736 }
40737 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40738 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40739 if (!SWIG_IsOK(res2)) {
40740 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40741 }
40742 arg2 = reinterpret_cast< wxWindow * >(argp2);
40743 {
40744 PyThreadState* __tstate = wxPyBeginAllowThreads();
40745 (arg1)->RemoveHelp(arg2);
40746 wxPyEndAllowThreads(__tstate);
40747 if (PyErr_Occurred()) SWIG_fail;
40748 }
40749 resultobj = SWIG_Py_Void();
40750 return resultobj;
40751 fail:
40752 return NULL;
40753 }
40754
40755
40756 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40757 PyObject *resultobj = 0;
40758 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40759 void *argp1 = 0 ;
40760 int res1 = 0 ;
40761 PyObject *swig_obj[1] ;
40762
40763 if (!args) SWIG_fail;
40764 swig_obj[0] = args;
40765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40766 if (!SWIG_IsOK(res1)) {
40767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40768 }
40769 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40770 {
40771 PyThreadState* __tstate = wxPyBeginAllowThreads();
40772 wxHelpProvider_Destroy(arg1);
40773 wxPyEndAllowThreads(__tstate);
40774 if (PyErr_Occurred()) SWIG_fail;
40775 }
40776 resultobj = SWIG_Py_Void();
40777 return resultobj;
40778 fail:
40779 return NULL;
40780 }
40781
40782
40783 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40784 PyObject *obj;
40785 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40786 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40787 return SWIG_Py_Void();
40788 }
40789
40790 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40791 PyObject *resultobj = 0;
40792 wxSimpleHelpProvider *result = 0 ;
40793
40794 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40795 {
40796 PyThreadState* __tstate = wxPyBeginAllowThreads();
40797 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40798 wxPyEndAllowThreads(__tstate);
40799 if (PyErr_Occurred()) SWIG_fail;
40800 }
40801 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40802 return resultobj;
40803 fail:
40804 return NULL;
40805 }
40806
40807
40808 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40809 PyObject *obj;
40810 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40811 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40812 return SWIG_Py_Void();
40813 }
40814
40815 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40816 return SWIG_Python_InitShadowInstance(args);
40817 }
40818
40819 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40820 PyObject *resultobj = 0;
40821 wxBitmap *arg1 = 0 ;
40822 wxCursor const &arg2_defvalue = wxNullCursor ;
40823 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40824 wxGenericDragImage *result = 0 ;
40825 void *argp1 = 0 ;
40826 int res1 = 0 ;
40827 void *argp2 = 0 ;
40828 int res2 = 0 ;
40829 PyObject * obj0 = 0 ;
40830 PyObject * obj1 = 0 ;
40831 char * kwnames[] = {
40832 (char *) "image",(char *) "cursor", NULL
40833 };
40834
40835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40836 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40837 if (!SWIG_IsOK(res1)) {
40838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40839 }
40840 if (!argp1) {
40841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40842 }
40843 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40844 if (obj1) {
40845 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40846 if (!SWIG_IsOK(res2)) {
40847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40848 }
40849 if (!argp2) {
40850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40851 }
40852 arg2 = reinterpret_cast< wxCursor * >(argp2);
40853 }
40854 {
40855 if (!wxPyCheckForApp()) SWIG_fail;
40856 PyThreadState* __tstate = wxPyBeginAllowThreads();
40857 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40858 wxPyEndAllowThreads(__tstate);
40859 if (PyErr_Occurred()) SWIG_fail;
40860 }
40861 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40862 return resultobj;
40863 fail:
40864 return NULL;
40865 }
40866
40867
40868 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40869 PyObject *resultobj = 0;
40870 wxIcon *arg1 = 0 ;
40871 wxCursor const &arg2_defvalue = wxNullCursor ;
40872 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40873 wxGenericDragImage *result = 0 ;
40874 void *argp1 = 0 ;
40875 int res1 = 0 ;
40876 void *argp2 = 0 ;
40877 int res2 = 0 ;
40878 PyObject * obj0 = 0 ;
40879 PyObject * obj1 = 0 ;
40880 char * kwnames[] = {
40881 (char *) "image",(char *) "cursor", NULL
40882 };
40883
40884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40885 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40886 if (!SWIG_IsOK(res1)) {
40887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40888 }
40889 if (!argp1) {
40890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40891 }
40892 arg1 = reinterpret_cast< wxIcon * >(argp1);
40893 if (obj1) {
40894 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40895 if (!SWIG_IsOK(res2)) {
40896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40897 }
40898 if (!argp2) {
40899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40900 }
40901 arg2 = reinterpret_cast< wxCursor * >(argp2);
40902 }
40903 {
40904 if (!wxPyCheckForApp()) SWIG_fail;
40905 PyThreadState* __tstate = wxPyBeginAllowThreads();
40906 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40907 wxPyEndAllowThreads(__tstate);
40908 if (PyErr_Occurred()) SWIG_fail;
40909 }
40910 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40911 return resultobj;
40912 fail:
40913 return NULL;
40914 }
40915
40916
40917 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40918 PyObject *resultobj = 0;
40919 wxString *arg1 = 0 ;
40920 wxCursor const &arg2_defvalue = wxNullCursor ;
40921 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40922 wxGenericDragImage *result = 0 ;
40923 bool temp1 = false ;
40924 void *argp2 = 0 ;
40925 int res2 = 0 ;
40926 PyObject * obj0 = 0 ;
40927 PyObject * obj1 = 0 ;
40928 char * kwnames[] = {
40929 (char *) "str",(char *) "cursor", NULL
40930 };
40931
40932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40933 {
40934 arg1 = wxString_in_helper(obj0);
40935 if (arg1 == NULL) SWIG_fail;
40936 temp1 = true;
40937 }
40938 if (obj1) {
40939 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40940 if (!SWIG_IsOK(res2)) {
40941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40942 }
40943 if (!argp2) {
40944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40945 }
40946 arg2 = reinterpret_cast< wxCursor * >(argp2);
40947 }
40948 {
40949 if (!wxPyCheckForApp()) SWIG_fail;
40950 PyThreadState* __tstate = wxPyBeginAllowThreads();
40951 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40952 wxPyEndAllowThreads(__tstate);
40953 if (PyErr_Occurred()) SWIG_fail;
40954 }
40955 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40956 {
40957 if (temp1)
40958 delete arg1;
40959 }
40960 return resultobj;
40961 fail:
40962 {
40963 if (temp1)
40964 delete arg1;
40965 }
40966 return NULL;
40967 }
40968
40969
40970 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40971 PyObject *resultobj = 0;
40972 wxPyTreeCtrl *arg1 = 0 ;
40973 wxTreeItemId *arg2 = 0 ;
40974 wxGenericDragImage *result = 0 ;
40975 void *argp1 = 0 ;
40976 int res1 = 0 ;
40977 void *argp2 = 0 ;
40978 int res2 = 0 ;
40979 PyObject * obj0 = 0 ;
40980 PyObject * obj1 = 0 ;
40981 char * kwnames[] = {
40982 (char *) "treeCtrl",(char *) "id", NULL
40983 };
40984
40985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40986 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40987 if (!SWIG_IsOK(res1)) {
40988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40989 }
40990 if (!argp1) {
40991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40992 }
40993 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40994 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40995 if (!SWIG_IsOK(res2)) {
40996 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40997 }
40998 if (!argp2) {
40999 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
41000 }
41001 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
41002 {
41003 if (!wxPyCheckForApp()) SWIG_fail;
41004 PyThreadState* __tstate = wxPyBeginAllowThreads();
41005 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
41006 wxPyEndAllowThreads(__tstate);
41007 if (PyErr_Occurred()) SWIG_fail;
41008 }
41009 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
41010 return resultobj;
41011 fail:
41012 return NULL;
41013 }
41014
41015
41016 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41017 PyObject *resultobj = 0;
41018 wxPyListCtrl *arg1 = 0 ;
41019 long arg2 ;
41020 wxGenericDragImage *result = 0 ;
41021 void *argp1 = 0 ;
41022 int res1 = 0 ;
41023 long val2 ;
41024 int ecode2 = 0 ;
41025 PyObject * obj0 = 0 ;
41026 PyObject * obj1 = 0 ;
41027 char * kwnames[] = {
41028 (char *) "listCtrl",(char *) "id", NULL
41029 };
41030
41031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
41032 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
41033 if (!SWIG_IsOK(res1)) {
41034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
41035 }
41036 if (!argp1) {
41037 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
41038 }
41039 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
41040 ecode2 = SWIG_AsVal_long(obj1, &val2);
41041 if (!SWIG_IsOK(ecode2)) {
41042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
41043 }
41044 arg2 = static_cast< long >(val2);
41045 {
41046 if (!wxPyCheckForApp()) SWIG_fail;
41047 PyThreadState* __tstate = wxPyBeginAllowThreads();
41048 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
41049 wxPyEndAllowThreads(__tstate);
41050 if (PyErr_Occurred()) SWIG_fail;
41051 }
41052 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
41053 return resultobj;
41054 fail:
41055 return NULL;
41056 }
41057
41058
41059 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41060 PyObject *resultobj = 0;
41061 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41062 void *argp1 = 0 ;
41063 int res1 = 0 ;
41064 PyObject *swig_obj[1] ;
41065
41066 if (!args) SWIG_fail;
41067 swig_obj[0] = args;
41068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
41069 if (!SWIG_IsOK(res1)) {
41070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41071 }
41072 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41073 {
41074 PyThreadState* __tstate = wxPyBeginAllowThreads();
41075 delete arg1;
41076
41077 wxPyEndAllowThreads(__tstate);
41078 if (PyErr_Occurred()) SWIG_fail;
41079 }
41080 resultobj = SWIG_Py_Void();
41081 return resultobj;
41082 fail:
41083 return NULL;
41084 }
41085
41086
41087 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41088 PyObject *resultobj = 0;
41089 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41090 wxBitmap *arg2 = (wxBitmap *) 0 ;
41091 void *argp1 = 0 ;
41092 int res1 = 0 ;
41093 void *argp2 = 0 ;
41094 int res2 = 0 ;
41095 PyObject * obj0 = 0 ;
41096 PyObject * obj1 = 0 ;
41097 char * kwnames[] = {
41098 (char *) "self",(char *) "bitmap", NULL
41099 };
41100
41101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
41102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41103 if (!SWIG_IsOK(res1)) {
41104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41105 }
41106 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41107 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
41108 if (!SWIG_IsOK(res2)) {
41109 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
41110 }
41111 arg2 = reinterpret_cast< wxBitmap * >(argp2);
41112 {
41113 PyThreadState* __tstate = wxPyBeginAllowThreads();
41114 (arg1)->SetBackingBitmap(arg2);
41115 wxPyEndAllowThreads(__tstate);
41116 if (PyErr_Occurred()) SWIG_fail;
41117 }
41118 resultobj = SWIG_Py_Void();
41119 return resultobj;
41120 fail:
41121 return NULL;
41122 }
41123
41124
41125 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41126 PyObject *resultobj = 0;
41127 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41128 wxPoint *arg2 = 0 ;
41129 wxWindow *arg3 = (wxWindow *) 0 ;
41130 bool arg4 = (bool) false ;
41131 wxRect *arg5 = (wxRect *) NULL ;
41132 bool result;
41133 void *argp1 = 0 ;
41134 int res1 = 0 ;
41135 wxPoint temp2 ;
41136 void *argp3 = 0 ;
41137 int res3 = 0 ;
41138 bool val4 ;
41139 int ecode4 = 0 ;
41140 void *argp5 = 0 ;
41141 int res5 = 0 ;
41142 PyObject * obj0 = 0 ;
41143 PyObject * obj1 = 0 ;
41144 PyObject * obj2 = 0 ;
41145 PyObject * obj3 = 0 ;
41146 PyObject * obj4 = 0 ;
41147 char * kwnames[] = {
41148 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
41149 };
41150
41151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41153 if (!SWIG_IsOK(res1)) {
41154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41155 }
41156 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41157 {
41158 arg2 = &temp2;
41159 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41160 }
41161 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41162 if (!SWIG_IsOK(res3)) {
41163 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
41164 }
41165 arg3 = reinterpret_cast< wxWindow * >(argp3);
41166 if (obj3) {
41167 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41168 if (!SWIG_IsOK(ecode4)) {
41169 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
41170 }
41171 arg4 = static_cast< bool >(val4);
41172 }
41173 if (obj4) {
41174 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
41175 if (!SWIG_IsOK(res5)) {
41176 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
41177 }
41178 arg5 = reinterpret_cast< wxRect * >(argp5);
41179 }
41180 {
41181 PyThreadState* __tstate = wxPyBeginAllowThreads();
41182 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
41183 wxPyEndAllowThreads(__tstate);
41184 if (PyErr_Occurred()) SWIG_fail;
41185 }
41186 {
41187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41188 }
41189 return resultobj;
41190 fail:
41191 return NULL;
41192 }
41193
41194
41195 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41196 PyObject *resultobj = 0;
41197 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41198 wxPoint *arg2 = 0 ;
41199 wxWindow *arg3 = (wxWindow *) 0 ;
41200 wxWindow *arg4 = (wxWindow *) 0 ;
41201 bool result;
41202 void *argp1 = 0 ;
41203 int res1 = 0 ;
41204 wxPoint temp2 ;
41205 void *argp3 = 0 ;
41206 int res3 = 0 ;
41207 void *argp4 = 0 ;
41208 int res4 = 0 ;
41209 PyObject * obj0 = 0 ;
41210 PyObject * obj1 = 0 ;
41211 PyObject * obj2 = 0 ;
41212 PyObject * obj3 = 0 ;
41213 char * kwnames[] = {
41214 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
41215 };
41216
41217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41219 if (!SWIG_IsOK(res1)) {
41220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41221 }
41222 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41223 {
41224 arg2 = &temp2;
41225 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41226 }
41227 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41228 if (!SWIG_IsOK(res3)) {
41229 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
41230 }
41231 arg3 = reinterpret_cast< wxWindow * >(argp3);
41232 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
41233 if (!SWIG_IsOK(res4)) {
41234 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
41235 }
41236 arg4 = reinterpret_cast< wxWindow * >(argp4);
41237 {
41238 PyThreadState* __tstate = wxPyBeginAllowThreads();
41239 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
41240 wxPyEndAllowThreads(__tstate);
41241 if (PyErr_Occurred()) SWIG_fail;
41242 }
41243 {
41244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41245 }
41246 return resultobj;
41247 fail:
41248 return NULL;
41249 }
41250
41251
41252 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41253 PyObject *resultobj = 0;
41254 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41255 bool result;
41256 void *argp1 = 0 ;
41257 int res1 = 0 ;
41258 PyObject *swig_obj[1] ;
41259
41260 if (!args) SWIG_fail;
41261 swig_obj[0] = args;
41262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41263 if (!SWIG_IsOK(res1)) {
41264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41265 }
41266 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41267 {
41268 PyThreadState* __tstate = wxPyBeginAllowThreads();
41269 result = (bool)(arg1)->EndDrag();
41270 wxPyEndAllowThreads(__tstate);
41271 if (PyErr_Occurred()) SWIG_fail;
41272 }
41273 {
41274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41275 }
41276 return resultobj;
41277 fail:
41278 return NULL;
41279 }
41280
41281
41282 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41283 PyObject *resultobj = 0;
41284 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41285 wxPoint *arg2 = 0 ;
41286 bool result;
41287 void *argp1 = 0 ;
41288 int res1 = 0 ;
41289 wxPoint temp2 ;
41290 PyObject * obj0 = 0 ;
41291 PyObject * obj1 = 0 ;
41292 char * kwnames[] = {
41293 (char *) "self",(char *) "pt", NULL
41294 };
41295
41296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
41297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41298 if (!SWIG_IsOK(res1)) {
41299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41300 }
41301 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41302 {
41303 arg2 = &temp2;
41304 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41305 }
41306 {
41307 PyThreadState* __tstate = wxPyBeginAllowThreads();
41308 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
41309 wxPyEndAllowThreads(__tstate);
41310 if (PyErr_Occurred()) SWIG_fail;
41311 }
41312 {
41313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41314 }
41315 return resultobj;
41316 fail:
41317 return NULL;
41318 }
41319
41320
41321 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41322 PyObject *resultobj = 0;
41323 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41324 bool result;
41325 void *argp1 = 0 ;
41326 int res1 = 0 ;
41327 PyObject *swig_obj[1] ;
41328
41329 if (!args) SWIG_fail;
41330 swig_obj[0] = args;
41331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41332 if (!SWIG_IsOK(res1)) {
41333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41334 }
41335 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41336 {
41337 PyThreadState* __tstate = wxPyBeginAllowThreads();
41338 result = (bool)(arg1)->Show();
41339 wxPyEndAllowThreads(__tstate);
41340 if (PyErr_Occurred()) SWIG_fail;
41341 }
41342 {
41343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41344 }
41345 return resultobj;
41346 fail:
41347 return NULL;
41348 }
41349
41350
41351 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41352 PyObject *resultobj = 0;
41353 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41354 bool result;
41355 void *argp1 = 0 ;
41356 int res1 = 0 ;
41357 PyObject *swig_obj[1] ;
41358
41359 if (!args) SWIG_fail;
41360 swig_obj[0] = args;
41361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41362 if (!SWIG_IsOK(res1)) {
41363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41364 }
41365 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41366 {
41367 PyThreadState* __tstate = wxPyBeginAllowThreads();
41368 result = (bool)(arg1)->Hide();
41369 wxPyEndAllowThreads(__tstate);
41370 if (PyErr_Occurred()) SWIG_fail;
41371 }
41372 {
41373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41374 }
41375 return resultobj;
41376 fail:
41377 return NULL;
41378 }
41379
41380
41381 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41382 PyObject *resultobj = 0;
41383 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41384 wxPoint *arg2 = 0 ;
41385 wxRect result;
41386 void *argp1 = 0 ;
41387 int res1 = 0 ;
41388 wxPoint temp2 ;
41389 PyObject * obj0 = 0 ;
41390 PyObject * obj1 = 0 ;
41391 char * kwnames[] = {
41392 (char *) "self",(char *) "pos", NULL
41393 };
41394
41395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41397 if (!SWIG_IsOK(res1)) {
41398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41399 }
41400 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41401 {
41402 arg2 = &temp2;
41403 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41404 }
41405 {
41406 PyThreadState* __tstate = wxPyBeginAllowThreads();
41407 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41408 wxPyEndAllowThreads(__tstate);
41409 if (PyErr_Occurred()) SWIG_fail;
41410 }
41411 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41412 return resultobj;
41413 fail:
41414 return NULL;
41415 }
41416
41417
41418 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41419 PyObject *resultobj = 0;
41420 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41421 wxDC *arg2 = 0 ;
41422 wxPoint *arg3 = 0 ;
41423 bool result;
41424 void *argp1 = 0 ;
41425 int res1 = 0 ;
41426 void *argp2 = 0 ;
41427 int res2 = 0 ;
41428 wxPoint temp3 ;
41429 PyObject * obj0 = 0 ;
41430 PyObject * obj1 = 0 ;
41431 PyObject * obj2 = 0 ;
41432 char * kwnames[] = {
41433 (char *) "self",(char *) "dc",(char *) "pos", NULL
41434 };
41435
41436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41438 if (!SWIG_IsOK(res1)) {
41439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41440 }
41441 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41442 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41443 if (!SWIG_IsOK(res2)) {
41444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41445 }
41446 if (!argp2) {
41447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41448 }
41449 arg2 = reinterpret_cast< wxDC * >(argp2);
41450 {
41451 arg3 = &temp3;
41452 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41453 }
41454 {
41455 PyThreadState* __tstate = wxPyBeginAllowThreads();
41456 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41457 wxPyEndAllowThreads(__tstate);
41458 if (PyErr_Occurred()) SWIG_fail;
41459 }
41460 {
41461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41462 }
41463 return resultobj;
41464 fail:
41465 return NULL;
41466 }
41467
41468
41469 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41470 PyObject *resultobj = 0;
41471 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41472 wxDC *arg2 = 0 ;
41473 wxMemoryDC *arg3 = 0 ;
41474 wxRect *arg4 = 0 ;
41475 wxRect *arg5 = 0 ;
41476 bool result;
41477 void *argp1 = 0 ;
41478 int res1 = 0 ;
41479 void *argp2 = 0 ;
41480 int res2 = 0 ;
41481 void *argp3 = 0 ;
41482 int res3 = 0 ;
41483 wxRect temp4 ;
41484 wxRect temp5 ;
41485 PyObject * obj0 = 0 ;
41486 PyObject * obj1 = 0 ;
41487 PyObject * obj2 = 0 ;
41488 PyObject * obj3 = 0 ;
41489 PyObject * obj4 = 0 ;
41490 char * kwnames[] = {
41491 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41492 };
41493
41494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41496 if (!SWIG_IsOK(res1)) {
41497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41498 }
41499 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41500 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41501 if (!SWIG_IsOK(res2)) {
41502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41503 }
41504 if (!argp2) {
41505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41506 }
41507 arg2 = reinterpret_cast< wxDC * >(argp2);
41508 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41509 if (!SWIG_IsOK(res3)) {
41510 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41511 }
41512 if (!argp3) {
41513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41514 }
41515 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41516 {
41517 arg4 = &temp4;
41518 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41519 }
41520 {
41521 arg5 = &temp5;
41522 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41523 }
41524 {
41525 PyThreadState* __tstate = wxPyBeginAllowThreads();
41526 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41527 wxPyEndAllowThreads(__tstate);
41528 if (PyErr_Occurred()) SWIG_fail;
41529 }
41530 {
41531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41532 }
41533 return resultobj;
41534 fail:
41535 return NULL;
41536 }
41537
41538
41539 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41540 PyObject *resultobj = 0;
41541 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41542 wxPoint *arg2 = 0 ;
41543 wxPoint *arg3 = 0 ;
41544 bool arg4 ;
41545 bool arg5 ;
41546 bool result;
41547 void *argp1 = 0 ;
41548 int res1 = 0 ;
41549 wxPoint temp2 ;
41550 wxPoint temp3 ;
41551 bool val4 ;
41552 int ecode4 = 0 ;
41553 bool val5 ;
41554 int ecode5 = 0 ;
41555 PyObject * obj0 = 0 ;
41556 PyObject * obj1 = 0 ;
41557 PyObject * obj2 = 0 ;
41558 PyObject * obj3 = 0 ;
41559 PyObject * obj4 = 0 ;
41560 char * kwnames[] = {
41561 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41562 };
41563
41564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41566 if (!SWIG_IsOK(res1)) {
41567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41568 }
41569 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41570 {
41571 arg2 = &temp2;
41572 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41573 }
41574 {
41575 arg3 = &temp3;
41576 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41577 }
41578 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41579 if (!SWIG_IsOK(ecode4)) {
41580 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41581 }
41582 arg4 = static_cast< bool >(val4);
41583 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41584 if (!SWIG_IsOK(ecode5)) {
41585 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41586 }
41587 arg5 = static_cast< bool >(val5);
41588 {
41589 PyThreadState* __tstate = wxPyBeginAllowThreads();
41590 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41591 wxPyEndAllowThreads(__tstate);
41592 if (PyErr_Occurred()) SWIG_fail;
41593 }
41594 {
41595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41596 }
41597 return resultobj;
41598 fail:
41599 return NULL;
41600 }
41601
41602
41603 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41604 PyObject *obj;
41605 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41606 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41607 return SWIG_Py_Void();
41608 }
41609
41610 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41611 return SWIG_Python_InitShadowInstance(args);
41612 }
41613
41614 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41615 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41616 return 1;
41617 }
41618
41619
41620 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41621 PyObject *pyobj = 0;
41622
41623 {
41624 #if wxUSE_UNICODE
41625 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41626 #else
41627 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41628 #endif
41629 }
41630 return pyobj;
41631 }
41632
41633
41634 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41635 PyObject *resultobj = 0;
41636 wxWindow *arg1 = (wxWindow *) 0 ;
41637 int arg2 = (int) -1 ;
41638 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41639 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41640 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41641 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41642 wxSize const &arg5_defvalue = wxDefaultSize ;
41643 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41644 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41645 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41646 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41647 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41648 wxString *arg8 = (wxString *) &arg8_defvalue ;
41649 wxDatePickerCtrl *result = 0 ;
41650 void *argp1 = 0 ;
41651 int res1 = 0 ;
41652 int val2 ;
41653 int ecode2 = 0 ;
41654 void *argp3 = 0 ;
41655 int res3 = 0 ;
41656 wxPoint temp4 ;
41657 wxSize temp5 ;
41658 long val6 ;
41659 int ecode6 = 0 ;
41660 void *argp7 = 0 ;
41661 int res7 = 0 ;
41662 bool temp8 = false ;
41663 PyObject * obj0 = 0 ;
41664 PyObject * obj1 = 0 ;
41665 PyObject * obj2 = 0 ;
41666 PyObject * obj3 = 0 ;
41667 PyObject * obj4 = 0 ;
41668 PyObject * obj5 = 0 ;
41669 PyObject * obj6 = 0 ;
41670 PyObject * obj7 = 0 ;
41671 char * kwnames[] = {
41672 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41673 };
41674
41675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41677 if (!SWIG_IsOK(res1)) {
41678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41679 }
41680 arg1 = reinterpret_cast< wxWindow * >(argp1);
41681 if (obj1) {
41682 ecode2 = SWIG_AsVal_int(obj1, &val2);
41683 if (!SWIG_IsOK(ecode2)) {
41684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41685 }
41686 arg2 = static_cast< int >(val2);
41687 }
41688 if (obj2) {
41689 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41690 if (!SWIG_IsOK(res3)) {
41691 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41692 }
41693 if (!argp3) {
41694 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41695 }
41696 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41697 }
41698 if (obj3) {
41699 {
41700 arg4 = &temp4;
41701 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41702 }
41703 }
41704 if (obj4) {
41705 {
41706 arg5 = &temp5;
41707 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41708 }
41709 }
41710 if (obj5) {
41711 ecode6 = SWIG_AsVal_long(obj5, &val6);
41712 if (!SWIG_IsOK(ecode6)) {
41713 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41714 }
41715 arg6 = static_cast< long >(val6);
41716 }
41717 if (obj6) {
41718 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41719 if (!SWIG_IsOK(res7)) {
41720 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41721 }
41722 if (!argp7) {
41723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41724 }
41725 arg7 = reinterpret_cast< wxValidator * >(argp7);
41726 }
41727 if (obj7) {
41728 {
41729 arg8 = wxString_in_helper(obj7);
41730 if (arg8 == NULL) SWIG_fail;
41731 temp8 = true;
41732 }
41733 }
41734 {
41735 if (!wxPyCheckForApp()) SWIG_fail;
41736 PyThreadState* __tstate = wxPyBeginAllowThreads();
41737 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41738 wxPyEndAllowThreads(__tstate);
41739 if (PyErr_Occurred()) SWIG_fail;
41740 }
41741 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41742 {
41743 if (temp8)
41744 delete arg8;
41745 }
41746 return resultobj;
41747 fail:
41748 {
41749 if (temp8)
41750 delete arg8;
41751 }
41752 return NULL;
41753 }
41754
41755
41756 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41757 PyObject *resultobj = 0;
41758 wxDatePickerCtrl *result = 0 ;
41759
41760 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41761 {
41762 if (!wxPyCheckForApp()) SWIG_fail;
41763 PyThreadState* __tstate = wxPyBeginAllowThreads();
41764 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41765 wxPyEndAllowThreads(__tstate);
41766 if (PyErr_Occurred()) SWIG_fail;
41767 }
41768 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41769 return resultobj;
41770 fail:
41771 return NULL;
41772 }
41773
41774
41775 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41776 PyObject *resultobj = 0;
41777 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41778 wxWindow *arg2 = (wxWindow *) 0 ;
41779 int arg3 = (int) -1 ;
41780 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41781 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41782 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41783 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41784 wxSize const &arg6_defvalue = wxDefaultSize ;
41785 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41786 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41787 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41788 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41789 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41790 wxString *arg9 = (wxString *) &arg9_defvalue ;
41791 bool result;
41792 void *argp1 = 0 ;
41793 int res1 = 0 ;
41794 void *argp2 = 0 ;
41795 int res2 = 0 ;
41796 int val3 ;
41797 int ecode3 = 0 ;
41798 void *argp4 = 0 ;
41799 int res4 = 0 ;
41800 wxPoint temp5 ;
41801 wxSize temp6 ;
41802 long val7 ;
41803 int ecode7 = 0 ;
41804 void *argp8 = 0 ;
41805 int res8 = 0 ;
41806 bool temp9 = false ;
41807 PyObject * obj0 = 0 ;
41808 PyObject * obj1 = 0 ;
41809 PyObject * obj2 = 0 ;
41810 PyObject * obj3 = 0 ;
41811 PyObject * obj4 = 0 ;
41812 PyObject * obj5 = 0 ;
41813 PyObject * obj6 = 0 ;
41814 PyObject * obj7 = 0 ;
41815 PyObject * obj8 = 0 ;
41816 char * kwnames[] = {
41817 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41818 };
41819
41820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41822 if (!SWIG_IsOK(res1)) {
41823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41824 }
41825 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41826 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41827 if (!SWIG_IsOK(res2)) {
41828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41829 }
41830 arg2 = reinterpret_cast< wxWindow * >(argp2);
41831 if (obj2) {
41832 ecode3 = SWIG_AsVal_int(obj2, &val3);
41833 if (!SWIG_IsOK(ecode3)) {
41834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41835 }
41836 arg3 = static_cast< int >(val3);
41837 }
41838 if (obj3) {
41839 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41840 if (!SWIG_IsOK(res4)) {
41841 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41842 }
41843 if (!argp4) {
41844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41845 }
41846 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41847 }
41848 if (obj4) {
41849 {
41850 arg5 = &temp5;
41851 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41852 }
41853 }
41854 if (obj5) {
41855 {
41856 arg6 = &temp6;
41857 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41858 }
41859 }
41860 if (obj6) {
41861 ecode7 = SWIG_AsVal_long(obj6, &val7);
41862 if (!SWIG_IsOK(ecode7)) {
41863 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41864 }
41865 arg7 = static_cast< long >(val7);
41866 }
41867 if (obj7) {
41868 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41869 if (!SWIG_IsOK(res8)) {
41870 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41871 }
41872 if (!argp8) {
41873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41874 }
41875 arg8 = reinterpret_cast< wxValidator * >(argp8);
41876 }
41877 if (obj8) {
41878 {
41879 arg9 = wxString_in_helper(obj8);
41880 if (arg9 == NULL) SWIG_fail;
41881 temp9 = true;
41882 }
41883 }
41884 {
41885 PyThreadState* __tstate = wxPyBeginAllowThreads();
41886 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41887 wxPyEndAllowThreads(__tstate);
41888 if (PyErr_Occurred()) SWIG_fail;
41889 }
41890 {
41891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41892 }
41893 {
41894 if (temp9)
41895 delete arg9;
41896 }
41897 return resultobj;
41898 fail:
41899 {
41900 if (temp9)
41901 delete arg9;
41902 }
41903 return NULL;
41904 }
41905
41906
41907 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41908 PyObject *resultobj = 0;
41909 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41910 wxDateTime *arg2 = 0 ;
41911 void *argp1 = 0 ;
41912 int res1 = 0 ;
41913 void *argp2 = 0 ;
41914 int res2 = 0 ;
41915 PyObject * obj0 = 0 ;
41916 PyObject * obj1 = 0 ;
41917 char * kwnames[] = {
41918 (char *) "self",(char *) "dt", NULL
41919 };
41920
41921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41923 if (!SWIG_IsOK(res1)) {
41924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41925 }
41926 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41927 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41928 if (!SWIG_IsOK(res2)) {
41929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41930 }
41931 if (!argp2) {
41932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41933 }
41934 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41935 {
41936 PyThreadState* __tstate = wxPyBeginAllowThreads();
41937 (arg1)->SetValue((wxDateTime 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_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41949 PyObject *resultobj = 0;
41950 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41951 wxDateTime 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_wxDatePickerCtrl, 0 | 0 );
41959 if (!SWIG_IsOK(res1)) {
41960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41961 }
41962 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41963 {
41964 PyThreadState* __tstate = wxPyBeginAllowThreads();
41965 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41966 wxPyEndAllowThreads(__tstate);
41967 if (PyErr_Occurred()) SWIG_fail;
41968 }
41969 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41970 return resultobj;
41971 fail:
41972 return NULL;
41973 }
41974
41975
41976 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41977 PyObject *resultobj = 0;
41978 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41979 wxDateTime *arg2 = 0 ;
41980 wxDateTime *arg3 = 0 ;
41981 void *argp1 = 0 ;
41982 int res1 = 0 ;
41983 void *argp2 = 0 ;
41984 int res2 = 0 ;
41985 void *argp3 = 0 ;
41986 int res3 = 0 ;
41987 PyObject * obj0 = 0 ;
41988 PyObject * obj1 = 0 ;
41989 PyObject * obj2 = 0 ;
41990 char * kwnames[] = {
41991 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41992 };
41993
41994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41996 if (!SWIG_IsOK(res1)) {
41997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41998 }
41999 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42000 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
42001 if (!SWIG_IsOK(res2)) {
42002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
42003 }
42004 if (!argp2) {
42005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
42006 }
42007 arg2 = reinterpret_cast< wxDateTime * >(argp2);
42008 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
42009 if (!SWIG_IsOK(res3)) {
42010 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
42011 }
42012 if (!argp3) {
42013 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
42014 }
42015 arg3 = reinterpret_cast< wxDateTime * >(argp3);
42016 {
42017 PyThreadState* __tstate = wxPyBeginAllowThreads();
42018 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
42019 wxPyEndAllowThreads(__tstate);
42020 if (PyErr_Occurred()) SWIG_fail;
42021 }
42022 resultobj = SWIG_Py_Void();
42023 return resultobj;
42024 fail:
42025 return NULL;
42026 }
42027
42028
42029 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42030 PyObject *resultobj = 0;
42031 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42032 wxDateTime result;
42033 void *argp1 = 0 ;
42034 int res1 = 0 ;
42035 PyObject *swig_obj[1] ;
42036
42037 if (!args) SWIG_fail;
42038 swig_obj[0] = args;
42039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42040 if (!SWIG_IsOK(res1)) {
42041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42042 }
42043 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42044 {
42045 PyThreadState* __tstate = wxPyBeginAllowThreads();
42046 result = wxDatePickerCtrl_GetLowerLimit(arg1);
42047 wxPyEndAllowThreads(__tstate);
42048 if (PyErr_Occurred()) SWIG_fail;
42049 }
42050 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
42051 return resultobj;
42052 fail:
42053 return NULL;
42054 }
42055
42056
42057 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42058 PyObject *resultobj = 0;
42059 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42060 wxDateTime result;
42061 void *argp1 = 0 ;
42062 int res1 = 0 ;
42063 PyObject *swig_obj[1] ;
42064
42065 if (!args) SWIG_fail;
42066 swig_obj[0] = args;
42067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42068 if (!SWIG_IsOK(res1)) {
42069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42070 }
42071 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42072 {
42073 PyThreadState* __tstate = wxPyBeginAllowThreads();
42074 result = wxDatePickerCtrl_GetUpperLimit(arg1);
42075 wxPyEndAllowThreads(__tstate);
42076 if (PyErr_Occurred()) SWIG_fail;
42077 }
42078 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
42079 return resultobj;
42080 fail:
42081 return NULL;
42082 }
42083
42084
42085 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42086 PyObject *obj;
42087 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42088 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
42089 return SWIG_Py_Void();
42090 }
42091
42092 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42093 return SWIG_Python_InitShadowInstance(args);
42094 }
42095
42096 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
42097 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
42098 return 1;
42099 }
42100
42101
42102 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
42103 PyObject *pyobj = 0;
42104
42105 {
42106 #if wxUSE_UNICODE
42107 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
42108 #else
42109 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
42110 #endif
42111 }
42112 return pyobj;
42113 }
42114
42115
42116 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42117 PyObject *resultobj = 0;
42118 wxWindow *arg1 = (wxWindow *) 0 ;
42119 int arg2 ;
42120 wxString *arg3 = 0 ;
42121 wxString *arg4 = 0 ;
42122 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42123 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42124 wxSize const &arg6_defvalue = wxDefaultSize ;
42125 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42126 long arg7 = (long) wxHL_DEFAULT_STYLE ;
42127 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
42128 wxString *arg8 = (wxString *) &arg8_defvalue ;
42129 wxHyperlinkCtrl *result = 0 ;
42130 void *argp1 = 0 ;
42131 int res1 = 0 ;
42132 int val2 ;
42133 int ecode2 = 0 ;
42134 bool temp3 = false ;
42135 bool temp4 = false ;
42136 wxPoint temp5 ;
42137 wxSize temp6 ;
42138 long val7 ;
42139 int ecode7 = 0 ;
42140 bool temp8 = false ;
42141 PyObject * obj0 = 0 ;
42142 PyObject * obj1 = 0 ;
42143 PyObject * obj2 = 0 ;
42144 PyObject * obj3 = 0 ;
42145 PyObject * obj4 = 0 ;
42146 PyObject * obj5 = 0 ;
42147 PyObject * obj6 = 0 ;
42148 PyObject * obj7 = 0 ;
42149 char * kwnames[] = {
42150 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42151 };
42152
42153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42155 if (!SWIG_IsOK(res1)) {
42156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42157 }
42158 arg1 = reinterpret_cast< wxWindow * >(argp1);
42159 ecode2 = SWIG_AsVal_int(obj1, &val2);
42160 if (!SWIG_IsOK(ecode2)) {
42161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
42162 }
42163 arg2 = static_cast< int >(val2);
42164 {
42165 arg3 = wxString_in_helper(obj2);
42166 if (arg3 == NULL) SWIG_fail;
42167 temp3 = true;
42168 }
42169 {
42170 arg4 = wxString_in_helper(obj3);
42171 if (arg4 == NULL) SWIG_fail;
42172 temp4 = true;
42173 }
42174 if (obj4) {
42175 {
42176 arg5 = &temp5;
42177 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42178 }
42179 }
42180 if (obj5) {
42181 {
42182 arg6 = &temp6;
42183 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42184 }
42185 }
42186 if (obj6) {
42187 ecode7 = SWIG_AsVal_long(obj6, &val7);
42188 if (!SWIG_IsOK(ecode7)) {
42189 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
42190 }
42191 arg7 = static_cast< long >(val7);
42192 }
42193 if (obj7) {
42194 {
42195 arg8 = wxString_in_helper(obj7);
42196 if (arg8 == NULL) SWIG_fail;
42197 temp8 = true;
42198 }
42199 }
42200 {
42201 if (!wxPyCheckForApp()) SWIG_fail;
42202 PyThreadState* __tstate = wxPyBeginAllowThreads();
42203 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
42204 wxPyEndAllowThreads(__tstate);
42205 if (PyErr_Occurred()) SWIG_fail;
42206 }
42207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
42208 {
42209 if (temp3)
42210 delete arg3;
42211 }
42212 {
42213 if (temp4)
42214 delete arg4;
42215 }
42216 {
42217 if (temp8)
42218 delete arg8;
42219 }
42220 return resultobj;
42221 fail:
42222 {
42223 if (temp3)
42224 delete arg3;
42225 }
42226 {
42227 if (temp4)
42228 delete arg4;
42229 }
42230 {
42231 if (temp8)
42232 delete arg8;
42233 }
42234 return NULL;
42235 }
42236
42237
42238 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42239 PyObject *resultobj = 0;
42240 wxHyperlinkCtrl *result = 0 ;
42241
42242 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
42243 {
42244 if (!wxPyCheckForApp()) SWIG_fail;
42245 PyThreadState* __tstate = wxPyBeginAllowThreads();
42246 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
42247 wxPyEndAllowThreads(__tstate);
42248 if (PyErr_Occurred()) SWIG_fail;
42249 }
42250 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
42251 return resultobj;
42252 fail:
42253 return NULL;
42254 }
42255
42256
42257 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42258 PyObject *resultobj = 0;
42259 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42260 wxWindow *arg2 = (wxWindow *) 0 ;
42261 int arg3 ;
42262 wxString *arg4 = 0 ;
42263 wxString *arg5 = 0 ;
42264 wxPoint const &arg6_defvalue = wxDefaultPosition ;
42265 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
42266 wxSize const &arg7_defvalue = wxDefaultSize ;
42267 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
42268 long arg8 = (long) wxHL_DEFAULT_STYLE ;
42269 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
42270 wxString *arg9 = (wxString *) &arg9_defvalue ;
42271 bool result;
42272 void *argp1 = 0 ;
42273 int res1 = 0 ;
42274 void *argp2 = 0 ;
42275 int res2 = 0 ;
42276 int val3 ;
42277 int ecode3 = 0 ;
42278 bool temp4 = false ;
42279 bool temp5 = false ;
42280 wxPoint temp6 ;
42281 wxSize temp7 ;
42282 long val8 ;
42283 int ecode8 = 0 ;
42284 bool temp9 = false ;
42285 PyObject * obj0 = 0 ;
42286 PyObject * obj1 = 0 ;
42287 PyObject * obj2 = 0 ;
42288 PyObject * obj3 = 0 ;
42289 PyObject * obj4 = 0 ;
42290 PyObject * obj5 = 0 ;
42291 PyObject * obj6 = 0 ;
42292 PyObject * obj7 = 0 ;
42293 PyObject * obj8 = 0 ;
42294 char * kwnames[] = {
42295 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42296 };
42297
42298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42300 if (!SWIG_IsOK(res1)) {
42301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42302 }
42303 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42304 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42305 if (!SWIG_IsOK(res2)) {
42306 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42307 }
42308 arg2 = reinterpret_cast< wxWindow * >(argp2);
42309 ecode3 = SWIG_AsVal_int(obj2, &val3);
42310 if (!SWIG_IsOK(ecode3)) {
42311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42312 }
42313 arg3 = static_cast< int >(val3);
42314 {
42315 arg4 = wxString_in_helper(obj3);
42316 if (arg4 == NULL) SWIG_fail;
42317 temp4 = true;
42318 }
42319 {
42320 arg5 = wxString_in_helper(obj4);
42321 if (arg5 == NULL) SWIG_fail;
42322 temp5 = true;
42323 }
42324 if (obj5) {
42325 {
42326 arg6 = &temp6;
42327 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
42328 }
42329 }
42330 if (obj6) {
42331 {
42332 arg7 = &temp7;
42333 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
42334 }
42335 }
42336 if (obj7) {
42337 ecode8 = SWIG_AsVal_long(obj7, &val8);
42338 if (!SWIG_IsOK(ecode8)) {
42339 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
42340 }
42341 arg8 = static_cast< long >(val8);
42342 }
42343 if (obj8) {
42344 {
42345 arg9 = wxString_in_helper(obj8);
42346 if (arg9 == NULL) SWIG_fail;
42347 temp9 = true;
42348 }
42349 }
42350 {
42351 PyThreadState* __tstate = wxPyBeginAllowThreads();
42352 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
42353 wxPyEndAllowThreads(__tstate);
42354 if (PyErr_Occurred()) SWIG_fail;
42355 }
42356 {
42357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42358 }
42359 {
42360 if (temp4)
42361 delete arg4;
42362 }
42363 {
42364 if (temp5)
42365 delete arg5;
42366 }
42367 {
42368 if (temp9)
42369 delete arg9;
42370 }
42371 return resultobj;
42372 fail:
42373 {
42374 if (temp4)
42375 delete arg4;
42376 }
42377 {
42378 if (temp5)
42379 delete arg5;
42380 }
42381 {
42382 if (temp9)
42383 delete arg9;
42384 }
42385 return NULL;
42386 }
42387
42388
42389 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42390 PyObject *resultobj = 0;
42391 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42392 wxColour result;
42393 void *argp1 = 0 ;
42394 int res1 = 0 ;
42395 PyObject *swig_obj[1] ;
42396
42397 if (!args) SWIG_fail;
42398 swig_obj[0] = args;
42399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42400 if (!SWIG_IsOK(res1)) {
42401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42402 }
42403 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42404 {
42405 PyThreadState* __tstate = wxPyBeginAllowThreads();
42406 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42407 wxPyEndAllowThreads(__tstate);
42408 if (PyErr_Occurred()) SWIG_fail;
42409 }
42410 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42411 return resultobj;
42412 fail:
42413 return NULL;
42414 }
42415
42416
42417 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42418 PyObject *resultobj = 0;
42419 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42420 wxColour *arg2 = 0 ;
42421 void *argp1 = 0 ;
42422 int res1 = 0 ;
42423 wxColour temp2 ;
42424 PyObject * obj0 = 0 ;
42425 PyObject * obj1 = 0 ;
42426 char * kwnames[] = {
42427 (char *) "self",(char *) "colour", NULL
42428 };
42429
42430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42432 if (!SWIG_IsOK(res1)) {
42433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42434 }
42435 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42436 {
42437 arg2 = &temp2;
42438 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42439 }
42440 {
42441 PyThreadState* __tstate = wxPyBeginAllowThreads();
42442 (arg1)->SetHoverColour((wxColour const &)*arg2);
42443 wxPyEndAllowThreads(__tstate);
42444 if (PyErr_Occurred()) SWIG_fail;
42445 }
42446 resultobj = SWIG_Py_Void();
42447 return resultobj;
42448 fail:
42449 return NULL;
42450 }
42451
42452
42453 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42454 PyObject *resultobj = 0;
42455 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42456 wxColour result;
42457 void *argp1 = 0 ;
42458 int res1 = 0 ;
42459 PyObject *swig_obj[1] ;
42460
42461 if (!args) SWIG_fail;
42462 swig_obj[0] = args;
42463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42464 if (!SWIG_IsOK(res1)) {
42465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42466 }
42467 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42468 {
42469 PyThreadState* __tstate = wxPyBeginAllowThreads();
42470 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42471 wxPyEndAllowThreads(__tstate);
42472 if (PyErr_Occurred()) SWIG_fail;
42473 }
42474 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42475 return resultobj;
42476 fail:
42477 return NULL;
42478 }
42479
42480
42481 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42482 PyObject *resultobj = 0;
42483 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42484 wxColour *arg2 = 0 ;
42485 void *argp1 = 0 ;
42486 int res1 = 0 ;
42487 wxColour temp2 ;
42488 PyObject * obj0 = 0 ;
42489 PyObject * obj1 = 0 ;
42490 char * kwnames[] = {
42491 (char *) "self",(char *) "colour", NULL
42492 };
42493
42494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42496 if (!SWIG_IsOK(res1)) {
42497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42498 }
42499 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42500 {
42501 arg2 = &temp2;
42502 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42503 }
42504 {
42505 PyThreadState* __tstate = wxPyBeginAllowThreads();
42506 (arg1)->SetNormalColour((wxColour const &)*arg2);
42507 wxPyEndAllowThreads(__tstate);
42508 if (PyErr_Occurred()) SWIG_fail;
42509 }
42510 resultobj = SWIG_Py_Void();
42511 return resultobj;
42512 fail:
42513 return NULL;
42514 }
42515
42516
42517 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42518 PyObject *resultobj = 0;
42519 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42520 wxColour result;
42521 void *argp1 = 0 ;
42522 int res1 = 0 ;
42523 PyObject *swig_obj[1] ;
42524
42525 if (!args) SWIG_fail;
42526 swig_obj[0] = args;
42527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42528 if (!SWIG_IsOK(res1)) {
42529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42530 }
42531 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42532 {
42533 PyThreadState* __tstate = wxPyBeginAllowThreads();
42534 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42535 wxPyEndAllowThreads(__tstate);
42536 if (PyErr_Occurred()) SWIG_fail;
42537 }
42538 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42539 return resultobj;
42540 fail:
42541 return NULL;
42542 }
42543
42544
42545 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42546 PyObject *resultobj = 0;
42547 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42548 wxColour *arg2 = 0 ;
42549 void *argp1 = 0 ;
42550 int res1 = 0 ;
42551 wxColour temp2 ;
42552 PyObject * obj0 = 0 ;
42553 PyObject * obj1 = 0 ;
42554 char * kwnames[] = {
42555 (char *) "self",(char *) "colour", NULL
42556 };
42557
42558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42560 if (!SWIG_IsOK(res1)) {
42561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42562 }
42563 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42564 {
42565 arg2 = &temp2;
42566 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42567 }
42568 {
42569 PyThreadState* __tstate = wxPyBeginAllowThreads();
42570 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42571 wxPyEndAllowThreads(__tstate);
42572 if (PyErr_Occurred()) SWIG_fail;
42573 }
42574 resultobj = SWIG_Py_Void();
42575 return resultobj;
42576 fail:
42577 return NULL;
42578 }
42579
42580
42581 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42582 PyObject *resultobj = 0;
42583 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42584 wxString result;
42585 void *argp1 = 0 ;
42586 int res1 = 0 ;
42587 PyObject *swig_obj[1] ;
42588
42589 if (!args) SWIG_fail;
42590 swig_obj[0] = args;
42591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42592 if (!SWIG_IsOK(res1)) {
42593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42594 }
42595 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42596 {
42597 PyThreadState* __tstate = wxPyBeginAllowThreads();
42598 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42599 wxPyEndAllowThreads(__tstate);
42600 if (PyErr_Occurred()) SWIG_fail;
42601 }
42602 {
42603 #if wxUSE_UNICODE
42604 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42605 #else
42606 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42607 #endif
42608 }
42609 return resultobj;
42610 fail:
42611 return NULL;
42612 }
42613
42614
42615 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42616 PyObject *resultobj = 0;
42617 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42618 wxString *arg2 = 0 ;
42619 void *argp1 = 0 ;
42620 int res1 = 0 ;
42621 bool temp2 = false ;
42622 PyObject * obj0 = 0 ;
42623 PyObject * obj1 = 0 ;
42624 char * kwnames[] = {
42625 (char *) "self",(char *) "url", NULL
42626 };
42627
42628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42630 if (!SWIG_IsOK(res1)) {
42631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42632 }
42633 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42634 {
42635 arg2 = wxString_in_helper(obj1);
42636 if (arg2 == NULL) SWIG_fail;
42637 temp2 = true;
42638 }
42639 {
42640 PyThreadState* __tstate = wxPyBeginAllowThreads();
42641 (arg1)->SetURL((wxString const &)*arg2);
42642 wxPyEndAllowThreads(__tstate);
42643 if (PyErr_Occurred()) SWIG_fail;
42644 }
42645 resultobj = SWIG_Py_Void();
42646 {
42647 if (temp2)
42648 delete arg2;
42649 }
42650 return resultobj;
42651 fail:
42652 {
42653 if (temp2)
42654 delete arg2;
42655 }
42656 return NULL;
42657 }
42658
42659
42660 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42661 PyObject *resultobj = 0;
42662 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42663 bool arg2 = (bool) true ;
42664 void *argp1 = 0 ;
42665 int res1 = 0 ;
42666 bool val2 ;
42667 int ecode2 = 0 ;
42668 PyObject * obj0 = 0 ;
42669 PyObject * obj1 = 0 ;
42670 char * kwnames[] = {
42671 (char *) "self",(char *) "visited", NULL
42672 };
42673
42674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42676 if (!SWIG_IsOK(res1)) {
42677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42678 }
42679 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42680 if (obj1) {
42681 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42682 if (!SWIG_IsOK(ecode2)) {
42683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42684 }
42685 arg2 = static_cast< bool >(val2);
42686 }
42687 {
42688 PyThreadState* __tstate = wxPyBeginAllowThreads();
42689 (arg1)->SetVisited(arg2);
42690 wxPyEndAllowThreads(__tstate);
42691 if (PyErr_Occurred()) SWIG_fail;
42692 }
42693 resultobj = SWIG_Py_Void();
42694 return resultobj;
42695 fail:
42696 return NULL;
42697 }
42698
42699
42700 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42701 PyObject *resultobj = 0;
42702 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42703 bool result;
42704 void *argp1 = 0 ;
42705 int res1 = 0 ;
42706 PyObject *swig_obj[1] ;
42707
42708 if (!args) SWIG_fail;
42709 swig_obj[0] = args;
42710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42711 if (!SWIG_IsOK(res1)) {
42712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42713 }
42714 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42715 {
42716 PyThreadState* __tstate = wxPyBeginAllowThreads();
42717 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42718 wxPyEndAllowThreads(__tstate);
42719 if (PyErr_Occurred()) SWIG_fail;
42720 }
42721 {
42722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42723 }
42724 return resultobj;
42725 fail:
42726 return NULL;
42727 }
42728
42729
42730 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42731 PyObject *obj;
42732 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42733 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42734 return SWIG_Py_Void();
42735 }
42736
42737 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42738 return SWIG_Python_InitShadowInstance(args);
42739 }
42740
42741 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42742 PyObject *resultobj = 0;
42743 wxObject *arg1 = (wxObject *) 0 ;
42744 int arg2 ;
42745 wxString *arg3 = 0 ;
42746 wxHyperlinkEvent *result = 0 ;
42747 void *argp1 = 0 ;
42748 int res1 = 0 ;
42749 int val2 ;
42750 int ecode2 = 0 ;
42751 bool temp3 = false ;
42752 PyObject * obj0 = 0 ;
42753 PyObject * obj1 = 0 ;
42754 PyObject * obj2 = 0 ;
42755 char * kwnames[] = {
42756 (char *) "generator",(char *) "id",(char *) "url", NULL
42757 };
42758
42759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42761 if (!SWIG_IsOK(res1)) {
42762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42763 }
42764 arg1 = reinterpret_cast< wxObject * >(argp1);
42765 ecode2 = SWIG_AsVal_int(obj1, &val2);
42766 if (!SWIG_IsOK(ecode2)) {
42767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42768 }
42769 arg2 = static_cast< int >(val2);
42770 {
42771 arg3 = wxString_in_helper(obj2);
42772 if (arg3 == NULL) SWIG_fail;
42773 temp3 = true;
42774 }
42775 {
42776 PyThreadState* __tstate = wxPyBeginAllowThreads();
42777 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42778 wxPyEndAllowThreads(__tstate);
42779 if (PyErr_Occurred()) SWIG_fail;
42780 }
42781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42782 {
42783 if (temp3)
42784 delete arg3;
42785 }
42786 return resultobj;
42787 fail:
42788 {
42789 if (temp3)
42790 delete arg3;
42791 }
42792 return NULL;
42793 }
42794
42795
42796 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42797 PyObject *resultobj = 0;
42798 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42799 wxString result;
42800 void *argp1 = 0 ;
42801 int res1 = 0 ;
42802 PyObject *swig_obj[1] ;
42803
42804 if (!args) SWIG_fail;
42805 swig_obj[0] = args;
42806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42807 if (!SWIG_IsOK(res1)) {
42808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42809 }
42810 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42811 {
42812 PyThreadState* __tstate = wxPyBeginAllowThreads();
42813 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42814 wxPyEndAllowThreads(__tstate);
42815 if (PyErr_Occurred()) SWIG_fail;
42816 }
42817 {
42818 #if wxUSE_UNICODE
42819 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42820 #else
42821 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42822 #endif
42823 }
42824 return resultobj;
42825 fail:
42826 return NULL;
42827 }
42828
42829
42830 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42831 PyObject *resultobj = 0;
42832 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42833 wxString *arg2 = 0 ;
42834 void *argp1 = 0 ;
42835 int res1 = 0 ;
42836 bool temp2 = false ;
42837 PyObject * obj0 = 0 ;
42838 PyObject * obj1 = 0 ;
42839 char * kwnames[] = {
42840 (char *) "self",(char *) "url", NULL
42841 };
42842
42843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42845 if (!SWIG_IsOK(res1)) {
42846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42847 }
42848 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42849 {
42850 arg2 = wxString_in_helper(obj1);
42851 if (arg2 == NULL) SWIG_fail;
42852 temp2 = true;
42853 }
42854 {
42855 PyThreadState* __tstate = wxPyBeginAllowThreads();
42856 (arg1)->SetURL((wxString const &)*arg2);
42857 wxPyEndAllowThreads(__tstate);
42858 if (PyErr_Occurred()) SWIG_fail;
42859 }
42860 resultobj = SWIG_Py_Void();
42861 {
42862 if (temp2)
42863 delete arg2;
42864 }
42865 return resultobj;
42866 fail:
42867 {
42868 if (temp2)
42869 delete arg2;
42870 }
42871 return NULL;
42872 }
42873
42874
42875 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42876 PyObject *obj;
42877 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42878 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42879 return SWIG_Py_Void();
42880 }
42881
42882 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42883 return SWIG_Python_InitShadowInstance(args);
42884 }
42885
42886 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42887 PyObject *resultobj = 0;
42888 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42889 wxWindow *arg2 = (wxWindow *) 0 ;
42890 int arg3 ;
42891 wxString const &arg4_defvalue = wxEmptyString ;
42892 wxString *arg4 = (wxString *) &arg4_defvalue ;
42893 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42894 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42895 wxSize const &arg6_defvalue = wxDefaultSize ;
42896 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42897 long arg7 = (long) 0 ;
42898 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42899 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42900 wxString const &arg9_defvalue = wxButtonNameStr ;
42901 wxString *arg9 = (wxString *) &arg9_defvalue ;
42902 bool result;
42903 void *argp1 = 0 ;
42904 int res1 = 0 ;
42905 void *argp2 = 0 ;
42906 int res2 = 0 ;
42907 int val3 ;
42908 int ecode3 = 0 ;
42909 bool temp4 = false ;
42910 wxPoint temp5 ;
42911 wxSize temp6 ;
42912 long val7 ;
42913 int ecode7 = 0 ;
42914 void *argp8 = 0 ;
42915 int res8 = 0 ;
42916 bool temp9 = false ;
42917 PyObject * obj0 = 0 ;
42918 PyObject * obj1 = 0 ;
42919 PyObject * obj2 = 0 ;
42920 PyObject * obj3 = 0 ;
42921 PyObject * obj4 = 0 ;
42922 PyObject * obj5 = 0 ;
42923 PyObject * obj6 = 0 ;
42924 PyObject * obj7 = 0 ;
42925 PyObject * obj8 = 0 ;
42926 char * kwnames[] = {
42927 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42928 };
42929
42930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42932 if (!SWIG_IsOK(res1)) {
42933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42934 }
42935 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42936 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42937 if (!SWIG_IsOK(res2)) {
42938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42939 }
42940 arg2 = reinterpret_cast< wxWindow * >(argp2);
42941 ecode3 = SWIG_AsVal_int(obj2, &val3);
42942 if (!SWIG_IsOK(ecode3)) {
42943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42944 }
42945 arg3 = static_cast< int >(val3);
42946 if (obj3) {
42947 {
42948 arg4 = wxString_in_helper(obj3);
42949 if (arg4 == NULL) SWIG_fail;
42950 temp4 = true;
42951 }
42952 }
42953 if (obj4) {
42954 {
42955 arg5 = &temp5;
42956 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42957 }
42958 }
42959 if (obj5) {
42960 {
42961 arg6 = &temp6;
42962 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42963 }
42964 }
42965 if (obj6) {
42966 ecode7 = SWIG_AsVal_long(obj6, &val7);
42967 if (!SWIG_IsOK(ecode7)) {
42968 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42969 }
42970 arg7 = static_cast< long >(val7);
42971 }
42972 if (obj7) {
42973 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42974 if (!SWIG_IsOK(res8)) {
42975 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42976 }
42977 if (!argp8) {
42978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42979 }
42980 arg8 = reinterpret_cast< wxValidator * >(argp8);
42981 }
42982 if (obj8) {
42983 {
42984 arg9 = wxString_in_helper(obj8);
42985 if (arg9 == NULL) SWIG_fail;
42986 temp9 = true;
42987 }
42988 }
42989 {
42990 PyThreadState* __tstate = wxPyBeginAllowThreads();
42991 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42992 wxPyEndAllowThreads(__tstate);
42993 if (PyErr_Occurred()) SWIG_fail;
42994 }
42995 {
42996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42997 }
42998 {
42999 if (temp4)
43000 delete arg4;
43001 }
43002 {
43003 if (temp9)
43004 delete arg9;
43005 }
43006 return resultobj;
43007 fail:
43008 {
43009 if (temp4)
43010 delete arg4;
43011 }
43012 {
43013 if (temp9)
43014 delete arg9;
43015 }
43016 return NULL;
43017 }
43018
43019
43020 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43021 PyObject *resultobj = 0;
43022 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43023 int arg2 ;
43024 void *argp1 = 0 ;
43025 int res1 = 0 ;
43026 int val2 ;
43027 int ecode2 = 0 ;
43028 PyObject * obj0 = 0 ;
43029 PyObject * obj1 = 0 ;
43030 char * kwnames[] = {
43031 (char *) "self",(char *) "newmargin", NULL
43032 };
43033
43034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
43035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43036 if (!SWIG_IsOK(res1)) {
43037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43038 }
43039 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43040 ecode2 = SWIG_AsVal_int(obj1, &val2);
43041 if (!SWIG_IsOK(ecode2)) {
43042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
43043 }
43044 arg2 = static_cast< int >(val2);
43045 {
43046 PyThreadState* __tstate = wxPyBeginAllowThreads();
43047 (arg1)->SetInternalMargin(arg2);
43048 wxPyEndAllowThreads(__tstate);
43049 if (PyErr_Occurred()) SWIG_fail;
43050 }
43051 resultobj = SWIG_Py_Void();
43052 return resultobj;
43053 fail:
43054 return NULL;
43055 }
43056
43057
43058 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43059 PyObject *resultobj = 0;
43060 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43061 int result;
43062 void *argp1 = 0 ;
43063 int res1 = 0 ;
43064 PyObject *swig_obj[1] ;
43065
43066 if (!args) SWIG_fail;
43067 swig_obj[0] = args;
43068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43069 if (!SWIG_IsOK(res1)) {
43070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43071 }
43072 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43073 {
43074 PyThreadState* __tstate = wxPyBeginAllowThreads();
43075 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
43076 wxPyEndAllowThreads(__tstate);
43077 if (PyErr_Occurred()) SWIG_fail;
43078 }
43079 resultobj = SWIG_From_int(static_cast< int >(result));
43080 return resultobj;
43081 fail:
43082 return NULL;
43083 }
43084
43085
43086 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43087 PyObject *resultobj = 0;
43088 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43089 int arg2 ;
43090 void *argp1 = 0 ;
43091 int res1 = 0 ;
43092 int val2 ;
43093 int ecode2 = 0 ;
43094 PyObject * obj0 = 0 ;
43095 PyObject * obj1 = 0 ;
43096 char * kwnames[] = {
43097 (char *) "self",(char *) "prop", NULL
43098 };
43099
43100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
43101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43102 if (!SWIG_IsOK(res1)) {
43103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43104 }
43105 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43106 ecode2 = SWIG_AsVal_int(obj1, &val2);
43107 if (!SWIG_IsOK(ecode2)) {
43108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
43109 }
43110 arg2 = static_cast< int >(val2);
43111 {
43112 PyThreadState* __tstate = wxPyBeginAllowThreads();
43113 (arg1)->SetTextCtrlProportion(arg2);
43114 wxPyEndAllowThreads(__tstate);
43115 if (PyErr_Occurred()) SWIG_fail;
43116 }
43117 resultobj = SWIG_Py_Void();
43118 return resultobj;
43119 fail:
43120 return NULL;
43121 }
43122
43123
43124 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43125 PyObject *resultobj = 0;
43126 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43127 int result;
43128 void *argp1 = 0 ;
43129 int res1 = 0 ;
43130 PyObject *swig_obj[1] ;
43131
43132 if (!args) SWIG_fail;
43133 swig_obj[0] = args;
43134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43135 if (!SWIG_IsOK(res1)) {
43136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43137 }
43138 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43139 {
43140 PyThreadState* __tstate = wxPyBeginAllowThreads();
43141 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
43142 wxPyEndAllowThreads(__tstate);
43143 if (PyErr_Occurred()) SWIG_fail;
43144 }
43145 resultobj = SWIG_From_int(static_cast< int >(result));
43146 return resultobj;
43147 fail:
43148 return NULL;
43149 }
43150
43151
43152 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43153 PyObject *resultobj = 0;
43154 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43155 int arg2 ;
43156 void *argp1 = 0 ;
43157 int res1 = 0 ;
43158 int val2 ;
43159 int ecode2 = 0 ;
43160 PyObject * obj0 = 0 ;
43161 PyObject * obj1 = 0 ;
43162 char * kwnames[] = {
43163 (char *) "self",(char *) "prop", NULL
43164 };
43165
43166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
43167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43168 if (!SWIG_IsOK(res1)) {
43169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43170 }
43171 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43172 ecode2 = SWIG_AsVal_int(obj1, &val2);
43173 if (!SWIG_IsOK(ecode2)) {
43174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
43175 }
43176 arg2 = static_cast< int >(val2);
43177 {
43178 PyThreadState* __tstate = wxPyBeginAllowThreads();
43179 (arg1)->SetPickerCtrlProportion(arg2);
43180 wxPyEndAllowThreads(__tstate);
43181 if (PyErr_Occurred()) SWIG_fail;
43182 }
43183 resultobj = SWIG_Py_Void();
43184 return resultobj;
43185 fail:
43186 return NULL;
43187 }
43188
43189
43190 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43191 PyObject *resultobj = 0;
43192 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43193 int result;
43194 void *argp1 = 0 ;
43195 int res1 = 0 ;
43196 PyObject *swig_obj[1] ;
43197
43198 if (!args) SWIG_fail;
43199 swig_obj[0] = args;
43200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43201 if (!SWIG_IsOK(res1)) {
43202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43203 }
43204 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43205 {
43206 PyThreadState* __tstate = wxPyBeginAllowThreads();
43207 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
43208 wxPyEndAllowThreads(__tstate);
43209 if (PyErr_Occurred()) SWIG_fail;
43210 }
43211 resultobj = SWIG_From_int(static_cast< int >(result));
43212 return resultobj;
43213 fail:
43214 return NULL;
43215 }
43216
43217
43218 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43219 PyObject *resultobj = 0;
43220 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43221 bool result;
43222 void *argp1 = 0 ;
43223 int res1 = 0 ;
43224 PyObject *swig_obj[1] ;
43225
43226 if (!args) SWIG_fail;
43227 swig_obj[0] = args;
43228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43229 if (!SWIG_IsOK(res1)) {
43230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43231 }
43232 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43233 {
43234 PyThreadState* __tstate = wxPyBeginAllowThreads();
43235 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
43236 wxPyEndAllowThreads(__tstate);
43237 if (PyErr_Occurred()) SWIG_fail;
43238 }
43239 {
43240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43241 }
43242 return resultobj;
43243 fail:
43244 return NULL;
43245 }
43246
43247
43248 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43249 PyObject *resultobj = 0;
43250 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43251 bool arg2 = (bool) true ;
43252 void *argp1 = 0 ;
43253 int res1 = 0 ;
43254 bool val2 ;
43255 int ecode2 = 0 ;
43256 PyObject * obj0 = 0 ;
43257 PyObject * obj1 = 0 ;
43258 char * kwnames[] = {
43259 (char *) "self",(char *) "grow", NULL
43260 };
43261
43262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43264 if (!SWIG_IsOK(res1)) {
43265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43266 }
43267 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43268 if (obj1) {
43269 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43270 if (!SWIG_IsOK(ecode2)) {
43271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43272 }
43273 arg2 = static_cast< bool >(val2);
43274 }
43275 {
43276 PyThreadState* __tstate = wxPyBeginAllowThreads();
43277 (arg1)->SetTextCtrlGrowable(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 *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43289 PyObject *resultobj = 0;
43290 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43291 bool result;
43292 void *argp1 = 0 ;
43293 int res1 = 0 ;
43294 PyObject *swig_obj[1] ;
43295
43296 if (!args) SWIG_fail;
43297 swig_obj[0] = args;
43298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43299 if (!SWIG_IsOK(res1)) {
43300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43301 }
43302 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43303 {
43304 PyThreadState* __tstate = wxPyBeginAllowThreads();
43305 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
43306 wxPyEndAllowThreads(__tstate);
43307 if (PyErr_Occurred()) SWIG_fail;
43308 }
43309 {
43310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43311 }
43312 return resultobj;
43313 fail:
43314 return NULL;
43315 }
43316
43317
43318 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43319 PyObject *resultobj = 0;
43320 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43321 bool arg2 = (bool) true ;
43322 void *argp1 = 0 ;
43323 int res1 = 0 ;
43324 bool val2 ;
43325 int ecode2 = 0 ;
43326 PyObject * obj0 = 0 ;
43327 PyObject * obj1 = 0 ;
43328 char * kwnames[] = {
43329 (char *) "self",(char *) "grow", NULL
43330 };
43331
43332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43334 if (!SWIG_IsOK(res1)) {
43335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43336 }
43337 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43338 if (obj1) {
43339 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43340 if (!SWIG_IsOK(ecode2)) {
43341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43342 }
43343 arg2 = static_cast< bool >(val2);
43344 }
43345 {
43346 PyThreadState* __tstate = wxPyBeginAllowThreads();
43347 (arg1)->SetPickerCtrlGrowable(arg2);
43348 wxPyEndAllowThreads(__tstate);
43349 if (PyErr_Occurred()) SWIG_fail;
43350 }
43351 resultobj = SWIG_Py_Void();
43352 return resultobj;
43353 fail:
43354 return NULL;
43355 }
43356
43357
43358 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43359 PyObject *resultobj = 0;
43360 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43361 bool result;
43362 void *argp1 = 0 ;
43363 int res1 = 0 ;
43364 PyObject *swig_obj[1] ;
43365
43366 if (!args) SWIG_fail;
43367 swig_obj[0] = args;
43368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43369 if (!SWIG_IsOK(res1)) {
43370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43371 }
43372 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43373 {
43374 PyThreadState* __tstate = wxPyBeginAllowThreads();
43375 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
43376 wxPyEndAllowThreads(__tstate);
43377 if (PyErr_Occurred()) SWIG_fail;
43378 }
43379 {
43380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43381 }
43382 return resultobj;
43383 fail:
43384 return NULL;
43385 }
43386
43387
43388 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43389 PyObject *resultobj = 0;
43390 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43391 wxTextCtrl *result = 0 ;
43392 void *argp1 = 0 ;
43393 int res1 = 0 ;
43394 PyObject *swig_obj[1] ;
43395
43396 if (!args) SWIG_fail;
43397 swig_obj[0] = args;
43398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43399 if (!SWIG_IsOK(res1)) {
43400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43401 }
43402 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43403 {
43404 PyThreadState* __tstate = wxPyBeginAllowThreads();
43405 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
43406 wxPyEndAllowThreads(__tstate);
43407 if (PyErr_Occurred()) SWIG_fail;
43408 }
43409 {
43410 resultobj = wxPyMake_wxObject(result, 0);
43411 }
43412 return resultobj;
43413 fail:
43414 return NULL;
43415 }
43416
43417
43418 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43419 PyObject *resultobj = 0;
43420 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43421 wxControl *result = 0 ;
43422 void *argp1 = 0 ;
43423 int res1 = 0 ;
43424 PyObject *swig_obj[1] ;
43425
43426 if (!args) SWIG_fail;
43427 swig_obj[0] = args;
43428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43429 if (!SWIG_IsOK(res1)) {
43430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43431 }
43432 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43433 {
43434 PyThreadState* __tstate = wxPyBeginAllowThreads();
43435 result = (wxControl *)(arg1)->GetPickerCtrl();
43436 wxPyEndAllowThreads(__tstate);
43437 if (PyErr_Occurred()) SWIG_fail;
43438 }
43439 {
43440 resultobj = wxPyMake_wxObject(result, 0);
43441 }
43442 return resultobj;
43443 fail:
43444 return NULL;
43445 }
43446
43447
43448 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43449 PyObject *obj;
43450 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43451 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43452 return SWIG_Py_Void();
43453 }
43454
43455 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43456 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43457 return 1;
43458 }
43459
43460
43461 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43462 PyObject *pyobj = 0;
43463
43464 {
43465 #if wxUSE_UNICODE
43466 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43467 #else
43468 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43469 #endif
43470 }
43471 return pyobj;
43472 }
43473
43474
43475 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43476 PyObject *resultobj = 0;
43477 wxWindow *arg1 = (wxWindow *) 0 ;
43478 int arg2 = (int) -1 ;
43479 wxColour const &arg3_defvalue = *wxBLACK ;
43480 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43481 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43482 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43483 wxSize const &arg5_defvalue = wxDefaultSize ;
43484 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43485 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43486 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43487 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43488 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43489 wxString *arg8 = (wxString *) &arg8_defvalue ;
43490 wxColourPickerCtrl *result = 0 ;
43491 void *argp1 = 0 ;
43492 int res1 = 0 ;
43493 int val2 ;
43494 int ecode2 = 0 ;
43495 wxColour temp3 ;
43496 wxPoint temp4 ;
43497 wxSize temp5 ;
43498 long val6 ;
43499 int ecode6 = 0 ;
43500 void *argp7 = 0 ;
43501 int res7 = 0 ;
43502 bool temp8 = false ;
43503 PyObject * obj0 = 0 ;
43504 PyObject * obj1 = 0 ;
43505 PyObject * obj2 = 0 ;
43506 PyObject * obj3 = 0 ;
43507 PyObject * obj4 = 0 ;
43508 PyObject * obj5 = 0 ;
43509 PyObject * obj6 = 0 ;
43510 PyObject * obj7 = 0 ;
43511 char * kwnames[] = {
43512 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43513 };
43514
43515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43517 if (!SWIG_IsOK(res1)) {
43518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43519 }
43520 arg1 = reinterpret_cast< wxWindow * >(argp1);
43521 if (obj1) {
43522 ecode2 = SWIG_AsVal_int(obj1, &val2);
43523 if (!SWIG_IsOK(ecode2)) {
43524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43525 }
43526 arg2 = static_cast< int >(val2);
43527 }
43528 if (obj2) {
43529 {
43530 arg3 = &temp3;
43531 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43532 }
43533 }
43534 if (obj3) {
43535 {
43536 arg4 = &temp4;
43537 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43538 }
43539 }
43540 if (obj4) {
43541 {
43542 arg5 = &temp5;
43543 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43544 }
43545 }
43546 if (obj5) {
43547 ecode6 = SWIG_AsVal_long(obj5, &val6);
43548 if (!SWIG_IsOK(ecode6)) {
43549 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43550 }
43551 arg6 = static_cast< long >(val6);
43552 }
43553 if (obj6) {
43554 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43555 if (!SWIG_IsOK(res7)) {
43556 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43557 }
43558 if (!argp7) {
43559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43560 }
43561 arg7 = reinterpret_cast< wxValidator * >(argp7);
43562 }
43563 if (obj7) {
43564 {
43565 arg8 = wxString_in_helper(obj7);
43566 if (arg8 == NULL) SWIG_fail;
43567 temp8 = true;
43568 }
43569 }
43570 {
43571 if (!wxPyCheckForApp()) SWIG_fail;
43572 PyThreadState* __tstate = wxPyBeginAllowThreads();
43573 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43574 wxPyEndAllowThreads(__tstate);
43575 if (PyErr_Occurred()) SWIG_fail;
43576 }
43577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43578 {
43579 if (temp8)
43580 delete arg8;
43581 }
43582 return resultobj;
43583 fail:
43584 {
43585 if (temp8)
43586 delete arg8;
43587 }
43588 return NULL;
43589 }
43590
43591
43592 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43593 PyObject *resultobj = 0;
43594 wxColourPickerCtrl *result = 0 ;
43595
43596 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43597 {
43598 if (!wxPyCheckForApp()) SWIG_fail;
43599 PyThreadState* __tstate = wxPyBeginAllowThreads();
43600 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43601 wxPyEndAllowThreads(__tstate);
43602 if (PyErr_Occurred()) SWIG_fail;
43603 }
43604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43605 return resultobj;
43606 fail:
43607 return NULL;
43608 }
43609
43610
43611 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43612 PyObject *resultobj = 0;
43613 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43614 wxWindow *arg2 = (wxWindow *) 0 ;
43615 int arg3 ;
43616 wxColour const &arg4_defvalue = *wxBLACK ;
43617 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43618 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43619 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43620 wxSize const &arg6_defvalue = wxDefaultSize ;
43621 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43622 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43623 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43624 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43625 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43626 wxString *arg9 = (wxString *) &arg9_defvalue ;
43627 bool result;
43628 void *argp1 = 0 ;
43629 int res1 = 0 ;
43630 void *argp2 = 0 ;
43631 int res2 = 0 ;
43632 int val3 ;
43633 int ecode3 = 0 ;
43634 wxColour temp4 ;
43635 wxPoint temp5 ;
43636 wxSize temp6 ;
43637 long val7 ;
43638 int ecode7 = 0 ;
43639 void *argp8 = 0 ;
43640 int res8 = 0 ;
43641 bool temp9 = false ;
43642 PyObject * obj0 = 0 ;
43643 PyObject * obj1 = 0 ;
43644 PyObject * obj2 = 0 ;
43645 PyObject * obj3 = 0 ;
43646 PyObject * obj4 = 0 ;
43647 PyObject * obj5 = 0 ;
43648 PyObject * obj6 = 0 ;
43649 PyObject * obj7 = 0 ;
43650 PyObject * obj8 = 0 ;
43651 char * kwnames[] = {
43652 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43653 };
43654
43655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43657 if (!SWIG_IsOK(res1)) {
43658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43659 }
43660 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43661 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43662 if (!SWIG_IsOK(res2)) {
43663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43664 }
43665 arg2 = reinterpret_cast< wxWindow * >(argp2);
43666 ecode3 = SWIG_AsVal_int(obj2, &val3);
43667 if (!SWIG_IsOK(ecode3)) {
43668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43669 }
43670 arg3 = static_cast< int >(val3);
43671 if (obj3) {
43672 {
43673 arg4 = &temp4;
43674 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43675 }
43676 }
43677 if (obj4) {
43678 {
43679 arg5 = &temp5;
43680 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43681 }
43682 }
43683 if (obj5) {
43684 {
43685 arg6 = &temp6;
43686 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43687 }
43688 }
43689 if (obj6) {
43690 ecode7 = SWIG_AsVal_long(obj6, &val7);
43691 if (!SWIG_IsOK(ecode7)) {
43692 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43693 }
43694 arg7 = static_cast< long >(val7);
43695 }
43696 if (obj7) {
43697 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43698 if (!SWIG_IsOK(res8)) {
43699 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43700 }
43701 if (!argp8) {
43702 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43703 }
43704 arg8 = reinterpret_cast< wxValidator * >(argp8);
43705 }
43706 if (obj8) {
43707 {
43708 arg9 = wxString_in_helper(obj8);
43709 if (arg9 == NULL) SWIG_fail;
43710 temp9 = true;
43711 }
43712 }
43713 {
43714 PyThreadState* __tstate = wxPyBeginAllowThreads();
43715 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43716 wxPyEndAllowThreads(__tstate);
43717 if (PyErr_Occurred()) SWIG_fail;
43718 }
43719 {
43720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43721 }
43722 {
43723 if (temp9)
43724 delete arg9;
43725 }
43726 return resultobj;
43727 fail:
43728 {
43729 if (temp9)
43730 delete arg9;
43731 }
43732 return NULL;
43733 }
43734
43735
43736 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43737 PyObject *resultobj = 0;
43738 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43739 wxColour result;
43740 void *argp1 = 0 ;
43741 int res1 = 0 ;
43742 PyObject *swig_obj[1] ;
43743
43744 if (!args) SWIG_fail;
43745 swig_obj[0] = args;
43746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43747 if (!SWIG_IsOK(res1)) {
43748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43749 }
43750 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43751 {
43752 PyThreadState* __tstate = wxPyBeginAllowThreads();
43753 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43754 wxPyEndAllowThreads(__tstate);
43755 if (PyErr_Occurred()) SWIG_fail;
43756 }
43757 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43758 return resultobj;
43759 fail:
43760 return NULL;
43761 }
43762
43763
43764 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43765 PyObject *resultobj = 0;
43766 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43767 wxColour *arg2 = 0 ;
43768 void *argp1 = 0 ;
43769 int res1 = 0 ;
43770 wxColour temp2 ;
43771 PyObject * obj0 = 0 ;
43772 PyObject * obj1 = 0 ;
43773 char * kwnames[] = {
43774 (char *) "self",(char *) "col", NULL
43775 };
43776
43777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43779 if (!SWIG_IsOK(res1)) {
43780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43781 }
43782 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43783 {
43784 arg2 = &temp2;
43785 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43786 }
43787 {
43788 PyThreadState* __tstate = wxPyBeginAllowThreads();
43789 (arg1)->SetColour((wxColour const &)*arg2);
43790 wxPyEndAllowThreads(__tstate);
43791 if (PyErr_Occurred()) SWIG_fail;
43792 }
43793 resultobj = SWIG_Py_Void();
43794 return resultobj;
43795 fail:
43796 return NULL;
43797 }
43798
43799
43800 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43801 PyObject *obj;
43802 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43803 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43804 return SWIG_Py_Void();
43805 }
43806
43807 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43808 return SWIG_Python_InitShadowInstance(args);
43809 }
43810
43811 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43812 PyObject *resultobj = 0;
43813 wxObject *arg1 = (wxObject *) 0 ;
43814 int arg2 ;
43815 wxColour *arg3 = 0 ;
43816 wxColourPickerEvent *result = 0 ;
43817 void *argp1 = 0 ;
43818 int res1 = 0 ;
43819 int val2 ;
43820 int ecode2 = 0 ;
43821 wxColour temp3 ;
43822 PyObject * obj0 = 0 ;
43823 PyObject * obj1 = 0 ;
43824 PyObject * obj2 = 0 ;
43825 char * kwnames[] = {
43826 (char *) "generator",(char *) "id",(char *) "col", NULL
43827 };
43828
43829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43831 if (!SWIG_IsOK(res1)) {
43832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43833 }
43834 arg1 = reinterpret_cast< wxObject * >(argp1);
43835 ecode2 = SWIG_AsVal_int(obj1, &val2);
43836 if (!SWIG_IsOK(ecode2)) {
43837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43838 }
43839 arg2 = static_cast< int >(val2);
43840 {
43841 arg3 = &temp3;
43842 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43843 }
43844 {
43845 PyThreadState* __tstate = wxPyBeginAllowThreads();
43846 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43847 wxPyEndAllowThreads(__tstate);
43848 if (PyErr_Occurred()) SWIG_fail;
43849 }
43850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43851 return resultobj;
43852 fail:
43853 return NULL;
43854 }
43855
43856
43857 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43858 PyObject *resultobj = 0;
43859 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43860 wxColour result;
43861 void *argp1 = 0 ;
43862 int res1 = 0 ;
43863 PyObject *swig_obj[1] ;
43864
43865 if (!args) SWIG_fail;
43866 swig_obj[0] = args;
43867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43868 if (!SWIG_IsOK(res1)) {
43869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43870 }
43871 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43872 {
43873 PyThreadState* __tstate = wxPyBeginAllowThreads();
43874 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43875 wxPyEndAllowThreads(__tstate);
43876 if (PyErr_Occurred()) SWIG_fail;
43877 }
43878 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43879 return resultobj;
43880 fail:
43881 return NULL;
43882 }
43883
43884
43885 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43886 PyObject *resultobj = 0;
43887 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43888 wxColour *arg2 = 0 ;
43889 void *argp1 = 0 ;
43890 int res1 = 0 ;
43891 wxColour temp2 ;
43892 PyObject * obj0 = 0 ;
43893 PyObject * obj1 = 0 ;
43894 char * kwnames[] = {
43895 (char *) "self",(char *) "c", NULL
43896 };
43897
43898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43900 if (!SWIG_IsOK(res1)) {
43901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43902 }
43903 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43904 {
43905 arg2 = &temp2;
43906 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43907 }
43908 {
43909 PyThreadState* __tstate = wxPyBeginAllowThreads();
43910 (arg1)->SetColour((wxColour const &)*arg2);
43911 wxPyEndAllowThreads(__tstate);
43912 if (PyErr_Occurred()) SWIG_fail;
43913 }
43914 resultobj = SWIG_Py_Void();
43915 return resultobj;
43916 fail:
43917 return NULL;
43918 }
43919
43920
43921 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43922 PyObject *obj;
43923 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43924 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43925 return SWIG_Py_Void();
43926 }
43927
43928 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43929 return SWIG_Python_InitShadowInstance(args);
43930 }
43931
43932 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43933 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43934 return 1;
43935 }
43936
43937
43938 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43939 PyObject *pyobj = 0;
43940
43941 {
43942 #if wxUSE_UNICODE
43943 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43944 #else
43945 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43946 #endif
43947 }
43948 return pyobj;
43949 }
43950
43951
43952 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43953 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43954 return 1;
43955 }
43956
43957
43958 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43959 PyObject *pyobj = 0;
43960
43961 {
43962 #if wxUSE_UNICODE
43963 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43964 #else
43965 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43966 #endif
43967 }
43968 return pyobj;
43969 }
43970
43971
43972 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43973 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43974 return 1;
43975 }
43976
43977
43978 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43979 PyObject *pyobj = 0;
43980
43981 {
43982 #if wxUSE_UNICODE
43983 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43984 #else
43985 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43986 #endif
43987 }
43988 return pyobj;
43989 }
43990
43991
43992 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43993 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43994 return 1;
43995 }
43996
43997
43998 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43999 PyObject *pyobj = 0;
44000
44001 {
44002 #if wxUSE_UNICODE
44003 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
44004 #else
44005 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
44006 #endif
44007 }
44008 return pyobj;
44009 }
44010
44011
44012 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
44013 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
44014 return 1;
44015 }
44016
44017
44018 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
44019 PyObject *pyobj = 0;
44020
44021 {
44022 #if wxUSE_UNICODE
44023 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
44024 #else
44025 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
44026 #endif
44027 }
44028 return pyobj;
44029 }
44030
44031
44032 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44033 PyObject *resultobj = 0;
44034 wxWindow *arg1 = (wxWindow *) 0 ;
44035 int arg2 = (int) -1 ;
44036 wxString const &arg3_defvalue = wxPyEmptyString ;
44037 wxString *arg3 = (wxString *) &arg3_defvalue ;
44038 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
44039 wxString *arg4 = (wxString *) &arg4_defvalue ;
44040 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
44041 wxString *arg5 = (wxString *) &arg5_defvalue ;
44042 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44043 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44044 wxSize const &arg7_defvalue = wxDefaultSize ;
44045 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44046 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
44047 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44048 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44049 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
44050 wxString *arg10 = (wxString *) &arg10_defvalue ;
44051 wxFilePickerCtrl *result = 0 ;
44052 void *argp1 = 0 ;
44053 int res1 = 0 ;
44054 int val2 ;
44055 int ecode2 = 0 ;
44056 bool temp3 = false ;
44057 bool temp4 = false ;
44058 bool temp5 = false ;
44059 wxPoint temp6 ;
44060 wxSize temp7 ;
44061 long val8 ;
44062 int ecode8 = 0 ;
44063 void *argp9 = 0 ;
44064 int res9 = 0 ;
44065 bool temp10 = false ;
44066 PyObject * obj0 = 0 ;
44067 PyObject * obj1 = 0 ;
44068 PyObject * obj2 = 0 ;
44069 PyObject * obj3 = 0 ;
44070 PyObject * obj4 = 0 ;
44071 PyObject * obj5 = 0 ;
44072 PyObject * obj6 = 0 ;
44073 PyObject * obj7 = 0 ;
44074 PyObject * obj8 = 0 ;
44075 PyObject * obj9 = 0 ;
44076 char * kwnames[] = {
44077 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44078 };
44079
44080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44082 if (!SWIG_IsOK(res1)) {
44083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44084 }
44085 arg1 = reinterpret_cast< wxWindow * >(argp1);
44086 if (obj1) {
44087 ecode2 = SWIG_AsVal_int(obj1, &val2);
44088 if (!SWIG_IsOK(ecode2)) {
44089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
44090 }
44091 arg2 = static_cast< int >(val2);
44092 }
44093 if (obj2) {
44094 {
44095 arg3 = wxString_in_helper(obj2);
44096 if (arg3 == NULL) SWIG_fail;
44097 temp3 = true;
44098 }
44099 }
44100 if (obj3) {
44101 {
44102 arg4 = wxString_in_helper(obj3);
44103 if (arg4 == NULL) SWIG_fail;
44104 temp4 = true;
44105 }
44106 }
44107 if (obj4) {
44108 {
44109 arg5 = wxString_in_helper(obj4);
44110 if (arg5 == NULL) SWIG_fail;
44111 temp5 = true;
44112 }
44113 }
44114 if (obj5) {
44115 {
44116 arg6 = &temp6;
44117 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44118 }
44119 }
44120 if (obj6) {
44121 {
44122 arg7 = &temp7;
44123 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44124 }
44125 }
44126 if (obj7) {
44127 ecode8 = SWIG_AsVal_long(obj7, &val8);
44128 if (!SWIG_IsOK(ecode8)) {
44129 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
44130 }
44131 arg8 = static_cast< long >(val8);
44132 }
44133 if (obj8) {
44134 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44135 if (!SWIG_IsOK(res9)) {
44136 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
44137 }
44138 if (!argp9) {
44139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
44140 }
44141 arg9 = reinterpret_cast< wxValidator * >(argp9);
44142 }
44143 if (obj9) {
44144 {
44145 arg10 = wxString_in_helper(obj9);
44146 if (arg10 == NULL) SWIG_fail;
44147 temp10 = true;
44148 }
44149 }
44150 {
44151 if (!wxPyCheckForApp()) SWIG_fail;
44152 PyThreadState* __tstate = wxPyBeginAllowThreads();
44153 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);
44154 wxPyEndAllowThreads(__tstate);
44155 if (PyErr_Occurred()) SWIG_fail;
44156 }
44157 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
44158 {
44159 if (temp3)
44160 delete arg3;
44161 }
44162 {
44163 if (temp4)
44164 delete arg4;
44165 }
44166 {
44167 if (temp5)
44168 delete arg5;
44169 }
44170 {
44171 if (temp10)
44172 delete arg10;
44173 }
44174 return resultobj;
44175 fail:
44176 {
44177 if (temp3)
44178 delete arg3;
44179 }
44180 {
44181 if (temp4)
44182 delete arg4;
44183 }
44184 {
44185 if (temp5)
44186 delete arg5;
44187 }
44188 {
44189 if (temp10)
44190 delete arg10;
44191 }
44192 return NULL;
44193 }
44194
44195
44196 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44197 PyObject *resultobj = 0;
44198 wxFilePickerCtrl *result = 0 ;
44199
44200 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
44201 {
44202 if (!wxPyCheckForApp()) SWIG_fail;
44203 PyThreadState* __tstate = wxPyBeginAllowThreads();
44204 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
44205 wxPyEndAllowThreads(__tstate);
44206 if (PyErr_Occurred()) SWIG_fail;
44207 }
44208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
44209 return resultobj;
44210 fail:
44211 return NULL;
44212 }
44213
44214
44215 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44216 PyObject *resultobj = 0;
44217 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44218 wxWindow *arg2 = (wxWindow *) 0 ;
44219 int arg3 = (int) -1 ;
44220 wxString const &arg4_defvalue = wxPyEmptyString ;
44221 wxString *arg4 = (wxString *) &arg4_defvalue ;
44222 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
44223 wxString *arg5 = (wxString *) &arg5_defvalue ;
44224 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
44225 wxString *arg6 = (wxString *) &arg6_defvalue ;
44226 wxPoint const &arg7_defvalue = wxDefaultPosition ;
44227 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
44228 wxSize const &arg8_defvalue = wxDefaultSize ;
44229 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
44230 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
44231 wxValidator const &arg10_defvalue = wxDefaultValidator ;
44232 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
44233 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
44234 wxString *arg11 = (wxString *) &arg11_defvalue ;
44235 bool result;
44236 void *argp1 = 0 ;
44237 int res1 = 0 ;
44238 void *argp2 = 0 ;
44239 int res2 = 0 ;
44240 int val3 ;
44241 int ecode3 = 0 ;
44242 bool temp4 = false ;
44243 bool temp5 = false ;
44244 bool temp6 = false ;
44245 wxPoint temp7 ;
44246 wxSize temp8 ;
44247 long val9 ;
44248 int ecode9 = 0 ;
44249 void *argp10 = 0 ;
44250 int res10 = 0 ;
44251 bool temp11 = false ;
44252 PyObject * obj0 = 0 ;
44253 PyObject * obj1 = 0 ;
44254 PyObject * obj2 = 0 ;
44255 PyObject * obj3 = 0 ;
44256 PyObject * obj4 = 0 ;
44257 PyObject * obj5 = 0 ;
44258 PyObject * obj6 = 0 ;
44259 PyObject * obj7 = 0 ;
44260 PyObject * obj8 = 0 ;
44261 PyObject * obj9 = 0 ;
44262 PyObject * obj10 = 0 ;
44263 char * kwnames[] = {
44264 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44265 };
44266
44267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
44268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44269 if (!SWIG_IsOK(res1)) {
44270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44271 }
44272 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44273 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44274 if (!SWIG_IsOK(res2)) {
44275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44276 }
44277 arg2 = reinterpret_cast< wxWindow * >(argp2);
44278 if (obj2) {
44279 ecode3 = SWIG_AsVal_int(obj2, &val3);
44280 if (!SWIG_IsOK(ecode3)) {
44281 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44282 }
44283 arg3 = static_cast< int >(val3);
44284 }
44285 if (obj3) {
44286 {
44287 arg4 = wxString_in_helper(obj3);
44288 if (arg4 == NULL) SWIG_fail;
44289 temp4 = true;
44290 }
44291 }
44292 if (obj4) {
44293 {
44294 arg5 = wxString_in_helper(obj4);
44295 if (arg5 == NULL) SWIG_fail;
44296 temp5 = true;
44297 }
44298 }
44299 if (obj5) {
44300 {
44301 arg6 = wxString_in_helper(obj5);
44302 if (arg6 == NULL) SWIG_fail;
44303 temp6 = true;
44304 }
44305 }
44306 if (obj6) {
44307 {
44308 arg7 = &temp7;
44309 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
44310 }
44311 }
44312 if (obj7) {
44313 {
44314 arg8 = &temp8;
44315 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
44316 }
44317 }
44318 if (obj8) {
44319 ecode9 = SWIG_AsVal_long(obj8, &val9);
44320 if (!SWIG_IsOK(ecode9)) {
44321 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
44322 }
44323 arg9 = static_cast< long >(val9);
44324 }
44325 if (obj9) {
44326 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
44327 if (!SWIG_IsOK(res10)) {
44328 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44329 }
44330 if (!argp10) {
44331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44332 }
44333 arg10 = reinterpret_cast< wxValidator * >(argp10);
44334 }
44335 if (obj10) {
44336 {
44337 arg11 = wxString_in_helper(obj10);
44338 if (arg11 == NULL) SWIG_fail;
44339 temp11 = true;
44340 }
44341 }
44342 {
44343 PyThreadState* __tstate = wxPyBeginAllowThreads();
44344 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);
44345 wxPyEndAllowThreads(__tstate);
44346 if (PyErr_Occurred()) SWIG_fail;
44347 }
44348 {
44349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44350 }
44351 {
44352 if (temp4)
44353 delete arg4;
44354 }
44355 {
44356 if (temp5)
44357 delete arg5;
44358 }
44359 {
44360 if (temp6)
44361 delete arg6;
44362 }
44363 {
44364 if (temp11)
44365 delete arg11;
44366 }
44367 return resultobj;
44368 fail:
44369 {
44370 if (temp4)
44371 delete arg4;
44372 }
44373 {
44374 if (temp5)
44375 delete arg5;
44376 }
44377 {
44378 if (temp6)
44379 delete arg6;
44380 }
44381 {
44382 if (temp11)
44383 delete arg11;
44384 }
44385 return NULL;
44386 }
44387
44388
44389 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44390 PyObject *resultobj = 0;
44391 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44392 wxString result;
44393 void *argp1 = 0 ;
44394 int res1 = 0 ;
44395 PyObject *swig_obj[1] ;
44396
44397 if (!args) SWIG_fail;
44398 swig_obj[0] = args;
44399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44400 if (!SWIG_IsOK(res1)) {
44401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44402 }
44403 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44404 {
44405 PyThreadState* __tstate = wxPyBeginAllowThreads();
44406 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
44407 wxPyEndAllowThreads(__tstate);
44408 if (PyErr_Occurred()) SWIG_fail;
44409 }
44410 {
44411 #if wxUSE_UNICODE
44412 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44413 #else
44414 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44415 #endif
44416 }
44417 return resultobj;
44418 fail:
44419 return NULL;
44420 }
44421
44422
44423 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44424 PyObject *resultobj = 0;
44425 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44426 wxString *arg2 = 0 ;
44427 void *argp1 = 0 ;
44428 int res1 = 0 ;
44429 bool temp2 = false ;
44430 PyObject * obj0 = 0 ;
44431 PyObject * obj1 = 0 ;
44432 char * kwnames[] = {
44433 (char *) "self",(char *) "str", NULL
44434 };
44435
44436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44438 if (!SWIG_IsOK(res1)) {
44439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44440 }
44441 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44442 {
44443 arg2 = wxString_in_helper(obj1);
44444 if (arg2 == NULL) SWIG_fail;
44445 temp2 = true;
44446 }
44447 {
44448 PyThreadState* __tstate = wxPyBeginAllowThreads();
44449 (arg1)->SetPath((wxString const &)*arg2);
44450 wxPyEndAllowThreads(__tstate);
44451 if (PyErr_Occurred()) SWIG_fail;
44452 }
44453 resultobj = SWIG_Py_Void();
44454 {
44455 if (temp2)
44456 delete arg2;
44457 }
44458 return resultobj;
44459 fail:
44460 {
44461 if (temp2)
44462 delete arg2;
44463 }
44464 return NULL;
44465 }
44466
44467
44468 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44469 PyObject *resultobj = 0;
44470 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44471 wxString *arg2 = 0 ;
44472 bool result;
44473 void *argp1 = 0 ;
44474 int res1 = 0 ;
44475 bool temp2 = false ;
44476 PyObject * obj0 = 0 ;
44477 PyObject * obj1 = 0 ;
44478 char * kwnames[] = {
44479 (char *) "self",(char *) "path", NULL
44480 };
44481
44482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44484 if (!SWIG_IsOK(res1)) {
44485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44486 }
44487 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44488 {
44489 arg2 = wxString_in_helper(obj1);
44490 if (arg2 == NULL) SWIG_fail;
44491 temp2 = true;
44492 }
44493 {
44494 PyThreadState* __tstate = wxPyBeginAllowThreads();
44495 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44496 wxPyEndAllowThreads(__tstate);
44497 if (PyErr_Occurred()) SWIG_fail;
44498 }
44499 {
44500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44501 }
44502 {
44503 if (temp2)
44504 delete arg2;
44505 }
44506 return resultobj;
44507 fail:
44508 {
44509 if (temp2)
44510 delete arg2;
44511 }
44512 return NULL;
44513 }
44514
44515
44516 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44517 PyObject *resultobj = 0;
44518 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44519 wxString result;
44520 void *argp1 = 0 ;
44521 int res1 = 0 ;
44522 PyObject *swig_obj[1] ;
44523
44524 if (!args) SWIG_fail;
44525 swig_obj[0] = args;
44526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44527 if (!SWIG_IsOK(res1)) {
44528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44529 }
44530 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44531 {
44532 PyThreadState* __tstate = wxPyBeginAllowThreads();
44533 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44534 wxPyEndAllowThreads(__tstate);
44535 if (PyErr_Occurred()) SWIG_fail;
44536 }
44537 {
44538 #if wxUSE_UNICODE
44539 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44540 #else
44541 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44542 #endif
44543 }
44544 return resultobj;
44545 fail:
44546 return NULL;
44547 }
44548
44549
44550 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44551 PyObject *obj;
44552 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44553 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44554 return SWIG_Py_Void();
44555 }
44556
44557 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44558 return SWIG_Python_InitShadowInstance(args);
44559 }
44560
44561 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44562 PyObject *resultobj = 0;
44563 wxWindow *arg1 = (wxWindow *) 0 ;
44564 int arg2 = (int) -1 ;
44565 wxString const &arg3_defvalue = wxPyEmptyString ;
44566 wxString *arg3 = (wxString *) &arg3_defvalue ;
44567 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44568 wxString *arg4 = (wxString *) &arg4_defvalue ;
44569 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44570 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44571 wxSize const &arg6_defvalue = wxDefaultSize ;
44572 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44573 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44574 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44575 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44576 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44577 wxString *arg9 = (wxString *) &arg9_defvalue ;
44578 wxDirPickerCtrl *result = 0 ;
44579 void *argp1 = 0 ;
44580 int res1 = 0 ;
44581 int val2 ;
44582 int ecode2 = 0 ;
44583 bool temp3 = false ;
44584 bool temp4 = false ;
44585 wxPoint temp5 ;
44586 wxSize temp6 ;
44587 long val7 ;
44588 int ecode7 = 0 ;
44589 void *argp8 = 0 ;
44590 int res8 = 0 ;
44591 bool temp9 = false ;
44592 PyObject * obj0 = 0 ;
44593 PyObject * obj1 = 0 ;
44594 PyObject * obj2 = 0 ;
44595 PyObject * obj3 = 0 ;
44596 PyObject * obj4 = 0 ;
44597 PyObject * obj5 = 0 ;
44598 PyObject * obj6 = 0 ;
44599 PyObject * obj7 = 0 ;
44600 PyObject * obj8 = 0 ;
44601 char * kwnames[] = {
44602 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44603 };
44604
44605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44607 if (!SWIG_IsOK(res1)) {
44608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44609 }
44610 arg1 = reinterpret_cast< wxWindow * >(argp1);
44611 if (obj1) {
44612 ecode2 = SWIG_AsVal_int(obj1, &val2);
44613 if (!SWIG_IsOK(ecode2)) {
44614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44615 }
44616 arg2 = static_cast< int >(val2);
44617 }
44618 if (obj2) {
44619 {
44620 arg3 = wxString_in_helper(obj2);
44621 if (arg3 == NULL) SWIG_fail;
44622 temp3 = true;
44623 }
44624 }
44625 if (obj3) {
44626 {
44627 arg4 = wxString_in_helper(obj3);
44628 if (arg4 == NULL) SWIG_fail;
44629 temp4 = true;
44630 }
44631 }
44632 if (obj4) {
44633 {
44634 arg5 = &temp5;
44635 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44636 }
44637 }
44638 if (obj5) {
44639 {
44640 arg6 = &temp6;
44641 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44642 }
44643 }
44644 if (obj6) {
44645 ecode7 = SWIG_AsVal_long(obj6, &val7);
44646 if (!SWIG_IsOK(ecode7)) {
44647 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44648 }
44649 arg7 = static_cast< long >(val7);
44650 }
44651 if (obj7) {
44652 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44653 if (!SWIG_IsOK(res8)) {
44654 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44655 }
44656 if (!argp8) {
44657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44658 }
44659 arg8 = reinterpret_cast< wxValidator * >(argp8);
44660 }
44661 if (obj8) {
44662 {
44663 arg9 = wxString_in_helper(obj8);
44664 if (arg9 == NULL) SWIG_fail;
44665 temp9 = true;
44666 }
44667 }
44668 {
44669 if (!wxPyCheckForApp()) SWIG_fail;
44670 PyThreadState* __tstate = wxPyBeginAllowThreads();
44671 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);
44672 wxPyEndAllowThreads(__tstate);
44673 if (PyErr_Occurred()) SWIG_fail;
44674 }
44675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44676 {
44677 if (temp3)
44678 delete arg3;
44679 }
44680 {
44681 if (temp4)
44682 delete arg4;
44683 }
44684 {
44685 if (temp9)
44686 delete arg9;
44687 }
44688 return resultobj;
44689 fail:
44690 {
44691 if (temp3)
44692 delete arg3;
44693 }
44694 {
44695 if (temp4)
44696 delete arg4;
44697 }
44698 {
44699 if (temp9)
44700 delete arg9;
44701 }
44702 return NULL;
44703 }
44704
44705
44706 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44707 PyObject *resultobj = 0;
44708 wxDirPickerCtrl *result = 0 ;
44709
44710 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44711 {
44712 if (!wxPyCheckForApp()) SWIG_fail;
44713 PyThreadState* __tstate = wxPyBeginAllowThreads();
44714 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44715 wxPyEndAllowThreads(__tstate);
44716 if (PyErr_Occurred()) SWIG_fail;
44717 }
44718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44719 return resultobj;
44720 fail:
44721 return NULL;
44722 }
44723
44724
44725 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44726 PyObject *resultobj = 0;
44727 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44728 wxWindow *arg2 = (wxWindow *) 0 ;
44729 int arg3 = (int) -1 ;
44730 wxString const &arg4_defvalue = wxPyEmptyString ;
44731 wxString *arg4 = (wxString *) &arg4_defvalue ;
44732 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44733 wxString *arg5 = (wxString *) &arg5_defvalue ;
44734 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44735 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44736 wxSize const &arg7_defvalue = wxDefaultSize ;
44737 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44738 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44739 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44740 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44741 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44742 wxString *arg10 = (wxString *) &arg10_defvalue ;
44743 bool result;
44744 void *argp1 = 0 ;
44745 int res1 = 0 ;
44746 void *argp2 = 0 ;
44747 int res2 = 0 ;
44748 int val3 ;
44749 int ecode3 = 0 ;
44750 bool temp4 = false ;
44751 bool temp5 = false ;
44752 wxPoint temp6 ;
44753 wxSize temp7 ;
44754 long val8 ;
44755 int ecode8 = 0 ;
44756 void *argp9 = 0 ;
44757 int res9 = 0 ;
44758 bool temp10 = false ;
44759 PyObject * obj0 = 0 ;
44760 PyObject * obj1 = 0 ;
44761 PyObject * obj2 = 0 ;
44762 PyObject * obj3 = 0 ;
44763 PyObject * obj4 = 0 ;
44764 PyObject * obj5 = 0 ;
44765 PyObject * obj6 = 0 ;
44766 PyObject * obj7 = 0 ;
44767 PyObject * obj8 = 0 ;
44768 PyObject * obj9 = 0 ;
44769 char * kwnames[] = {
44770 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44771 };
44772
44773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44775 if (!SWIG_IsOK(res1)) {
44776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44777 }
44778 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44779 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44780 if (!SWIG_IsOK(res2)) {
44781 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44782 }
44783 arg2 = reinterpret_cast< wxWindow * >(argp2);
44784 if (obj2) {
44785 ecode3 = SWIG_AsVal_int(obj2, &val3);
44786 if (!SWIG_IsOK(ecode3)) {
44787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44788 }
44789 arg3 = static_cast< int >(val3);
44790 }
44791 if (obj3) {
44792 {
44793 arg4 = wxString_in_helper(obj3);
44794 if (arg4 == NULL) SWIG_fail;
44795 temp4 = true;
44796 }
44797 }
44798 if (obj4) {
44799 {
44800 arg5 = wxString_in_helper(obj4);
44801 if (arg5 == NULL) SWIG_fail;
44802 temp5 = true;
44803 }
44804 }
44805 if (obj5) {
44806 {
44807 arg6 = &temp6;
44808 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44809 }
44810 }
44811 if (obj6) {
44812 {
44813 arg7 = &temp7;
44814 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44815 }
44816 }
44817 if (obj7) {
44818 ecode8 = SWIG_AsVal_long(obj7, &val8);
44819 if (!SWIG_IsOK(ecode8)) {
44820 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44821 }
44822 arg8 = static_cast< long >(val8);
44823 }
44824 if (obj8) {
44825 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44826 if (!SWIG_IsOK(res9)) {
44827 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44828 }
44829 if (!argp9) {
44830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44831 }
44832 arg9 = reinterpret_cast< wxValidator * >(argp9);
44833 }
44834 if (obj9) {
44835 {
44836 arg10 = wxString_in_helper(obj9);
44837 if (arg10 == NULL) SWIG_fail;
44838 temp10 = true;
44839 }
44840 }
44841 {
44842 PyThreadState* __tstate = wxPyBeginAllowThreads();
44843 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);
44844 wxPyEndAllowThreads(__tstate);
44845 if (PyErr_Occurred()) SWIG_fail;
44846 }
44847 {
44848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44849 }
44850 {
44851 if (temp4)
44852 delete arg4;
44853 }
44854 {
44855 if (temp5)
44856 delete arg5;
44857 }
44858 {
44859 if (temp10)
44860 delete arg10;
44861 }
44862 return resultobj;
44863 fail:
44864 {
44865 if (temp4)
44866 delete arg4;
44867 }
44868 {
44869 if (temp5)
44870 delete arg5;
44871 }
44872 {
44873 if (temp10)
44874 delete arg10;
44875 }
44876 return NULL;
44877 }
44878
44879
44880 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44881 PyObject *resultobj = 0;
44882 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44883 wxString result;
44884 void *argp1 = 0 ;
44885 int res1 = 0 ;
44886 PyObject *swig_obj[1] ;
44887
44888 if (!args) SWIG_fail;
44889 swig_obj[0] = args;
44890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44891 if (!SWIG_IsOK(res1)) {
44892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44893 }
44894 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44895 {
44896 PyThreadState* __tstate = wxPyBeginAllowThreads();
44897 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44898 wxPyEndAllowThreads(__tstate);
44899 if (PyErr_Occurred()) SWIG_fail;
44900 }
44901 {
44902 #if wxUSE_UNICODE
44903 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44904 #else
44905 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44906 #endif
44907 }
44908 return resultobj;
44909 fail:
44910 return NULL;
44911 }
44912
44913
44914 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44915 PyObject *resultobj = 0;
44916 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44917 wxString *arg2 = 0 ;
44918 void *argp1 = 0 ;
44919 int res1 = 0 ;
44920 bool temp2 = false ;
44921 PyObject * obj0 = 0 ;
44922 PyObject * obj1 = 0 ;
44923 char * kwnames[] = {
44924 (char *) "self",(char *) "str", NULL
44925 };
44926
44927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44929 if (!SWIG_IsOK(res1)) {
44930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44931 }
44932 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44933 {
44934 arg2 = wxString_in_helper(obj1);
44935 if (arg2 == NULL) SWIG_fail;
44936 temp2 = true;
44937 }
44938 {
44939 PyThreadState* __tstate = wxPyBeginAllowThreads();
44940 (arg1)->SetPath((wxString const &)*arg2);
44941 wxPyEndAllowThreads(__tstate);
44942 if (PyErr_Occurred()) SWIG_fail;
44943 }
44944 resultobj = SWIG_Py_Void();
44945 {
44946 if (temp2)
44947 delete arg2;
44948 }
44949 return resultobj;
44950 fail:
44951 {
44952 if (temp2)
44953 delete arg2;
44954 }
44955 return NULL;
44956 }
44957
44958
44959 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44960 PyObject *resultobj = 0;
44961 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44962 wxString *arg2 = 0 ;
44963 bool result;
44964 void *argp1 = 0 ;
44965 int res1 = 0 ;
44966 bool temp2 = false ;
44967 PyObject * obj0 = 0 ;
44968 PyObject * obj1 = 0 ;
44969 char * kwnames[] = {
44970 (char *) "self",(char *) "path", NULL
44971 };
44972
44973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44975 if (!SWIG_IsOK(res1)) {
44976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44977 }
44978 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44979 {
44980 arg2 = wxString_in_helper(obj1);
44981 if (arg2 == NULL) SWIG_fail;
44982 temp2 = true;
44983 }
44984 {
44985 PyThreadState* __tstate = wxPyBeginAllowThreads();
44986 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44987 wxPyEndAllowThreads(__tstate);
44988 if (PyErr_Occurred()) SWIG_fail;
44989 }
44990 {
44991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44992 }
44993 {
44994 if (temp2)
44995 delete arg2;
44996 }
44997 return resultobj;
44998 fail:
44999 {
45000 if (temp2)
45001 delete arg2;
45002 }
45003 return NULL;
45004 }
45005
45006
45007 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45008 PyObject *resultobj = 0;
45009 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
45010 wxString result;
45011 void *argp1 = 0 ;
45012 int res1 = 0 ;
45013 PyObject *swig_obj[1] ;
45014
45015 if (!args) SWIG_fail;
45016 swig_obj[0] = args;
45017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
45018 if (!SWIG_IsOK(res1)) {
45019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
45020 }
45021 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
45022 {
45023 PyThreadState* __tstate = wxPyBeginAllowThreads();
45024 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
45025 wxPyEndAllowThreads(__tstate);
45026 if (PyErr_Occurred()) SWIG_fail;
45027 }
45028 {
45029 #if wxUSE_UNICODE
45030 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45031 #else
45032 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45033 #endif
45034 }
45035 return resultobj;
45036 fail:
45037 return NULL;
45038 }
45039
45040
45041 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45042 PyObject *obj;
45043 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45044 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
45045 return SWIG_Py_Void();
45046 }
45047
45048 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45049 return SWIG_Python_InitShadowInstance(args);
45050 }
45051
45052 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45053 PyObject *resultobj = 0;
45054 wxEventType arg1 ;
45055 wxObject *arg2 = (wxObject *) 0 ;
45056 int arg3 ;
45057 wxString *arg4 = 0 ;
45058 wxFileDirPickerEvent *result = 0 ;
45059 int val1 ;
45060 int ecode1 = 0 ;
45061 void *argp2 = 0 ;
45062 int res2 = 0 ;
45063 int val3 ;
45064 int ecode3 = 0 ;
45065 bool temp4 = false ;
45066 PyObject * obj0 = 0 ;
45067 PyObject * obj1 = 0 ;
45068 PyObject * obj2 = 0 ;
45069 PyObject * obj3 = 0 ;
45070 char * kwnames[] = {
45071 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
45072 };
45073
45074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
45075 ecode1 = SWIG_AsVal_int(obj0, &val1);
45076 if (!SWIG_IsOK(ecode1)) {
45077 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
45078 }
45079 arg1 = static_cast< wxEventType >(val1);
45080 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
45081 if (!SWIG_IsOK(res2)) {
45082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
45083 }
45084 arg2 = reinterpret_cast< wxObject * >(argp2);
45085 ecode3 = SWIG_AsVal_int(obj2, &val3);
45086 if (!SWIG_IsOK(ecode3)) {
45087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
45088 }
45089 arg3 = static_cast< int >(val3);
45090 {
45091 arg4 = wxString_in_helper(obj3);
45092 if (arg4 == NULL) SWIG_fail;
45093 temp4 = true;
45094 }
45095 {
45096 PyThreadState* __tstate = wxPyBeginAllowThreads();
45097 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
45098 wxPyEndAllowThreads(__tstate);
45099 if (PyErr_Occurred()) SWIG_fail;
45100 }
45101 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
45102 {
45103 if (temp4)
45104 delete arg4;
45105 }
45106 return resultobj;
45107 fail:
45108 {
45109 if (temp4)
45110 delete arg4;
45111 }
45112 return NULL;
45113 }
45114
45115
45116 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45117 PyObject *resultobj = 0;
45118 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
45119 wxString result;
45120 void *argp1 = 0 ;
45121 int res1 = 0 ;
45122 PyObject *swig_obj[1] ;
45123
45124 if (!args) SWIG_fail;
45125 swig_obj[0] = args;
45126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
45127 if (!SWIG_IsOK(res1)) {
45128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
45129 }
45130 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
45131 {
45132 PyThreadState* __tstate = wxPyBeginAllowThreads();
45133 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
45134 wxPyEndAllowThreads(__tstate);
45135 if (PyErr_Occurred()) SWIG_fail;
45136 }
45137 {
45138 #if wxUSE_UNICODE
45139 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45140 #else
45141 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45142 #endif
45143 }
45144 return resultobj;
45145 fail:
45146 return NULL;
45147 }
45148
45149
45150 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45151 PyObject *resultobj = 0;
45152 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
45153 wxString *arg2 = 0 ;
45154 void *argp1 = 0 ;
45155 int res1 = 0 ;
45156 bool temp2 = false ;
45157 PyObject * obj0 = 0 ;
45158 PyObject * obj1 = 0 ;
45159 char * kwnames[] = {
45160 (char *) "self",(char *) "p", NULL
45161 };
45162
45163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
45164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
45165 if (!SWIG_IsOK(res1)) {
45166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
45167 }
45168 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
45169 {
45170 arg2 = wxString_in_helper(obj1);
45171 if (arg2 == NULL) SWIG_fail;
45172 temp2 = true;
45173 }
45174 {
45175 PyThreadState* __tstate = wxPyBeginAllowThreads();
45176 (arg1)->SetPath((wxString const &)*arg2);
45177 wxPyEndAllowThreads(__tstate);
45178 if (PyErr_Occurred()) SWIG_fail;
45179 }
45180 resultobj = SWIG_Py_Void();
45181 {
45182 if (temp2)
45183 delete arg2;
45184 }
45185 return resultobj;
45186 fail:
45187 {
45188 if (temp2)
45189 delete arg2;
45190 }
45191 return NULL;
45192 }
45193
45194
45195 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45196 PyObject *obj;
45197 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45198 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
45199 return SWIG_Py_Void();
45200 }
45201
45202 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45203 return SWIG_Python_InitShadowInstance(args);
45204 }
45205
45206 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
45207 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
45208 return 1;
45209 }
45210
45211
45212 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
45213 PyObject *pyobj = 0;
45214
45215 {
45216 #if wxUSE_UNICODE
45217 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45218 #else
45219 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45220 #endif
45221 }
45222 return pyobj;
45223 }
45224
45225
45226 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45227 PyObject *resultobj = 0;
45228 wxWindow *arg1 = (wxWindow *) 0 ;
45229 int arg2 = (int) -1 ;
45230 wxFont const &arg3_defvalue = wxNullFont ;
45231 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
45232 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45233 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45234 wxSize const &arg5_defvalue = wxDefaultSize ;
45235 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45236 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
45237 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45238 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45239 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
45240 wxString *arg8 = (wxString *) &arg8_defvalue ;
45241 wxFontPickerCtrl *result = 0 ;
45242 void *argp1 = 0 ;
45243 int res1 = 0 ;
45244 int val2 ;
45245 int ecode2 = 0 ;
45246 void *argp3 = 0 ;
45247 int res3 = 0 ;
45248 wxPoint temp4 ;
45249 wxSize temp5 ;
45250 long val6 ;
45251 int ecode6 = 0 ;
45252 void *argp7 = 0 ;
45253 int res7 = 0 ;
45254 bool temp8 = false ;
45255 PyObject * obj0 = 0 ;
45256 PyObject * obj1 = 0 ;
45257 PyObject * obj2 = 0 ;
45258 PyObject * obj3 = 0 ;
45259 PyObject * obj4 = 0 ;
45260 PyObject * obj5 = 0 ;
45261 PyObject * obj6 = 0 ;
45262 PyObject * obj7 = 0 ;
45263 char * kwnames[] = {
45264 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45265 };
45266
45267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45269 if (!SWIG_IsOK(res1)) {
45270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
45271 }
45272 arg1 = reinterpret_cast< wxWindow * >(argp1);
45273 if (obj1) {
45274 ecode2 = SWIG_AsVal_int(obj1, &val2);
45275 if (!SWIG_IsOK(ecode2)) {
45276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
45277 }
45278 arg2 = static_cast< int >(val2);
45279 }
45280 if (obj2) {
45281 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45282 if (!SWIG_IsOK(res3)) {
45283 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45284 }
45285 if (!argp3) {
45286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45287 }
45288 arg3 = reinterpret_cast< wxFont * >(argp3);
45289 }
45290 if (obj3) {
45291 {
45292 arg4 = &temp4;
45293 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45294 }
45295 }
45296 if (obj4) {
45297 {
45298 arg5 = &temp5;
45299 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45300 }
45301 }
45302 if (obj5) {
45303 ecode6 = SWIG_AsVal_long(obj5, &val6);
45304 if (!SWIG_IsOK(ecode6)) {
45305 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
45306 }
45307 arg6 = static_cast< long >(val6);
45308 }
45309 if (obj6) {
45310 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45311 if (!SWIG_IsOK(res7)) {
45312 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45313 }
45314 if (!argp7) {
45315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45316 }
45317 arg7 = reinterpret_cast< wxValidator * >(argp7);
45318 }
45319 if (obj7) {
45320 {
45321 arg8 = wxString_in_helper(obj7);
45322 if (arg8 == NULL) SWIG_fail;
45323 temp8 = true;
45324 }
45325 }
45326 {
45327 if (!wxPyCheckForApp()) SWIG_fail;
45328 PyThreadState* __tstate = wxPyBeginAllowThreads();
45329 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45330 wxPyEndAllowThreads(__tstate);
45331 if (PyErr_Occurred()) SWIG_fail;
45332 }
45333 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
45334 {
45335 if (temp8)
45336 delete arg8;
45337 }
45338 return resultobj;
45339 fail:
45340 {
45341 if (temp8)
45342 delete arg8;
45343 }
45344 return NULL;
45345 }
45346
45347
45348 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45349 PyObject *resultobj = 0;
45350 wxFontPickerCtrl *result = 0 ;
45351
45352 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
45353 {
45354 if (!wxPyCheckForApp()) SWIG_fail;
45355 PyThreadState* __tstate = wxPyBeginAllowThreads();
45356 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
45357 wxPyEndAllowThreads(__tstate);
45358 if (PyErr_Occurred()) SWIG_fail;
45359 }
45360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
45361 return resultobj;
45362 fail:
45363 return NULL;
45364 }
45365
45366
45367 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45368 PyObject *resultobj = 0;
45369 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45370 wxWindow *arg2 = (wxWindow *) 0 ;
45371 int arg3 = (int) -1 ;
45372 wxFont const &arg4_defvalue = wxNullFont ;
45373 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
45374 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45375 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45376 wxSize const &arg6_defvalue = wxDefaultSize ;
45377 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45378 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
45379 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45380 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45381 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
45382 wxString *arg9 = (wxString *) &arg9_defvalue ;
45383 bool result;
45384 void *argp1 = 0 ;
45385 int res1 = 0 ;
45386 void *argp2 = 0 ;
45387 int res2 = 0 ;
45388 int val3 ;
45389 int ecode3 = 0 ;
45390 void *argp4 = 0 ;
45391 int res4 = 0 ;
45392 wxPoint temp5 ;
45393 wxSize temp6 ;
45394 long val7 ;
45395 int ecode7 = 0 ;
45396 void *argp8 = 0 ;
45397 int res8 = 0 ;
45398 bool temp9 = false ;
45399 PyObject * obj0 = 0 ;
45400 PyObject * obj1 = 0 ;
45401 PyObject * obj2 = 0 ;
45402 PyObject * obj3 = 0 ;
45403 PyObject * obj4 = 0 ;
45404 PyObject * obj5 = 0 ;
45405 PyObject * obj6 = 0 ;
45406 PyObject * obj7 = 0 ;
45407 PyObject * obj8 = 0 ;
45408 char * kwnames[] = {
45409 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45410 };
45411
45412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45414 if (!SWIG_IsOK(res1)) {
45415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45416 }
45417 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45418 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45419 if (!SWIG_IsOK(res2)) {
45420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45421 }
45422 arg2 = reinterpret_cast< wxWindow * >(argp2);
45423 if (obj2) {
45424 ecode3 = SWIG_AsVal_int(obj2, &val3);
45425 if (!SWIG_IsOK(ecode3)) {
45426 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45427 }
45428 arg3 = static_cast< int >(val3);
45429 }
45430 if (obj3) {
45431 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45432 if (!SWIG_IsOK(res4)) {
45433 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45434 }
45435 if (!argp4) {
45436 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45437 }
45438 arg4 = reinterpret_cast< wxFont * >(argp4);
45439 }
45440 if (obj4) {
45441 {
45442 arg5 = &temp5;
45443 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45444 }
45445 }
45446 if (obj5) {
45447 {
45448 arg6 = &temp6;
45449 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45450 }
45451 }
45452 if (obj6) {
45453 ecode7 = SWIG_AsVal_long(obj6, &val7);
45454 if (!SWIG_IsOK(ecode7)) {
45455 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45456 }
45457 arg7 = static_cast< long >(val7);
45458 }
45459 if (obj7) {
45460 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45461 if (!SWIG_IsOK(res8)) {
45462 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45463 }
45464 if (!argp8) {
45465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45466 }
45467 arg8 = reinterpret_cast< wxValidator * >(argp8);
45468 }
45469 if (obj8) {
45470 {
45471 arg9 = wxString_in_helper(obj8);
45472 if (arg9 == NULL) SWIG_fail;
45473 temp9 = true;
45474 }
45475 }
45476 {
45477 PyThreadState* __tstate = wxPyBeginAllowThreads();
45478 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45479 wxPyEndAllowThreads(__tstate);
45480 if (PyErr_Occurred()) SWIG_fail;
45481 }
45482 {
45483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45484 }
45485 {
45486 if (temp9)
45487 delete arg9;
45488 }
45489 return resultobj;
45490 fail:
45491 {
45492 if (temp9)
45493 delete arg9;
45494 }
45495 return NULL;
45496 }
45497
45498
45499 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45500 PyObject *resultobj = 0;
45501 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45502 wxFont result;
45503 void *argp1 = 0 ;
45504 int res1 = 0 ;
45505 PyObject *swig_obj[1] ;
45506
45507 if (!args) SWIG_fail;
45508 swig_obj[0] = args;
45509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45510 if (!SWIG_IsOK(res1)) {
45511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45512 }
45513 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45514 {
45515 PyThreadState* __tstate = wxPyBeginAllowThreads();
45516 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45517 wxPyEndAllowThreads(__tstate);
45518 if (PyErr_Occurred()) SWIG_fail;
45519 }
45520 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45521 return resultobj;
45522 fail:
45523 return NULL;
45524 }
45525
45526
45527 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45528 PyObject *resultobj = 0;
45529 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45530 wxFont *arg2 = 0 ;
45531 void *argp1 = 0 ;
45532 int res1 = 0 ;
45533 void *argp2 = 0 ;
45534 int res2 = 0 ;
45535 PyObject * obj0 = 0 ;
45536 PyObject * obj1 = 0 ;
45537 char * kwnames[] = {
45538 (char *) "self",(char *) "f", NULL
45539 };
45540
45541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45543 if (!SWIG_IsOK(res1)) {
45544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45545 }
45546 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45547 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45548 if (!SWIG_IsOK(res2)) {
45549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45550 }
45551 if (!argp2) {
45552 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45553 }
45554 arg2 = reinterpret_cast< wxFont * >(argp2);
45555 {
45556 PyThreadState* __tstate = wxPyBeginAllowThreads();
45557 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45558 wxPyEndAllowThreads(__tstate);
45559 if (PyErr_Occurred()) SWIG_fail;
45560 }
45561 resultobj = SWIG_Py_Void();
45562 return resultobj;
45563 fail:
45564 return NULL;
45565 }
45566
45567
45568 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45569 PyObject *resultobj = 0;
45570 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45571 unsigned int arg2 ;
45572 void *argp1 = 0 ;
45573 int res1 = 0 ;
45574 unsigned int val2 ;
45575 int ecode2 = 0 ;
45576 PyObject * obj0 = 0 ;
45577 PyObject * obj1 = 0 ;
45578 char * kwnames[] = {
45579 (char *) "self",(char *) "max", NULL
45580 };
45581
45582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45584 if (!SWIG_IsOK(res1)) {
45585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45586 }
45587 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45588 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45589 if (!SWIG_IsOK(ecode2)) {
45590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45591 }
45592 arg2 = static_cast< unsigned int >(val2);
45593 {
45594 PyThreadState* __tstate = wxPyBeginAllowThreads();
45595 (arg1)->SetMaxPointSize(arg2);
45596 wxPyEndAllowThreads(__tstate);
45597 if (PyErr_Occurred()) SWIG_fail;
45598 }
45599 resultobj = SWIG_Py_Void();
45600 return resultobj;
45601 fail:
45602 return NULL;
45603 }
45604
45605
45606 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45607 PyObject *resultobj = 0;
45608 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45609 unsigned int result;
45610 void *argp1 = 0 ;
45611 int res1 = 0 ;
45612 PyObject *swig_obj[1] ;
45613
45614 if (!args) SWIG_fail;
45615 swig_obj[0] = args;
45616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45617 if (!SWIG_IsOK(res1)) {
45618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45619 }
45620 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45621 {
45622 PyThreadState* __tstate = wxPyBeginAllowThreads();
45623 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45624 wxPyEndAllowThreads(__tstate);
45625 if (PyErr_Occurred()) SWIG_fail;
45626 }
45627 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45628 return resultobj;
45629 fail:
45630 return NULL;
45631 }
45632
45633
45634 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45635 PyObject *obj;
45636 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45637 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45638 return SWIG_Py_Void();
45639 }
45640
45641 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45642 return SWIG_Python_InitShadowInstance(args);
45643 }
45644
45645 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45646 PyObject *resultobj = 0;
45647 wxObject *arg1 = (wxObject *) 0 ;
45648 int arg2 ;
45649 wxFont *arg3 = 0 ;
45650 wxFontPickerEvent *result = 0 ;
45651 void *argp1 = 0 ;
45652 int res1 = 0 ;
45653 int val2 ;
45654 int ecode2 = 0 ;
45655 void *argp3 = 0 ;
45656 int res3 = 0 ;
45657 PyObject * obj0 = 0 ;
45658 PyObject * obj1 = 0 ;
45659 PyObject * obj2 = 0 ;
45660 char * kwnames[] = {
45661 (char *) "generator",(char *) "id",(char *) "f", NULL
45662 };
45663
45664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45666 if (!SWIG_IsOK(res1)) {
45667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45668 }
45669 arg1 = reinterpret_cast< wxObject * >(argp1);
45670 ecode2 = SWIG_AsVal_int(obj1, &val2);
45671 if (!SWIG_IsOK(ecode2)) {
45672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45673 }
45674 arg2 = static_cast< int >(val2);
45675 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45676 if (!SWIG_IsOK(res3)) {
45677 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45678 }
45679 if (!argp3) {
45680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45681 }
45682 arg3 = reinterpret_cast< wxFont * >(argp3);
45683 {
45684 PyThreadState* __tstate = wxPyBeginAllowThreads();
45685 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45686 wxPyEndAllowThreads(__tstate);
45687 if (PyErr_Occurred()) SWIG_fail;
45688 }
45689 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45690 return resultobj;
45691 fail:
45692 return NULL;
45693 }
45694
45695
45696 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45697 PyObject *resultobj = 0;
45698 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45699 wxFont result;
45700 void *argp1 = 0 ;
45701 int res1 = 0 ;
45702 PyObject *swig_obj[1] ;
45703
45704 if (!args) SWIG_fail;
45705 swig_obj[0] = args;
45706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45707 if (!SWIG_IsOK(res1)) {
45708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45709 }
45710 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45711 {
45712 PyThreadState* __tstate = wxPyBeginAllowThreads();
45713 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45714 wxPyEndAllowThreads(__tstate);
45715 if (PyErr_Occurred()) SWIG_fail;
45716 }
45717 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45718 return resultobj;
45719 fail:
45720 return NULL;
45721 }
45722
45723
45724 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45725 PyObject *resultobj = 0;
45726 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45727 wxFont *arg2 = 0 ;
45728 void *argp1 = 0 ;
45729 int res1 = 0 ;
45730 void *argp2 = 0 ;
45731 int res2 = 0 ;
45732 PyObject * obj0 = 0 ;
45733 PyObject * obj1 = 0 ;
45734 char * kwnames[] = {
45735 (char *) "self",(char *) "c", NULL
45736 };
45737
45738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45740 if (!SWIG_IsOK(res1)) {
45741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45742 }
45743 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45744 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45745 if (!SWIG_IsOK(res2)) {
45746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45747 }
45748 if (!argp2) {
45749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45750 }
45751 arg2 = reinterpret_cast< wxFont * >(argp2);
45752 {
45753 PyThreadState* __tstate = wxPyBeginAllowThreads();
45754 (arg1)->SetFont((wxFont const &)*arg2);
45755 wxPyEndAllowThreads(__tstate);
45756 if (PyErr_Occurred()) SWIG_fail;
45757 }
45758 resultobj = SWIG_Py_Void();
45759 return resultobj;
45760 fail:
45761 return NULL;
45762 }
45763
45764
45765 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45766 PyObject *obj;
45767 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45768 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45769 return SWIG_Py_Void();
45770 }
45771
45772 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45773 return SWIG_Python_InitShadowInstance(args);
45774 }
45775
45776 SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
45777 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
45778 return 1;
45779 }
45780
45781
45782 SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
45783 PyObject *pyobj = 0;
45784
45785 {
45786 #if wxUSE_UNICODE
45787 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45788 #else
45789 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45790 #endif
45791 }
45792 return pyobj;
45793 }
45794
45795
45796 SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45797 PyObject *resultobj = 0;
45798 wxWindow *arg1 = (wxWindow *) 0 ;
45799 int arg2 = (int) -1 ;
45800 wxString const &arg3_defvalue = wxPyEmptyString ;
45801 wxString *arg3 = (wxString *) &arg3_defvalue ;
45802 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45803 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45804 wxSize const &arg5_defvalue = wxDefaultSize ;
45805 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45806 long arg6 = (long) wxCP_DEFAULT_STYLE ;
45807 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45808 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45809 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
45810 wxString *arg8 = (wxString *) &arg8_defvalue ;
45811 wxCollapsiblePane *result = 0 ;
45812 void *argp1 = 0 ;
45813 int res1 = 0 ;
45814 int val2 ;
45815 int ecode2 = 0 ;
45816 bool temp3 = false ;
45817 wxPoint temp4 ;
45818 wxSize temp5 ;
45819 long val6 ;
45820 int ecode6 = 0 ;
45821 void *argp7 = 0 ;
45822 int res7 = 0 ;
45823 bool temp8 = false ;
45824 PyObject * obj0 = 0 ;
45825 PyObject * obj1 = 0 ;
45826 PyObject * obj2 = 0 ;
45827 PyObject * obj3 = 0 ;
45828 PyObject * obj4 = 0 ;
45829 PyObject * obj5 = 0 ;
45830 PyObject * obj6 = 0 ;
45831 PyObject * obj7 = 0 ;
45832 char * kwnames[] = {
45833 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45834 };
45835
45836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45838 if (!SWIG_IsOK(res1)) {
45839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
45840 }
45841 arg1 = reinterpret_cast< wxWindow * >(argp1);
45842 if (obj1) {
45843 ecode2 = SWIG_AsVal_int(obj1, &val2);
45844 if (!SWIG_IsOK(ecode2)) {
45845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
45846 }
45847 arg2 = static_cast< int >(val2);
45848 }
45849 if (obj2) {
45850 {
45851 arg3 = wxString_in_helper(obj2);
45852 if (arg3 == NULL) SWIG_fail;
45853 temp3 = true;
45854 }
45855 }
45856 if (obj3) {
45857 {
45858 arg4 = &temp4;
45859 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45860 }
45861 }
45862 if (obj4) {
45863 {
45864 arg5 = &temp5;
45865 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45866 }
45867 }
45868 if (obj5) {
45869 ecode6 = SWIG_AsVal_long(obj5, &val6);
45870 if (!SWIG_IsOK(ecode6)) {
45871 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
45872 }
45873 arg6 = static_cast< long >(val6);
45874 }
45875 if (obj6) {
45876 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45877 if (!SWIG_IsOK(res7)) {
45878 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45879 }
45880 if (!argp7) {
45881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45882 }
45883 arg7 = reinterpret_cast< wxValidator * >(argp7);
45884 }
45885 if (obj7) {
45886 {
45887 arg8 = wxString_in_helper(obj7);
45888 if (arg8 == NULL) SWIG_fail;
45889 temp8 = true;
45890 }
45891 }
45892 {
45893 if (!wxPyCheckForApp()) SWIG_fail;
45894 PyThreadState* __tstate = wxPyBeginAllowThreads();
45895 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45896 wxPyEndAllowThreads(__tstate);
45897 if (PyErr_Occurred()) SWIG_fail;
45898 }
45899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
45900 {
45901 if (temp3)
45902 delete arg3;
45903 }
45904 {
45905 if (temp8)
45906 delete arg8;
45907 }
45908 return resultobj;
45909 fail:
45910 {
45911 if (temp3)
45912 delete arg3;
45913 }
45914 {
45915 if (temp8)
45916 delete arg8;
45917 }
45918 return NULL;
45919 }
45920
45921
45922 SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45923 PyObject *resultobj = 0;
45924 wxCollapsiblePane *result = 0 ;
45925
45926 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
45927 {
45928 if (!wxPyCheckForApp()) SWIG_fail;
45929 PyThreadState* __tstate = wxPyBeginAllowThreads();
45930 result = (wxCollapsiblePane *)new wxCollapsiblePane();
45931 wxPyEndAllowThreads(__tstate);
45932 if (PyErr_Occurred()) SWIG_fail;
45933 }
45934 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
45935 return resultobj;
45936 fail:
45937 return NULL;
45938 }
45939
45940
45941 SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45942 PyObject *resultobj = 0;
45943 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45944 wxWindow *arg2 = (wxWindow *) 0 ;
45945 int arg3 = (int) -1 ;
45946 wxString const &arg4_defvalue = wxPyEmptyString ;
45947 wxString *arg4 = (wxString *) &arg4_defvalue ;
45948 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45949 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45950 wxSize const &arg6_defvalue = wxDefaultSize ;
45951 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45952 long arg7 = (long) wxCP_DEFAULT_STYLE ;
45953 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45954 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45955 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
45956 wxString *arg9 = (wxString *) &arg9_defvalue ;
45957 bool result;
45958 void *argp1 = 0 ;
45959 int res1 = 0 ;
45960 void *argp2 = 0 ;
45961 int res2 = 0 ;
45962 int val3 ;
45963 int ecode3 = 0 ;
45964 bool temp4 = false ;
45965 wxPoint temp5 ;
45966 wxSize temp6 ;
45967 long val7 ;
45968 int ecode7 = 0 ;
45969 void *argp8 = 0 ;
45970 int res8 = 0 ;
45971 bool temp9 = false ;
45972 PyObject * obj0 = 0 ;
45973 PyObject * obj1 = 0 ;
45974 PyObject * obj2 = 0 ;
45975 PyObject * obj3 = 0 ;
45976 PyObject * obj4 = 0 ;
45977 PyObject * obj5 = 0 ;
45978 PyObject * obj6 = 0 ;
45979 PyObject * obj7 = 0 ;
45980 PyObject * obj8 = 0 ;
45981 char * kwnames[] = {
45982 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45983 };
45984
45985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45987 if (!SWIG_IsOK(res1)) {
45988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45989 }
45990 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45991 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45992 if (!SWIG_IsOK(res2)) {
45993 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45994 }
45995 arg2 = reinterpret_cast< wxWindow * >(argp2);
45996 if (obj2) {
45997 ecode3 = SWIG_AsVal_int(obj2, &val3);
45998 if (!SWIG_IsOK(ecode3)) {
45999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
46000 }
46001 arg3 = static_cast< int >(val3);
46002 }
46003 if (obj3) {
46004 {
46005 arg4 = wxString_in_helper(obj3);
46006 if (arg4 == NULL) SWIG_fail;
46007 temp4 = true;
46008 }
46009 }
46010 if (obj4) {
46011 {
46012 arg5 = &temp5;
46013 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46014 }
46015 }
46016 if (obj5) {
46017 {
46018 arg6 = &temp6;
46019 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46020 }
46021 }
46022 if (obj6) {
46023 ecode7 = SWIG_AsVal_long(obj6, &val7);
46024 if (!SWIG_IsOK(ecode7)) {
46025 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
46026 }
46027 arg7 = static_cast< long >(val7);
46028 }
46029 if (obj7) {
46030 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46031 if (!SWIG_IsOK(res8)) {
46032 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46033 }
46034 if (!argp8) {
46035 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46036 }
46037 arg8 = reinterpret_cast< wxValidator * >(argp8);
46038 }
46039 if (obj8) {
46040 {
46041 arg9 = wxString_in_helper(obj8);
46042 if (arg9 == NULL) SWIG_fail;
46043 temp9 = true;
46044 }
46045 }
46046 {
46047 PyThreadState* __tstate = wxPyBeginAllowThreads();
46048 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46049 wxPyEndAllowThreads(__tstate);
46050 if (PyErr_Occurred()) SWIG_fail;
46051 }
46052 {
46053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46054 }
46055 {
46056 if (temp4)
46057 delete arg4;
46058 }
46059 {
46060 if (temp9)
46061 delete arg9;
46062 }
46063 return resultobj;
46064 fail:
46065 {
46066 if (temp4)
46067 delete arg4;
46068 }
46069 {
46070 if (temp9)
46071 delete arg9;
46072 }
46073 return NULL;
46074 }
46075
46076
46077 SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46078 PyObject *resultobj = 0;
46079 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46080 bool arg2 = (bool) true ;
46081 void *argp1 = 0 ;
46082 int res1 = 0 ;
46083 bool val2 ;
46084 int ecode2 = 0 ;
46085 PyObject * obj0 = 0 ;
46086 PyObject * obj1 = 0 ;
46087 char * kwnames[] = {
46088 (char *) "self",(char *) "collapse", NULL
46089 };
46090
46091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
46092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46093 if (!SWIG_IsOK(res1)) {
46094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
46095 }
46096 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46097 if (obj1) {
46098 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46099 if (!SWIG_IsOK(ecode2)) {
46100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
46101 }
46102 arg2 = static_cast< bool >(val2);
46103 }
46104 {
46105 PyThreadState* __tstate = wxPyBeginAllowThreads();
46106 (arg1)->Collapse(arg2);
46107 wxPyEndAllowThreads(__tstate);
46108 if (PyErr_Occurred()) SWIG_fail;
46109 }
46110 resultobj = SWIG_Py_Void();
46111 return resultobj;
46112 fail:
46113 return NULL;
46114 }
46115
46116
46117 SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46118 PyObject *resultobj = 0;
46119 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46120 void *argp1 = 0 ;
46121 int res1 = 0 ;
46122 PyObject *swig_obj[1] ;
46123
46124 if (!args) SWIG_fail;
46125 swig_obj[0] = args;
46126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46127 if (!SWIG_IsOK(res1)) {
46128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
46129 }
46130 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46131 {
46132 PyThreadState* __tstate = wxPyBeginAllowThreads();
46133 (arg1)->Expand();
46134 wxPyEndAllowThreads(__tstate);
46135 if (PyErr_Occurred()) SWIG_fail;
46136 }
46137 resultobj = SWIG_Py_Void();
46138 return resultobj;
46139 fail:
46140 return NULL;
46141 }
46142
46143
46144 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46145 PyObject *resultobj = 0;
46146 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46147 bool result;
46148 void *argp1 = 0 ;
46149 int res1 = 0 ;
46150 PyObject *swig_obj[1] ;
46151
46152 if (!args) SWIG_fail;
46153 swig_obj[0] = args;
46154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46155 if (!SWIG_IsOK(res1)) {
46156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46157 }
46158 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46159 {
46160 PyThreadState* __tstate = wxPyBeginAllowThreads();
46161 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
46162 wxPyEndAllowThreads(__tstate);
46163 if (PyErr_Occurred()) SWIG_fail;
46164 }
46165 {
46166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46167 }
46168 return resultobj;
46169 fail:
46170 return NULL;
46171 }
46172
46173
46174 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46175 PyObject *resultobj = 0;
46176 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46177 bool result;
46178 void *argp1 = 0 ;
46179 int res1 = 0 ;
46180 PyObject *swig_obj[1] ;
46181
46182 if (!args) SWIG_fail;
46183 swig_obj[0] = args;
46184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46185 if (!SWIG_IsOK(res1)) {
46186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46187 }
46188 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46189 {
46190 PyThreadState* __tstate = wxPyBeginAllowThreads();
46191 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
46192 wxPyEndAllowThreads(__tstate);
46193 if (PyErr_Occurred()) SWIG_fail;
46194 }
46195 {
46196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46197 }
46198 return resultobj;
46199 fail:
46200 return NULL;
46201 }
46202
46203
46204 SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46205 PyObject *resultobj = 0;
46206 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46207 wxWindow *result = 0 ;
46208 void *argp1 = 0 ;
46209 int res1 = 0 ;
46210 PyObject *swig_obj[1] ;
46211
46212 if (!args) SWIG_fail;
46213 swig_obj[0] = args;
46214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46215 if (!SWIG_IsOK(res1)) {
46216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46217 }
46218 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46219 {
46220 PyThreadState* __tstate = wxPyBeginAllowThreads();
46221 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
46222 wxPyEndAllowThreads(__tstate);
46223 if (PyErr_Occurred()) SWIG_fail;
46224 }
46225 {
46226 resultobj = wxPyMake_wxObject(result, 0);
46227 }
46228 return resultobj;
46229 fail:
46230 return NULL;
46231 }
46232
46233
46234 SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46235 PyObject *obj;
46236 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46237 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
46238 return SWIG_Py_Void();
46239 }
46240
46241 SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46242 return SWIG_Python_InitShadowInstance(args);
46243 }
46244
46245 SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46246 PyObject *resultobj = 0;
46247 wxObject *arg1 = (wxObject *) 0 ;
46248 int arg2 ;
46249 bool arg3 ;
46250 wxCollapsiblePaneEvent *result = 0 ;
46251 void *argp1 = 0 ;
46252 int res1 = 0 ;
46253 int val2 ;
46254 int ecode2 = 0 ;
46255 bool val3 ;
46256 int ecode3 = 0 ;
46257 PyObject * obj0 = 0 ;
46258 PyObject * obj1 = 0 ;
46259 PyObject * obj2 = 0 ;
46260 char * kwnames[] = {
46261 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
46262 };
46263
46264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
46265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
46266 if (!SWIG_IsOK(res1)) {
46267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
46268 }
46269 arg1 = reinterpret_cast< wxObject * >(argp1);
46270 ecode2 = SWIG_AsVal_int(obj1, &val2);
46271 if (!SWIG_IsOK(ecode2)) {
46272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
46273 }
46274 arg2 = static_cast< int >(val2);
46275 ecode3 = SWIG_AsVal_bool(obj2, &val3);
46276 if (!SWIG_IsOK(ecode3)) {
46277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
46278 }
46279 arg3 = static_cast< bool >(val3);
46280 {
46281 PyThreadState* __tstate = wxPyBeginAllowThreads();
46282 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
46283 wxPyEndAllowThreads(__tstate);
46284 if (PyErr_Occurred()) SWIG_fail;
46285 }
46286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
46287 return resultobj;
46288 fail:
46289 return NULL;
46290 }
46291
46292
46293 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46294 PyObject *resultobj = 0;
46295 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46296 bool result;
46297 void *argp1 = 0 ;
46298 int res1 = 0 ;
46299 PyObject *swig_obj[1] ;
46300
46301 if (!args) SWIG_fail;
46302 swig_obj[0] = args;
46303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46304 if (!SWIG_IsOK(res1)) {
46305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
46306 }
46307 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46308 {
46309 PyThreadState* __tstate = wxPyBeginAllowThreads();
46310 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
46311 wxPyEndAllowThreads(__tstate);
46312 if (PyErr_Occurred()) SWIG_fail;
46313 }
46314 {
46315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46316 }
46317 return resultobj;
46318 fail:
46319 return NULL;
46320 }
46321
46322
46323 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46324 PyObject *resultobj = 0;
46325 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46326 bool arg2 ;
46327 void *argp1 = 0 ;
46328 int res1 = 0 ;
46329 bool val2 ;
46330 int ecode2 = 0 ;
46331 PyObject * obj0 = 0 ;
46332 PyObject * obj1 = 0 ;
46333 char * kwnames[] = {
46334 (char *) "self",(char *) "c", NULL
46335 };
46336
46337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
46338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46339 if (!SWIG_IsOK(res1)) {
46340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
46341 }
46342 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46343 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46344 if (!SWIG_IsOK(ecode2)) {
46345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
46346 }
46347 arg2 = static_cast< bool >(val2);
46348 {
46349 PyThreadState* __tstate = wxPyBeginAllowThreads();
46350 (arg1)->SetCollapsed(arg2);
46351 wxPyEndAllowThreads(__tstate);
46352 if (PyErr_Occurred()) SWIG_fail;
46353 }
46354 resultobj = SWIG_Py_Void();
46355 return resultobj;
46356 fail:
46357 return NULL;
46358 }
46359
46360
46361 SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46362 PyObject *obj;
46363 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46364 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
46365 return SWIG_Py_Void();
46366 }
46367
46368 SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46369 return SWIG_Python_InitShadowInstance(args);
46370 }
46371
46372 SWIGINTERN int SearchCtrlNameStr_set(PyObject *) {
46373 SWIG_Error(SWIG_AttributeError,"Variable SearchCtrlNameStr is read-only.");
46374 return 1;
46375 }
46376
46377
46378 SWIGINTERN PyObject *SearchCtrlNameStr_get(void) {
46379 PyObject *pyobj = 0;
46380
46381 {
46382 #if wxUSE_UNICODE
46383 pyobj = PyUnicode_FromWideChar((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46384 #else
46385 pyobj = PyString_FromStringAndSize((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46386 #endif
46387 }
46388 return pyobj;
46389 }
46390
46391
46392 SWIGINTERN PyObject *_wrap_new_SearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46393 PyObject *resultobj = 0;
46394 wxWindow *arg1 = (wxWindow *) 0 ;
46395 int arg2 = (int) -1 ;
46396 wxString const &arg3_defvalue = wxEmptyString ;
46397 wxString *arg3 = (wxString *) &arg3_defvalue ;
46398 wxPoint const &arg4_defvalue = wxDefaultPosition ;
46399 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
46400 wxSize const &arg5_defvalue = wxDefaultSize ;
46401 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
46402 long arg6 = (long) 0 ;
46403 wxValidator const &arg7_defvalue = wxDefaultValidator ;
46404 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
46405 wxString const &arg8_defvalue = wxPySearchCtrlNameStr ;
46406 wxString *arg8 = (wxString *) &arg8_defvalue ;
46407 wxSearchCtrl *result = 0 ;
46408 void *argp1 = 0 ;
46409 int res1 = 0 ;
46410 int val2 ;
46411 int ecode2 = 0 ;
46412 bool temp3 = false ;
46413 wxPoint temp4 ;
46414 wxSize temp5 ;
46415 long val6 ;
46416 int ecode6 = 0 ;
46417 void *argp7 = 0 ;
46418 int res7 = 0 ;
46419 bool temp8 = false ;
46420 PyObject * obj0 = 0 ;
46421 PyObject * obj1 = 0 ;
46422 PyObject * obj2 = 0 ;
46423 PyObject * obj3 = 0 ;
46424 PyObject * obj4 = 0 ;
46425 PyObject * obj5 = 0 ;
46426 PyObject * obj6 = 0 ;
46427 PyObject * obj7 = 0 ;
46428 char * kwnames[] = {
46429 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46430 };
46431
46432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_SearchCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
46433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
46434 if (!SWIG_IsOK(res1)) {
46435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SearchCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
46436 }
46437 arg1 = reinterpret_cast< wxWindow * >(argp1);
46438 if (obj1) {
46439 ecode2 = SWIG_AsVal_int(obj1, &val2);
46440 if (!SWIG_IsOK(ecode2)) {
46441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SearchCtrl" "', expected argument " "2"" of type '" "int""'");
46442 }
46443 arg2 = static_cast< int >(val2);
46444 }
46445 if (obj2) {
46446 {
46447 arg3 = wxString_in_helper(obj2);
46448 if (arg3 == NULL) SWIG_fail;
46449 temp3 = true;
46450 }
46451 }
46452 if (obj3) {
46453 {
46454 arg4 = &temp4;
46455 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
46456 }
46457 }
46458 if (obj4) {
46459 {
46460 arg5 = &temp5;
46461 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
46462 }
46463 }
46464 if (obj5) {
46465 ecode6 = SWIG_AsVal_long(obj5, &val6);
46466 if (!SWIG_IsOK(ecode6)) {
46467 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SearchCtrl" "', expected argument " "6"" of type '" "long""'");
46468 }
46469 arg6 = static_cast< long >(val6);
46470 }
46471 if (obj6) {
46472 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
46473 if (!SWIG_IsOK(res7)) {
46474 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46475 }
46476 if (!argp7) {
46477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46478 }
46479 arg7 = reinterpret_cast< wxValidator * >(argp7);
46480 }
46481 if (obj7) {
46482 {
46483 arg8 = wxString_in_helper(obj7);
46484 if (arg8 == NULL) SWIG_fail;
46485 temp8 = true;
46486 }
46487 }
46488 {
46489 if (!wxPyCheckForApp()) SWIG_fail;
46490 PyThreadState* __tstate = wxPyBeginAllowThreads();
46491 result = (wxSearchCtrl *)new wxSearchCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
46492 wxPyEndAllowThreads(__tstate);
46493 if (PyErr_Occurred()) SWIG_fail;
46494 }
46495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_NEW | 0 );
46496 {
46497 if (temp3)
46498 delete arg3;
46499 }
46500 {
46501 if (temp8)
46502 delete arg8;
46503 }
46504 return resultobj;
46505 fail:
46506 {
46507 if (temp3)
46508 delete arg3;
46509 }
46510 {
46511 if (temp8)
46512 delete arg8;
46513 }
46514 return NULL;
46515 }
46516
46517
46518 SWIGINTERN PyObject *_wrap_new_PreSearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46519 PyObject *resultobj = 0;
46520 wxSearchCtrl *result = 0 ;
46521
46522 if (!SWIG_Python_UnpackTuple(args,"new_PreSearchCtrl",0,0,0)) SWIG_fail;
46523 {
46524 if (!wxPyCheckForApp()) SWIG_fail;
46525 PyThreadState* __tstate = wxPyBeginAllowThreads();
46526 result = (wxSearchCtrl *)new wxSearchCtrl();
46527 wxPyEndAllowThreads(__tstate);
46528 if (PyErr_Occurred()) SWIG_fail;
46529 }
46530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_OWN | 0 );
46531 return resultobj;
46532 fail:
46533 return NULL;
46534 }
46535
46536
46537 SWIGINTERN PyObject *_wrap_SearchCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46538 PyObject *resultobj = 0;
46539 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46540 wxWindow *arg2 = (wxWindow *) 0 ;
46541 int arg3 = (int) -1 ;
46542 wxString const &arg4_defvalue = wxEmptyString ;
46543 wxString *arg4 = (wxString *) &arg4_defvalue ;
46544 wxPoint const &arg5_defvalue = wxDefaultPosition ;
46545 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
46546 wxSize const &arg6_defvalue = wxDefaultSize ;
46547 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
46548 long arg7 = (long) 0 ;
46549 wxValidator const &arg8_defvalue = wxDefaultValidator ;
46550 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
46551 wxString const &arg9_defvalue = wxPySearchCtrlNameStr ;
46552 wxString *arg9 = (wxString *) &arg9_defvalue ;
46553 bool result;
46554 void *argp1 = 0 ;
46555 int res1 = 0 ;
46556 void *argp2 = 0 ;
46557 int res2 = 0 ;
46558 int val3 ;
46559 int ecode3 = 0 ;
46560 bool temp4 = false ;
46561 wxPoint temp5 ;
46562 wxSize temp6 ;
46563 long val7 ;
46564 int ecode7 = 0 ;
46565 void *argp8 = 0 ;
46566 int res8 = 0 ;
46567 bool temp9 = false ;
46568 PyObject * obj0 = 0 ;
46569 PyObject * obj1 = 0 ;
46570 PyObject * obj2 = 0 ;
46571 PyObject * obj3 = 0 ;
46572 PyObject * obj4 = 0 ;
46573 PyObject * obj5 = 0 ;
46574 PyObject * obj6 = 0 ;
46575 PyObject * obj7 = 0 ;
46576 PyObject * obj8 = 0 ;
46577 char * kwnames[] = {
46578 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46579 };
46580
46581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:SearchCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
46582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46583 if (!SWIG_IsOK(res1)) {
46584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_Create" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46585 }
46586 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46587 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
46588 if (!SWIG_IsOK(res2)) {
46589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
46590 }
46591 arg2 = reinterpret_cast< wxWindow * >(argp2);
46592 if (obj2) {
46593 ecode3 = SWIG_AsVal_int(obj2, &val3);
46594 if (!SWIG_IsOK(ecode3)) {
46595 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SearchCtrl_Create" "', expected argument " "3"" of type '" "int""'");
46596 }
46597 arg3 = static_cast< int >(val3);
46598 }
46599 if (obj3) {
46600 {
46601 arg4 = wxString_in_helper(obj3);
46602 if (arg4 == NULL) SWIG_fail;
46603 temp4 = true;
46604 }
46605 }
46606 if (obj4) {
46607 {
46608 arg5 = &temp5;
46609 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46610 }
46611 }
46612 if (obj5) {
46613 {
46614 arg6 = &temp6;
46615 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46616 }
46617 }
46618 if (obj6) {
46619 ecode7 = SWIG_AsVal_long(obj6, &val7);
46620 if (!SWIG_IsOK(ecode7)) {
46621 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SearchCtrl_Create" "', expected argument " "7"" of type '" "long""'");
46622 }
46623 arg7 = static_cast< long >(val7);
46624 }
46625 if (obj7) {
46626 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46627 if (!SWIG_IsOK(res8)) {
46628 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46629 }
46630 if (!argp8) {
46631 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46632 }
46633 arg8 = reinterpret_cast< wxValidator * >(argp8);
46634 }
46635 if (obj8) {
46636 {
46637 arg9 = wxString_in_helper(obj8);
46638 if (arg9 == NULL) SWIG_fail;
46639 temp9 = true;
46640 }
46641 }
46642 {
46643 PyThreadState* __tstate = wxPyBeginAllowThreads();
46644 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46645 wxPyEndAllowThreads(__tstate);
46646 if (PyErr_Occurred()) SWIG_fail;
46647 }
46648 {
46649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46650 }
46651 {
46652 if (temp4)
46653 delete arg4;
46654 }
46655 {
46656 if (temp9)
46657 delete arg9;
46658 }
46659 return resultobj;
46660 fail:
46661 {
46662 if (temp4)
46663 delete arg4;
46664 }
46665 {
46666 if (temp9)
46667 delete arg9;
46668 }
46669 return NULL;
46670 }
46671
46672
46673 SWIGINTERN PyObject *_wrap_SearchCtrl_SetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46674 PyObject *resultobj = 0;
46675 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46676 wxMenu *arg2 = (wxMenu *) 0 ;
46677 void *argp1 = 0 ;
46678 int res1 = 0 ;
46679 void *argp2 = 0 ;
46680 int res2 = 0 ;
46681 PyObject * obj0 = 0 ;
46682 PyObject * obj1 = 0 ;
46683 char * kwnames[] = {
46684 (char *) "self",(char *) "menu", NULL
46685 };
46686
46687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
46688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46689 if (!SWIG_IsOK(res1)) {
46690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46691 }
46692 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46693 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
46694 if (!SWIG_IsOK(res2)) {
46695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
46696 }
46697 arg2 = reinterpret_cast< wxMenu * >(argp2);
46698 {
46699 PyThreadState* __tstate = wxPyBeginAllowThreads();
46700 (arg1)->SetMenu(arg2);
46701 wxPyEndAllowThreads(__tstate);
46702 if (PyErr_Occurred()) SWIG_fail;
46703 }
46704 resultobj = SWIG_Py_Void();
46705 return resultobj;
46706 fail:
46707 return NULL;
46708 }
46709
46710
46711 SWIGINTERN PyObject *_wrap_SearchCtrl_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46712 PyObject *resultobj = 0;
46713 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46714 wxMenu *result = 0 ;
46715 void *argp1 = 0 ;
46716 int res1 = 0 ;
46717 PyObject *swig_obj[1] ;
46718
46719 if (!args) SWIG_fail;
46720 swig_obj[0] = args;
46721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46722 if (!SWIG_IsOK(res1)) {
46723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46724 }
46725 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46726 {
46727 PyThreadState* __tstate = wxPyBeginAllowThreads();
46728 result = (wxMenu *)(arg1)->GetMenu();
46729 wxPyEndAllowThreads(__tstate);
46730 if (PyErr_Occurred()) SWIG_fail;
46731 }
46732 {
46733 resultobj = wxPyMake_wxObject(result, 0);
46734 }
46735 return resultobj;
46736 fail:
46737 return NULL;
46738 }
46739
46740
46741 SWIGINTERN PyObject *_wrap_SearchCtrl_ShowSearchButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46742 PyObject *resultobj = 0;
46743 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46744 bool arg2 ;
46745 void *argp1 = 0 ;
46746 int res1 = 0 ;
46747 bool val2 ;
46748 int ecode2 = 0 ;
46749 PyObject * obj0 = 0 ;
46750 PyObject * obj1 = 0 ;
46751 char * kwnames[] = {
46752 (char *) "self",(char *) "show", NULL
46753 };
46754
46755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowSearchButton",kwnames,&obj0,&obj1)) SWIG_fail;
46756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46757 if (!SWIG_IsOK(res1)) {
46758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46759 }
46760 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46761 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46762 if (!SWIG_IsOK(ecode2)) {
46763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "2"" of type '" "bool""'");
46764 }
46765 arg2 = static_cast< bool >(val2);
46766 {
46767 PyThreadState* __tstate = wxPyBeginAllowThreads();
46768 (arg1)->ShowSearchButton(arg2);
46769 wxPyEndAllowThreads(__tstate);
46770 if (PyErr_Occurred()) SWIG_fail;
46771 }
46772 resultobj = SWIG_Py_Void();
46773 return resultobj;
46774 fail:
46775 return NULL;
46776 }
46777
46778
46779 SWIGINTERN PyObject *_wrap_SearchCtrl_IsSearchButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46780 PyObject *resultobj = 0;
46781 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46782 bool result;
46783 void *argp1 = 0 ;
46784 int res1 = 0 ;
46785 PyObject *swig_obj[1] ;
46786
46787 if (!args) SWIG_fail;
46788 swig_obj[0] = args;
46789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46790 if (!SWIG_IsOK(res1)) {
46791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsSearchButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46792 }
46793 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46794 {
46795 PyThreadState* __tstate = wxPyBeginAllowThreads();
46796 result = (bool)((wxSearchCtrl const *)arg1)->IsSearchButtonVisible();
46797 wxPyEndAllowThreads(__tstate);
46798 if (PyErr_Occurred()) SWIG_fail;
46799 }
46800 {
46801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46802 }
46803 return resultobj;
46804 fail:
46805 return NULL;
46806 }
46807
46808
46809 SWIGINTERN PyObject *_wrap_SearchCtrl_ShowCancelButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46810 PyObject *resultobj = 0;
46811 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46812 bool arg2 ;
46813 void *argp1 = 0 ;
46814 int res1 = 0 ;
46815 bool val2 ;
46816 int ecode2 = 0 ;
46817 PyObject * obj0 = 0 ;
46818 PyObject * obj1 = 0 ;
46819 char * kwnames[] = {
46820 (char *) "self",(char *) "show", NULL
46821 };
46822
46823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowCancelButton",kwnames,&obj0,&obj1)) SWIG_fail;
46824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46825 if (!SWIG_IsOK(res1)) {
46826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46827 }
46828 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46829 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46830 if (!SWIG_IsOK(ecode2)) {
46831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "2"" of type '" "bool""'");
46832 }
46833 arg2 = static_cast< bool >(val2);
46834 {
46835 PyThreadState* __tstate = wxPyBeginAllowThreads();
46836 (arg1)->ShowCancelButton(arg2);
46837 wxPyEndAllowThreads(__tstate);
46838 if (PyErr_Occurred()) SWIG_fail;
46839 }
46840 resultobj = SWIG_Py_Void();
46841 return resultobj;
46842 fail:
46843 return NULL;
46844 }
46845
46846
46847 SWIGINTERN PyObject *_wrap_SearchCtrl_IsCancelButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46848 PyObject *resultobj = 0;
46849 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46850 bool result;
46851 void *argp1 = 0 ;
46852 int res1 = 0 ;
46853 PyObject *swig_obj[1] ;
46854
46855 if (!args) SWIG_fail;
46856 swig_obj[0] = args;
46857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46858 if (!SWIG_IsOK(res1)) {
46859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsCancelButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46860 }
46861 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46862 {
46863 PyThreadState* __tstate = wxPyBeginAllowThreads();
46864 result = (bool)((wxSearchCtrl const *)arg1)->IsCancelButtonVisible();
46865 wxPyEndAllowThreads(__tstate);
46866 if (PyErr_Occurred()) SWIG_fail;
46867 }
46868 {
46869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46870 }
46871 return resultobj;
46872 fail:
46873 return NULL;
46874 }
46875
46876
46877 SWIGINTERN PyObject *_wrap_SearchCtrl_SetDescriptiveText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46878 PyObject *resultobj = 0;
46879 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46880 wxString *arg2 = 0 ;
46881 void *argp1 = 0 ;
46882 int res1 = 0 ;
46883 bool temp2 = false ;
46884 PyObject * obj0 = 0 ;
46885 PyObject * obj1 = 0 ;
46886 char * kwnames[] = {
46887 (char *) "self",(char *) "text", NULL
46888 };
46889
46890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetDescriptiveText",kwnames,&obj0,&obj1)) SWIG_fail;
46891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46892 if (!SWIG_IsOK(res1)) {
46893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetDescriptiveText" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46894 }
46895 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46896 {
46897 arg2 = wxString_in_helper(obj1);
46898 if (arg2 == NULL) SWIG_fail;
46899 temp2 = true;
46900 }
46901 {
46902 PyThreadState* __tstate = wxPyBeginAllowThreads();
46903 (arg1)->SetDescriptiveText((wxString const &)*arg2);
46904 wxPyEndAllowThreads(__tstate);
46905 if (PyErr_Occurred()) SWIG_fail;
46906 }
46907 resultobj = SWIG_Py_Void();
46908 {
46909 if (temp2)
46910 delete arg2;
46911 }
46912 return resultobj;
46913 fail:
46914 {
46915 if (temp2)
46916 delete arg2;
46917 }
46918 return NULL;
46919 }
46920
46921
46922 SWIGINTERN PyObject *_wrap_SearchCtrl_GetDescriptiveText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46923 PyObject *resultobj = 0;
46924 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46925 wxString result;
46926 void *argp1 = 0 ;
46927 int res1 = 0 ;
46928 PyObject *swig_obj[1] ;
46929
46930 if (!args) SWIG_fail;
46931 swig_obj[0] = args;
46932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46933 if (!SWIG_IsOK(res1)) {
46934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetDescriptiveText" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46935 }
46936 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46937 {
46938 PyThreadState* __tstate = wxPyBeginAllowThreads();
46939 result = ((wxSearchCtrl const *)arg1)->GetDescriptiveText();
46940 wxPyEndAllowThreads(__tstate);
46941 if (PyErr_Occurred()) SWIG_fail;
46942 }
46943 {
46944 #if wxUSE_UNICODE
46945 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
46946 #else
46947 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
46948 #endif
46949 }
46950 return resultobj;
46951 fail:
46952 return NULL;
46953 }
46954
46955
46956 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46957 PyObject *resultobj = 0;
46958 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46959 wxBitmap *arg2 = 0 ;
46960 void *argp1 = 0 ;
46961 int res1 = 0 ;
46962 void *argp2 = 0 ;
46963 int res2 = 0 ;
46964 PyObject * obj0 = 0 ;
46965 PyObject * obj1 = 0 ;
46966 char * kwnames[] = {
46967 (char *) "self",(char *) "bitmap", NULL
46968 };
46969
46970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46972 if (!SWIG_IsOK(res1)) {
46973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46974 }
46975 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46976 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46977 if (!SWIG_IsOK(res2)) {
46978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46979 }
46980 if (!argp2) {
46981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46982 }
46983 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46984 {
46985 PyThreadState* __tstate = wxPyBeginAllowThreads();
46986 (arg1)->SetSearchBitmap((wxBitmap const &)*arg2);
46987 wxPyEndAllowThreads(__tstate);
46988 if (PyErr_Occurred()) SWIG_fail;
46989 }
46990 resultobj = SWIG_Py_Void();
46991 return resultobj;
46992 fail:
46993 return NULL;
46994 }
46995
46996
46997 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchMenuBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46998 PyObject *resultobj = 0;
46999 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47000 wxBitmap *arg2 = 0 ;
47001 void *argp1 = 0 ;
47002 int res1 = 0 ;
47003 void *argp2 = 0 ;
47004 int res2 = 0 ;
47005 PyObject * obj0 = 0 ;
47006 PyObject * obj1 = 0 ;
47007 char * kwnames[] = {
47008 (char *) "self",(char *) "bitmap", NULL
47009 };
47010
47011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchMenuBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
47012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47013 if (!SWIG_IsOK(res1)) {
47014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
47015 }
47016 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47017 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
47018 if (!SWIG_IsOK(res2)) {
47019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47020 }
47021 if (!argp2) {
47022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47023 }
47024 arg2 = reinterpret_cast< wxBitmap * >(argp2);
47025 {
47026 PyThreadState* __tstate = wxPyBeginAllowThreads();
47027 (arg1)->SetSearchMenuBitmap((wxBitmap const &)*arg2);
47028 wxPyEndAllowThreads(__tstate);
47029 if (PyErr_Occurred()) SWIG_fail;
47030 }
47031 resultobj = SWIG_Py_Void();
47032 return resultobj;
47033 fail:
47034 return NULL;
47035 }
47036
47037
47038 SWIGINTERN PyObject *_wrap_SearchCtrl_SetCancelBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47039 PyObject *resultobj = 0;
47040 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47041 wxBitmap *arg2 = 0 ;
47042 void *argp1 = 0 ;
47043 int res1 = 0 ;
47044 void *argp2 = 0 ;
47045 int res2 = 0 ;
47046 PyObject * obj0 = 0 ;
47047 PyObject * obj1 = 0 ;
47048 char * kwnames[] = {
47049 (char *) "self",(char *) "bitmap", NULL
47050 };
47051
47052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetCancelBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
47053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47054 if (!SWIG_IsOK(res1)) {
47055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
47056 }
47057 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47058 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
47059 if (!SWIG_IsOK(res2)) {
47060 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47061 }
47062 if (!argp2) {
47063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47064 }
47065 arg2 = reinterpret_cast< wxBitmap * >(argp2);
47066 {
47067 PyThreadState* __tstate = wxPyBeginAllowThreads();
47068 (arg1)->SetCancelBitmap((wxBitmap const &)*arg2);
47069 wxPyEndAllowThreads(__tstate);
47070 if (PyErr_Occurred()) SWIG_fail;
47071 }
47072 resultobj = SWIG_Py_Void();
47073 return resultobj;
47074 fail:
47075 return NULL;
47076 }
47077
47078
47079 SWIGINTERN PyObject *SearchCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47080 PyObject *obj;
47081 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
47082 SWIG_TypeNewClientData(SWIGTYPE_p_wxSearchCtrl, SWIG_NewClientData(obj));
47083 return SWIG_Py_Void();
47084 }
47085
47086 SWIGINTERN PyObject *SearchCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47087 return SWIG_Python_InitShadowInstance(args);
47088 }
47089
47090 static PyMethodDef SwigMethods[] = {
47091 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
47092 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
47093 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47094 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
47095 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
47096 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47097 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
47098 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
47099 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
47100 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
47101 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47102 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
47103 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
47104 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
47105 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
47106 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
47107 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
47108 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
47109 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47110 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47111 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
47112 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47113 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
47114 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
47115 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
47116 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
47117 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
47118 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
47119 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47120 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
47121 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
47122 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47123 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
47124 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
47125 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
47126 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
47127 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47128 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
47129 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
47130 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
47131 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
47132 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47133 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
47134 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47135 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
47136 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
47137 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
47138 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
47139 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47140 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
47141 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47142 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
47143 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
47144 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
47145 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47146 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
47147 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
47148 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
47149 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
47150 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
47151 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
47152 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47153 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
47154 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
47155 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
47156 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
47157 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
47158 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
47159 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
47160 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
47161 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
47162 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
47163 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
47164 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
47165 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47166 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
47167 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
47168 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
47169 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
47170 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47171 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47172 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
47173 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47174 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
47175 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
47176 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
47177 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47178 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
47179 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
47180 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
47181 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47182 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
47183 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
47184 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
47185 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
47186 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47187 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47188 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
47189 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
47190 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
47191 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
47192 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47193 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
47194 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
47195 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47196 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
47197 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
47198 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
47199 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
47200 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47201 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
47202 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47203 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
47204 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
47205 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47206 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
47207 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47208 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
47209 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47210 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
47211 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47212 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
47213 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
47214 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
47215 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
47216 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47217 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
47218 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
47219 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
47220 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47221 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47222 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47223 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
47224 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
47225 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47226 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
47227 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
47228 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
47229 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47230 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47231 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
47232 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47233 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47234 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47235 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47236 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47237 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
47238 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
47239 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
47240 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
47241 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47242 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
47243 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
47244 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
47245 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
47246 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
47247 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47248 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
47249 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
47250 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
47251 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47252 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47253 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47254 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
47255 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
47256 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47257 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47258 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
47259 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
47260 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
47261 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
47262 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
47263 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
47264 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
47265 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
47266 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
47267 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
47268 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
47269 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
47270 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
47271 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
47272 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
47273 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
47274 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
47275 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
47276 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
47277 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
47278 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
47279 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
47280 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47281 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
47282 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47283 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
47284 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47285 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
47286 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
47287 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47288 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
47289 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
47290 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
47291 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
47292 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
47293 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
47294 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
47295 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
47296 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
47297 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
47298 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
47299 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
47300 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
47301 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
47302 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
47303 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
47304 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
47305 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
47306 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
47307 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
47308 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
47309 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47310 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47311 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47312 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
47313 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47314 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
47315 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47316 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47317 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
47318 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
47319 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
47320 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
47321 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
47322 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
47323 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
47324 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
47325 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
47326 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
47327 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
47328 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47329 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
47330 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
47331 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
47332 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47333 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
47334 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
47335 { (char *)"TextCtrl_MacCheckSpelling", (PyCFunction) _wrap_TextCtrl_MacCheckSpelling, METH_VARARGS | METH_KEYWORDS, NULL},
47336 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
47337 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL},
47338 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction)_wrap_TextCtrl_HideNativeCaret, METH_O, NULL},
47339 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
47340 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
47341 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47342 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
47343 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
47344 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47345 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
47346 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
47347 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
47348 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
47349 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
47350 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
47351 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
47352 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47353 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
47354 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
47355 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
47356 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
47357 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
47358 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47359 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47360 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
47361 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
47362 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
47363 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
47364 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47365 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
47366 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
47367 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
47368 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47369 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
47370 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47371 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47372 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
47373 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47374 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
47375 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
47376 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47377 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
47378 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47379 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
47380 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47381 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
47382 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47383 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
47384 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
47385 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47386 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47387 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
47388 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
47389 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47390 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
47391 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47392 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
47393 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
47394 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
47395 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
47396 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47397 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47398 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
47399 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
47400 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47401 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
47402 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
47403 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
47404 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
47405 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
47406 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
47407 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47408 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
47409 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
47410 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
47411 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47412 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47413 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47414 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
47415 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
47416 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47417 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
47418 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
47419 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
47420 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
47421 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47422 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
47423 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47424 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47425 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
47426 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
47427 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
47428 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
47429 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47430 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
47431 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47432 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47433 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
47434 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
47435 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
47436 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47437 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
47438 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47439 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
47440 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
47441 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
47442 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
47443 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
47444 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
47445 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
47446 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
47447 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
47448 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
47449 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
47450 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47451 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47452 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
47453 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
47454 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
47455 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
47456 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47457 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47458 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
47459 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47460 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
47461 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
47462 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
47463 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
47464 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
47465 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
47466 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47467 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47468 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47469 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47470 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
47471 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47472 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47473 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47474 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
47475 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
47476 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
47477 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
47478 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47479 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
47480 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
47481 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
47482 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
47483 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
47484 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
47485 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
47486 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
47487 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
47488 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47489 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47490 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47491 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47492 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47493 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
47494 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47495 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
47496 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47497 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
47498 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47499 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
47500 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
47501 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
47502 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
47503 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47504 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
47505 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
47506 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
47507 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
47508 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47509 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47510 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47511 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
47512 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
47513 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47514 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
47515 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
47516 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
47517 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
47518 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47519 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
47520 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
47521 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
47522 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47523 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
47524 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
47525 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
47526 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
47527 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47528 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
47529 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
47530 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
47531 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47532 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
47533 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
47534 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
47535 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
47536 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47537 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47538 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47539 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47540 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
47541 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
47542 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
47543 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
47544 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
47545 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
47546 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47547 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
47548 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
47549 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
47550 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
47551 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47552 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
47553 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
47554 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
47555 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
47556 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47557 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
47558 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
47559 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
47560 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
47561 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
47562 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
47563 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
47564 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
47565 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
47566 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
47567 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
47568 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
47569 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
47570 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
47571 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
47572 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
47573 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
47574 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
47575 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
47576 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
47577 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
47578 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47579 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47580 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47581 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47582 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47583 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47584 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
47585 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
47586 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
47587 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47588 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
47589 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
47590 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
47591 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47592 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47593 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
47594 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
47595 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
47596 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
47597 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
47598 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
47599 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
47600 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
47601 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
47602 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
47603 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
47604 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
47605 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47606 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47607 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47608 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
47609 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
47610 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47611 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47612 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47613 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47614 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47615 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
47616 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47617 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
47618 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
47619 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
47620 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
47621 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
47622 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
47623 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
47624 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
47625 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
47626 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
47627 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
47628 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
47629 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
47630 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47631 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
47632 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
47633 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
47634 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
47635 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
47636 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
47637 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47638 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47639 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
47640 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
47641 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47642 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
47643 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47644 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47645 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47646 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
47647 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
47648 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
47649 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
47650 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
47651 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
47652 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
47653 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
47654 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
47655 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
47656 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
47657 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
47658 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
47659 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
47660 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
47661 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47662 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47663 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
47664 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
47665 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
47666 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
47667 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47668 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47669 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
47670 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47671 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47672 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47673 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
47674 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
47675 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
47676 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
47677 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
47678 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
47679 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
47680 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
47681 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
47682 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
47683 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
47684 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
47685 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
47686 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
47687 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
47688 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
47689 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
47690 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
47691 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
47692 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
47693 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
47694 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
47695 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
47696 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
47697 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
47698 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
47699 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
47700 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
47701 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
47702 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
47703 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
47704 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
47705 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
47706 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
47707 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
47708 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
47709 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47710 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
47711 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
47712 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
47713 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
47714 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
47715 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
47716 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
47717 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
47718 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
47719 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
47720 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
47721 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
47722 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
47723 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
47724 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
47725 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
47726 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
47727 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
47728 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
47729 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
47730 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
47731 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
47732 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
47733 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
47734 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47735 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
47736 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
47737 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47738 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
47739 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47740 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47741 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47742 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47743 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47744 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47745 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
47746 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
47747 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
47748 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47749 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47750 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47751 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47752 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47753 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47754 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47755 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47756 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47757 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47758 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47759 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47760 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
47761 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47762 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
47763 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
47764 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
47765 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
47766 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
47767 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47768 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
47769 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47770 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47771 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47772 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47773 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47774 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
47775 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
47776 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
47777 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
47778 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
47779 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
47780 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
47781 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47782 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
47783 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
47784 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47785 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47786 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47787 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
47788 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47789 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
47790 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47791 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
47792 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47793 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47794 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
47795 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47796 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
47797 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47798 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
47799 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
47800 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47801 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47802 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47803 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47804 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47805 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47806 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
47807 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
47808 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47809 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
47810 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
47811 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
47812 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
47813 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47814 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47815 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
47816 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
47817 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47818 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
47819 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47820 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47821 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47822 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
47823 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
47824 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
47825 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
47826 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
47827 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
47828 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
47829 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
47830 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
47831 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
47832 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
47833 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47834 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
47835 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
47836 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47837 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
47838 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47839 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
47840 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
47841 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
47842 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
47843 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
47844 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47845 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
47846 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
47847 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
47848 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47849 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
47850 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
47851 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47852 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
47853 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47854 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
47855 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47856 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47857 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
47858 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
47859 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
47860 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47861 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
47862 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47863 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47864 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
47865 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
47866 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47867 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
47868 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47869 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
47870 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
47871 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47872 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47873 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47874 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47875 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47876 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47877 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47878 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47879 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47880 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47881 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47882 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47883 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47884 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47885 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47886 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47887 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
47888 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
47889 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47890 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47891 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47892 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47893 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47894 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47895 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47896 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
47897 { (char *)"TreeCtrl_IsEmpty", (PyCFunction)_wrap_TreeCtrl_IsEmpty, METH_O, NULL},
47898 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
47899 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
47900 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
47901 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
47902 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
47903 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
47904 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
47905 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
47906 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47907 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47908 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
47909 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47910 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47911 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
47912 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
47913 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47914 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
47915 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
47916 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
47917 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47918 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
47919 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
47920 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47921 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
47922 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47923 { (char *)"TreeCtrl_CollapseAllChildren", (PyCFunction) _wrap_TreeCtrl_CollapseAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47924 { (char *)"TreeCtrl_CollapseAll", (PyCFunction)_wrap_TreeCtrl_CollapseAll, METH_O, NULL},
47925 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
47926 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
47927 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
47928 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47929 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
47930 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47931 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47932 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47933 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
47934 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47935 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
47936 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47937 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47938 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47939 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
47940 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
47941 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
47942 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47943 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
47944 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
47945 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
47946 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
47947 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47948 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
47949 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47950 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
47951 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
47952 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
47953 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
47954 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
47955 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
47956 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47957 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
47958 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
47959 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
47960 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
47961 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
47962 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
47963 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
47964 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
47965 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
47966 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
47967 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
47968 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
47969 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
47970 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
47971 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47972 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
47973 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47974 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
47975 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
47976 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
47977 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
47978 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
47979 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47980 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
47981 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47982 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
47983 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
47984 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
47985 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
47986 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
47987 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
47988 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
47989 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
47990 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
47991 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
47992 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
47993 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
47994 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47995 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
47996 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47997 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
47998 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
47999 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
48000 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
48001 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
48002 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
48003 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
48004 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
48005 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48006 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
48007 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48008 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
48009 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
48010 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
48011 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
48012 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
48013 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
48014 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
48015 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
48016 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
48017 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48018 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48019 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
48020 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48021 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
48022 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48023 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
48024 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
48025 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
48026 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
48027 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
48028 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
48029 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
48030 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
48031 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
48032 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
48033 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
48034 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48035 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
48036 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
48037 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
48038 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
48039 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
48040 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
48041 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
48042 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
48043 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
48044 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
48045 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
48046 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
48047 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48048 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
48049 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48050 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
48051 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
48052 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
48053 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
48054 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
48055 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
48056 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
48057 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48058 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
48059 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48060 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
48061 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
48062 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
48063 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
48064 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
48065 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
48066 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
48067 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
48068 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
48069 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
48070 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
48071 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
48072 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48073 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
48074 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
48075 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
48076 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
48077 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
48078 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
48079 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
48080 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
48081 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
48082 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
48083 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
48084 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
48085 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
48086 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
48087 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
48088 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
48089 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
48090 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
48091 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
48092 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48093 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
48094 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48095 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
48096 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
48097 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
48098 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
48099 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48100 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
48101 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
48102 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
48103 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
48104 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48105 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
48106 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48107 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
48108 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48109 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
48110 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
48111 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
48112 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
48113 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48114 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
48115 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48116 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
48117 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48118 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
48119 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
48120 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
48121 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
48122 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48123 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
48124 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48125 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
48126 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
48127 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48128 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
48129 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48130 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
48131 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
48132 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
48133 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
48134 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
48135 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
48136 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48137 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
48138 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
48139 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
48140 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
48141 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
48142 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
48143 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48144 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
48145 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
48146 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
48147 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
48148 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
48149 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
48150 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
48151 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48152 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
48153 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
48154 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
48155 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
48156 { (char *)"new_SearchCtrl", (PyCFunction) _wrap_new_SearchCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48157 { (char *)"new_PreSearchCtrl", (PyCFunction)_wrap_new_PreSearchCtrl, METH_NOARGS, NULL},
48158 { (char *)"SearchCtrl_Create", (PyCFunction) _wrap_SearchCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48159 { (char *)"SearchCtrl_SetMenu", (PyCFunction) _wrap_SearchCtrl_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
48160 { (char *)"SearchCtrl_GetMenu", (PyCFunction)_wrap_SearchCtrl_GetMenu, METH_O, NULL},
48161 { (char *)"SearchCtrl_ShowSearchButton", (PyCFunction) _wrap_SearchCtrl_ShowSearchButton, METH_VARARGS | METH_KEYWORDS, NULL},
48162 { (char *)"SearchCtrl_IsSearchButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsSearchButtonVisible, METH_O, NULL},
48163 { (char *)"SearchCtrl_ShowCancelButton", (PyCFunction) _wrap_SearchCtrl_ShowCancelButton, METH_VARARGS | METH_KEYWORDS, NULL},
48164 { (char *)"SearchCtrl_IsCancelButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsCancelButtonVisible, METH_O, NULL},
48165 { (char *)"SearchCtrl_SetDescriptiveText", (PyCFunction) _wrap_SearchCtrl_SetDescriptiveText, METH_VARARGS | METH_KEYWORDS, NULL},
48166 { (char *)"SearchCtrl_GetDescriptiveText", (PyCFunction)_wrap_SearchCtrl_GetDescriptiveText, METH_O, NULL},
48167 { (char *)"SearchCtrl_SetSearchBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48168 { (char *)"SearchCtrl_SetSearchMenuBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchMenuBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48169 { (char *)"SearchCtrl_SetCancelBitmap", (PyCFunction) _wrap_SearchCtrl_SetCancelBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48170 { (char *)"SearchCtrl_swigregister", SearchCtrl_swigregister, METH_VARARGS, NULL},
48171 { (char *)"SearchCtrl_swiginit", SearchCtrl_swiginit, METH_VARARGS, NULL},
48172 { NULL, NULL, 0, NULL }
48173 };
48174
48175
48176 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
48177
48178 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
48179 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
48180 }
48181 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
48182 return (void *)((wxEvent *) ((wxMenuEvent *) x));
48183 }
48184 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
48185 return (void *)((wxEvent *) ((wxCloseEvent *) x));
48186 }
48187 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
48188 return (void *)((wxEvent *) ((wxMouseEvent *) x));
48189 }
48190 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
48191 return (void *)((wxEvent *) ((wxEraseEvent *) x));
48192 }
48193 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
48194 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48195 }
48196 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
48197 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
48198 }
48199 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
48200 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
48201 }
48202 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
48203 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
48204 }
48205 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
48206 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48207 }
48208 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
48209 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
48210 }
48211 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
48212 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
48213 }
48214 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
48215 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
48216 }
48217 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
48218 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
48219 }
48220 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
48221 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
48222 }
48223 static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
48224 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
48225 }
48226 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
48227 return (void *)((wxEvent *) ((wxPyEvent *) x));
48228 }
48229 static void *_p_wxListEventTo_p_wxEvent(void *x) {
48230 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
48231 }
48232 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
48233 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48234 }
48235 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
48236 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48237 }
48238 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
48239 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48240 }
48241 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
48242 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48243 }
48244 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
48245 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48246 }
48247 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
48248 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
48249 }
48250 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
48251 return (void *)((wxEvent *) ((wxIdleEvent *) x));
48252 }
48253 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
48254 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
48255 }
48256 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
48257 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
48258 }
48259 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
48260 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
48261 }
48262 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
48263 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
48264 }
48265 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
48266 return (void *)((wxEvent *) ((wxActivateEvent *) x));
48267 }
48268 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
48269 return (void *)((wxEvent *) ((wxSizeEvent *) x));
48270 }
48271 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
48272 return (void *)((wxEvent *) ((wxMoveEvent *) x));
48273 }
48274 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
48275 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
48276 }
48277 static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
48278 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48279 }
48280 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
48281 return (void *)((wxEvent *) ((wxPaintEvent *) x));
48282 }
48283 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
48284 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
48285 }
48286 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
48287 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
48288 }
48289 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
48290 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
48291 }
48292 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
48293 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
48294 }
48295 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
48296 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
48297 }
48298 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
48299 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48300 }
48301 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
48302 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
48303 }
48304 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
48305 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
48306 }
48307 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
48308 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
48309 }
48310 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
48311 return (void *)((wxEvent *) ((wxFocusEvent *) x));
48312 }
48313 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
48314 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
48315 }
48316 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
48317 return (void *)((wxEvent *) ((wxShowEvent *) x));
48318 }
48319 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
48320 return (void *)((wxEvent *) ((wxCommandEvent *) x));
48321 }
48322 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
48323 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
48324 }
48325 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
48326 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48327 }
48328 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
48329 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
48330 }
48331 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
48332 return (void *)((wxEvent *) ((wxKeyEvent *) x));
48333 }
48334 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
48335 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
48336 }
48337 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
48338 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
48339 }
48340 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
48341 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
48342 }
48343 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
48344 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
48345 }
48346 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
48347 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
48348 }
48349 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
48350 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
48351 }
48352 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
48353 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
48354 }
48355 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
48356 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48357 }
48358 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
48359 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
48360 }
48361 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
48362 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
48363 }
48364 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
48365 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
48366 }
48367 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
48368 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48369 }
48370 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
48371 return (void *)((wxPyListCtrl *) ((wxListView *) x));
48372 }
48373 static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
48374 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
48375 }
48376 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
48377 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
48378 }
48379 static void *_p_wxToolBarTo_p_wxControl(void *x) {
48380 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
48381 }
48382 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
48383 return (void *)((wxControl *) ((wxPickerBase *) x));
48384 }
48385 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
48386 return (void *)((wxControl *) ((wxToggleButton *) x));
48387 }
48388 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
48389 return (void *)((wxControl *) ((wxRadioButton *) x));
48390 }
48391 static void *_p_wxSearchCtrlTo_p_wxControl(void *x) {
48392 return (void *)((wxControl *) (wxTextCtrl *) ((wxSearchCtrl *) x));
48393 }
48394 static void *_p_wxToolbookTo_p_wxControl(void *x) {
48395 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
48396 }
48397 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
48398 return (void *)((wxControl *) ((wxToolBarBase *) x));
48399 }
48400 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
48401 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48402 }
48403 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
48404 return (void *)((wxControl *) ((wxPyListCtrl *) x));
48405 }
48406 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
48407 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
48408 }
48409 static void *_p_wxPyControlTo_p_wxControl(void *x) {
48410 return (void *)((wxControl *) ((wxPyControl *) x));
48411 }
48412 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
48413 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
48414 }
48415 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
48416 return (void *)((wxControl *) ((wxScrollBar *) x));
48417 }
48418 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
48419 return (void *)((wxControl *) ((wxControlWithItems *) x));
48420 }
48421 static void *_p_wxGaugeTo_p_wxControl(void *x) {
48422 return (void *)((wxControl *) ((wxGauge *) x));
48423 }
48424 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
48425 return (void *)((wxControl *) ((wxStaticLine *) x));
48426 }
48427 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
48428 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
48429 }
48430 static void *_p_wxListbookTo_p_wxControl(void *x) {
48431 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
48432 }
48433 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
48434 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
48435 }
48436 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
48437 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
48438 }
48439 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
48440 return (void *)((wxControl *) ((wxCheckBox *) x));
48441 }
48442 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
48443 return (void *)((wxControl *) ((wxRadioBox *) x));
48444 }
48445 static void *_p_wxChoiceTo_p_wxControl(void *x) {
48446 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
48447 }
48448 static void *_p_wxListBoxTo_p_wxControl(void *x) {
48449 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
48450 }
48451 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
48452 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48453 }
48454 static void *_p_wxListViewTo_p_wxControl(void *x) {
48455 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
48456 }
48457 static void *_p_wxNotebookTo_p_wxControl(void *x) {
48458 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
48459 }
48460 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
48461 return (void *)((wxControl *) ((wxStaticBitmap *) x));
48462 }
48463 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
48464 return (void *)((wxControl *) ((wxSpinCtrl *) x));
48465 }
48466 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
48467 return (void *)((wxControl *) ((wxStaticText *) x));
48468 }
48469 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
48470 return (void *)((wxControl *) ((wxStaticBox *) x));
48471 }
48472 static void *_p_wxSliderTo_p_wxControl(void *x) {
48473 return (void *)((wxControl *) ((wxSlider *) x));
48474 }
48475 static void *_p_wxTreebookTo_p_wxControl(void *x) {
48476 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
48477 }
48478 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
48479 return (void *)((wxControl *) ((wxSpinButton *) x));
48480 }
48481 static void *_p_wxButtonTo_p_wxControl(void *x) {
48482 return (void *)((wxControl *) ((wxButton *) x));
48483 }
48484 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
48485 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
48486 }
48487 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
48488 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48489 }
48490 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
48491 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
48492 }
48493 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
48494 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
48495 }
48496 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
48497 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
48498 }
48499 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
48500 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
48501 }
48502 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
48503 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
48504 }
48505 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
48506 return (void *)((wxControl *) ((wxTextCtrl *) x));
48507 }
48508 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
48509 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
48510 }
48511 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
48512 return (void *)((wxChoice *) ((wxComboBox *) x));
48513 }
48514 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
48515 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
48516 }
48517 static void *_p_wxSearchCtrlTo_p_wxTextCtrl(void *x) {
48518 return (void *)((wxTextCtrl *) ((wxSearchCtrl *) x));
48519 }
48520 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
48521 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48522 }
48523 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
48524 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
48525 }
48526 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
48527 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
48528 }
48529 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
48530 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
48531 }
48532 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
48533 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48534 }
48535 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
48536 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48537 }
48538 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
48539 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48540 }
48541 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
48542 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48543 }
48544 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
48545 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48546 }
48547 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
48548 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
48549 }
48550 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
48551 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
48552 }
48553 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
48554 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
48555 }
48556 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
48557 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
48558 }
48559 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
48560 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
48561 }
48562 static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
48563 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48564 }
48565 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
48566 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
48567 }
48568 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
48569 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48570 }
48571 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
48572 return (void *)((wxEvtHandler *) ((wxValidator *) x));
48573 }
48574 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
48575 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
48576 }
48577 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
48578 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48579 }
48580 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
48581 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
48582 }
48583 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
48584 return (void *)((wxEvtHandler *) ((wxMenu *) x));
48585 }
48586 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
48587 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
48588 }
48589 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
48590 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
48591 }
48592 static void *_p_wxSearchCtrlTo_p_wxEvtHandler(void *x) {
48593 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48594 }
48595 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
48596 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48597 }
48598 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
48599 return (void *)((wxEvtHandler *) ((wxWindow *) x));
48600 }
48601 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
48602 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
48603 }
48604 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
48605 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
48606 }
48607 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
48608 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48609 }
48610 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
48611 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48612 }
48613 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
48614 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48615 }
48616 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
48617 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
48618 }
48619 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
48620 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
48621 }
48622 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
48623 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48624 }
48625 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
48626 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
48627 }
48628 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
48629 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48630 }
48631 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
48632 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
48633 }
48634 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
48635 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
48636 }
48637 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
48638 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48639 }
48640 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
48641 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48642 }
48643 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
48644 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48645 }
48646 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
48647 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48648 }
48649 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
48650 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
48651 }
48652 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
48653 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
48654 }
48655 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
48656 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48657 }
48658 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
48659 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48660 }
48661 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
48662 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48663 }
48664 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
48665 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48666 }
48667 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
48668 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48669 }
48670 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
48671 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48672 }
48673 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
48674 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48675 }
48676 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
48677 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
48678 }
48679 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
48680 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
48681 }
48682 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
48683 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
48684 }
48685 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
48686 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48687 }
48688 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
48689 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
48690 }
48691 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
48692 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
48693 }
48694 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
48695 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48696 }
48697 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
48698 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48699 }
48700 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
48701 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48702 }
48703 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
48704 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48705 }
48706 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
48707 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48708 }
48709 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
48710 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48711 }
48712 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
48713 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48714 }
48715 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
48716 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48717 }
48718 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
48719 return (void *)((wxListBox *) ((wxCheckListBox *) x));
48720 }
48721 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
48722 return (void *)((wxButton *) ((wxBitmapButton *) x));
48723 }
48724 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
48725 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
48726 }
48727 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
48728 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
48729 }
48730 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
48731 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
48732 }
48733 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
48734 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
48735 }
48736 static void *_p_wxToolbookTo_p_wxObject(void *x) {
48737 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48738 }
48739 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
48740 return (void *)((wxObject *) ((wxSizerItem *) x));
48741 }
48742 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
48743 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
48744 }
48745 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
48746 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
48747 }
48748 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
48749 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
48750 }
48751 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
48752 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
48753 }
48754 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
48755 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
48756 }
48757 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
48758 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
48759 }
48760 static void *_p_wxSizerTo_p_wxObject(void *x) {
48761 return (void *)((wxObject *) ((wxSizer *) x));
48762 }
48763 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
48764 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
48765 }
48766 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
48767 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
48768 }
48769 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
48770 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48771 }
48772 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
48773 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
48774 }
48775 static void *_p_wxEventTo_p_wxObject(void *x) {
48776 return (void *)((wxObject *) ((wxEvent *) x));
48777 }
48778 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
48779 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
48780 }
48781 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
48782 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
48783 }
48784 static void *_p_wxSearchCtrlTo_p_wxObject(void *x) {
48785 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48786 }
48787 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
48788 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
48789 }
48790 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
48791 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48792 }
48793 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
48794 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
48795 }
48796 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
48797 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48798 }
48799 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
48800 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48801 }
48802 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
48803 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
48804 }
48805 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
48806 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
48807 }
48808 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
48809 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
48810 }
48811 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
48812 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
48813 }
48814 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
48815 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
48816 }
48817 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
48818 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48819 }
48820 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
48821 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
48822 }
48823 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
48824 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
48825 }
48826 static void *_p_wxControlTo_p_wxObject(void *x) {
48827 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
48828 }
48829 static void *_p_wxPyControlTo_p_wxObject(void *x) {
48830 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
48831 }
48832 static void *_p_wxGaugeTo_p_wxObject(void *x) {
48833 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
48834 }
48835 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
48836 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
48837 }
48838 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
48839 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
48840 }
48841 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
48842 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48843 }
48844 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
48845 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
48846 }
48847 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
48848 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
48849 }
48850 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
48851 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48852 }
48853 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
48854 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
48855 }
48856 static void *_p_wxChoiceTo_p_wxObject(void *x) {
48857 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48858 }
48859 static void *_p_wxFSFileTo_p_wxObject(void *x) {
48860 return (void *)((wxObject *) ((wxFSFile *) x));
48861 }
48862 static void *_p_wxPySizerTo_p_wxObject(void *x) {
48863 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
48864 }
48865 static void *_p_wxTreebookTo_p_wxObject(void *x) {
48866 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48867 }
48868 static void *_p_wxListViewTo_p_wxObject(void *x) {
48869 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48870 }
48871 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
48872 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
48873 }
48874 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
48875 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48876 }
48877 static void *_p_wxNotebookTo_p_wxObject(void *x) {
48878 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48879 }
48880 static void *_p_wxPyEventTo_p_wxObject(void *x) {
48881 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
48882 }
48883 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
48884 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
48885 }
48886 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
48887 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48888 }
48889 static void *_p_wxListbookTo_p_wxObject(void *x) {
48890 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48891 }
48892 static void *_p_wxShowEventTo_p_wxObject(void *x) {
48893 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
48894 }
48895 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
48896 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48897 }
48898 static void *_p_wxSliderTo_p_wxObject(void *x) {
48899 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
48900 }
48901 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
48902 return (void *)((wxObject *) ((wxMenuItem *) x));
48903 }
48904 static void *_p_wxDateEventTo_p_wxObject(void *x) {
48905 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
48906 }
48907 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
48908 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
48909 }
48910 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
48911 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
48912 }
48913 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
48914 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
48915 }
48916 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
48917 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
48918 }
48919 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
48920 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
48921 }
48922 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
48923 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
48924 }
48925 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
48926 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
48927 }
48928 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
48929 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
48930 }
48931 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
48932 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
48933 }
48934 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
48935 return (void *)((wxObject *) ((wxContextHelp *) x));
48936 }
48937 static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
48938 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48939 }
48940 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
48941 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48942 }
48943 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
48944 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
48945 }
48946 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
48947 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
48948 }
48949 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
48950 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
48951 }
48952 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
48953 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
48954 }
48955 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
48956 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
48957 }
48958 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
48959 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
48960 }
48961 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
48962 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
48963 }
48964 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
48965 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
48966 }
48967 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
48968 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
48969 }
48970 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
48971 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
48972 }
48973 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
48974 return (void *)((wxObject *) ((wxImageHandler *) x));
48975 }
48976 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
48977 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
48978 }
48979 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
48980 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
48981 }
48982 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
48983 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
48984 }
48985 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
48986 return (void *)((wxObject *) ((wxEvtHandler *) x));
48987 }
48988 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
48989 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
48990 }
48991 static void *_p_wxListEventTo_p_wxObject(void *x) {
48992 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
48993 }
48994 static void *_p_wxListBoxTo_p_wxObject(void *x) {
48995 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48996 }
48997 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
48998 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48999 }
49000 static void *_p_wxButtonTo_p_wxObject(void *x) {
49001 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
49002 }
49003 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
49004 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
49005 }
49006 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
49007 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
49008 }
49009 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
49010 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
49011 }
49012 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
49013 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
49014 }
49015 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
49016 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
49017 }
49018 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
49019 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
49020 }
49021 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
49022 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
49023 }
49024 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
49025 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
49026 }
49027 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
49028 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
49029 }
49030 static void *_p_wxListItemTo_p_wxObject(void *x) {
49031 return (void *)((wxObject *) ((wxListItem *) x));
49032 }
49033 static void *_p_wxImageTo_p_wxObject(void *x) {
49034 return (void *)((wxObject *) ((wxImage *) x));
49035 }
49036 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
49037 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
49038 }
49039 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
49040 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
49041 }
49042 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
49043 return (void *)((wxObject *) ((wxGenericDragImage *) x));
49044 }
49045 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
49046 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
49047 }
49048 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
49049 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49050 }
49051 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
49052 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49053 }
49054 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
49055 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49056 }
49057 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
49058 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49059 }
49060 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
49061 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49062 }
49063 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
49064 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
49065 }
49066 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
49067 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
49068 }
49069 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
49070 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
49071 }
49072 static void *_p_wxWindowTo_p_wxObject(void *x) {
49073 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
49074 }
49075 static void *_p_wxMenuTo_p_wxObject(void *x) {
49076 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
49077 }
49078 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
49079 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
49080 }
49081 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
49082 return (void *)((wxObject *) ((wxFileSystem *) x));
49083 }
49084 static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
49085 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
49086 }
49087 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
49088 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
49089 }
49090 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
49091 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
49092 }
49093 static void *_p_wxPyAppTo_p_wxObject(void *x) {
49094 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
49095 }
49096 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
49097 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
49098 }
49099 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
49100 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
49101 }
49102 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
49103 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
49104 }
49105 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
49106 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
49107 }
49108 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
49109 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
49110 }
49111 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
49112 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
49113 }
49114 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
49115 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
49116 }
49117 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
49118 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
49119 }
49120 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
49121 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
49122 }
49123 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
49124 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
49125 }
49126 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
49127 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
49128 }
49129 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
49130 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
49131 }
49132 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
49133 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
49134 }
49135 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
49136 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
49137 }
49138 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
49139 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
49140 }
49141 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
49142 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
49143 }
49144 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
49145 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
49146 }
49147 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
49148 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
49149 }
49150 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
49151 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
49152 }
49153 static void *_p_wxToolBarTo_p_wxObject(void *x) {
49154 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
49155 }
49156 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
49157 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
49158 }
49159 static void *_p_wxValidatorTo_p_wxObject(void *x) {
49160 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
49161 }
49162 static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
49163 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
49164 }
49165 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
49166 return (void *)((wxWindow *) ((wxMenuBar *) x));
49167 }
49168 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
49169 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
49170 }
49171 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
49172 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
49173 }
49174 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
49175 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
49176 }
49177 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
49178 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
49179 }
49180 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
49181 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
49182 }
49183 static void *_p_wxSearchCtrlTo_p_wxWindow(void *x) {
49184 return (void *)((wxWindow *) (wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
49185 }
49186 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
49187 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
49188 }
49189 static void *_p_wxControlTo_p_wxWindow(void *x) {
49190 return (void *)((wxWindow *) ((wxControl *) x));
49191 }
49192 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
49193 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
49194 }
49195 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
49196 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
49197 }
49198 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
49199 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
49200 }
49201 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
49202 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
49203 }
49204 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
49205 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
49206 }
49207 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
49208 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
49209 }
49210 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
49211 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
49212 }
49213 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
49214 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
49215 }
49216 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
49217 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
49218 }
49219 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
49220 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
49221 }
49222 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
49223 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
49224 }
49225 static void *_p_wxListbookTo_p_wxWindow(void *x) {
49226 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
49227 }
49228 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
49229 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
49230 }
49231 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
49232 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
49233 }
49234 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
49235 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
49236 }
49237 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
49238 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
49239 }
49240 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
49241 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
49242 }
49243 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
49244 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
49245 }
49246 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
49247 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
49248 }
49249 static void *_p_wxListViewTo_p_wxWindow(void *x) {
49250 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
49251 }
49252 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
49253 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
49254 }
49255 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
49256 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
49257 }
49258 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
49259 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
49260 }
49261 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
49262 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
49263 }
49264 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
49265 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
49266 }
49267 static void *_p_wxSliderTo_p_wxWindow(void *x) {
49268 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
49269 }
49270 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
49271 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
49272 }
49273 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
49274 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
49275 }
49276 static void *_p_wxButtonTo_p_wxWindow(void *x) {
49277 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
49278 }
49279 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
49280 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
49281 }
49282 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
49283 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
49284 }
49285 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
49286 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
49287 }
49288 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
49289 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
49290 }
49291 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
49292 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
49293 }
49294 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
49295 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
49296 }
49297 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
49298 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
49299 }
49300 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
49301 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
49302 }
49303 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49304 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49305 }
49306 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49307 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49308 }
49309 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49310 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49311 }
49312 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49313 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49314 }
49315 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49316 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49317 }
49318 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
49319 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
49320 }
49321 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
49322 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
49323 }
49324 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
49325 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
49326 }
49327 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
49328 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
49329 }
49330 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
49331 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
49332 }
49333 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
49334 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
49335 }
49336 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
49337 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
49338 }
49339 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
49340 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
49341 }
49342 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
49343 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
49344 }
49345 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
49346 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
49347 }
49348 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
49349 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
49350 }
49351 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
49352 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49353 }
49354 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
49355 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49356 }
49357 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
49358 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49359 }
49360 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
49361 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49362 }
49363 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
49364 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49365 }
49366 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
49367 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
49368 }
49369 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
49370 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
49371 }
49372 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
49373 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
49374 }
49375 static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
49376 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
49377 }
49378 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
49379 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
49380 }
49381 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
49382 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
49383 }
49384 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
49385 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
49386 }
49387 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
49388 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
49389 }
49390 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
49391 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
49392 }
49393 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
49394 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
49395 }
49396 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
49397 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
49398 }
49399 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
49400 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
49401 }
49402 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
49403 return (void *)((wxControlWithItems *) ((wxChoice *) x));
49404 }
49405 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
49406 return (void *)((wxControlWithItems *) ((wxListBox *) x));
49407 }
49408 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
49409 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
49410 }
49411 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
49412 return (void *)((wxValidator *) ((wxPyValidator *) x));
49413 }
49414 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
49415 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
49416 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};
49417 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
49418 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
49419 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
49420 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
49421 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
49422 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
49423 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
49424 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
49425 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
49426 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
49427 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
49428 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
49429 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
49430 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
49431 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
49432 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
49433 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
49434 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
49435 static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
49436 static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
49437 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
49438 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
49439 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
49440 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
49441 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
49442 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
49443 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
49444 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
49445 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
49446 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
49447 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
49448 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
49449 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
49450 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
49451 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
49452 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
49453 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
49454 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
49455 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
49456 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
49457 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
49458 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
49459 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
49460 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
49461 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
49462 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
49463 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
49464 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
49465 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
49466 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
49467 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
49468 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
49469 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
49470 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
49471 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
49472 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
49473 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
49474 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
49475 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
49476 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
49477 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
49478 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
49479 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
49480 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
49481 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
49482 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
49483 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
49484 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
49485 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
49486 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
49487 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
49488 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
49489 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
49490 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
49491 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
49492 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
49493 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
49494 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
49495 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
49496 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
49497 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
49498 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
49499 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
49500 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
49501 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
49502 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
49503 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
49504 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
49505 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
49506 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
49507 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
49508 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
49509 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
49510 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
49511 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
49512 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
49513 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
49514 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
49515 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
49516 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0};
49517 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
49518 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
49519 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
49520 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
49521 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
49522 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
49523 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
49524 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
49525 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
49526 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
49527 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
49528 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
49529 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
49530 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
49531 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
49532 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
49533 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
49534 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
49535 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
49536 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
49537 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
49538 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
49539 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
49540 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
49541 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
49542 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
49543 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
49544 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
49545 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
49546 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
49547 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
49548 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
49549 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
49550 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
49551 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
49552 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
49553 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
49554 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
49555 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
49556 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
49557 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
49558 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
49559 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
49560 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
49561 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
49562 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
49563 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
49564 static swig_type_info _swigt__p_wxSearchCtrl = {"_p_wxSearchCtrl", "wxSearchCtrl *", 0, 0, (void*)0, 0};
49565 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
49566 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
49567 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
49568 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
49569 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
49570 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
49571 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
49572 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
49573 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
49574 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
49575 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
49576 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
49577 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
49578 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
49579 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
49580 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
49581 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
49582 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
49583 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
49584 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
49585 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
49586 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
49587 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
49588 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
49589 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
49590 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
49591 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
49592 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
49593
49594 static swig_type_info *swig_type_initial[] = {
49595 &_swigt__p_bool,
49596 &_swigt__p_char,
49597 &_swigt__p_form_ops_t,
49598 &_swigt__p_int,
49599 &_swigt__p_long,
49600 &_swigt__p_unsigned_char,
49601 &_swigt__p_unsigned_int,
49602 &_swigt__p_unsigned_long,
49603 &_swigt__p_void,
49604 &_swigt__p_wxANIHandler,
49605 &_swigt__p_wxAcceleratorTable,
49606 &_swigt__p_wxActivateEvent,
49607 &_swigt__p_wxArrayInt,
49608 &_swigt__p_wxArrayString,
49609 &_swigt__p_wxBMPHandler,
49610 &_swigt__p_wxBitmap,
49611 &_swigt__p_wxBitmapButton,
49612 &_swigt__p_wxBookCtrlBase,
49613 &_swigt__p_wxBookCtrlBaseEvent,
49614 &_swigt__p_wxBoxSizer,
49615 &_swigt__p_wxButton,
49616 &_swigt__p_wxCURHandler,
49617 &_swigt__p_wxCheckBox,
49618 &_swigt__p_wxCheckListBox,
49619 &_swigt__p_wxChildFocusEvent,
49620 &_swigt__p_wxChoice,
49621 &_swigt__p_wxChoicebook,
49622 &_swigt__p_wxChoicebookEvent,
49623 &_swigt__p_wxClipboardTextEvent,
49624 &_swigt__p_wxCloseEvent,
49625 &_swigt__p_wxCollapsiblePane,
49626 &_swigt__p_wxCollapsiblePaneEvent,
49627 &_swigt__p_wxColour,
49628 &_swigt__p_wxColourPickerCtrl,
49629 &_swigt__p_wxColourPickerEvent,
49630 &_swigt__p_wxComboBox,
49631 &_swigt__p_wxCommandEvent,
49632 &_swigt__p_wxContextHelp,
49633 &_swigt__p_wxContextHelpButton,
49634 &_swigt__p_wxContextMenuEvent,
49635 &_swigt__p_wxControl,
49636 &_swigt__p_wxControlWithItems,
49637 &_swigt__p_wxCursor,
49638 &_swigt__p_wxDC,
49639 &_swigt__p_wxDateEvent,
49640 &_swigt__p_wxDatePickerCtrl,
49641 &_swigt__p_wxDateTime,
49642 &_swigt__p_wxDirFilterListCtrl,
49643 &_swigt__p_wxDirPickerCtrl,
49644 &_swigt__p_wxDisplayChangedEvent,
49645 &_swigt__p_wxDropFilesEvent,
49646 &_swigt__p_wxDuplexMode,
49647 &_swigt__p_wxEraseEvent,
49648 &_swigt__p_wxEvent,
49649 &_swigt__p_wxEvtHandler,
49650 &_swigt__p_wxFSFile,
49651 &_swigt__p_wxFileDirPickerEvent,
49652 &_swigt__p_wxFilePickerCtrl,
49653 &_swigt__p_wxFileSystem,
49654 &_swigt__p_wxFlexGridSizer,
49655 &_swigt__p_wxFocusEvent,
49656 &_swigt__p_wxFont,
49657 &_swigt__p_wxFontPickerCtrl,
49658 &_swigt__p_wxFontPickerEvent,
49659 &_swigt__p_wxGBSizerItem,
49660 &_swigt__p_wxGIFHandler,
49661 &_swigt__p_wxGauge,
49662 &_swigt__p_wxGenericDirCtrl,
49663 &_swigt__p_wxGenericDragImage,
49664 &_swigt__p_wxGridBagSizer,
49665 &_swigt__p_wxGridSizer,
49666 &_swigt__p_wxHelpEvent,
49667 &_swigt__p_wxHelpProvider,
49668 &_swigt__p_wxHyperlinkCtrl,
49669 &_swigt__p_wxHyperlinkEvent,
49670 &_swigt__p_wxICOHandler,
49671 &_swigt__p_wxIcon,
49672 &_swigt__p_wxIconizeEvent,
49673 &_swigt__p_wxIdleEvent,
49674 &_swigt__p_wxImage,
49675 &_swigt__p_wxImageHandler,
49676 &_swigt__p_wxImageList,
49677 &_swigt__p_wxIndividualLayoutConstraint,
49678 &_swigt__p_wxInitDialogEvent,
49679 &_swigt__p_wxItemContainer,
49680 &_swigt__p_wxJPEGHandler,
49681 &_swigt__p_wxKeyEvent,
49682 &_swigt__p_wxLayoutConstraints,
49683 &_swigt__p_wxListBox,
49684 &_swigt__p_wxListEvent,
49685 &_swigt__p_wxListItem,
49686 &_swigt__p_wxListItemAttr,
49687 &_swigt__p_wxListView,
49688 &_swigt__p_wxListbook,
49689 &_swigt__p_wxListbookEvent,
49690 &_swigt__p_wxMaximizeEvent,
49691 &_swigt__p_wxMemoryDC,
49692 &_swigt__p_wxMenu,
49693 &_swigt__p_wxMenuBar,
49694 &_swigt__p_wxMenuEvent,
49695 &_swigt__p_wxMenuItem,
49696 &_swigt__p_wxMouseCaptureChangedEvent,
49697 &_swigt__p_wxMouseCaptureLostEvent,
49698 &_swigt__p_wxMouseEvent,
49699 &_swigt__p_wxMoveEvent,
49700 &_swigt__p_wxNavigationKeyEvent,
49701 &_swigt__p_wxNcPaintEvent,
49702 &_swigt__p_wxNotebook,
49703 &_swigt__p_wxNotebookEvent,
49704 &_swigt__p_wxNotifyEvent,
49705 &_swigt__p_wxObject,
49706 &_swigt__p_wxPCXHandler,
49707 &_swigt__p_wxPNGHandler,
49708 &_swigt__p_wxPNMHandler,
49709 &_swigt__p_wxPaintEvent,
49710 &_swigt__p_wxPaletteChangedEvent,
49711 &_swigt__p_wxPaperSize,
49712 &_swigt__p_wxPickerBase,
49713 &_swigt__p_wxPoint,
49714 &_swigt__p_wxPyApp,
49715 &_swigt__p_wxPyCommandEvent,
49716 &_swigt__p_wxPyControl,
49717 &_swigt__p_wxPyEvent,
49718 &_swigt__p_wxPyImageHandler,
49719 &_swigt__p_wxPyListCtrl,
49720 &_swigt__p_wxPySizer,
49721 &_swigt__p_wxPyTreeCtrl,
49722 &_swigt__p_wxPyTreeItemData,
49723 &_swigt__p_wxPyValidator,
49724 &_swigt__p_wxQueryNewPaletteEvent,
49725 &_swigt__p_wxRadioBox,
49726 &_swigt__p_wxRadioButton,
49727 &_swigt__p_wxRect,
49728 &_swigt__p_wxScrollBar,
49729 &_swigt__p_wxScrollEvent,
49730 &_swigt__p_wxScrollWinEvent,
49731 &_swigt__p_wxSearchCtrl,
49732 &_swigt__p_wxSetCursorEvent,
49733 &_swigt__p_wxShowEvent,
49734 &_swigt__p_wxSimpleHelpProvider,
49735 &_swigt__p_wxSize,
49736 &_swigt__p_wxSizeEvent,
49737 &_swigt__p_wxSizer,
49738 &_swigt__p_wxSizerItem,
49739 &_swigt__p_wxSlider,
49740 &_swigt__p_wxSpinButton,
49741 &_swigt__p_wxSpinCtrl,
49742 &_swigt__p_wxSpinEvent,
49743 &_swigt__p_wxStaticBitmap,
49744 &_swigt__p_wxStaticBox,
49745 &_swigt__p_wxStaticBoxSizer,
49746 &_swigt__p_wxStaticLine,
49747 &_swigt__p_wxStaticText,
49748 &_swigt__p_wxStdDialogButtonSizer,
49749 &_swigt__p_wxString,
49750 &_swigt__p_wxSysColourChangedEvent,
49751 &_swigt__p_wxTGAHandler,
49752 &_swigt__p_wxTIFFHandler,
49753 &_swigt__p_wxTextAttr,
49754 &_swigt__p_wxTextCtrl,
49755 &_swigt__p_wxTextUrlEvent,
49756 &_swigt__p_wxToggleButton,
49757 &_swigt__p_wxToolBar,
49758 &_swigt__p_wxToolBarBase,
49759 &_swigt__p_wxToolBarToolBase,
49760 &_swigt__p_wxToolbook,
49761 &_swigt__p_wxToolbookEvent,
49762 &_swigt__p_wxTreeEvent,
49763 &_swigt__p_wxTreeItemId,
49764 &_swigt__p_wxTreebook,
49765 &_swigt__p_wxTreebookEvent,
49766 &_swigt__p_wxUpdateUIEvent,
49767 &_swigt__p_wxValidator,
49768 &_swigt__p_wxVisualAttributes,
49769 &_swigt__p_wxWindow,
49770 &_swigt__p_wxWindowBase,
49771 &_swigt__p_wxWindowCreateEvent,
49772 &_swigt__p_wxWindowDestroyEvent,
49773 &_swigt__p_wxXPMHandler,
49774 };
49775
49776 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
49777 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
49778 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
49779 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
49780 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
49781 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
49782 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
49783 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
49784 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
49785 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
49786 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
49787 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
49788 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}};
49789 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}};
49790 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}};
49791 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}};
49792 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
49793 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
49794 static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxChoice, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
49795 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
49796 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49797 static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
49798 static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
49799 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
49800 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49801 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49802 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
49803 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
49804 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
49805 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
49806 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
49807 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49808 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49809 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
49810 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
49811 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
49812 static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
49813 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
49814 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
49815 static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxControl, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_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}};
49816 static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}};
49817 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
49818 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
49819 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49820 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
49821 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
49822 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49823 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
49824 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49825 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
49826 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
49827 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
49828 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
49829 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
49830 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
49831 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
49832 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49833 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49834 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
49835 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49836 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
49837 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
49838 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49839 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49840 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49841 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49842 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49843 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49844 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
49845 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49846 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
49847 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49848 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
49849 static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
49850 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
49851 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
49852 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
49853 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
49854 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49855 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49856 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
49857 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49858 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49859 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
49860 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
49861 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
49862 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
49863 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}};
49864 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
49865 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
49866 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
49867 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
49868 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}};
49869 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49870 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}};
49871 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
49872 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
49873 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
49874 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
49875 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
49876 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49877 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
49878 static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
49879 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
49880 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
49881 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49882 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}};
49883 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
49884 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
49885 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
49886 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
49887 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49888 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49889 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
49890 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
49891 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49892 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49893 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
49894 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
49895 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
49896 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
49897 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
49898 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
49899 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
49900 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
49901 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
49902 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
49903 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
49904 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
49905 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
49906 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
49907 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
49908 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
49909 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
49910 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
49911 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
49912 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
49913 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
49914 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_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
49915 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
49916 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}};
49917 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
49918 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
49919 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}};
49920 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
49921 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
49922 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
49923 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
49924 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
49925 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
49926 static swig_cast_info _swigc__p_wxSearchCtrl[] = { {&_swigt__p_wxSearchCtrl, 0, 0, 0},{0, 0, 0, 0}};
49927 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
49928 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
49929 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
49930 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
49931 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
49932 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
49933 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
49934 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
49935 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
49936 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
49937 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
49938 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
49939 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxTextCtrl, 0, 0},{0, 0, 0, 0}};
49940 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
49941 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
49942 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
49943 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}};
49944 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
49945 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
49946 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49947 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
49948 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
49949 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
49950 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49951 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}};
49952 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
49953 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
49954 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
49955
49956 static swig_cast_info *swig_cast_initial[] = {
49957 _swigc__p_bool,
49958 _swigc__p_char,
49959 _swigc__p_form_ops_t,
49960 _swigc__p_int,
49961 _swigc__p_long,
49962 _swigc__p_unsigned_char,
49963 _swigc__p_unsigned_int,
49964 _swigc__p_unsigned_long,
49965 _swigc__p_void,
49966 _swigc__p_wxANIHandler,
49967 _swigc__p_wxAcceleratorTable,
49968 _swigc__p_wxActivateEvent,
49969 _swigc__p_wxArrayInt,
49970 _swigc__p_wxArrayString,
49971 _swigc__p_wxBMPHandler,
49972 _swigc__p_wxBitmap,
49973 _swigc__p_wxBitmapButton,
49974 _swigc__p_wxBookCtrlBase,
49975 _swigc__p_wxBookCtrlBaseEvent,
49976 _swigc__p_wxBoxSizer,
49977 _swigc__p_wxButton,
49978 _swigc__p_wxCURHandler,
49979 _swigc__p_wxCheckBox,
49980 _swigc__p_wxCheckListBox,
49981 _swigc__p_wxChildFocusEvent,
49982 _swigc__p_wxChoice,
49983 _swigc__p_wxChoicebook,
49984 _swigc__p_wxChoicebookEvent,
49985 _swigc__p_wxClipboardTextEvent,
49986 _swigc__p_wxCloseEvent,
49987 _swigc__p_wxCollapsiblePane,
49988 _swigc__p_wxCollapsiblePaneEvent,
49989 _swigc__p_wxColour,
49990 _swigc__p_wxColourPickerCtrl,
49991 _swigc__p_wxColourPickerEvent,
49992 _swigc__p_wxComboBox,
49993 _swigc__p_wxCommandEvent,
49994 _swigc__p_wxContextHelp,
49995 _swigc__p_wxContextHelpButton,
49996 _swigc__p_wxContextMenuEvent,
49997 _swigc__p_wxControl,
49998 _swigc__p_wxControlWithItems,
49999 _swigc__p_wxCursor,
50000 _swigc__p_wxDC,
50001 _swigc__p_wxDateEvent,
50002 _swigc__p_wxDatePickerCtrl,
50003 _swigc__p_wxDateTime,
50004 _swigc__p_wxDirFilterListCtrl,
50005 _swigc__p_wxDirPickerCtrl,
50006 _swigc__p_wxDisplayChangedEvent,
50007 _swigc__p_wxDropFilesEvent,
50008 _swigc__p_wxDuplexMode,
50009 _swigc__p_wxEraseEvent,
50010 _swigc__p_wxEvent,
50011 _swigc__p_wxEvtHandler,
50012 _swigc__p_wxFSFile,
50013 _swigc__p_wxFileDirPickerEvent,
50014 _swigc__p_wxFilePickerCtrl,
50015 _swigc__p_wxFileSystem,
50016 _swigc__p_wxFlexGridSizer,
50017 _swigc__p_wxFocusEvent,
50018 _swigc__p_wxFont,
50019 _swigc__p_wxFontPickerCtrl,
50020 _swigc__p_wxFontPickerEvent,
50021 _swigc__p_wxGBSizerItem,
50022 _swigc__p_wxGIFHandler,
50023 _swigc__p_wxGauge,
50024 _swigc__p_wxGenericDirCtrl,
50025 _swigc__p_wxGenericDragImage,
50026 _swigc__p_wxGridBagSizer,
50027 _swigc__p_wxGridSizer,
50028 _swigc__p_wxHelpEvent,
50029 _swigc__p_wxHelpProvider,
50030 _swigc__p_wxHyperlinkCtrl,
50031 _swigc__p_wxHyperlinkEvent,
50032 _swigc__p_wxICOHandler,
50033 _swigc__p_wxIcon,
50034 _swigc__p_wxIconizeEvent,
50035 _swigc__p_wxIdleEvent,
50036 _swigc__p_wxImage,
50037 _swigc__p_wxImageHandler,
50038 _swigc__p_wxImageList,
50039 _swigc__p_wxIndividualLayoutConstraint,
50040 _swigc__p_wxInitDialogEvent,
50041 _swigc__p_wxItemContainer,
50042 _swigc__p_wxJPEGHandler,
50043 _swigc__p_wxKeyEvent,
50044 _swigc__p_wxLayoutConstraints,
50045 _swigc__p_wxListBox,
50046 _swigc__p_wxListEvent,
50047 _swigc__p_wxListItem,
50048 _swigc__p_wxListItemAttr,
50049 _swigc__p_wxListView,
50050 _swigc__p_wxListbook,
50051 _swigc__p_wxListbookEvent,
50052 _swigc__p_wxMaximizeEvent,
50053 _swigc__p_wxMemoryDC,
50054 _swigc__p_wxMenu,
50055 _swigc__p_wxMenuBar,
50056 _swigc__p_wxMenuEvent,
50057 _swigc__p_wxMenuItem,
50058 _swigc__p_wxMouseCaptureChangedEvent,
50059 _swigc__p_wxMouseCaptureLostEvent,
50060 _swigc__p_wxMouseEvent,
50061 _swigc__p_wxMoveEvent,
50062 _swigc__p_wxNavigationKeyEvent,
50063 _swigc__p_wxNcPaintEvent,
50064 _swigc__p_wxNotebook,
50065 _swigc__p_wxNotebookEvent,
50066 _swigc__p_wxNotifyEvent,
50067 _swigc__p_wxObject,
50068 _swigc__p_wxPCXHandler,
50069 _swigc__p_wxPNGHandler,
50070 _swigc__p_wxPNMHandler,
50071 _swigc__p_wxPaintEvent,
50072 _swigc__p_wxPaletteChangedEvent,
50073 _swigc__p_wxPaperSize,
50074 _swigc__p_wxPickerBase,
50075 _swigc__p_wxPoint,
50076 _swigc__p_wxPyApp,
50077 _swigc__p_wxPyCommandEvent,
50078 _swigc__p_wxPyControl,
50079 _swigc__p_wxPyEvent,
50080 _swigc__p_wxPyImageHandler,
50081 _swigc__p_wxPyListCtrl,
50082 _swigc__p_wxPySizer,
50083 _swigc__p_wxPyTreeCtrl,
50084 _swigc__p_wxPyTreeItemData,
50085 _swigc__p_wxPyValidator,
50086 _swigc__p_wxQueryNewPaletteEvent,
50087 _swigc__p_wxRadioBox,
50088 _swigc__p_wxRadioButton,
50089 _swigc__p_wxRect,
50090 _swigc__p_wxScrollBar,
50091 _swigc__p_wxScrollEvent,
50092 _swigc__p_wxScrollWinEvent,
50093 _swigc__p_wxSearchCtrl,
50094 _swigc__p_wxSetCursorEvent,
50095 _swigc__p_wxShowEvent,
50096 _swigc__p_wxSimpleHelpProvider,
50097 _swigc__p_wxSize,
50098 _swigc__p_wxSizeEvent,
50099 _swigc__p_wxSizer,
50100 _swigc__p_wxSizerItem,
50101 _swigc__p_wxSlider,
50102 _swigc__p_wxSpinButton,
50103 _swigc__p_wxSpinCtrl,
50104 _swigc__p_wxSpinEvent,
50105 _swigc__p_wxStaticBitmap,
50106 _swigc__p_wxStaticBox,
50107 _swigc__p_wxStaticBoxSizer,
50108 _swigc__p_wxStaticLine,
50109 _swigc__p_wxStaticText,
50110 _swigc__p_wxStdDialogButtonSizer,
50111 _swigc__p_wxString,
50112 _swigc__p_wxSysColourChangedEvent,
50113 _swigc__p_wxTGAHandler,
50114 _swigc__p_wxTIFFHandler,
50115 _swigc__p_wxTextAttr,
50116 _swigc__p_wxTextCtrl,
50117 _swigc__p_wxTextUrlEvent,
50118 _swigc__p_wxToggleButton,
50119 _swigc__p_wxToolBar,
50120 _swigc__p_wxToolBarBase,
50121 _swigc__p_wxToolBarToolBase,
50122 _swigc__p_wxToolbook,
50123 _swigc__p_wxToolbookEvent,
50124 _swigc__p_wxTreeEvent,
50125 _swigc__p_wxTreeItemId,
50126 _swigc__p_wxTreebook,
50127 _swigc__p_wxTreebookEvent,
50128 _swigc__p_wxUpdateUIEvent,
50129 _swigc__p_wxValidator,
50130 _swigc__p_wxVisualAttributes,
50131 _swigc__p_wxWindow,
50132 _swigc__p_wxWindowBase,
50133 _swigc__p_wxWindowCreateEvent,
50134 _swigc__p_wxWindowDestroyEvent,
50135 _swigc__p_wxXPMHandler,
50136 };
50137
50138
50139 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
50140
50141 static swig_const_info swig_const_table[] = {
50142 {0, 0, 0, 0.0, 0, 0}};
50143
50144 #ifdef __cplusplus
50145 }
50146 #endif
50147 /* -----------------------------------------------------------------------------
50148 * Type initialization:
50149 * This problem is tough by the requirement that no dynamic
50150 * memory is used. Also, since swig_type_info structures store pointers to
50151 * swig_cast_info structures and swig_cast_info structures store pointers back
50152 * to swig_type_info structures, we need some lookup code at initialization.
50153 * The idea is that swig generates all the structures that are needed.
50154 * The runtime then collects these partially filled structures.
50155 * The SWIG_InitializeModule function takes these initial arrays out of
50156 * swig_module, and does all the lookup, filling in the swig_module.types
50157 * array with the correct data and linking the correct swig_cast_info
50158 * structures together.
50159 *
50160 * The generated swig_type_info structures are assigned staticly to an initial
50161 * array. We just loop though that array, and handle each type individually.
50162 * First we lookup if this type has been already loaded, and if so, use the
50163 * loaded structure instead of the generated one. Then we have to fill in the
50164 * cast linked list. The cast data is initially stored in something like a
50165 * two-dimensional array. Each row corresponds to a type (there are the same
50166 * number of rows as there are in the swig_type_initial array). Each entry in
50167 * a column is one of the swig_cast_info structures for that type.
50168 * The cast_initial array is actually an array of arrays, because each row has
50169 * a variable number of columns. So to actually build the cast linked list,
50170 * we find the array of casts associated with the type, and loop through it
50171 * adding the casts to the list. The one last trick we need to do is making
50172 * sure the type pointer in the swig_cast_info struct is correct.
50173 *
50174 * First off, we lookup the cast->type name to see if it is already loaded.
50175 * There are three cases to handle:
50176 * 1) If the cast->type has already been loaded AND the type we are adding
50177 * casting info to has not been loaded (it is in this module), THEN we
50178 * replace the cast->type pointer with the type pointer that has already
50179 * been loaded.
50180 * 2) If BOTH types (the one we are adding casting info to, and the
50181 * cast->type) are loaded, THEN the cast info has already been loaded by
50182 * the previous module so we just ignore it.
50183 * 3) Finally, if cast->type has not already been loaded, then we add that
50184 * swig_cast_info to the linked list (because the cast->type) pointer will
50185 * be correct.
50186 * ----------------------------------------------------------------------------- */
50187
50188 #ifdef __cplusplus
50189 extern "C" {
50190 #if 0
50191 } /* c-mode */
50192 #endif
50193 #endif
50194
50195 #if 0
50196 #define SWIGRUNTIME_DEBUG
50197 #endif
50198
50199 SWIGRUNTIME void
50200 SWIG_InitializeModule(void *clientdata) {
50201 size_t i;
50202 swig_module_info *module_head;
50203 static int init_run = 0;
50204
50205 clientdata = clientdata;
50206
50207 if (init_run) return;
50208 init_run = 1;
50209
50210 /* Initialize the swig_module */
50211 swig_module.type_initial = swig_type_initial;
50212 swig_module.cast_initial = swig_cast_initial;
50213
50214 /* Try and load any already created modules */
50215 module_head = SWIG_GetModule(clientdata);
50216 if (module_head) {
50217 swig_module.next = module_head->next;
50218 module_head->next = &swig_module;
50219 } else {
50220 /* This is the first module loaded */
50221 swig_module.next = &swig_module;
50222 SWIG_SetModule(clientdata, &swig_module);
50223 }
50224
50225 /* Now work on filling in swig_module.types */
50226 #ifdef SWIGRUNTIME_DEBUG
50227 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
50228 #endif
50229 for (i = 0; i < swig_module.size; ++i) {
50230 swig_type_info *type = 0;
50231 swig_type_info *ret;
50232 swig_cast_info *cast;
50233
50234 #ifdef SWIGRUNTIME_DEBUG
50235 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
50236 #endif
50237
50238 /* if there is another module already loaded */
50239 if (swig_module.next != &swig_module) {
50240 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
50241 }
50242 if (type) {
50243 /* Overwrite clientdata field */
50244 #ifdef SWIGRUNTIME_DEBUG
50245 printf("SWIG_InitializeModule: found type %s\n", type->name);
50246 #endif
50247 if (swig_module.type_initial[i]->clientdata) {
50248 type->clientdata = swig_module.type_initial[i]->clientdata;
50249 #ifdef SWIGRUNTIME_DEBUG
50250 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
50251 #endif
50252 }
50253 } else {
50254 type = swig_module.type_initial[i];
50255 }
50256
50257 /* Insert casting types */
50258 cast = swig_module.cast_initial[i];
50259 while (cast->type) {
50260 /* Don't need to add information already in the list */
50261 ret = 0;
50262 #ifdef SWIGRUNTIME_DEBUG
50263 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
50264 #endif
50265 if (swig_module.next != &swig_module) {
50266 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
50267 #ifdef SWIGRUNTIME_DEBUG
50268 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
50269 #endif
50270 }
50271 if (ret) {
50272 if (type == swig_module.type_initial[i]) {
50273 #ifdef SWIGRUNTIME_DEBUG
50274 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
50275 #endif
50276 cast->type = ret;
50277 ret = 0;
50278 } else {
50279 /* Check for casting already in the list */
50280 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
50281 #ifdef SWIGRUNTIME_DEBUG
50282 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
50283 #endif
50284 if (!ocast) ret = 0;
50285 }
50286 }
50287
50288 if (!ret) {
50289 #ifdef SWIGRUNTIME_DEBUG
50290 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
50291 #endif
50292 if (type->cast) {
50293 type->cast->prev = cast;
50294 cast->next = type->cast;
50295 }
50296 type->cast = cast;
50297 }
50298 cast++;
50299 }
50300 /* Set entry in modules->types array equal to the type */
50301 swig_module.types[i] = type;
50302 }
50303 swig_module.types[i] = 0;
50304
50305 #ifdef SWIGRUNTIME_DEBUG
50306 printf("**** SWIG_InitializeModule: Cast List ******\n");
50307 for (i = 0; i < swig_module.size; ++i) {
50308 int j = 0;
50309 swig_cast_info *cast = swig_module.cast_initial[i];
50310 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
50311 while (cast->type) {
50312 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
50313 cast++;
50314 ++j;
50315 }
50316 printf("---- Total casts: %d\n",j);
50317 }
50318 printf("**** SWIG_InitializeModule: Cast List ******\n");
50319 #endif
50320 }
50321
50322 /* This function will propagate the clientdata field of type to
50323 * any new swig_type_info structures that have been added into the list
50324 * of equivalent types. It is like calling
50325 * SWIG_TypeClientData(type, clientdata) a second time.
50326 */
50327 SWIGRUNTIME void
50328 SWIG_PropagateClientData(void) {
50329 size_t i;
50330 swig_cast_info *equiv;
50331 static int init_run = 0;
50332
50333 if (init_run) return;
50334 init_run = 1;
50335
50336 for (i = 0; i < swig_module.size; i++) {
50337 if (swig_module.types[i]->clientdata) {
50338 equiv = swig_module.types[i]->cast;
50339 while (equiv) {
50340 if (!equiv->converter) {
50341 if (equiv->type && !equiv->type->clientdata)
50342 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
50343 }
50344 equiv = equiv->next;
50345 }
50346 }
50347 }
50348 }
50349
50350 #ifdef __cplusplus
50351 #if 0
50352 {
50353 /* c-mode */
50354 #endif
50355 }
50356 #endif
50357
50358
50359
50360 #ifdef __cplusplus
50361 extern "C" {
50362 #endif
50363
50364 /* Python-specific SWIG API */
50365 #define SWIG_newvarlink() SWIG_Python_newvarlink()
50366 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
50367 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
50368
50369 /* -----------------------------------------------------------------------------
50370 * global variable support code.
50371 * ----------------------------------------------------------------------------- */
50372
50373 typedef struct swig_globalvar {
50374 char *name; /* Name of global variable */
50375 PyObject *(*get_attr)(void); /* Return the current value */
50376 int (*set_attr)(PyObject *); /* Set the value */
50377 struct swig_globalvar *next;
50378 } swig_globalvar;
50379
50380 typedef struct swig_varlinkobject {
50381 PyObject_HEAD
50382 swig_globalvar *vars;
50383 } swig_varlinkobject;
50384
50385 SWIGINTERN PyObject *
50386 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
50387 return PyString_FromString("<Swig global variables>");
50388 }
50389
50390 SWIGINTERN PyObject *
50391 swig_varlink_str(swig_varlinkobject *v) {
50392 PyObject *str = PyString_FromString("(");
50393 swig_globalvar *var;
50394 for (var = v->vars; var; var=var->next) {
50395 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
50396 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
50397 }
50398 PyString_ConcatAndDel(&str,PyString_FromString(")"));
50399 return str;
50400 }
50401
50402 SWIGINTERN int
50403 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
50404 PyObject *str = swig_varlink_str(v);
50405 fprintf(fp,"Swig global variables ");
50406 fprintf(fp,"%s\n", PyString_AsString(str));
50407 Py_DECREF(str);
50408 return 0;
50409 }
50410
50411 SWIGINTERN void
50412 swig_varlink_dealloc(swig_varlinkobject *v) {
50413 swig_globalvar *var = v->vars;
50414 while (var) {
50415 swig_globalvar *n = var->next;
50416 free(var->name);
50417 free(var);
50418 var = n;
50419 }
50420 }
50421
50422 SWIGINTERN PyObject *
50423 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
50424 PyObject *res = NULL;
50425 swig_globalvar *var = v->vars;
50426 while (var) {
50427 if (strcmp(var->name,n) == 0) {
50428 res = (*var->get_attr)();
50429 break;
50430 }
50431 var = var->next;
50432 }
50433 if (res == NULL && !PyErr_Occurred()) {
50434 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
50435 }
50436 return res;
50437 }
50438
50439 SWIGINTERN int
50440 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
50441 int res = 1;
50442 swig_globalvar *var = v->vars;
50443 while (var) {
50444 if (strcmp(var->name,n) == 0) {
50445 res = (*var->set_attr)(p);
50446 break;
50447 }
50448 var = var->next;
50449 }
50450 if (res == 1 && !PyErr_Occurred()) {
50451 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
50452 }
50453 return res;
50454 }
50455
50456 SWIGINTERN PyTypeObject*
50457 swig_varlink_type(void) {
50458 static char varlink__doc__[] = "Swig var link object";
50459 static PyTypeObject varlink_type;
50460 static int type_init = 0;
50461 if (!type_init) {
50462 const PyTypeObject tmp
50463 = {
50464 PyObject_HEAD_INIT(NULL)
50465 0, /* Number of items in variable part (ob_size) */
50466 (char *)"swigvarlink", /* Type name (tp_name) */
50467 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
50468 0, /* Itemsize (tp_itemsize) */
50469 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
50470 (printfunc) swig_varlink_print, /* Print (tp_print) */
50471 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
50472 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
50473 0, /* tp_compare */
50474 (reprfunc) swig_varlink_repr, /* tp_repr */
50475 0, /* tp_as_number */
50476 0, /* tp_as_sequence */
50477 0, /* tp_as_mapping */
50478 0, /* tp_hash */
50479 0, /* tp_call */
50480 (reprfunc)swig_varlink_str, /* tp_str */
50481 0, /* tp_getattro */
50482 0, /* tp_setattro */
50483 0, /* tp_as_buffer */
50484 0, /* tp_flags */
50485 varlink__doc__, /* tp_doc */
50486 0, /* tp_traverse */
50487 0, /* tp_clear */
50488 0, /* tp_richcompare */
50489 0, /* tp_weaklistoffset */
50490 #if PY_VERSION_HEX >= 0x02020000
50491 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
50492 #endif
50493 #if PY_VERSION_HEX >= 0x02030000
50494 0, /* tp_del */
50495 #endif
50496 #ifdef COUNT_ALLOCS
50497 0,0,0,0 /* tp_alloc -> tp_next */
50498 #endif
50499 };
50500 varlink_type = tmp;
50501 varlink_type.ob_type = &PyType_Type;
50502 type_init = 1;
50503 }
50504 return &varlink_type;
50505 }
50506
50507 /* Create a variable linking object for use later */
50508 SWIGINTERN PyObject *
50509 SWIG_Python_newvarlink(void) {
50510 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
50511 if (result) {
50512 result->vars = 0;
50513 }
50514 return ((PyObject*) result);
50515 }
50516
50517 SWIGINTERN void
50518 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
50519 swig_varlinkobject *v = (swig_varlinkobject *) p;
50520 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
50521 if (gv) {
50522 size_t size = strlen(name)+1;
50523 gv->name = (char *)malloc(size);
50524 if (gv->name) {
50525 strncpy(gv->name,name,size);
50526 gv->get_attr = get_attr;
50527 gv->set_attr = set_attr;
50528 gv->next = v->vars;
50529 }
50530 }
50531 v->vars = gv;
50532 }
50533
50534 SWIGINTERN PyObject *
50535 SWIG_globals() {
50536 static PyObject *_SWIG_globals = 0;
50537 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
50538 return _SWIG_globals;
50539 }
50540
50541 /* -----------------------------------------------------------------------------
50542 * constants/methods manipulation
50543 * ----------------------------------------------------------------------------- */
50544
50545 /* Install Constants */
50546 SWIGINTERN void
50547 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
50548 PyObject *obj = 0;
50549 size_t i;
50550 for (i = 0; constants[i].type; ++i) {
50551 switch(constants[i].type) {
50552 case SWIG_PY_POINTER:
50553 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
50554 break;
50555 case SWIG_PY_BINARY:
50556 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
50557 break;
50558 default:
50559 obj = 0;
50560 break;
50561 }
50562 if (obj) {
50563 PyDict_SetItemString(d, constants[i].name, obj);
50564 Py_DECREF(obj);
50565 }
50566 }
50567 }
50568
50569 /* -----------------------------------------------------------------------------*/
50570 /* Fix SwigMethods to carry the callback ptrs when needed */
50571 /* -----------------------------------------------------------------------------*/
50572
50573 SWIGINTERN void
50574 SWIG_Python_FixMethods(PyMethodDef *methods,
50575 swig_const_info *const_table,
50576 swig_type_info **types,
50577 swig_type_info **types_initial) {
50578 size_t i;
50579 for (i = 0; methods[i].ml_name; ++i) {
50580 const char *c = methods[i].ml_doc;
50581 if (c && (c = strstr(c, "swig_ptr: "))) {
50582 int j;
50583 swig_const_info *ci = 0;
50584 const char *name = c + 10;
50585 for (j = 0; const_table[j].type; ++j) {
50586 if (strncmp(const_table[j].name, name,
50587 strlen(const_table[j].name)) == 0) {
50588 ci = &(const_table[j]);
50589 break;
50590 }
50591 }
50592 if (ci) {
50593 size_t shift = (ci->ptype) - types;
50594 swig_type_info *ty = types_initial[shift];
50595 size_t ldoc = (c - methods[i].ml_doc);
50596 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
50597 char *ndoc = (char*)malloc(ldoc + lptr + 10);
50598 if (ndoc) {
50599 char *buff = ndoc;
50600 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
50601 if (ptr) {
50602 strncpy(buff, methods[i].ml_doc, ldoc);
50603 buff += ldoc;
50604 strncpy(buff, "swig_ptr: ", 10);
50605 buff += 10;
50606 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
50607 methods[i].ml_doc = ndoc;
50608 }
50609 }
50610 }
50611 }
50612 }
50613 }
50614
50615 #ifdef __cplusplus
50616 }
50617 #endif
50618
50619 /* -----------------------------------------------------------------------------*
50620 * Partial Init method
50621 * -----------------------------------------------------------------------------*/
50622
50623 #ifdef __cplusplus
50624 extern "C"
50625 #endif
50626 SWIGEXPORT void SWIG_init(void) {
50627 PyObject *m, *d;
50628
50629 /* Fix SwigMethods to carry the callback ptrs when needed */
50630 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
50631
50632 m = Py_InitModule((char *) SWIG_name, SwigMethods);
50633 d = PyModule_GetDict(m);
50634
50635 SWIG_InitializeModule(0);
50636 SWIG_InstallConstants(d,swig_const_table);
50637
50638
50639 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
50640 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
50641 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
50642 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
50643 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
50644 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
50645 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
50646 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
50647 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
50648 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
50649 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
50650 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
50651 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
50652 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
50653 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
50654 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
50655 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
50656 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
50657 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
50658 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
50659 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
50660 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
50661 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
50662 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
50663 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
50664 SWIG_addvarlink(SWIG_globals(),(char*)"StaticLineNameStr",StaticLineNameStr_get, StaticLineNameStr_set);
50665 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
50666 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
50667 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
50668 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
50669 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
50670 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
50671 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
50672 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
50673 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
50674 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
50675 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
50676 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
50677 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
50678 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
50679 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
50680 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
50681 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
50682 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
50683 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
50684 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
50685 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
50686 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
50687 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
50688 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
50689 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
50690 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
50691 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
50692 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
50693 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
50694 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
50695 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
50696 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
50697 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
50698 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
50699 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
50700 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
50701 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
50702 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
50703 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
50704 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
50705 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
50706 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
50707 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
50708 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
50709 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
50710 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
50711 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
50712 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
50713 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
50714 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
50715 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
50716 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
50717 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
50718 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
50719 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
50720 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
50721 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
50722 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
50723 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
50724 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
50725 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
50726 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
50727 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
50728 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
50729 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
50730 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
50731 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
50732 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
50733 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
50734 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
50735 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
50736 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
50737 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
50738 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
50739 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
50740 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
50741 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
50742 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
50743 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
50744 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
50745 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
50746 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
50747 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
50748 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
50749 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
50750 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
50751 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
50752 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
50753 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
50754 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
50755 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
50756 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
50757 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
50758 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
50759 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
50760 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
50761 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
50762 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
50763 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
50764 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
50765 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
50766 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
50767 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
50768 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
50769 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
50770 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
50771 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
50772 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
50773 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
50774 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
50775 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
50776 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
50777 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
50778 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
50779 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
50780 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
50781 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
50782 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
50783 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
50784 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
50785 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
50786 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
50787 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
50788 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
50789 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
50790 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
50791 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
50792 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
50793 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
50794 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
50795 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
50796 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
50797 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
50798 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
50799 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
50800 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
50801 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
50802 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
50803 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
50804 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
50805 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
50806 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
50807 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
50808 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
50809 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
50810 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
50811 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
50812 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
50813 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
50814 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
50815 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
50816 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
50817 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
50818 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
50819 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
50820 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
50821 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
50822 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
50823 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
50824 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
50825 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
50826 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
50827 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
50828 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
50829 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
50830 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
50831 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
50832 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
50833 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
50834 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
50835 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
50836 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
50837 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
50838 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
50839 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
50840 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
50841 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
50842 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
50843 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
50844 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
50845 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
50846 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
50847 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
50848 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
50849 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
50850 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
50851 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
50852 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
50853 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
50854 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
50855 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
50856 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
50857 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
50858 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
50859 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
50860 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
50861 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
50862 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
50863 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
50864 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
50865 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
50866 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
50867 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
50868 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
50869 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
50870 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
50871 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
50872 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
50873 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
50874 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
50875 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
50876 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
50877 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
50878 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
50879 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
50880 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
50881 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
50882 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
50883 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
50884 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
50885 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
50886 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
50887 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
50888 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
50889 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
50890 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
50891 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
50892 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
50893 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
50894 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
50895 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
50896 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
50897 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
50898 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
50899 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
50900
50901 // Map renamed classes back to their common name for OOR
50902 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
50903
50904 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
50905 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
50906 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
50907 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
50908 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
50909 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
50910 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
50911 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
50912 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
50913 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
50914 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
50915 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
50916 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
50917 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
50918 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
50919 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
50920 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
50921 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
50922 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
50923 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
50924 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
50925 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
50926 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
50927 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
50928 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
50929 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
50930 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
50931 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
50932 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
50933 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
50934 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
50935 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
50936 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
50937 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
50938 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
50939 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
50940 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
50941 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
50942 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
50943 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
50944 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
50945 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
50946 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
50947 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
50948 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
50949 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
50950 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
50951 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
50952 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
50953 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
50954 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
50955 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
50956 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
50957 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
50958 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
50959 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
50960
50961 // Map renamed classes back to their common name for OOR
50962 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
50963 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
50964
50965 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
50966 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
50967 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
50968 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
50969 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
50970 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
50971 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
50972 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
50973 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
50974 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
50975 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
50976
50977 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
50978
50979 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
50980 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
50981 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
50982 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
50983 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
50984 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
50985 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
50986 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
50987 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
50988 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
50989 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
50990 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
50991 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
50992 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
50993 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
50994 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
50995 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
50996 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
50997 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
50998 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
50999 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
51000 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
51001 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
51002 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
51003 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
51004 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
51005 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
51006 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
51007 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
51008 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
51009 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
51010 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
51011 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
51012 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
51013 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
51014 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
51015 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
51016 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
51017 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
51018 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
51019 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
51020 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
51021 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
51022 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
51023 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
51024 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
51025 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
51026 SWIG_addvarlink(SWIG_globals(),(char*)"SearchCtrlNameStr",SearchCtrlNameStr_get, SearchCtrlNameStr_set);
51027 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN));
51028 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN));
51029 }
51030