]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 /* for raw pointers */
989 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995 #define swig_owntype int
996
997 /* for raw packed data */
998 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1000
1001 /* for class or struct pointers */
1002 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1004
1005 /* for C or C++ function pointers */
1006 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1008
1009 /* for C++ member pointers, ie, member methods */
1010 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1012
1013
1014 /* Runtime API */
1015
1016 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1019
1020 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024 #define SWIG_fail goto fail
1025
1026
1027 /* Runtime API implementation */
1028
1029 /* Error manipulation */
1030
1031 SWIGINTERN void
1032 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
1037 }
1038
1039 SWIGINTERN void
1040 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
1044 }
1045
1046 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1047
1048 /* Set a constant value */
1049
1050 SWIGINTERN void
1051 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
1054 }
1055
1056 /* Append a value to the result obj */
1057
1058 SWIGINTERN PyObject*
1059 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076 #else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
1084 } else {
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
1096 }
1097 return result;
1098 #endif
1099 }
1100
1101 /* Unpack the argument tuple */
1102
1103 SWIGINTERN int
1104 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105 {
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139 }
1140
1141 /* A functor is a function object with one single object argument */
1142 #if PY_VERSION_HEX >= 0x02020000
1143 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144 #else
1145 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146 #endif
1147
1148 /*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151 */
1152 #ifdef __cplusplus
1153 #define SWIG_STATIC_POINTER(var) var
1154 #else
1155 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156 #endif
1157
1158 /* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162 /* Flags for new pointer objects */
1163 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168 #ifdef __cplusplus
1169 extern "C" {
1170 #if 0
1171 } /* cc-mode */
1172 #endif
1173 #endif
1174
1175 /* How to access Py_None */
1176 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1178 # ifndef SWIG_PYTHON_BUILD_NONE
1179 # define SWIG_PYTHON_BUILD_NONE
1180 # endif
1181 # endif
1182 #endif
1183
1184 #ifdef SWIG_PYTHON_BUILD_NONE
1185 # ifdef Py_None
1186 # undef Py_None
1187 # define Py_None SWIG_Py_None()
1188 # endif
1189 SWIGRUNTIMEINLINE PyObject *
1190 _SWIG_Py_None(void)
1191 {
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195 }
1196 SWIGRUNTIME PyObject *
1197 SWIG_Py_None(void)
1198 {
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201 }
1202 #endif
1203
1204 /* The python void return value */
1205
1206 SWIGRUNTIMEINLINE PyObject *
1207 SWIG_Py_Void(void)
1208 {
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212 }
1213
1214 /* PySwigClientData */
1215
1216 typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223 } PySwigClientData;
1224
1225 SWIGRUNTIMEINLINE int
1226 SWIG_Python_CheckImplicit(swig_type_info *ty)
1227 {
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230 }
1231
1232 SWIGRUNTIMEINLINE PyObject *
1233 SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237 }
1238
1239
1240 SWIGRUNTIME PySwigClientData *
1241 PySwigClientData_New(PyObject* obj)
1242 {
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256 #if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258 #else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260 #endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280 #ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282 #else
1283 data->delargs = 0;
1284 #endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291 }
1292
1293 SWIGRUNTIME void
1294 PySwigClientData_Del(PySwigClientData* data)
1295 {
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299 }
1300
1301 /* =============== PySwigObject =====================*/
1302
1303 typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309 } PySwigObject;
1310
1311 SWIGRUNTIME PyObject *
1312 PySwigObject_long(PySwigObject *v)
1313 {
1314 return PyLong_FromVoidPtr(v->ptr);
1315 }
1316
1317 SWIGRUNTIME PyObject *
1318 PySwigObject_format(const char* fmt, PySwigObject *v)
1319 {
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333 }
1334
1335 SWIGRUNTIME PyObject *
1336 PySwigObject_oct(PySwigObject *v)
1337 {
1338 return PySwigObject_format("%o",v);
1339 }
1340
1341 SWIGRUNTIME PyObject *
1342 PySwigObject_hex(PySwigObject *v)
1343 {
1344 return PySwigObject_format("%x",v);
1345 }
1346
1347 SWIGRUNTIME PyObject *
1348 #ifdef METH_NOARGS
1349 PySwigObject_repr(PySwigObject *v)
1350 #else
1351 PySwigObject_repr(PySwigObject *v, PyObject *args)
1352 #endif
1353 {
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359 #ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361 #else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363 #endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367 }
1368
1369 SWIGRUNTIME int
1370 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371 {
1372 #ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374 #else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376 #endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384 }
1385
1386 SWIGRUNTIME PyObject *
1387 PySwigObject_str(PySwigObject *v)
1388 {
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392 }
1393
1394 SWIGRUNTIME int
1395 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396 {
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400 }
1401
1402 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404 SWIGRUNTIME PyTypeObject*
1405 PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408 }
1409
1410 SWIGRUNTIMEINLINE int
1411 PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414 }
1415
1416 SWIGRUNTIME PyObject *
1417 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419 SWIGRUNTIME void
1420 PySwigObject_dealloc(PyObject *v)
1421 {
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446 #endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451 }
1452
1453 SWIGRUNTIME PyObject*
1454 PySwigObject_append(PyObject* v, PyObject* next)
1455 {
1456 PySwigObject *sobj = (PySwigObject *) v;
1457 #ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461 #endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468 }
1469
1470 SWIGRUNTIME PyObject*
1471 #ifdef METH_NOARGS
1472 PySwigObject_next(PyObject* v)
1473 #else
1474 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475 #endif
1476 {
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484 }
1485
1486 SWIGINTERN PyObject*
1487 #ifdef METH_NOARGS
1488 PySwigObject_disown(PyObject *v)
1489 #else
1490 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491 #endif
1492 {
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496 }
1497
1498 SWIGINTERN PyObject*
1499 #ifdef METH_NOARGS
1500 PySwigObject_acquire(PyObject *v)
1501 #else
1502 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503 #endif
1504 {
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508 }
1509
1510 SWIGINTERN PyObject*
1511 PySwigObject_own(PyObject *v, PyObject *args)
1512 {
1513 PyObject *val = 0;
1514 #if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516 #else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518 #endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527 #ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533 #else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539 #endif
1540 }
1541 return obj;
1542 }
1543 }
1544
1545 #ifdef METH_O
1546 static PyMethodDef
1547 swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555 };
1556 #else
1557 static PyMethodDef
1558 swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566 };
1567 #endif
1568
1569 #if PY_VERSION_HEX < 0x02020000
1570 SWIGINTERN PyObject *
1571 PySwigObject_getattr(PySwigObject *sobj,char *name)
1572 {
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574 }
1575 #endif
1576
1577 SWIGRUNTIME PyTypeObject*
1578 _PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1605 #if PY_VERSION_HEX >= 0x02020000
1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1607 #elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1609 #endif
1610 };
1611
1612 static PyTypeObject pyswigobject_type;
1613 static int type_init = 0;
1614 if (!type_init) {
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624 #if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626 #else
1627 (getattrfunc)0, /* tp_getattr */
1628 #endif
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
1647 #if PY_VERSION_HEX >= 0x02020000
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
1668 #endif
1669 #if PY_VERSION_HEX >= 0x02030000
1670 0, /* tp_del */
1671 #endif
1672 #ifdef COUNT_ALLOCS
1673 0,0,0,0 /* tp_alloc -> tp_next */
1674 #endif
1675 };
1676 pyswigobject_type = tmp;
1677 pyswigobject_type.ob_type = &PyType_Type;
1678 type_init = 1;
1679 }
1680 return &pyswigobject_type;
1681 }
1682
1683 SWIGRUNTIME PyObject *
1684 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1685 {
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
1692 }
1693 return (PyObject *)sobj;
1694 }
1695
1696 /* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700 typedef struct {
1701 PyObject_HEAD
1702 void *pack;
1703 swig_type_info *ty;
1704 size_t size;
1705 } PySwigPacked;
1706
1707 SWIGRUNTIME int
1708 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1709 {
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
1715 }
1716 fputs(v->ty->name,fp);
1717 fputs(">", fp);
1718 return 0;
1719 }
1720
1721 SWIGRUNTIME PyObject *
1722 PySwigPacked_repr(PySwigPacked *v)
1723 {
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1727 } else {
1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1729 }
1730 }
1731
1732 SWIGRUNTIME PyObject *
1733 PySwigPacked_str(PySwigPacked *v)
1734 {
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1737 return PyString_FromFormat("%s%s", result, v->ty->name);
1738 } else {
1739 return PyString_FromString(v->ty->name);
1740 }
1741 }
1742
1743 SWIGRUNTIME int
1744 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745 {
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1750 }
1751
1752 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1753
1754 SWIGRUNTIME PyTypeObject*
1755 PySwigPacked_type(void) {
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758 }
1759
1760 SWIGRUNTIMEINLINE int
1761 PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764 }
1765
1766 SWIGRUNTIME void
1767 PySwigPacked_dealloc(PyObject *v)
1768 {
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774 }
1775
1776 SWIGRUNTIME PyTypeObject*
1777 _PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810 #if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
1831 #endif
1832 #if PY_VERSION_HEX >= 0x02030000
1833 0, /* tp_del */
1834 #endif
1835 #ifdef COUNT_ALLOCS
1836 0,0,0,0 /* tp_alloc -> tp_next */
1837 #endif
1838 };
1839 pyswigpacked_type = tmp;
1840 pyswigpacked_type.ob_type = &PyType_Type;
1841 type_init = 1;
1842 }
1843 return &pyswigpacked_type;
1844 }
1845
1846 SWIGRUNTIME PyObject *
1847 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1848 {
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
1851 void *pack = malloc(size);
1852 if (pack) {
1853 memcpy(pack, ptr, size);
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
1860 }
1861 }
1862 return (PyObject *) sobj;
1863 }
1864
1865 SWIGRUNTIME swig_type_info *
1866 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867 {
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
1876 }
1877
1878 /* -----------------------------------------------------------------------------
1879 * pointers/data manipulation
1880 * ----------------------------------------------------------------------------- */
1881
1882 SWIGRUNTIMEINLINE PyObject *
1883 _SWIG_This(void)
1884 {
1885 return PyString_FromString("this");
1886 }
1887
1888 SWIGRUNTIME PyObject *
1889 SWIG_This(void)
1890 {
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893 }
1894
1895 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1896
1897 SWIGRUNTIME PySwigObject *
1898 SWIG_Python_GetSwigThis(PyObject *pyobj)
1899 {
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913 #ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918 #endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
1922 } else {
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
1925 }
1926 }
1927 }
1928 #else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936 #endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
1943 }
1944 }
1945
1946 /* Acquire a pointer value */
1947
1948 SWIGRUNTIME int
1949 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
1957 }
1958 return 0;
1959 }
1960
1961 /* Convert a pointer value */
1962
1963 SWIGRUNTIME int
1964 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
1988 } else {
1989 if (ptr) *ptr = vptr;
1990 break;
1991 }
1992 }
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
2038 }
2039 }
2040
2041 /* Convert a function ptr value */
2042
2043 SWIGRUNTIME int
2044 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2047 } else {
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
2065 }
2066 }
2067
2068 /* Convert a packed value value */
2069
2070 SWIGRUNTIME int
2071 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
2080 }
2081 return SWIG_OK;
2082 }
2083
2084 /* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
2087
2088 /*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091 */
2092
2093 SWIGRUNTIME PyObject*
2094 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095 {
2096 #if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
2111 }
2112 #else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115 #endif
2116 }
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
2122 }
2123 return inst;
2124 #else
2125 #if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132 #else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
2136 }
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
2143 }
2144 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146 #endif
2147 #ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149 #endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152 #endif
2153 #endif
2154 }
2155
2156 SWIGRUNTIME void
2157 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158 {
2159 PyObject *dict;
2160 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
2171 #endif
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175 }
2176
2177
2178 SWIGINTERN PyObject *
2179 SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
2187 } else {
2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2189 }
2190 return SWIG_Py_Void();
2191 }
2192 }
2193
2194 /* Create a new pointer object */
2195
2196 SWIGRUNTIME PyObject *
2197 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2198 if (!ptr) {
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
2209 }
2210 }
2211 return robj;
2212 }
2213 }
2214
2215 /* Create a new packed object */
2216
2217 SWIGRUNTIMEINLINE PyObject *
2218 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2220 }
2221
2222 /* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226 #ifdef SWIG_LINK_RUNTIME
2227 void *SWIG_ReturnGlobalTypeList(void *);
2228 #endif
2229
2230 SWIGRUNTIME swig_module_info *
2231 SWIG_Python_GetModule(void) {
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235 #ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2237 #else
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
2244 #endif
2245 }
2246 return (swig_module_info *) type_pointer;
2247 }
2248
2249 #if PY_MAJOR_VERSION < 2
2250 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2251 is copied out of Python/modsupport.c in python version 2.3.4 */
2252 SWIGINTERN int
2253 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254 {
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
2259 return SWIG_ERROR;
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
2264 return SWIG_ERROR;
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
2272 return SWIG_ERROR;
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
2275 return SWIG_ERROR;
2276 Py_DECREF(o);
2277 return SWIG_OK;
2278 }
2279 #endif
2280
2281 SWIGRUNTIME void
2282 SWIG_Python_DestroyModule(void *vptr)
2283 {
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295 }
2296
2297 SWIGRUNTIME void
2298 SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2306 } else {
2307 Py_XDECREF(pointer);
2308 }
2309 }
2310
2311 /* The python cached type query */
2312 SWIGRUNTIME PyObject *
2313 SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
2316 }
2317
2318 SWIGRUNTIME swig_type_info *
2319 SWIG_Python_TypeQuery(const char *type)
2320 {
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338 }
2339
2340 /*
2341 For backward compatibility only
2342 */
2343 #define SWIG_POINTER_EXCEPTION 0
2344 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347 SWIGRUNTIME int
2348 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349 {
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370 }
2371
2372 SWIGRUNTIME int
2373 SWIG_Python_ArgFail(int argnum)
2374 {
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383 }
2384
2385 SWIGRUNTIMEINLINE const char *
2386 PySwigObject_GetDesc(PyObject *self)
2387 {
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391 }
2392
2393 SWIGRUNTIME void
2394 SWIG_Python_TypeError(const char *type, PyObject *obj)
2395 {
2396 if (type) {
2397 #if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406 #endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427 }
2428
2429
2430 /* Convert a pointer value, signal an exception on a type mismatch */
2431 SWIGRUNTIME void *
2432 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442 }
2443
2444
2445 #ifdef __cplusplus
2446 #if 0
2447 { /* cc-mode */
2448 #endif
2449 }
2450 #endif
2451
2452
2453
2454 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460 /* -------- TYPES TABLE (BEGIN) -------- */
2461
2462 #define SWIGTYPE_p_bool swig_types[0]
2463 #define SWIGTYPE_p_char swig_types[1]
2464 #define SWIGTYPE_p_form_ops_t swig_types[2]
2465 #define SWIGTYPE_p_int swig_types[3]
2466 #define SWIGTYPE_p_long swig_types[4]
2467 #define SWIGTYPE_p_unsigned_char swig_types[5]
2468 #define SWIGTYPE_p_unsigned_int swig_types[6]
2469 #define SWIGTYPE_p_unsigned_long swig_types[7]
2470 #define SWIGTYPE_p_void swig_types[8]
2471 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2472 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2473 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2474 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2475 #define SWIGTYPE_p_wxArrayString swig_types[13]
2476 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2477 #define SWIGTYPE_p_wxBitmap swig_types[15]
2478 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2479 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2480 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2481 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2482 #define SWIGTYPE_p_wxButton swig_types[20]
2483 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2484 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2485 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2486 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2487 #define SWIGTYPE_p_wxChoice swig_types[25]
2488 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2489 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2490 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2491 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2492 #define SWIGTYPE_p_wxColour swig_types[30]
2493 #define SWIGTYPE_p_wxComboBox swig_types[31]
2494 #define SWIGTYPE_p_wxCommandEvent swig_types[32]
2495 #define SWIGTYPE_p_wxContextHelp swig_types[33]
2496 #define SWIGTYPE_p_wxContextHelpButton swig_types[34]
2497 #define SWIGTYPE_p_wxContextMenuEvent swig_types[35]
2498 #define SWIGTYPE_p_wxControl swig_types[36]
2499 #define SWIGTYPE_p_wxControlWithItems swig_types[37]
2500 #define SWIGTYPE_p_wxCursor swig_types[38]
2501 #define SWIGTYPE_p_wxDC swig_types[39]
2502 #define SWIGTYPE_p_wxDateEvent swig_types[40]
2503 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[41]
2504 #define SWIGTYPE_p_wxDateTime swig_types[42]
2505 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[43]
2506 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2507 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2508 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
2509 #define SWIGTYPE_p_wxEraseEvent swig_types[47]
2510 #define SWIGTYPE_p_wxEvent swig_types[48]
2511 #define SWIGTYPE_p_wxEvtHandler swig_types[49]
2512 #define SWIGTYPE_p_wxFSFile swig_types[50]
2513 #define SWIGTYPE_p_wxFileSystem swig_types[51]
2514 #define SWIGTYPE_p_wxFlexGridSizer swig_types[52]
2515 #define SWIGTYPE_p_wxFocusEvent swig_types[53]
2516 #define SWIGTYPE_p_wxFont swig_types[54]
2517 #define SWIGTYPE_p_wxGBSizerItem swig_types[55]
2518 #define SWIGTYPE_p_wxGIFHandler swig_types[56]
2519 #define SWIGTYPE_p_wxGauge swig_types[57]
2520 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[58]
2521 #define SWIGTYPE_p_wxGenericDragImage swig_types[59]
2522 #define SWIGTYPE_p_wxGridBagSizer swig_types[60]
2523 #define SWIGTYPE_p_wxGridSizer swig_types[61]
2524 #define SWIGTYPE_p_wxHelpEvent swig_types[62]
2525 #define SWIGTYPE_p_wxHelpProvider swig_types[63]
2526 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[64]
2527 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[65]
2528 #define SWIGTYPE_p_wxICOHandler swig_types[66]
2529 #define SWIGTYPE_p_wxIcon swig_types[67]
2530 #define SWIGTYPE_p_wxIconizeEvent swig_types[68]
2531 #define SWIGTYPE_p_wxIdleEvent swig_types[69]
2532 #define SWIGTYPE_p_wxImage swig_types[70]
2533 #define SWIGTYPE_p_wxImageHandler swig_types[71]
2534 #define SWIGTYPE_p_wxImageList swig_types[72]
2535 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[73]
2536 #define SWIGTYPE_p_wxInitDialogEvent swig_types[74]
2537 #define SWIGTYPE_p_wxItemContainer swig_types[75]
2538 #define SWIGTYPE_p_wxJPEGHandler swig_types[76]
2539 #define SWIGTYPE_p_wxKeyEvent swig_types[77]
2540 #define SWIGTYPE_p_wxLayoutConstraints swig_types[78]
2541 #define SWIGTYPE_p_wxListBox swig_types[79]
2542 #define SWIGTYPE_p_wxListEvent swig_types[80]
2543 #define SWIGTYPE_p_wxListItem swig_types[81]
2544 #define SWIGTYPE_p_wxListItemAttr swig_types[82]
2545 #define SWIGTYPE_p_wxListView swig_types[83]
2546 #define SWIGTYPE_p_wxListbook swig_types[84]
2547 #define SWIGTYPE_p_wxListbookEvent swig_types[85]
2548 #define SWIGTYPE_p_wxMaximizeEvent swig_types[86]
2549 #define SWIGTYPE_p_wxMemoryDC swig_types[87]
2550 #define SWIGTYPE_p_wxMenu swig_types[88]
2551 #define SWIGTYPE_p_wxMenuBar swig_types[89]
2552 #define SWIGTYPE_p_wxMenuEvent swig_types[90]
2553 #define SWIGTYPE_p_wxMenuItem swig_types[91]
2554 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[92]
2555 #define SWIGTYPE_p_wxMouseEvent swig_types[93]
2556 #define SWIGTYPE_p_wxMoveEvent swig_types[94]
2557 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[95]
2558 #define SWIGTYPE_p_wxNcPaintEvent swig_types[96]
2559 #define SWIGTYPE_p_wxNotebook swig_types[97]
2560 #define SWIGTYPE_p_wxNotebookEvent swig_types[98]
2561 #define SWIGTYPE_p_wxNotifyEvent swig_types[99]
2562 #define SWIGTYPE_p_wxObject swig_types[100]
2563 #define SWIGTYPE_p_wxPCXHandler swig_types[101]
2564 #define SWIGTYPE_p_wxPNGHandler swig_types[102]
2565 #define SWIGTYPE_p_wxPNMHandler swig_types[103]
2566 #define SWIGTYPE_p_wxPaintEvent swig_types[104]
2567 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[105]
2568 #define SWIGTYPE_p_wxPaperSize swig_types[106]
2569 #define SWIGTYPE_p_wxPoint swig_types[107]
2570 #define SWIGTYPE_p_wxPyApp swig_types[108]
2571 #define SWIGTYPE_p_wxPyCommandEvent swig_types[109]
2572 #define SWIGTYPE_p_wxPyControl swig_types[110]
2573 #define SWIGTYPE_p_wxPyEvent swig_types[111]
2574 #define SWIGTYPE_p_wxPyImageHandler swig_types[112]
2575 #define SWIGTYPE_p_wxPyListCtrl swig_types[113]
2576 #define SWIGTYPE_p_wxPySizer swig_types[114]
2577 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[115]
2578 #define SWIGTYPE_p_wxPyTreeItemData swig_types[116]
2579 #define SWIGTYPE_p_wxPyValidator swig_types[117]
2580 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[118]
2581 #define SWIGTYPE_p_wxRadioBox swig_types[119]
2582 #define SWIGTYPE_p_wxRadioButton swig_types[120]
2583 #define SWIGTYPE_p_wxRect swig_types[121]
2584 #define SWIGTYPE_p_wxScrollBar swig_types[122]
2585 #define SWIGTYPE_p_wxScrollEvent swig_types[123]
2586 #define SWIGTYPE_p_wxScrollWinEvent swig_types[124]
2587 #define SWIGTYPE_p_wxSetCursorEvent swig_types[125]
2588 #define SWIGTYPE_p_wxShowEvent swig_types[126]
2589 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[127]
2590 #define SWIGTYPE_p_wxSize swig_types[128]
2591 #define SWIGTYPE_p_wxSizeEvent swig_types[129]
2592 #define SWIGTYPE_p_wxSizer swig_types[130]
2593 #define SWIGTYPE_p_wxSizerItem swig_types[131]
2594 #define SWIGTYPE_p_wxSlider swig_types[132]
2595 #define SWIGTYPE_p_wxSpinButton swig_types[133]
2596 #define SWIGTYPE_p_wxSpinCtrl swig_types[134]
2597 #define SWIGTYPE_p_wxSpinEvent swig_types[135]
2598 #define SWIGTYPE_p_wxStaticBitmap swig_types[136]
2599 #define SWIGTYPE_p_wxStaticBox swig_types[137]
2600 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[138]
2601 #define SWIGTYPE_p_wxStaticLine swig_types[139]
2602 #define SWIGTYPE_p_wxStaticText swig_types[140]
2603 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[141]
2604 #define SWIGTYPE_p_wxString swig_types[142]
2605 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[143]
2606 #define SWIGTYPE_p_wxTIFFHandler swig_types[144]
2607 #define SWIGTYPE_p_wxTextAttr swig_types[145]
2608 #define SWIGTYPE_p_wxTextCtrl swig_types[146]
2609 #define SWIGTYPE_p_wxTextUrlEvent swig_types[147]
2610 #define SWIGTYPE_p_wxToggleButton swig_types[148]
2611 #define SWIGTYPE_p_wxToolBar swig_types[149]
2612 #define SWIGTYPE_p_wxToolBarBase swig_types[150]
2613 #define SWIGTYPE_p_wxToolBarToolBase swig_types[151]
2614 #define SWIGTYPE_p_wxToolbook swig_types[152]
2615 #define SWIGTYPE_p_wxToolbookEvent swig_types[153]
2616 #define SWIGTYPE_p_wxTreeCtrl swig_types[154]
2617 #define SWIGTYPE_p_wxTreeEvent swig_types[155]
2618 #define SWIGTYPE_p_wxTreeItemId swig_types[156]
2619 #define SWIGTYPE_p_wxTreebook swig_types[157]
2620 #define SWIGTYPE_p_wxTreebookEvent swig_types[158]
2621 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[159]
2622 #define SWIGTYPE_p_wxValidator swig_types[160]
2623 #define SWIGTYPE_p_wxVisualAttributes swig_types[161]
2624 #define SWIGTYPE_p_wxWindow swig_types[162]
2625 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[163]
2626 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[164]
2627 #define SWIGTYPE_p_wxXPMHandler swig_types[165]
2628 static swig_type_info *swig_types[167];
2629 static swig_module_info swig_module = {swig_types, 166, 0, 0, 0, 0};
2630 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2631 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2632
2633 /* -------- TYPES TABLE (END) -------- */
2634
2635 #if (PY_VERSION_HEX <= 0x02000000)
2636 # if !defined(SWIG_PYTHON_CLASSIC)
2637 # error "This python version requires to use swig with the '-classic' option"
2638 # endif
2639 #endif
2640 #if (PY_VERSION_HEX <= 0x02020000)
2641 # error "This python version requires to use swig with the '-nomodern' option"
2642 #endif
2643 #if (PY_VERSION_HEX <= 0x02020000)
2644 # error "This python version requires to use swig with the '-nomodernargs' option"
2645 #endif
2646 #ifndef METH_O
2647 # error "This python version requires to use swig with the '-nofastunpack' option"
2648 #endif
2649
2650 /*-----------------------------------------------
2651 @(target):= _controls_.so
2652 ------------------------------------------------*/
2653 #define SWIG_init init_controls_
2654
2655 #define SWIG_name "_controls_"
2656
2657 #define SWIGVERSION 0x010329
2658
2659
2660 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2661 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2662
2663
2664 #include <stdexcept>
2665
2666
2667 namespace swig {
2668 class PyObject_ptr {
2669 protected:
2670 PyObject *_obj;
2671
2672 public:
2673 PyObject_ptr() :_obj(0)
2674 {
2675 }
2676
2677 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2678 {
2679 Py_XINCREF(_obj);
2680 }
2681
2682 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2683 {
2684 if (initial_ref) Py_XINCREF(_obj);
2685 }
2686
2687 PyObject_ptr & operator=(const PyObject_ptr& item)
2688 {
2689 Py_XINCREF(item._obj);
2690 Py_XDECREF(_obj);
2691 _obj = item._obj;
2692 return *this;
2693 }
2694
2695 ~PyObject_ptr()
2696 {
2697 Py_XDECREF(_obj);
2698 }
2699
2700 operator PyObject *() const
2701 {
2702 return _obj;
2703 }
2704
2705 PyObject *operator->() const
2706 {
2707 return _obj;
2708 }
2709 };
2710 }
2711
2712
2713 namespace swig {
2714 struct PyObject_var : PyObject_ptr {
2715 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2716
2717 PyObject_var & operator = (PyObject* obj)
2718 {
2719 Py_XDECREF(_obj);
2720 _obj = obj;
2721 return *this;
2722 }
2723 };
2724 }
2725
2726
2727 #include "wx/wxPython/wxPython.h"
2728 #include "wx/wxPython/pyclasses.h"
2729
2730 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2731 static const wxString wxPyEmptyString(wxEmptyString);
2732 static const wxString wxPyControlNameStr(wxControlNameStr);
2733
2734 const wxArrayString wxPyEmptyStringArray;
2735
2736 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2737
2738 #define SWIG_From_long PyInt_FromLong
2739
2740
2741 SWIGINTERNINLINE PyObject *
2742 SWIG_From_int (int value)
2743 {
2744 return SWIG_From_long (value);
2745 }
2746
2747
2748 #include <limits.h>
2749 #ifndef LLONG_MIN
2750 # define LLONG_MIN LONG_LONG_MIN
2751 #endif
2752 #ifndef LLONG_MAX
2753 # define LLONG_MAX LONG_LONG_MAX
2754 #endif
2755 #ifndef ULLONG_MAX
2756 # define ULLONG_MAX ULONG_LONG_MAX
2757 #endif
2758
2759
2760 SWIGINTERN int
2761 SWIG_AsVal_long (PyObject* obj, long* val)
2762 {
2763 if (PyNumber_Check(obj)) {
2764 if (val) *val = PyInt_AsLong(obj);
2765 return SWIG_OK;
2766 }
2767 return SWIG_TypeError;
2768 }
2769
2770
2771 SWIGINTERN int
2772 SWIG_AsVal_int (PyObject * obj, int *val)
2773 {
2774 long v;
2775 int res = SWIG_AsVal_long (obj, &v);
2776 if (SWIG_IsOK(res)) {
2777 if ((v < INT_MIN || v > INT_MAX)) {
2778 return SWIG_OverflowError;
2779 } else {
2780 if (val) *val = static_cast< int >(v);
2781 }
2782 }
2783 return res;
2784 }
2785
2786 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2787
2788 SWIGINTERN int
2789 SWIG_AsVal_bool (PyObject *obj, bool *val)
2790 {
2791 if (obj == Py_True) {
2792 if (val) *val = true;
2793 return SWIG_OK;
2794 } else if (obj == Py_False) {
2795 if (val) *val = false;
2796 return SWIG_OK;
2797 } else {
2798 long v = 0;
2799 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2800 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2801 return res;
2802 }
2803 }
2804
2805 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2806 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2807 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2808 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2809 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2810 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2811
2812 #include <wx/checklst.h>
2813
2814 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2815 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2816 if (clientData)
2817 {
2818 wxPyClientData* data = new wxPyClientData(clientData);
2819 self->Insert(item, pos, data);
2820 }
2821 else
2822 self->Insert(item, pos);
2823 }
2824
2825 SWIGINTERN int
2826 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2827 {
2828 long v = 0;
2829 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2830 return SWIG_TypeError;
2831 }
2832 else if (val)
2833 *val = (unsigned long)v;
2834 return SWIG_OK;
2835 }
2836
2837
2838 SWIGINTERN int
2839 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2840 {
2841 unsigned long v;
2842 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2843 if (SWIG_IsOK(res)) {
2844 if ((v > UINT_MAX)) {
2845 return SWIG_OverflowError;
2846 } else {
2847 if (val) *val = static_cast< unsigned int >(v);
2848 }
2849 }
2850 return res;
2851 }
2852
2853 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2854 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2855 wxArrayInt lst;
2856 self->GetSelections(lst);
2857 PyObject *tup = PyTuple_New(lst.GetCount());
2858 for (size_t i=0; i<lst.GetCount(); i++)
2859 {
2860 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2861 }
2862 wxPyEndBlockThreads(blocked);
2863 return tup;
2864 }
2865 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2866 #ifdef __WXMSW__
2867 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2868 self->GetItem(item)->SetTextColour(c);
2869 #endif
2870 }
2871 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2872 #ifdef __WXMSW__
2873 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2874 self->GetItem(item)->SetBackgroundColour(c);
2875 #endif
2876 }
2877 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2878 #ifdef __WXMSW__
2879 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2880 self->GetItem(item)->SetFont(f);
2881 #endif
2882 }
2883 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2884 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2885 self->AppendText(text);
2886 }
2887 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2888 return self->GetValue().Mid(from, to - from);
2889 }
2890 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2891 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2892 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2893 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2894 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2895
2896 SWIGINTERNINLINE PyObject*
2897 SWIG_From_unsigned_SS_long (unsigned long value)
2898 {
2899 return (value > LONG_MAX) ?
2900 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2901 }
2902
2903
2904 SWIGINTERNINLINE PyObject *
2905 SWIG_From_size_t (size_t value)
2906 {
2907 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2908 }
2909
2910
2911 SWIGINTERNINLINE PyObject *
2912 SWIG_From_unsigned_SS_int (unsigned int value)
2913 {
2914 return SWIG_From_unsigned_SS_long (value);
2915 }
2916
2917
2918 #include <wx/slider.h>
2919
2920
2921 static const wxString wxPySliderNameStr(wxSliderNameStr);
2922 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2923
2924 #if !wxUSE_TOGGLEBTN
2925 // implement dummy items for platforms that don't have this class
2926
2927 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2928
2929 class wxToggleButton : public wxControl
2930 {
2931 public:
2932 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2933 const wxPoint&, const wxSize&, long,
2934 const wxValidator&, const wxString&)
2935 { wxPyRaiseNotImplemented(); }
2936
2937 wxToggleButton()
2938 { wxPyRaiseNotImplemented(); }
2939 };
2940 #endif
2941
2942 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2943
2944 SWIGINTERNINLINE int
2945 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2946 {
2947 unsigned long v;
2948 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2949 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2950 return res;
2951 }
2952
2953 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2954 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2955 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2956 if (udata) {
2957 Py_INCREF(udata->m_obj);
2958 return udata->m_obj;
2959 } else {
2960 Py_INCREF(Py_None);
2961 return Py_None;
2962 }
2963 }
2964 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2965 self->SetClientData(new wxPyUserData(clientData));
2966 }
2967 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){
2968 wxPyUserData* udata = NULL;
2969 if (clientData && clientData != Py_None)
2970 udata = new wxPyUserData(clientData);
2971 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2972 shortHelp, longHelp, udata);
2973 }
2974 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){
2975 wxPyUserData* udata = NULL;
2976 if (clientData && clientData != Py_None)
2977 udata = new wxPyUserData(clientData);
2978 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2979 shortHelp, longHelp, udata);
2980 }
2981 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2982 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2983 if (udata) {
2984 Py_INCREF(udata->m_obj);
2985 return udata->m_obj;
2986 } else {
2987 Py_INCREF(Py_None);
2988 return Py_None;
2989 }
2990 }
2991 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
2992 self->SetToolClientData(id, new wxPyUserData(clientData));
2993 }
2994
2995 #include <wx/listctrl.h>
2996
2997 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
2998 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
2999 // Python aware sorting function for wxPyListCtrl
3000 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3001 int retval = 0;
3002 PyObject* func = (PyObject*)funcPtr;
3003 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3004
3005 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3006 PyObject* result = PyEval_CallObject(func, args);
3007 Py_DECREF(args);
3008 if (result) {
3009 retval = PyInt_AsLong(result);
3010 Py_DECREF(result);
3011 }
3012
3013 wxPyEndBlockThreads(blocked);
3014 return retval;
3015 }
3016
3017 // C++ Version of a Python aware class
3018 class wxPyListCtrl : public wxListCtrl {
3019 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3020 public:
3021 wxPyListCtrl() : wxListCtrl() {}
3022 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3023 const wxPoint& pos,
3024 const wxSize& size,
3025 long style,
3026 const wxValidator& validator,
3027 const wxString& name) :
3028 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3029
3030 bool Create(wxWindow* parent, wxWindowID id,
3031 const wxPoint& pos,
3032 const wxSize& size,
3033 long style,
3034 const wxValidator& validator,
3035 const wxString& name) {
3036 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3037 }
3038
3039 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3040 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3041
3042 // use the virtual version to avoid a confusing assert in the base class
3043 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3044 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3045
3046 PYPRIVATE;
3047 };
3048
3049 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3050
3051 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3052 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3053 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3054 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3055
3056
3057 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3058 wxListItem item;
3059 item.SetMask( wxLIST_MASK_STATE |
3060 wxLIST_MASK_TEXT |
3061 wxLIST_MASK_IMAGE |
3062 wxLIST_MASK_DATA |
3063 wxLIST_SET_ITEM |
3064 wxLIST_MASK_WIDTH |
3065 wxLIST_MASK_FORMAT
3066 );
3067 if (self->GetColumn(col, item))
3068 return new wxListItem(item);
3069 else
3070 return NULL;
3071 }
3072 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3073 wxListItem* info = new wxListItem;
3074 info->m_itemId = itemId;
3075 info->m_col = col;
3076 info->m_mask = 0xFFFF;
3077 self->GetItem(*info);
3078 return info;
3079 }
3080 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3081 wxPoint pos;
3082 self->GetItemPosition(item, pos);
3083 return pos;
3084 }
3085 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3086 wxRect rect;
3087 self->GetItemRect(item, rect, code);
3088 return rect;
3089 }
3090 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3091 if (!PyCallable_Check(func))
3092 return false;
3093 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3094 }
3095 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3096
3097 return self;
3098
3099
3100
3101 }
3102
3103 #include <wx/treectrl.h>
3104 #include "wx/wxPython/pytree.h"
3105
3106 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3107 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3108 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3109 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3110 // C++ version of Python aware wxTreeCtrl
3111 class wxPyTreeCtrl : public wxTreeCtrl {
3112 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3113 public:
3114 wxPyTreeCtrl() : wxTreeCtrl() {}
3115 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3116 const wxPoint& pos,
3117 const wxSize& size,
3118 long style,
3119 const wxValidator& validator,
3120 const wxString& name) :
3121 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3122
3123 bool Create(wxWindow *parent, wxWindowID id,
3124 const wxPoint& pos,
3125 const wxSize& size,
3126 long style,
3127 const wxValidator& validator,
3128 const wxString& name) {
3129 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3130 }
3131
3132
3133 int OnCompareItems(const wxTreeItemId& item1,
3134 const wxTreeItemId& item2) {
3135 int rval = 0;
3136 bool found;
3137 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3138 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3139 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3140 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3141 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3142 Py_DECREF(o1);
3143 Py_DECREF(o2);
3144 }
3145 wxPyEndBlockThreads(blocked);
3146 if (! found)
3147 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3148 return rval;
3149 }
3150 PYPRIVATE;
3151 };
3152
3153 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3154
3155
3156 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3157 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3158 if (data == NULL) {
3159 data = new wxPyTreeItemData();
3160 data->SetId(item); // set the id
3161 self->SetItemData(item, data);
3162 }
3163 return data;
3164 }
3165 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3166 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3167 if (data == NULL) {
3168 data = new wxPyTreeItemData();
3169 data->SetId(item); // set the id
3170 self->SetItemData(item, data);
3171 }
3172 return data->GetData();
3173 }
3174 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3175 data->SetId(item); // set the id
3176 self->SetItemData(item, data);
3177 }
3178 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3179 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3180 if (data == NULL) {
3181 data = new wxPyTreeItemData(obj);
3182 data->SetId(item); // set the id
3183 self->SetItemData(item, data);
3184 } else
3185 data->SetData(obj);
3186 }
3187 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3188 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3189 PyObject* rval = PyList_New(0);
3190 wxArrayTreeItemIds array;
3191 size_t num, x;
3192 num = self->GetSelections(array);
3193 for (x=0; x < num; x++) {
3194 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3195 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3196 PyList_Append(rval, item);
3197 Py_DECREF(item);
3198 }
3199 wxPyEndBlockThreads(blocked);
3200 return rval;
3201 }
3202 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3203 void* cookie = 0;
3204 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3205 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3206 PyObject* tup = PyTuple_New(2);
3207 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3208 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3209 wxPyEndBlockThreads(blocked);
3210 return tup;
3211 }
3212 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3213 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3214 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3215 PyObject* tup = PyTuple_New(2);
3216 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3217 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3218 wxPyEndBlockThreads(blocked);
3219 return tup;
3220 }
3221 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3222 wxRect rect;
3223 if (self->GetBoundingRect(item, rect, textOnly)) {
3224 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3225 wxRect* r = new wxRect(rect);
3226 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3227 wxPyEndBlockThreads(blocked);
3228 return val;
3229 }
3230 else
3231 RETURN_NONE();
3232 }
3233 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3234
3235 SWIGINTERNINLINE PyObject*
3236 SWIG_From_bool (bool value)
3237 {
3238 return PyBool_FromLong(value ? 1 : 0);
3239 }
3240
3241 // C++ version of Python aware wxControl
3242 class wxPyControl : public wxControl
3243 {
3244 DECLARE_DYNAMIC_CLASS(wxPyControl)
3245 public:
3246 wxPyControl() : wxControl() {}
3247 wxPyControl(wxWindow* parent, const wxWindowID id,
3248 const wxPoint& pos = wxDefaultPosition,
3249 const wxSize& size = wxDefaultSize,
3250 long style = 0,
3251 const wxValidator& validator=wxDefaultValidator,
3252 const wxString& name = wxPyControlNameStr)
3253 : wxControl(parent, id, pos, size, style, validator, name) {}
3254
3255 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
3256
3257 bool DoEraseBackground(wxDC* dc) {
3258 #ifdef __WXMSW__
3259 return wxWindow::DoEraseBackground(dc->GetHDC());
3260 #else
3261 dc->SetBackground(wxBrush(GetBackgroundColour()));
3262 dc->Clear();
3263 return true;
3264 #endif
3265 }
3266
3267 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3268 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3269 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3270 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3271
3272 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3273 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3274 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3275
3276 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3277 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3278
3279 DEC_PYCALLBACK__(InitDialog);
3280 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3281 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3282 DEC_PYCALLBACK_BOOL_(Validate);
3283
3284 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3285 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3286 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3287
3288 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3289 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3290
3291 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3292 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3293
3294 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3295
3296 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3297
3298 PYPRIVATE;
3299 };
3300
3301 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3302
3303 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3304 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3305 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3306 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3307
3308 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3309 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3310 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3311
3312 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3313 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3314
3315 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3316 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3317 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3318 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3319
3320 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3321 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3322 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3323
3324 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3325 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3326
3327 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3328 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3329
3330 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3331
3332 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3333
3334
3335
3336 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3337
3338 #include <wx/generic/dragimgg.h>
3339
3340 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3341 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3342 wxDateTime rv;
3343 self->GetRange(&rv, NULL);
3344 return rv;
3345 }
3346 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3347 wxDateTime rv;
3348 self->GetRange(NULL, &rv);
3349 return rv;
3350 }
3351
3352 #include <wx/hyperlink.h>
3353
3354 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3355 #ifdef __cplusplus
3356 extern "C" {
3357 #endif
3358 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3359 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3360 return 1;
3361 }
3362
3363
3364 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3365 PyObject *pyobj = 0;
3366
3367 {
3368 #if wxUSE_UNICODE
3369 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3370 #else
3371 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3372 #endif
3373 }
3374 return pyobj;
3375 }
3376
3377
3378 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3379 PyObject *resultobj = 0;
3380 wxWindow *arg1 = (wxWindow *) 0 ;
3381 int arg2 = (int) -1 ;
3382 wxString const &arg3_defvalue = wxPyEmptyString ;
3383 wxString *arg3 = (wxString *) &arg3_defvalue ;
3384 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3385 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3386 wxSize const &arg5_defvalue = wxDefaultSize ;
3387 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3388 long arg6 = (long) 0 ;
3389 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3390 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3391 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3392 wxString *arg8 = (wxString *) &arg8_defvalue ;
3393 wxButton *result = 0 ;
3394 void *argp1 = 0 ;
3395 int res1 = 0 ;
3396 int val2 ;
3397 int ecode2 = 0 ;
3398 bool temp3 = false ;
3399 wxPoint temp4 ;
3400 wxSize temp5 ;
3401 long val6 ;
3402 int ecode6 = 0 ;
3403 void *argp7 = 0 ;
3404 int res7 = 0 ;
3405 bool temp8 = false ;
3406 PyObject * obj0 = 0 ;
3407 PyObject * obj1 = 0 ;
3408 PyObject * obj2 = 0 ;
3409 PyObject * obj3 = 0 ;
3410 PyObject * obj4 = 0 ;
3411 PyObject * obj5 = 0 ;
3412 PyObject * obj6 = 0 ;
3413 PyObject * obj7 = 0 ;
3414 char * kwnames[] = {
3415 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3416 };
3417
3418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3420 if (!SWIG_IsOK(res1)) {
3421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3422 }
3423 arg1 = reinterpret_cast< wxWindow * >(argp1);
3424 if (obj1) {
3425 ecode2 = SWIG_AsVal_int(obj1, &val2);
3426 if (!SWIG_IsOK(ecode2)) {
3427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3428 }
3429 arg2 = static_cast< int >(val2);
3430 }
3431 if (obj2) {
3432 {
3433 arg3 = wxString_in_helper(obj2);
3434 if (arg3 == NULL) SWIG_fail;
3435 temp3 = true;
3436 }
3437 }
3438 if (obj3) {
3439 {
3440 arg4 = &temp4;
3441 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3442 }
3443 }
3444 if (obj4) {
3445 {
3446 arg5 = &temp5;
3447 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3448 }
3449 }
3450 if (obj5) {
3451 ecode6 = SWIG_AsVal_long(obj5, &val6);
3452 if (!SWIG_IsOK(ecode6)) {
3453 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3454 }
3455 arg6 = static_cast< long >(val6);
3456 }
3457 if (obj6) {
3458 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3459 if (!SWIG_IsOK(res7)) {
3460 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3461 }
3462 if (!argp7) {
3463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3464 }
3465 arg7 = reinterpret_cast< wxValidator * >(argp7);
3466 }
3467 if (obj7) {
3468 {
3469 arg8 = wxString_in_helper(obj7);
3470 if (arg8 == NULL) SWIG_fail;
3471 temp8 = true;
3472 }
3473 }
3474 {
3475 if (!wxPyCheckForApp()) SWIG_fail;
3476 PyThreadState* __tstate = wxPyBeginAllowThreads();
3477 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3478 wxPyEndAllowThreads(__tstate);
3479 if (PyErr_Occurred()) SWIG_fail;
3480 }
3481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3482 {
3483 if (temp3)
3484 delete arg3;
3485 }
3486 {
3487 if (temp8)
3488 delete arg8;
3489 }
3490 return resultobj;
3491 fail:
3492 {
3493 if (temp3)
3494 delete arg3;
3495 }
3496 {
3497 if (temp8)
3498 delete arg8;
3499 }
3500 return NULL;
3501 }
3502
3503
3504 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3505 PyObject *resultobj = 0;
3506 wxButton *result = 0 ;
3507
3508 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3509 {
3510 if (!wxPyCheckForApp()) SWIG_fail;
3511 PyThreadState* __tstate = wxPyBeginAllowThreads();
3512 result = (wxButton *)new wxButton();
3513 wxPyEndAllowThreads(__tstate);
3514 if (PyErr_Occurred()) SWIG_fail;
3515 }
3516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3517 return resultobj;
3518 fail:
3519 return NULL;
3520 }
3521
3522
3523 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3524 PyObject *resultobj = 0;
3525 wxButton *arg1 = (wxButton *) 0 ;
3526 wxWindow *arg2 = (wxWindow *) 0 ;
3527 int arg3 = (int) -1 ;
3528 wxString const &arg4_defvalue = wxPyEmptyString ;
3529 wxString *arg4 = (wxString *) &arg4_defvalue ;
3530 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3531 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3532 wxSize const &arg6_defvalue = wxDefaultSize ;
3533 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3534 long arg7 = (long) 0 ;
3535 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3536 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3537 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3538 wxString *arg9 = (wxString *) &arg9_defvalue ;
3539 bool result;
3540 void *argp1 = 0 ;
3541 int res1 = 0 ;
3542 void *argp2 = 0 ;
3543 int res2 = 0 ;
3544 int val3 ;
3545 int ecode3 = 0 ;
3546 bool temp4 = false ;
3547 wxPoint temp5 ;
3548 wxSize temp6 ;
3549 long val7 ;
3550 int ecode7 = 0 ;
3551 void *argp8 = 0 ;
3552 int res8 = 0 ;
3553 bool temp9 = false ;
3554 PyObject * obj0 = 0 ;
3555 PyObject * obj1 = 0 ;
3556 PyObject * obj2 = 0 ;
3557 PyObject * obj3 = 0 ;
3558 PyObject * obj4 = 0 ;
3559 PyObject * obj5 = 0 ;
3560 PyObject * obj6 = 0 ;
3561 PyObject * obj7 = 0 ;
3562 PyObject * obj8 = 0 ;
3563 char * kwnames[] = {
3564 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3565 };
3566
3567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3569 if (!SWIG_IsOK(res1)) {
3570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3571 }
3572 arg1 = reinterpret_cast< wxButton * >(argp1);
3573 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3574 if (!SWIG_IsOK(res2)) {
3575 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3576 }
3577 arg2 = reinterpret_cast< wxWindow * >(argp2);
3578 if (obj2) {
3579 ecode3 = SWIG_AsVal_int(obj2, &val3);
3580 if (!SWIG_IsOK(ecode3)) {
3581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3582 }
3583 arg3 = static_cast< int >(val3);
3584 }
3585 if (obj3) {
3586 {
3587 arg4 = wxString_in_helper(obj3);
3588 if (arg4 == NULL) SWIG_fail;
3589 temp4 = true;
3590 }
3591 }
3592 if (obj4) {
3593 {
3594 arg5 = &temp5;
3595 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3596 }
3597 }
3598 if (obj5) {
3599 {
3600 arg6 = &temp6;
3601 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3602 }
3603 }
3604 if (obj6) {
3605 ecode7 = SWIG_AsVal_long(obj6, &val7);
3606 if (!SWIG_IsOK(ecode7)) {
3607 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3608 }
3609 arg7 = static_cast< long >(val7);
3610 }
3611 if (obj7) {
3612 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3613 if (!SWIG_IsOK(res8)) {
3614 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3615 }
3616 if (!argp8) {
3617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3618 }
3619 arg8 = reinterpret_cast< wxValidator * >(argp8);
3620 }
3621 if (obj8) {
3622 {
3623 arg9 = wxString_in_helper(obj8);
3624 if (arg9 == NULL) SWIG_fail;
3625 temp9 = true;
3626 }
3627 }
3628 {
3629 PyThreadState* __tstate = wxPyBeginAllowThreads();
3630 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3631 wxPyEndAllowThreads(__tstate);
3632 if (PyErr_Occurred()) SWIG_fail;
3633 }
3634 {
3635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3636 }
3637 {
3638 if (temp4)
3639 delete arg4;
3640 }
3641 {
3642 if (temp9)
3643 delete arg9;
3644 }
3645 return resultobj;
3646 fail:
3647 {
3648 if (temp4)
3649 delete arg4;
3650 }
3651 {
3652 if (temp9)
3653 delete arg9;
3654 }
3655 return NULL;
3656 }
3657
3658
3659 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3660 PyObject *resultobj = 0;
3661 wxButton *arg1 = (wxButton *) 0 ;
3662 void *argp1 = 0 ;
3663 int res1 = 0 ;
3664 PyObject *swig_obj[1] ;
3665
3666 if (!args) SWIG_fail;
3667 swig_obj[0] = args;
3668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3669 if (!SWIG_IsOK(res1)) {
3670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3671 }
3672 arg1 = reinterpret_cast< wxButton * >(argp1);
3673 {
3674 PyThreadState* __tstate = wxPyBeginAllowThreads();
3675 (arg1)->SetDefault();
3676 wxPyEndAllowThreads(__tstate);
3677 if (PyErr_Occurred()) SWIG_fail;
3678 }
3679 resultobj = SWIG_Py_Void();
3680 return resultobj;
3681 fail:
3682 return NULL;
3683 }
3684
3685
3686 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3687 PyObject *resultobj = 0;
3688 wxSize result;
3689
3690 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3691 {
3692 PyThreadState* __tstate = wxPyBeginAllowThreads();
3693 result = wxButton::GetDefaultSize();
3694 wxPyEndAllowThreads(__tstate);
3695 if (PyErr_Occurred()) SWIG_fail;
3696 }
3697 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3698 return resultobj;
3699 fail:
3700 return NULL;
3701 }
3702
3703
3704 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3705 PyObject *resultobj = 0;
3706 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3707 SwigValueWrapper<wxVisualAttributes > result;
3708 int val1 ;
3709 int ecode1 = 0 ;
3710 PyObject * obj0 = 0 ;
3711 char * kwnames[] = {
3712 (char *) "variant", NULL
3713 };
3714
3715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3716 if (obj0) {
3717 ecode1 = SWIG_AsVal_int(obj0, &val1);
3718 if (!SWIG_IsOK(ecode1)) {
3719 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3720 }
3721 arg1 = static_cast< wxWindowVariant >(val1);
3722 }
3723 {
3724 if (!wxPyCheckForApp()) SWIG_fail;
3725 PyThreadState* __tstate = wxPyBeginAllowThreads();
3726 result = wxButton::GetClassDefaultAttributes(arg1);
3727 wxPyEndAllowThreads(__tstate);
3728 if (PyErr_Occurred()) SWIG_fail;
3729 }
3730 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3731 return resultobj;
3732 fail:
3733 return NULL;
3734 }
3735
3736
3737 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3738 PyObject *obj;
3739 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3740 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3741 return SWIG_Py_Void();
3742 }
3743
3744 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3745 return SWIG_Python_InitShadowInstance(args);
3746 }
3747
3748 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3749 PyObject *resultobj = 0;
3750 wxWindow *arg1 = (wxWindow *) 0 ;
3751 int arg2 = (int) -1 ;
3752 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3753 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3754 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3755 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3756 wxSize const &arg5_defvalue = wxDefaultSize ;
3757 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3758 long arg6 = (long) wxBU_AUTODRAW ;
3759 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3760 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3761 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3762 wxString *arg8 = (wxString *) &arg8_defvalue ;
3763 wxBitmapButton *result = 0 ;
3764 void *argp1 = 0 ;
3765 int res1 = 0 ;
3766 int val2 ;
3767 int ecode2 = 0 ;
3768 void *argp3 = 0 ;
3769 int res3 = 0 ;
3770 wxPoint temp4 ;
3771 wxSize temp5 ;
3772 long val6 ;
3773 int ecode6 = 0 ;
3774 void *argp7 = 0 ;
3775 int res7 = 0 ;
3776 bool temp8 = false ;
3777 PyObject * obj0 = 0 ;
3778 PyObject * obj1 = 0 ;
3779 PyObject * obj2 = 0 ;
3780 PyObject * obj3 = 0 ;
3781 PyObject * obj4 = 0 ;
3782 PyObject * obj5 = 0 ;
3783 PyObject * obj6 = 0 ;
3784 PyObject * obj7 = 0 ;
3785 char * kwnames[] = {
3786 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3787 };
3788
3789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3791 if (!SWIG_IsOK(res1)) {
3792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3793 }
3794 arg1 = reinterpret_cast< wxWindow * >(argp1);
3795 if (obj1) {
3796 ecode2 = SWIG_AsVal_int(obj1, &val2);
3797 if (!SWIG_IsOK(ecode2)) {
3798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3799 }
3800 arg2 = static_cast< int >(val2);
3801 }
3802 if (obj2) {
3803 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3804 if (!SWIG_IsOK(res3)) {
3805 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3806 }
3807 if (!argp3) {
3808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3809 }
3810 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3811 }
3812 if (obj3) {
3813 {
3814 arg4 = &temp4;
3815 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3816 }
3817 }
3818 if (obj4) {
3819 {
3820 arg5 = &temp5;
3821 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3822 }
3823 }
3824 if (obj5) {
3825 ecode6 = SWIG_AsVal_long(obj5, &val6);
3826 if (!SWIG_IsOK(ecode6)) {
3827 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3828 }
3829 arg6 = static_cast< long >(val6);
3830 }
3831 if (obj6) {
3832 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3833 if (!SWIG_IsOK(res7)) {
3834 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3835 }
3836 if (!argp7) {
3837 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3838 }
3839 arg7 = reinterpret_cast< wxValidator * >(argp7);
3840 }
3841 if (obj7) {
3842 {
3843 arg8 = wxString_in_helper(obj7);
3844 if (arg8 == NULL) SWIG_fail;
3845 temp8 = true;
3846 }
3847 }
3848 {
3849 if (!wxPyCheckForApp()) SWIG_fail;
3850 PyThreadState* __tstate = wxPyBeginAllowThreads();
3851 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3852 wxPyEndAllowThreads(__tstate);
3853 if (PyErr_Occurred()) SWIG_fail;
3854 }
3855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3856 {
3857 if (temp8)
3858 delete arg8;
3859 }
3860 return resultobj;
3861 fail:
3862 {
3863 if (temp8)
3864 delete arg8;
3865 }
3866 return NULL;
3867 }
3868
3869
3870 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3871 PyObject *resultobj = 0;
3872 wxBitmapButton *result = 0 ;
3873
3874 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3875 {
3876 if (!wxPyCheckForApp()) SWIG_fail;
3877 PyThreadState* __tstate = wxPyBeginAllowThreads();
3878 result = (wxBitmapButton *)new wxBitmapButton();
3879 wxPyEndAllowThreads(__tstate);
3880 if (PyErr_Occurred()) SWIG_fail;
3881 }
3882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3883 return resultobj;
3884 fail:
3885 return NULL;
3886 }
3887
3888
3889 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3890 PyObject *resultobj = 0;
3891 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3892 wxWindow *arg2 = (wxWindow *) 0 ;
3893 int arg3 = (int) -1 ;
3894 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3895 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3896 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3897 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3898 wxSize const &arg6_defvalue = wxDefaultSize ;
3899 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3900 long arg7 = (long) wxBU_AUTODRAW ;
3901 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3902 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3903 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3904 wxString *arg9 = (wxString *) &arg9_defvalue ;
3905 bool result;
3906 void *argp1 = 0 ;
3907 int res1 = 0 ;
3908 void *argp2 = 0 ;
3909 int res2 = 0 ;
3910 int val3 ;
3911 int ecode3 = 0 ;
3912 void *argp4 = 0 ;
3913 int res4 = 0 ;
3914 wxPoint temp5 ;
3915 wxSize temp6 ;
3916 long val7 ;
3917 int ecode7 = 0 ;
3918 void *argp8 = 0 ;
3919 int res8 = 0 ;
3920 bool temp9 = false ;
3921 PyObject * obj0 = 0 ;
3922 PyObject * obj1 = 0 ;
3923 PyObject * obj2 = 0 ;
3924 PyObject * obj3 = 0 ;
3925 PyObject * obj4 = 0 ;
3926 PyObject * obj5 = 0 ;
3927 PyObject * obj6 = 0 ;
3928 PyObject * obj7 = 0 ;
3929 PyObject * obj8 = 0 ;
3930 char * kwnames[] = {
3931 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3932 };
3933
3934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3936 if (!SWIG_IsOK(res1)) {
3937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3938 }
3939 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3940 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3941 if (!SWIG_IsOK(res2)) {
3942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3943 }
3944 arg2 = reinterpret_cast< wxWindow * >(argp2);
3945 if (obj2) {
3946 ecode3 = SWIG_AsVal_int(obj2, &val3);
3947 if (!SWIG_IsOK(ecode3)) {
3948 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3949 }
3950 arg3 = static_cast< int >(val3);
3951 }
3952 if (obj3) {
3953 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3954 if (!SWIG_IsOK(res4)) {
3955 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3956 }
3957 if (!argp4) {
3958 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3959 }
3960 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3961 }
3962 if (obj4) {
3963 {
3964 arg5 = &temp5;
3965 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3966 }
3967 }
3968 if (obj5) {
3969 {
3970 arg6 = &temp6;
3971 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3972 }
3973 }
3974 if (obj6) {
3975 ecode7 = SWIG_AsVal_long(obj6, &val7);
3976 if (!SWIG_IsOK(ecode7)) {
3977 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3978 }
3979 arg7 = static_cast< long >(val7);
3980 }
3981 if (obj7) {
3982 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3983 if (!SWIG_IsOK(res8)) {
3984 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3985 }
3986 if (!argp8) {
3987 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3988 }
3989 arg8 = reinterpret_cast< wxValidator * >(argp8);
3990 }
3991 if (obj8) {
3992 {
3993 arg9 = wxString_in_helper(obj8);
3994 if (arg9 == NULL) SWIG_fail;
3995 temp9 = true;
3996 }
3997 }
3998 {
3999 PyThreadState* __tstate = wxPyBeginAllowThreads();
4000 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4001 wxPyEndAllowThreads(__tstate);
4002 if (PyErr_Occurred()) SWIG_fail;
4003 }
4004 {
4005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4006 }
4007 {
4008 if (temp9)
4009 delete arg9;
4010 }
4011 return resultobj;
4012 fail:
4013 {
4014 if (temp9)
4015 delete arg9;
4016 }
4017 return NULL;
4018 }
4019
4020
4021 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4022 PyObject *resultobj = 0;
4023 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4024 wxBitmap result;
4025 void *argp1 = 0 ;
4026 int res1 = 0 ;
4027 PyObject *swig_obj[1] ;
4028
4029 if (!args) SWIG_fail;
4030 swig_obj[0] = args;
4031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4032 if (!SWIG_IsOK(res1)) {
4033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4034 }
4035 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4036 {
4037 PyThreadState* __tstate = wxPyBeginAllowThreads();
4038 result = (arg1)->GetBitmapLabel();
4039 wxPyEndAllowThreads(__tstate);
4040 if (PyErr_Occurred()) SWIG_fail;
4041 }
4042 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4043 return resultobj;
4044 fail:
4045 return NULL;
4046 }
4047
4048
4049 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4050 PyObject *resultobj = 0;
4051 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4052 wxBitmap result;
4053 void *argp1 = 0 ;
4054 int res1 = 0 ;
4055 PyObject *swig_obj[1] ;
4056
4057 if (!args) SWIG_fail;
4058 swig_obj[0] = args;
4059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4060 if (!SWIG_IsOK(res1)) {
4061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4062 }
4063 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4064 {
4065 PyThreadState* __tstate = wxPyBeginAllowThreads();
4066 result = (arg1)->GetBitmapDisabled();
4067 wxPyEndAllowThreads(__tstate);
4068 if (PyErr_Occurred()) SWIG_fail;
4069 }
4070 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4071 return resultobj;
4072 fail:
4073 return NULL;
4074 }
4075
4076
4077 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4078 PyObject *resultobj = 0;
4079 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4080 wxBitmap result;
4081 void *argp1 = 0 ;
4082 int res1 = 0 ;
4083 PyObject *swig_obj[1] ;
4084
4085 if (!args) SWIG_fail;
4086 swig_obj[0] = args;
4087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4088 if (!SWIG_IsOK(res1)) {
4089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4090 }
4091 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4092 {
4093 PyThreadState* __tstate = wxPyBeginAllowThreads();
4094 result = (arg1)->GetBitmapFocus();
4095 wxPyEndAllowThreads(__tstate);
4096 if (PyErr_Occurred()) SWIG_fail;
4097 }
4098 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4099 return resultobj;
4100 fail:
4101 return NULL;
4102 }
4103
4104
4105 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4106 PyObject *resultobj = 0;
4107 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4108 wxBitmap result;
4109 void *argp1 = 0 ;
4110 int res1 = 0 ;
4111 PyObject *swig_obj[1] ;
4112
4113 if (!args) SWIG_fail;
4114 swig_obj[0] = args;
4115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4116 if (!SWIG_IsOK(res1)) {
4117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4118 }
4119 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4120 {
4121 PyThreadState* __tstate = wxPyBeginAllowThreads();
4122 result = (arg1)->GetBitmapSelected();
4123 wxPyEndAllowThreads(__tstate);
4124 if (PyErr_Occurred()) SWIG_fail;
4125 }
4126 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4127 return resultobj;
4128 fail:
4129 return NULL;
4130 }
4131
4132
4133 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4134 PyObject *resultobj = 0;
4135 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4136 wxBitmap result;
4137 void *argp1 = 0 ;
4138 int res1 = 0 ;
4139 PyObject *swig_obj[1] ;
4140
4141 if (!args) SWIG_fail;
4142 swig_obj[0] = args;
4143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4144 if (!SWIG_IsOK(res1)) {
4145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4146 }
4147 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4148 {
4149 PyThreadState* __tstate = wxPyBeginAllowThreads();
4150 result = (arg1)->GetBitmapHover();
4151 wxPyEndAllowThreads(__tstate);
4152 if (PyErr_Occurred()) SWIG_fail;
4153 }
4154 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4155 return resultobj;
4156 fail:
4157 return NULL;
4158 }
4159
4160
4161 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4162 PyObject *resultobj = 0;
4163 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4164 wxBitmap *arg2 = 0 ;
4165 void *argp1 = 0 ;
4166 int res1 = 0 ;
4167 void *argp2 = 0 ;
4168 int res2 = 0 ;
4169 PyObject * obj0 = 0 ;
4170 PyObject * obj1 = 0 ;
4171 char * kwnames[] = {
4172 (char *) "self",(char *) "bitmap", NULL
4173 };
4174
4175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4177 if (!SWIG_IsOK(res1)) {
4178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4179 }
4180 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4181 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4182 if (!SWIG_IsOK(res2)) {
4183 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4184 }
4185 if (!argp2) {
4186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4187 }
4188 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4192 wxPyEndAllowThreads(__tstate);
4193 if (PyErr_Occurred()) SWIG_fail;
4194 }
4195 resultobj = SWIG_Py_Void();
4196 return resultobj;
4197 fail:
4198 return NULL;
4199 }
4200
4201
4202 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4203 PyObject *resultobj = 0;
4204 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4205 wxBitmap *arg2 = 0 ;
4206 void *argp1 = 0 ;
4207 int res1 = 0 ;
4208 void *argp2 = 0 ;
4209 int res2 = 0 ;
4210 PyObject * obj0 = 0 ;
4211 PyObject * obj1 = 0 ;
4212 char * kwnames[] = {
4213 (char *) "self",(char *) "bitmap", NULL
4214 };
4215
4216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4218 if (!SWIG_IsOK(res1)) {
4219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4220 }
4221 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4223 if (!SWIG_IsOK(res2)) {
4224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4225 }
4226 if (!argp2) {
4227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4228 }
4229 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4230 {
4231 PyThreadState* __tstate = wxPyBeginAllowThreads();
4232 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4233 wxPyEndAllowThreads(__tstate);
4234 if (PyErr_Occurred()) SWIG_fail;
4235 }
4236 resultobj = SWIG_Py_Void();
4237 return resultobj;
4238 fail:
4239 return NULL;
4240 }
4241
4242
4243 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4244 PyObject *resultobj = 0;
4245 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4246 wxBitmap *arg2 = 0 ;
4247 void *argp1 = 0 ;
4248 int res1 = 0 ;
4249 void *argp2 = 0 ;
4250 int res2 = 0 ;
4251 PyObject * obj0 = 0 ;
4252 PyObject * obj1 = 0 ;
4253 char * kwnames[] = {
4254 (char *) "self",(char *) "bitmap", NULL
4255 };
4256
4257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4259 if (!SWIG_IsOK(res1)) {
4260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4261 }
4262 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4263 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4264 if (!SWIG_IsOK(res2)) {
4265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4266 }
4267 if (!argp2) {
4268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4269 }
4270 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4271 {
4272 PyThreadState* __tstate = wxPyBeginAllowThreads();
4273 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4274 wxPyEndAllowThreads(__tstate);
4275 if (PyErr_Occurred()) SWIG_fail;
4276 }
4277 resultobj = SWIG_Py_Void();
4278 return resultobj;
4279 fail:
4280 return NULL;
4281 }
4282
4283
4284 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4285 PyObject *resultobj = 0;
4286 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4287 wxBitmap *arg2 = 0 ;
4288 void *argp1 = 0 ;
4289 int res1 = 0 ;
4290 void *argp2 = 0 ;
4291 int res2 = 0 ;
4292 PyObject * obj0 = 0 ;
4293 PyObject * obj1 = 0 ;
4294 char * kwnames[] = {
4295 (char *) "self",(char *) "bitmap", NULL
4296 };
4297
4298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4300 if (!SWIG_IsOK(res1)) {
4301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4302 }
4303 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4304 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4305 if (!SWIG_IsOK(res2)) {
4306 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4307 }
4308 if (!argp2) {
4309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4310 }
4311 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4312 {
4313 PyThreadState* __tstate = wxPyBeginAllowThreads();
4314 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4315 wxPyEndAllowThreads(__tstate);
4316 if (PyErr_Occurred()) SWIG_fail;
4317 }
4318 resultobj = SWIG_Py_Void();
4319 return resultobj;
4320 fail:
4321 return NULL;
4322 }
4323
4324
4325 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4326 PyObject *resultobj = 0;
4327 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4328 wxBitmap *arg2 = 0 ;
4329 void *argp1 = 0 ;
4330 int res1 = 0 ;
4331 void *argp2 = 0 ;
4332 int res2 = 0 ;
4333 PyObject * obj0 = 0 ;
4334 PyObject * obj1 = 0 ;
4335 char * kwnames[] = {
4336 (char *) "self",(char *) "hover", NULL
4337 };
4338
4339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4341 if (!SWIG_IsOK(res1)) {
4342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4343 }
4344 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4345 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4346 if (!SWIG_IsOK(res2)) {
4347 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4348 }
4349 if (!argp2) {
4350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4351 }
4352 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4353 {
4354 PyThreadState* __tstate = wxPyBeginAllowThreads();
4355 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4356 wxPyEndAllowThreads(__tstate);
4357 if (PyErr_Occurred()) SWIG_fail;
4358 }
4359 resultobj = SWIG_Py_Void();
4360 return resultobj;
4361 fail:
4362 return NULL;
4363 }
4364
4365
4366 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4367 PyObject *resultobj = 0;
4368 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4369 int arg2 ;
4370 int arg3 ;
4371 void *argp1 = 0 ;
4372 int res1 = 0 ;
4373 int val2 ;
4374 int ecode2 = 0 ;
4375 int val3 ;
4376 int ecode3 = 0 ;
4377 PyObject * obj0 = 0 ;
4378 PyObject * obj1 = 0 ;
4379 PyObject * obj2 = 0 ;
4380 char * kwnames[] = {
4381 (char *) "self",(char *) "x",(char *) "y", NULL
4382 };
4383
4384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4386 if (!SWIG_IsOK(res1)) {
4387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4388 }
4389 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4390 ecode2 = SWIG_AsVal_int(obj1, &val2);
4391 if (!SWIG_IsOK(ecode2)) {
4392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4393 }
4394 arg2 = static_cast< int >(val2);
4395 ecode3 = SWIG_AsVal_int(obj2, &val3);
4396 if (!SWIG_IsOK(ecode3)) {
4397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4398 }
4399 arg3 = static_cast< int >(val3);
4400 {
4401 PyThreadState* __tstate = wxPyBeginAllowThreads();
4402 (arg1)->SetMargins(arg2,arg3);
4403 wxPyEndAllowThreads(__tstate);
4404 if (PyErr_Occurred()) SWIG_fail;
4405 }
4406 resultobj = SWIG_Py_Void();
4407 return resultobj;
4408 fail:
4409 return NULL;
4410 }
4411
4412
4413 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4414 PyObject *resultobj = 0;
4415 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4416 int result;
4417 void *argp1 = 0 ;
4418 int res1 = 0 ;
4419 PyObject *swig_obj[1] ;
4420
4421 if (!args) SWIG_fail;
4422 swig_obj[0] = args;
4423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4424 if (!SWIG_IsOK(res1)) {
4425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4426 }
4427 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4428 {
4429 PyThreadState* __tstate = wxPyBeginAllowThreads();
4430 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4431 wxPyEndAllowThreads(__tstate);
4432 if (PyErr_Occurred()) SWIG_fail;
4433 }
4434 resultobj = SWIG_From_int(static_cast< int >(result));
4435 return resultobj;
4436 fail:
4437 return NULL;
4438 }
4439
4440
4441 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4442 PyObject *resultobj = 0;
4443 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4444 int result;
4445 void *argp1 = 0 ;
4446 int res1 = 0 ;
4447 PyObject *swig_obj[1] ;
4448
4449 if (!args) SWIG_fail;
4450 swig_obj[0] = args;
4451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4452 if (!SWIG_IsOK(res1)) {
4453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4454 }
4455 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4456 {
4457 PyThreadState* __tstate = wxPyBeginAllowThreads();
4458 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4459 wxPyEndAllowThreads(__tstate);
4460 if (PyErr_Occurred()) SWIG_fail;
4461 }
4462 resultobj = SWIG_From_int(static_cast< int >(result));
4463 return resultobj;
4464 fail:
4465 return NULL;
4466 }
4467
4468
4469 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4470 PyObject *obj;
4471 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4472 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4473 return SWIG_Py_Void();
4474 }
4475
4476 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4477 return SWIG_Python_InitShadowInstance(args);
4478 }
4479
4480 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4481 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4482 return 1;
4483 }
4484
4485
4486 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4487 PyObject *pyobj = 0;
4488
4489 {
4490 #if wxUSE_UNICODE
4491 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4492 #else
4493 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4494 #endif
4495 }
4496 return pyobj;
4497 }
4498
4499
4500 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4501 PyObject *resultobj = 0;
4502 wxWindow *arg1 = (wxWindow *) 0 ;
4503 int arg2 = (int) -1 ;
4504 wxString const &arg3_defvalue = wxPyEmptyString ;
4505 wxString *arg3 = (wxString *) &arg3_defvalue ;
4506 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4507 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4508 wxSize const &arg5_defvalue = wxDefaultSize ;
4509 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4510 long arg6 = (long) 0 ;
4511 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4512 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4513 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4514 wxString *arg8 = (wxString *) &arg8_defvalue ;
4515 wxCheckBox *result = 0 ;
4516 void *argp1 = 0 ;
4517 int res1 = 0 ;
4518 int val2 ;
4519 int ecode2 = 0 ;
4520 bool temp3 = false ;
4521 wxPoint temp4 ;
4522 wxSize temp5 ;
4523 long val6 ;
4524 int ecode6 = 0 ;
4525 void *argp7 = 0 ;
4526 int res7 = 0 ;
4527 bool temp8 = false ;
4528 PyObject * obj0 = 0 ;
4529 PyObject * obj1 = 0 ;
4530 PyObject * obj2 = 0 ;
4531 PyObject * obj3 = 0 ;
4532 PyObject * obj4 = 0 ;
4533 PyObject * obj5 = 0 ;
4534 PyObject * obj6 = 0 ;
4535 PyObject * obj7 = 0 ;
4536 char * kwnames[] = {
4537 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4538 };
4539
4540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4542 if (!SWIG_IsOK(res1)) {
4543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4544 }
4545 arg1 = reinterpret_cast< wxWindow * >(argp1);
4546 if (obj1) {
4547 ecode2 = SWIG_AsVal_int(obj1, &val2);
4548 if (!SWIG_IsOK(ecode2)) {
4549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4550 }
4551 arg2 = static_cast< int >(val2);
4552 }
4553 if (obj2) {
4554 {
4555 arg3 = wxString_in_helper(obj2);
4556 if (arg3 == NULL) SWIG_fail;
4557 temp3 = true;
4558 }
4559 }
4560 if (obj3) {
4561 {
4562 arg4 = &temp4;
4563 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4564 }
4565 }
4566 if (obj4) {
4567 {
4568 arg5 = &temp5;
4569 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4570 }
4571 }
4572 if (obj5) {
4573 ecode6 = SWIG_AsVal_long(obj5, &val6);
4574 if (!SWIG_IsOK(ecode6)) {
4575 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4576 }
4577 arg6 = static_cast< long >(val6);
4578 }
4579 if (obj6) {
4580 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4581 if (!SWIG_IsOK(res7)) {
4582 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4583 }
4584 if (!argp7) {
4585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4586 }
4587 arg7 = reinterpret_cast< wxValidator * >(argp7);
4588 }
4589 if (obj7) {
4590 {
4591 arg8 = wxString_in_helper(obj7);
4592 if (arg8 == NULL) SWIG_fail;
4593 temp8 = true;
4594 }
4595 }
4596 {
4597 if (!wxPyCheckForApp()) SWIG_fail;
4598 PyThreadState* __tstate = wxPyBeginAllowThreads();
4599 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4600 wxPyEndAllowThreads(__tstate);
4601 if (PyErr_Occurred()) SWIG_fail;
4602 }
4603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4604 {
4605 if (temp3)
4606 delete arg3;
4607 }
4608 {
4609 if (temp8)
4610 delete arg8;
4611 }
4612 return resultobj;
4613 fail:
4614 {
4615 if (temp3)
4616 delete arg3;
4617 }
4618 {
4619 if (temp8)
4620 delete arg8;
4621 }
4622 return NULL;
4623 }
4624
4625
4626 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4627 PyObject *resultobj = 0;
4628 wxCheckBox *result = 0 ;
4629
4630 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4631 {
4632 if (!wxPyCheckForApp()) SWIG_fail;
4633 PyThreadState* __tstate = wxPyBeginAllowThreads();
4634 result = (wxCheckBox *)new wxCheckBox();
4635 wxPyEndAllowThreads(__tstate);
4636 if (PyErr_Occurred()) SWIG_fail;
4637 }
4638 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4639 return resultobj;
4640 fail:
4641 return NULL;
4642 }
4643
4644
4645 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4646 PyObject *resultobj = 0;
4647 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4648 wxWindow *arg2 = (wxWindow *) 0 ;
4649 int arg3 = (int) -1 ;
4650 wxString const &arg4_defvalue = wxPyEmptyString ;
4651 wxString *arg4 = (wxString *) &arg4_defvalue ;
4652 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4653 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4654 wxSize const &arg6_defvalue = wxDefaultSize ;
4655 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4656 long arg7 = (long) 0 ;
4657 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4658 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4659 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4660 wxString *arg9 = (wxString *) &arg9_defvalue ;
4661 bool result;
4662 void *argp1 = 0 ;
4663 int res1 = 0 ;
4664 void *argp2 = 0 ;
4665 int res2 = 0 ;
4666 int val3 ;
4667 int ecode3 = 0 ;
4668 bool temp4 = false ;
4669 wxPoint temp5 ;
4670 wxSize temp6 ;
4671 long val7 ;
4672 int ecode7 = 0 ;
4673 void *argp8 = 0 ;
4674 int res8 = 0 ;
4675 bool temp9 = false ;
4676 PyObject * obj0 = 0 ;
4677 PyObject * obj1 = 0 ;
4678 PyObject * obj2 = 0 ;
4679 PyObject * obj3 = 0 ;
4680 PyObject * obj4 = 0 ;
4681 PyObject * obj5 = 0 ;
4682 PyObject * obj6 = 0 ;
4683 PyObject * obj7 = 0 ;
4684 PyObject * obj8 = 0 ;
4685 char * kwnames[] = {
4686 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4687 };
4688
4689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4691 if (!SWIG_IsOK(res1)) {
4692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4693 }
4694 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4695 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4696 if (!SWIG_IsOK(res2)) {
4697 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4698 }
4699 arg2 = reinterpret_cast< wxWindow * >(argp2);
4700 if (obj2) {
4701 ecode3 = SWIG_AsVal_int(obj2, &val3);
4702 if (!SWIG_IsOK(ecode3)) {
4703 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4704 }
4705 arg3 = static_cast< int >(val3);
4706 }
4707 if (obj3) {
4708 {
4709 arg4 = wxString_in_helper(obj3);
4710 if (arg4 == NULL) SWIG_fail;
4711 temp4 = true;
4712 }
4713 }
4714 if (obj4) {
4715 {
4716 arg5 = &temp5;
4717 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4718 }
4719 }
4720 if (obj5) {
4721 {
4722 arg6 = &temp6;
4723 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4724 }
4725 }
4726 if (obj6) {
4727 ecode7 = SWIG_AsVal_long(obj6, &val7);
4728 if (!SWIG_IsOK(ecode7)) {
4729 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4730 }
4731 arg7 = static_cast< long >(val7);
4732 }
4733 if (obj7) {
4734 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4735 if (!SWIG_IsOK(res8)) {
4736 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4737 }
4738 if (!argp8) {
4739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4740 }
4741 arg8 = reinterpret_cast< wxValidator * >(argp8);
4742 }
4743 if (obj8) {
4744 {
4745 arg9 = wxString_in_helper(obj8);
4746 if (arg9 == NULL) SWIG_fail;
4747 temp9 = true;
4748 }
4749 }
4750 {
4751 PyThreadState* __tstate = wxPyBeginAllowThreads();
4752 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4753 wxPyEndAllowThreads(__tstate);
4754 if (PyErr_Occurred()) SWIG_fail;
4755 }
4756 {
4757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4758 }
4759 {
4760 if (temp4)
4761 delete arg4;
4762 }
4763 {
4764 if (temp9)
4765 delete arg9;
4766 }
4767 return resultobj;
4768 fail:
4769 {
4770 if (temp4)
4771 delete arg4;
4772 }
4773 {
4774 if (temp9)
4775 delete arg9;
4776 }
4777 return NULL;
4778 }
4779
4780
4781 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4782 PyObject *resultobj = 0;
4783 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4784 bool result;
4785 void *argp1 = 0 ;
4786 int res1 = 0 ;
4787 PyObject *swig_obj[1] ;
4788
4789 if (!args) SWIG_fail;
4790 swig_obj[0] = args;
4791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4792 if (!SWIG_IsOK(res1)) {
4793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4794 }
4795 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4796 {
4797 PyThreadState* __tstate = wxPyBeginAllowThreads();
4798 result = (bool)(arg1)->GetValue();
4799 wxPyEndAllowThreads(__tstate);
4800 if (PyErr_Occurred()) SWIG_fail;
4801 }
4802 {
4803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4804 }
4805 return resultobj;
4806 fail:
4807 return NULL;
4808 }
4809
4810
4811 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4812 PyObject *resultobj = 0;
4813 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4814 bool result;
4815 void *argp1 = 0 ;
4816 int res1 = 0 ;
4817 PyObject *swig_obj[1] ;
4818
4819 if (!args) SWIG_fail;
4820 swig_obj[0] = args;
4821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4822 if (!SWIG_IsOK(res1)) {
4823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4824 }
4825 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4826 {
4827 PyThreadState* __tstate = wxPyBeginAllowThreads();
4828 result = (bool)(arg1)->IsChecked();
4829 wxPyEndAllowThreads(__tstate);
4830 if (PyErr_Occurred()) SWIG_fail;
4831 }
4832 {
4833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4834 }
4835 return resultobj;
4836 fail:
4837 return NULL;
4838 }
4839
4840
4841 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4842 PyObject *resultobj = 0;
4843 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4844 bool arg2 ;
4845 void *argp1 = 0 ;
4846 int res1 = 0 ;
4847 bool val2 ;
4848 int ecode2 = 0 ;
4849 PyObject * obj0 = 0 ;
4850 PyObject * obj1 = 0 ;
4851 char * kwnames[] = {
4852 (char *) "self",(char *) "state", NULL
4853 };
4854
4855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4857 if (!SWIG_IsOK(res1)) {
4858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4859 }
4860 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4861 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4862 if (!SWIG_IsOK(ecode2)) {
4863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4864 }
4865 arg2 = static_cast< bool >(val2);
4866 {
4867 PyThreadState* __tstate = wxPyBeginAllowThreads();
4868 (arg1)->SetValue(arg2);
4869 wxPyEndAllowThreads(__tstate);
4870 if (PyErr_Occurred()) SWIG_fail;
4871 }
4872 resultobj = SWIG_Py_Void();
4873 return resultobj;
4874 fail:
4875 return NULL;
4876 }
4877
4878
4879 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4880 PyObject *resultobj = 0;
4881 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4882 wxCheckBoxState result;
4883 void *argp1 = 0 ;
4884 int res1 = 0 ;
4885 PyObject *swig_obj[1] ;
4886
4887 if (!args) SWIG_fail;
4888 swig_obj[0] = args;
4889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4890 if (!SWIG_IsOK(res1)) {
4891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4892 }
4893 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4894 {
4895 PyThreadState* __tstate = wxPyBeginAllowThreads();
4896 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4897 wxPyEndAllowThreads(__tstate);
4898 if (PyErr_Occurred()) SWIG_fail;
4899 }
4900 resultobj = SWIG_From_int(static_cast< int >(result));
4901 return resultobj;
4902 fail:
4903 return NULL;
4904 }
4905
4906
4907 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4908 PyObject *resultobj = 0;
4909 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4910 wxCheckBoxState arg2 ;
4911 void *argp1 = 0 ;
4912 int res1 = 0 ;
4913 int val2 ;
4914 int ecode2 = 0 ;
4915 PyObject * obj0 = 0 ;
4916 PyObject * obj1 = 0 ;
4917 char * kwnames[] = {
4918 (char *) "self",(char *) "state", NULL
4919 };
4920
4921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4923 if (!SWIG_IsOK(res1)) {
4924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4925 }
4926 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4927 ecode2 = SWIG_AsVal_int(obj1, &val2);
4928 if (!SWIG_IsOK(ecode2)) {
4929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4930 }
4931 arg2 = static_cast< wxCheckBoxState >(val2);
4932 {
4933 PyThreadState* __tstate = wxPyBeginAllowThreads();
4934 (arg1)->Set3StateValue(arg2);
4935 wxPyEndAllowThreads(__tstate);
4936 if (PyErr_Occurred()) SWIG_fail;
4937 }
4938 resultobj = SWIG_Py_Void();
4939 return resultobj;
4940 fail:
4941 return NULL;
4942 }
4943
4944
4945 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4946 PyObject *resultobj = 0;
4947 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4948 bool result;
4949 void *argp1 = 0 ;
4950 int res1 = 0 ;
4951 PyObject *swig_obj[1] ;
4952
4953 if (!args) SWIG_fail;
4954 swig_obj[0] = args;
4955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4956 if (!SWIG_IsOK(res1)) {
4957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4958 }
4959 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4960 {
4961 PyThreadState* __tstate = wxPyBeginAllowThreads();
4962 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4963 wxPyEndAllowThreads(__tstate);
4964 if (PyErr_Occurred()) SWIG_fail;
4965 }
4966 {
4967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4968 }
4969 return resultobj;
4970 fail:
4971 return NULL;
4972 }
4973
4974
4975 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4976 PyObject *resultobj = 0;
4977 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4978 bool result;
4979 void *argp1 = 0 ;
4980 int res1 = 0 ;
4981 PyObject *swig_obj[1] ;
4982
4983 if (!args) SWIG_fail;
4984 swig_obj[0] = args;
4985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4986 if (!SWIG_IsOK(res1)) {
4987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4988 }
4989 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4990 {
4991 PyThreadState* __tstate = wxPyBeginAllowThreads();
4992 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
4993 wxPyEndAllowThreads(__tstate);
4994 if (PyErr_Occurred()) SWIG_fail;
4995 }
4996 {
4997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4998 }
4999 return resultobj;
5000 fail:
5001 return NULL;
5002 }
5003
5004
5005 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5006 PyObject *resultobj = 0;
5007 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5008 SwigValueWrapper<wxVisualAttributes > result;
5009 int val1 ;
5010 int ecode1 = 0 ;
5011 PyObject * obj0 = 0 ;
5012 char * kwnames[] = {
5013 (char *) "variant", NULL
5014 };
5015
5016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5017 if (obj0) {
5018 ecode1 = SWIG_AsVal_int(obj0, &val1);
5019 if (!SWIG_IsOK(ecode1)) {
5020 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5021 }
5022 arg1 = static_cast< wxWindowVariant >(val1);
5023 }
5024 {
5025 if (!wxPyCheckForApp()) SWIG_fail;
5026 PyThreadState* __tstate = wxPyBeginAllowThreads();
5027 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5028 wxPyEndAllowThreads(__tstate);
5029 if (PyErr_Occurred()) SWIG_fail;
5030 }
5031 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5032 return resultobj;
5033 fail:
5034 return NULL;
5035 }
5036
5037
5038 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5039 PyObject *obj;
5040 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5041 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5042 return SWIG_Py_Void();
5043 }
5044
5045 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5046 return SWIG_Python_InitShadowInstance(args);
5047 }
5048
5049 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5050 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5051 return 1;
5052 }
5053
5054
5055 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5056 PyObject *pyobj = 0;
5057
5058 {
5059 #if wxUSE_UNICODE
5060 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5061 #else
5062 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5063 #endif
5064 }
5065 return pyobj;
5066 }
5067
5068
5069 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5070 PyObject *resultobj = 0;
5071 wxWindow *arg1 = (wxWindow *) 0 ;
5072 int arg2 = (int) -1 ;
5073 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5074 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5075 wxSize const &arg4_defvalue = wxDefaultSize ;
5076 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5077 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5078 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5079 long arg6 = (long) 0 ;
5080 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5081 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5082 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5083 wxString *arg8 = (wxString *) &arg8_defvalue ;
5084 wxChoice *result = 0 ;
5085 void *argp1 = 0 ;
5086 int res1 = 0 ;
5087 int val2 ;
5088 int ecode2 = 0 ;
5089 wxPoint temp3 ;
5090 wxSize temp4 ;
5091 bool temp5 = false ;
5092 long val6 ;
5093 int ecode6 = 0 ;
5094 void *argp7 = 0 ;
5095 int res7 = 0 ;
5096 bool temp8 = false ;
5097 PyObject * obj0 = 0 ;
5098 PyObject * obj1 = 0 ;
5099 PyObject * obj2 = 0 ;
5100 PyObject * obj3 = 0 ;
5101 PyObject * obj4 = 0 ;
5102 PyObject * obj5 = 0 ;
5103 PyObject * obj6 = 0 ;
5104 PyObject * obj7 = 0 ;
5105 char * kwnames[] = {
5106 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5107 };
5108
5109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5111 if (!SWIG_IsOK(res1)) {
5112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5113 }
5114 arg1 = reinterpret_cast< wxWindow * >(argp1);
5115 if (obj1) {
5116 ecode2 = SWIG_AsVal_int(obj1, &val2);
5117 if (!SWIG_IsOK(ecode2)) {
5118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5119 }
5120 arg2 = static_cast< int >(val2);
5121 }
5122 if (obj2) {
5123 {
5124 arg3 = &temp3;
5125 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5126 }
5127 }
5128 if (obj3) {
5129 {
5130 arg4 = &temp4;
5131 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5132 }
5133 }
5134 if (obj4) {
5135 {
5136 if (! PySequence_Check(obj4)) {
5137 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5138 SWIG_fail;
5139 }
5140 arg5 = new wxArrayString;
5141 temp5 = true;
5142 int i, len=PySequence_Length(obj4);
5143 for (i=0; i<len; i++) {
5144 PyObject* item = PySequence_GetItem(obj4, i);
5145 wxString* s = wxString_in_helper(item);
5146 if (PyErr_Occurred()) SWIG_fail;
5147 arg5->Add(*s);
5148 delete s;
5149 Py_DECREF(item);
5150 }
5151 }
5152 }
5153 if (obj5) {
5154 ecode6 = SWIG_AsVal_long(obj5, &val6);
5155 if (!SWIG_IsOK(ecode6)) {
5156 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5157 }
5158 arg6 = static_cast< long >(val6);
5159 }
5160 if (obj6) {
5161 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5162 if (!SWIG_IsOK(res7)) {
5163 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5164 }
5165 if (!argp7) {
5166 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5167 }
5168 arg7 = reinterpret_cast< wxValidator * >(argp7);
5169 }
5170 if (obj7) {
5171 {
5172 arg8 = wxString_in_helper(obj7);
5173 if (arg8 == NULL) SWIG_fail;
5174 temp8 = true;
5175 }
5176 }
5177 {
5178 if (!wxPyCheckForApp()) SWIG_fail;
5179 PyThreadState* __tstate = wxPyBeginAllowThreads();
5180 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5181 wxPyEndAllowThreads(__tstate);
5182 if (PyErr_Occurred()) SWIG_fail;
5183 }
5184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5185 {
5186 if (temp5) delete arg5;
5187 }
5188 {
5189 if (temp8)
5190 delete arg8;
5191 }
5192 return resultobj;
5193 fail:
5194 {
5195 if (temp5) delete arg5;
5196 }
5197 {
5198 if (temp8)
5199 delete arg8;
5200 }
5201 return NULL;
5202 }
5203
5204
5205 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5206 PyObject *resultobj = 0;
5207 wxChoice *result = 0 ;
5208
5209 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5210 {
5211 if (!wxPyCheckForApp()) SWIG_fail;
5212 PyThreadState* __tstate = wxPyBeginAllowThreads();
5213 result = (wxChoice *)new wxChoice();
5214 wxPyEndAllowThreads(__tstate);
5215 if (PyErr_Occurred()) SWIG_fail;
5216 }
5217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5218 return resultobj;
5219 fail:
5220 return NULL;
5221 }
5222
5223
5224 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5225 PyObject *resultobj = 0;
5226 wxChoice *arg1 = (wxChoice *) 0 ;
5227 wxWindow *arg2 = (wxWindow *) 0 ;
5228 int arg3 = (int) -1 ;
5229 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5230 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5231 wxSize const &arg5_defvalue = wxDefaultSize ;
5232 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5233 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5234 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5235 long arg7 = (long) 0 ;
5236 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5237 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5238 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5239 wxString *arg9 = (wxString *) &arg9_defvalue ;
5240 bool result;
5241 void *argp1 = 0 ;
5242 int res1 = 0 ;
5243 void *argp2 = 0 ;
5244 int res2 = 0 ;
5245 int val3 ;
5246 int ecode3 = 0 ;
5247 wxPoint temp4 ;
5248 wxSize temp5 ;
5249 bool temp6 = false ;
5250 long val7 ;
5251 int ecode7 = 0 ;
5252 void *argp8 = 0 ;
5253 int res8 = 0 ;
5254 bool temp9 = false ;
5255 PyObject * obj0 = 0 ;
5256 PyObject * obj1 = 0 ;
5257 PyObject * obj2 = 0 ;
5258 PyObject * obj3 = 0 ;
5259 PyObject * obj4 = 0 ;
5260 PyObject * obj5 = 0 ;
5261 PyObject * obj6 = 0 ;
5262 PyObject * obj7 = 0 ;
5263 PyObject * obj8 = 0 ;
5264 char * kwnames[] = {
5265 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5266 };
5267
5268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5270 if (!SWIG_IsOK(res1)) {
5271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5272 }
5273 arg1 = reinterpret_cast< wxChoice * >(argp1);
5274 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5275 if (!SWIG_IsOK(res2)) {
5276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5277 }
5278 arg2 = reinterpret_cast< wxWindow * >(argp2);
5279 if (obj2) {
5280 ecode3 = SWIG_AsVal_int(obj2, &val3);
5281 if (!SWIG_IsOK(ecode3)) {
5282 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5283 }
5284 arg3 = static_cast< int >(val3);
5285 }
5286 if (obj3) {
5287 {
5288 arg4 = &temp4;
5289 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5290 }
5291 }
5292 if (obj4) {
5293 {
5294 arg5 = &temp5;
5295 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5296 }
5297 }
5298 if (obj5) {
5299 {
5300 if (! PySequence_Check(obj5)) {
5301 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5302 SWIG_fail;
5303 }
5304 arg6 = new wxArrayString;
5305 temp6 = true;
5306 int i, len=PySequence_Length(obj5);
5307 for (i=0; i<len; i++) {
5308 PyObject* item = PySequence_GetItem(obj5, i);
5309 wxString* s = wxString_in_helper(item);
5310 if (PyErr_Occurred()) SWIG_fail;
5311 arg6->Add(*s);
5312 delete s;
5313 Py_DECREF(item);
5314 }
5315 }
5316 }
5317 if (obj6) {
5318 ecode7 = SWIG_AsVal_long(obj6, &val7);
5319 if (!SWIG_IsOK(ecode7)) {
5320 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5321 }
5322 arg7 = static_cast< long >(val7);
5323 }
5324 if (obj7) {
5325 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5326 if (!SWIG_IsOK(res8)) {
5327 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5328 }
5329 if (!argp8) {
5330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5331 }
5332 arg8 = reinterpret_cast< wxValidator * >(argp8);
5333 }
5334 if (obj8) {
5335 {
5336 arg9 = wxString_in_helper(obj8);
5337 if (arg9 == NULL) SWIG_fail;
5338 temp9 = true;
5339 }
5340 }
5341 {
5342 PyThreadState* __tstate = wxPyBeginAllowThreads();
5343 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5344 wxPyEndAllowThreads(__tstate);
5345 if (PyErr_Occurred()) SWIG_fail;
5346 }
5347 {
5348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5349 }
5350 {
5351 if (temp6) delete arg6;
5352 }
5353 {
5354 if (temp9)
5355 delete arg9;
5356 }
5357 return resultobj;
5358 fail:
5359 {
5360 if (temp6) delete arg6;
5361 }
5362 {
5363 if (temp9)
5364 delete arg9;
5365 }
5366 return NULL;
5367 }
5368
5369
5370 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5371 PyObject *resultobj = 0;
5372 wxChoice *arg1 = (wxChoice *) 0 ;
5373 int result;
5374 void *argp1 = 0 ;
5375 int res1 = 0 ;
5376 PyObject *swig_obj[1] ;
5377
5378 if (!args) SWIG_fail;
5379 swig_obj[0] = args;
5380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5381 if (!SWIG_IsOK(res1)) {
5382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5383 }
5384 arg1 = reinterpret_cast< wxChoice * >(argp1);
5385 {
5386 PyThreadState* __tstate = wxPyBeginAllowThreads();
5387 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5388 wxPyEndAllowThreads(__tstate);
5389 if (PyErr_Occurred()) SWIG_fail;
5390 }
5391 resultobj = SWIG_From_int(static_cast< int >(result));
5392 return resultobj;
5393 fail:
5394 return NULL;
5395 }
5396
5397
5398 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5399 PyObject *resultobj = 0;
5400 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5401 SwigValueWrapper<wxVisualAttributes > result;
5402 int val1 ;
5403 int ecode1 = 0 ;
5404 PyObject * obj0 = 0 ;
5405 char * kwnames[] = {
5406 (char *) "variant", NULL
5407 };
5408
5409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5410 if (obj0) {
5411 ecode1 = SWIG_AsVal_int(obj0, &val1);
5412 if (!SWIG_IsOK(ecode1)) {
5413 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5414 }
5415 arg1 = static_cast< wxWindowVariant >(val1);
5416 }
5417 {
5418 if (!wxPyCheckForApp()) SWIG_fail;
5419 PyThreadState* __tstate = wxPyBeginAllowThreads();
5420 result = wxChoice::GetClassDefaultAttributes(arg1);
5421 wxPyEndAllowThreads(__tstate);
5422 if (PyErr_Occurred()) SWIG_fail;
5423 }
5424 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5425 return resultobj;
5426 fail:
5427 return NULL;
5428 }
5429
5430
5431 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5432 PyObject *obj;
5433 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5434 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5435 return SWIG_Py_Void();
5436 }
5437
5438 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5439 return SWIG_Python_InitShadowInstance(args);
5440 }
5441
5442 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5443 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5444 return 1;
5445 }
5446
5447
5448 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5449 PyObject *pyobj = 0;
5450
5451 {
5452 #if wxUSE_UNICODE
5453 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5454 #else
5455 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5456 #endif
5457 }
5458 return pyobj;
5459 }
5460
5461
5462 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5463 PyObject *resultobj = 0;
5464 wxWindow *arg1 = (wxWindow *) 0 ;
5465 int arg2 = (int) -1 ;
5466 wxString const &arg3_defvalue = wxPyEmptyString ;
5467 wxString *arg3 = (wxString *) &arg3_defvalue ;
5468 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5469 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5470 wxSize const &arg5_defvalue = wxDefaultSize ;
5471 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5472 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5473 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5474 long arg7 = (long) 0 ;
5475 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5476 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5477 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5478 wxString *arg9 = (wxString *) &arg9_defvalue ;
5479 wxComboBox *result = 0 ;
5480 void *argp1 = 0 ;
5481 int res1 = 0 ;
5482 int val2 ;
5483 int ecode2 = 0 ;
5484 bool temp3 = false ;
5485 wxPoint temp4 ;
5486 wxSize temp5 ;
5487 bool temp6 = false ;
5488 long val7 ;
5489 int ecode7 = 0 ;
5490 void *argp8 = 0 ;
5491 int res8 = 0 ;
5492 bool temp9 = false ;
5493 PyObject * obj0 = 0 ;
5494 PyObject * obj1 = 0 ;
5495 PyObject * obj2 = 0 ;
5496 PyObject * obj3 = 0 ;
5497 PyObject * obj4 = 0 ;
5498 PyObject * obj5 = 0 ;
5499 PyObject * obj6 = 0 ;
5500 PyObject * obj7 = 0 ;
5501 PyObject * obj8 = 0 ;
5502 char * kwnames[] = {
5503 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5504 };
5505
5506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5508 if (!SWIG_IsOK(res1)) {
5509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5510 }
5511 arg1 = reinterpret_cast< wxWindow * >(argp1);
5512 if (obj1) {
5513 ecode2 = SWIG_AsVal_int(obj1, &val2);
5514 if (!SWIG_IsOK(ecode2)) {
5515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5516 }
5517 arg2 = static_cast< int >(val2);
5518 }
5519 if (obj2) {
5520 {
5521 arg3 = wxString_in_helper(obj2);
5522 if (arg3 == NULL) SWIG_fail;
5523 temp3 = true;
5524 }
5525 }
5526 if (obj3) {
5527 {
5528 arg4 = &temp4;
5529 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5530 }
5531 }
5532 if (obj4) {
5533 {
5534 arg5 = &temp5;
5535 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5536 }
5537 }
5538 if (obj5) {
5539 {
5540 if (! PySequence_Check(obj5)) {
5541 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5542 SWIG_fail;
5543 }
5544 arg6 = new wxArrayString;
5545 temp6 = true;
5546 int i, len=PySequence_Length(obj5);
5547 for (i=0; i<len; i++) {
5548 PyObject* item = PySequence_GetItem(obj5, i);
5549 wxString* s = wxString_in_helper(item);
5550 if (PyErr_Occurred()) SWIG_fail;
5551 arg6->Add(*s);
5552 delete s;
5553 Py_DECREF(item);
5554 }
5555 }
5556 }
5557 if (obj6) {
5558 ecode7 = SWIG_AsVal_long(obj6, &val7);
5559 if (!SWIG_IsOK(ecode7)) {
5560 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5561 }
5562 arg7 = static_cast< long >(val7);
5563 }
5564 if (obj7) {
5565 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5566 if (!SWIG_IsOK(res8)) {
5567 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5568 }
5569 if (!argp8) {
5570 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5571 }
5572 arg8 = reinterpret_cast< wxValidator * >(argp8);
5573 }
5574 if (obj8) {
5575 {
5576 arg9 = wxString_in_helper(obj8);
5577 if (arg9 == NULL) SWIG_fail;
5578 temp9 = true;
5579 }
5580 }
5581 {
5582 if (!wxPyCheckForApp()) SWIG_fail;
5583 PyThreadState* __tstate = wxPyBeginAllowThreads();
5584 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);
5585 wxPyEndAllowThreads(__tstate);
5586 if (PyErr_Occurred()) SWIG_fail;
5587 }
5588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5589 {
5590 if (temp3)
5591 delete arg3;
5592 }
5593 {
5594 if (temp6) delete arg6;
5595 }
5596 {
5597 if (temp9)
5598 delete arg9;
5599 }
5600 return resultobj;
5601 fail:
5602 {
5603 if (temp3)
5604 delete arg3;
5605 }
5606 {
5607 if (temp6) delete arg6;
5608 }
5609 {
5610 if (temp9)
5611 delete arg9;
5612 }
5613 return NULL;
5614 }
5615
5616
5617 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5618 PyObject *resultobj = 0;
5619 wxComboBox *result = 0 ;
5620
5621 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5622 {
5623 if (!wxPyCheckForApp()) SWIG_fail;
5624 PyThreadState* __tstate = wxPyBeginAllowThreads();
5625 result = (wxComboBox *)new wxComboBox();
5626 wxPyEndAllowThreads(__tstate);
5627 if (PyErr_Occurred()) SWIG_fail;
5628 }
5629 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5630 return resultobj;
5631 fail:
5632 return NULL;
5633 }
5634
5635
5636 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5637 PyObject *resultobj = 0;
5638 wxComboBox *arg1 = (wxComboBox *) 0 ;
5639 wxWindow *arg2 = (wxWindow *) 0 ;
5640 int arg3 = (int) -1 ;
5641 wxString const &arg4_defvalue = wxPyEmptyString ;
5642 wxString *arg4 = (wxString *) &arg4_defvalue ;
5643 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5644 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5645 wxSize const &arg6_defvalue = wxDefaultSize ;
5646 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5647 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5648 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5649 long arg8 = (long) 0 ;
5650 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5651 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5652 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5653 wxString *arg10 = (wxString *) &arg10_defvalue ;
5654 bool result;
5655 void *argp1 = 0 ;
5656 int res1 = 0 ;
5657 void *argp2 = 0 ;
5658 int res2 = 0 ;
5659 int val3 ;
5660 int ecode3 = 0 ;
5661 bool temp4 = false ;
5662 wxPoint temp5 ;
5663 wxSize temp6 ;
5664 bool temp7 = false ;
5665 long val8 ;
5666 int ecode8 = 0 ;
5667 void *argp9 = 0 ;
5668 int res9 = 0 ;
5669 bool temp10 = false ;
5670 PyObject * obj0 = 0 ;
5671 PyObject * obj1 = 0 ;
5672 PyObject * obj2 = 0 ;
5673 PyObject * obj3 = 0 ;
5674 PyObject * obj4 = 0 ;
5675 PyObject * obj5 = 0 ;
5676 PyObject * obj6 = 0 ;
5677 PyObject * obj7 = 0 ;
5678 PyObject * obj8 = 0 ;
5679 PyObject * obj9 = 0 ;
5680 char * kwnames[] = {
5681 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5682 };
5683
5684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5686 if (!SWIG_IsOK(res1)) {
5687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5688 }
5689 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5690 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5691 if (!SWIG_IsOK(res2)) {
5692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5693 }
5694 arg2 = reinterpret_cast< wxWindow * >(argp2);
5695 if (obj2) {
5696 ecode3 = SWIG_AsVal_int(obj2, &val3);
5697 if (!SWIG_IsOK(ecode3)) {
5698 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5699 }
5700 arg3 = static_cast< int >(val3);
5701 }
5702 if (obj3) {
5703 {
5704 arg4 = wxString_in_helper(obj3);
5705 if (arg4 == NULL) SWIG_fail;
5706 temp4 = true;
5707 }
5708 }
5709 if (obj4) {
5710 {
5711 arg5 = &temp5;
5712 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5713 }
5714 }
5715 if (obj5) {
5716 {
5717 arg6 = &temp6;
5718 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5719 }
5720 }
5721 if (obj6) {
5722 {
5723 if (! PySequence_Check(obj6)) {
5724 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5725 SWIG_fail;
5726 }
5727 arg7 = new wxArrayString;
5728 temp7 = true;
5729 int i, len=PySequence_Length(obj6);
5730 for (i=0; i<len; i++) {
5731 PyObject* item = PySequence_GetItem(obj6, i);
5732 wxString* s = wxString_in_helper(item);
5733 if (PyErr_Occurred()) SWIG_fail;
5734 arg7->Add(*s);
5735 delete s;
5736 Py_DECREF(item);
5737 }
5738 }
5739 }
5740 if (obj7) {
5741 ecode8 = SWIG_AsVal_long(obj7, &val8);
5742 if (!SWIG_IsOK(ecode8)) {
5743 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5744 }
5745 arg8 = static_cast< long >(val8);
5746 }
5747 if (obj8) {
5748 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5749 if (!SWIG_IsOK(res9)) {
5750 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5751 }
5752 if (!argp9) {
5753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5754 }
5755 arg9 = reinterpret_cast< wxValidator * >(argp9);
5756 }
5757 if (obj9) {
5758 {
5759 arg10 = wxString_in_helper(obj9);
5760 if (arg10 == NULL) SWIG_fail;
5761 temp10 = true;
5762 }
5763 }
5764 {
5765 PyThreadState* __tstate = wxPyBeginAllowThreads();
5766 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);
5767 wxPyEndAllowThreads(__tstate);
5768 if (PyErr_Occurred()) SWIG_fail;
5769 }
5770 {
5771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5772 }
5773 {
5774 if (temp4)
5775 delete arg4;
5776 }
5777 {
5778 if (temp7) delete arg7;
5779 }
5780 {
5781 if (temp10)
5782 delete arg10;
5783 }
5784 return resultobj;
5785 fail:
5786 {
5787 if (temp4)
5788 delete arg4;
5789 }
5790 {
5791 if (temp7) delete arg7;
5792 }
5793 {
5794 if (temp10)
5795 delete arg10;
5796 }
5797 return NULL;
5798 }
5799
5800
5801 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5802 PyObject *resultobj = 0;
5803 wxComboBox *arg1 = (wxComboBox *) 0 ;
5804 wxString result;
5805 void *argp1 = 0 ;
5806 int res1 = 0 ;
5807 PyObject *swig_obj[1] ;
5808
5809 if (!args) SWIG_fail;
5810 swig_obj[0] = args;
5811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5812 if (!SWIG_IsOK(res1)) {
5813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5814 }
5815 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5816 {
5817 PyThreadState* __tstate = wxPyBeginAllowThreads();
5818 result = ((wxComboBox const *)arg1)->GetValue();
5819 wxPyEndAllowThreads(__tstate);
5820 if (PyErr_Occurred()) SWIG_fail;
5821 }
5822 {
5823 #if wxUSE_UNICODE
5824 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5825 #else
5826 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5827 #endif
5828 }
5829 return resultobj;
5830 fail:
5831 return NULL;
5832 }
5833
5834
5835 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5836 PyObject *resultobj = 0;
5837 wxComboBox *arg1 = (wxComboBox *) 0 ;
5838 wxString *arg2 = 0 ;
5839 void *argp1 = 0 ;
5840 int res1 = 0 ;
5841 bool temp2 = false ;
5842 PyObject * obj0 = 0 ;
5843 PyObject * obj1 = 0 ;
5844 char * kwnames[] = {
5845 (char *) "self",(char *) "value", NULL
5846 };
5847
5848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5850 if (!SWIG_IsOK(res1)) {
5851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5852 }
5853 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5854 {
5855 arg2 = wxString_in_helper(obj1);
5856 if (arg2 == NULL) SWIG_fail;
5857 temp2 = true;
5858 }
5859 {
5860 PyThreadState* __tstate = wxPyBeginAllowThreads();
5861 (arg1)->SetValue((wxString const &)*arg2);
5862 wxPyEndAllowThreads(__tstate);
5863 if (PyErr_Occurred()) SWIG_fail;
5864 }
5865 resultobj = SWIG_Py_Void();
5866 {
5867 if (temp2)
5868 delete arg2;
5869 }
5870 return resultobj;
5871 fail:
5872 {
5873 if (temp2)
5874 delete arg2;
5875 }
5876 return NULL;
5877 }
5878
5879
5880 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5881 PyObject *resultobj = 0;
5882 wxComboBox *arg1 = (wxComboBox *) 0 ;
5883 void *argp1 = 0 ;
5884 int res1 = 0 ;
5885 PyObject *swig_obj[1] ;
5886
5887 if (!args) SWIG_fail;
5888 swig_obj[0] = args;
5889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5890 if (!SWIG_IsOK(res1)) {
5891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5892 }
5893 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5894 {
5895 PyThreadState* __tstate = wxPyBeginAllowThreads();
5896 (arg1)->Copy();
5897 wxPyEndAllowThreads(__tstate);
5898 if (PyErr_Occurred()) SWIG_fail;
5899 }
5900 resultobj = SWIG_Py_Void();
5901 return resultobj;
5902 fail:
5903 return NULL;
5904 }
5905
5906
5907 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5908 PyObject *resultobj = 0;
5909 wxComboBox *arg1 = (wxComboBox *) 0 ;
5910 void *argp1 = 0 ;
5911 int res1 = 0 ;
5912 PyObject *swig_obj[1] ;
5913
5914 if (!args) SWIG_fail;
5915 swig_obj[0] = args;
5916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5917 if (!SWIG_IsOK(res1)) {
5918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5919 }
5920 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5921 {
5922 PyThreadState* __tstate = wxPyBeginAllowThreads();
5923 (arg1)->Cut();
5924 wxPyEndAllowThreads(__tstate);
5925 if (PyErr_Occurred()) SWIG_fail;
5926 }
5927 resultobj = SWIG_Py_Void();
5928 return resultobj;
5929 fail:
5930 return NULL;
5931 }
5932
5933
5934 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5935 PyObject *resultobj = 0;
5936 wxComboBox *arg1 = (wxComboBox *) 0 ;
5937 void *argp1 = 0 ;
5938 int res1 = 0 ;
5939 PyObject *swig_obj[1] ;
5940
5941 if (!args) SWIG_fail;
5942 swig_obj[0] = args;
5943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5944 if (!SWIG_IsOK(res1)) {
5945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5946 }
5947 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5948 {
5949 PyThreadState* __tstate = wxPyBeginAllowThreads();
5950 (arg1)->Paste();
5951 wxPyEndAllowThreads(__tstate);
5952 if (PyErr_Occurred()) SWIG_fail;
5953 }
5954 resultobj = SWIG_Py_Void();
5955 return resultobj;
5956 fail:
5957 return NULL;
5958 }
5959
5960
5961 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5962 PyObject *resultobj = 0;
5963 wxComboBox *arg1 = (wxComboBox *) 0 ;
5964 long arg2 ;
5965 void *argp1 = 0 ;
5966 int res1 = 0 ;
5967 long val2 ;
5968 int ecode2 = 0 ;
5969 PyObject * obj0 = 0 ;
5970 PyObject * obj1 = 0 ;
5971 char * kwnames[] = {
5972 (char *) "self",(char *) "pos", NULL
5973 };
5974
5975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5977 if (!SWIG_IsOK(res1)) {
5978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5979 }
5980 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5981 ecode2 = SWIG_AsVal_long(obj1, &val2);
5982 if (!SWIG_IsOK(ecode2)) {
5983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
5984 }
5985 arg2 = static_cast< long >(val2);
5986 {
5987 PyThreadState* __tstate = wxPyBeginAllowThreads();
5988 (arg1)->SetInsertionPoint(arg2);
5989 wxPyEndAllowThreads(__tstate);
5990 if (PyErr_Occurred()) SWIG_fail;
5991 }
5992 resultobj = SWIG_Py_Void();
5993 return resultobj;
5994 fail:
5995 return NULL;
5996 }
5997
5998
5999 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6000 PyObject *resultobj = 0;
6001 wxComboBox *arg1 = (wxComboBox *) 0 ;
6002 long result;
6003 void *argp1 = 0 ;
6004 int res1 = 0 ;
6005 PyObject *swig_obj[1] ;
6006
6007 if (!args) SWIG_fail;
6008 swig_obj[0] = args;
6009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6010 if (!SWIG_IsOK(res1)) {
6011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6012 }
6013 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6014 {
6015 PyThreadState* __tstate = wxPyBeginAllowThreads();
6016 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6017 wxPyEndAllowThreads(__tstate);
6018 if (PyErr_Occurred()) SWIG_fail;
6019 }
6020 resultobj = SWIG_From_long(static_cast< long >(result));
6021 return resultobj;
6022 fail:
6023 return NULL;
6024 }
6025
6026
6027 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6028 PyObject *resultobj = 0;
6029 wxComboBox *arg1 = (wxComboBox *) 0 ;
6030 long result;
6031 void *argp1 = 0 ;
6032 int res1 = 0 ;
6033 PyObject *swig_obj[1] ;
6034
6035 if (!args) SWIG_fail;
6036 swig_obj[0] = args;
6037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6038 if (!SWIG_IsOK(res1)) {
6039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6040 }
6041 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6042 {
6043 PyThreadState* __tstate = wxPyBeginAllowThreads();
6044 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6045 wxPyEndAllowThreads(__tstate);
6046 if (PyErr_Occurred()) SWIG_fail;
6047 }
6048 resultobj = SWIG_From_long(static_cast< long >(result));
6049 return resultobj;
6050 fail:
6051 return NULL;
6052 }
6053
6054
6055 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6056 PyObject *resultobj = 0;
6057 wxComboBox *arg1 = (wxComboBox *) 0 ;
6058 long arg2 ;
6059 long arg3 ;
6060 wxString *arg4 = 0 ;
6061 void *argp1 = 0 ;
6062 int res1 = 0 ;
6063 long val2 ;
6064 int ecode2 = 0 ;
6065 long val3 ;
6066 int ecode3 = 0 ;
6067 bool temp4 = false ;
6068 PyObject * obj0 = 0 ;
6069 PyObject * obj1 = 0 ;
6070 PyObject * obj2 = 0 ;
6071 PyObject * obj3 = 0 ;
6072 char * kwnames[] = {
6073 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6074 };
6075
6076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6078 if (!SWIG_IsOK(res1)) {
6079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6080 }
6081 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6082 ecode2 = SWIG_AsVal_long(obj1, &val2);
6083 if (!SWIG_IsOK(ecode2)) {
6084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6085 }
6086 arg2 = static_cast< long >(val2);
6087 ecode3 = SWIG_AsVal_long(obj2, &val3);
6088 if (!SWIG_IsOK(ecode3)) {
6089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6090 }
6091 arg3 = static_cast< long >(val3);
6092 {
6093 arg4 = wxString_in_helper(obj3);
6094 if (arg4 == NULL) SWIG_fail;
6095 temp4 = true;
6096 }
6097 {
6098 PyThreadState* __tstate = wxPyBeginAllowThreads();
6099 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6100 wxPyEndAllowThreads(__tstate);
6101 if (PyErr_Occurred()) SWIG_fail;
6102 }
6103 resultobj = SWIG_Py_Void();
6104 {
6105 if (temp4)
6106 delete arg4;
6107 }
6108 return resultobj;
6109 fail:
6110 {
6111 if (temp4)
6112 delete arg4;
6113 }
6114 return NULL;
6115 }
6116
6117
6118 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6119 PyObject *resultobj = 0;
6120 wxComboBox *arg1 = (wxComboBox *) 0 ;
6121 long arg2 ;
6122 long arg3 ;
6123 void *argp1 = 0 ;
6124 int res1 = 0 ;
6125 long val2 ;
6126 int ecode2 = 0 ;
6127 long val3 ;
6128 int ecode3 = 0 ;
6129 PyObject * obj0 = 0 ;
6130 PyObject * obj1 = 0 ;
6131 PyObject * obj2 = 0 ;
6132 char * kwnames[] = {
6133 (char *) "self",(char *) "from",(char *) "to", NULL
6134 };
6135
6136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6138 if (!SWIG_IsOK(res1)) {
6139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6140 }
6141 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6142 ecode2 = SWIG_AsVal_long(obj1, &val2);
6143 if (!SWIG_IsOK(ecode2)) {
6144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6145 }
6146 arg2 = static_cast< long >(val2);
6147 ecode3 = SWIG_AsVal_long(obj2, &val3);
6148 if (!SWIG_IsOK(ecode3)) {
6149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6150 }
6151 arg3 = static_cast< long >(val3);
6152 {
6153 PyThreadState* __tstate = wxPyBeginAllowThreads();
6154 (arg1)->SetSelection(arg2,arg3);
6155 wxPyEndAllowThreads(__tstate);
6156 if (PyErr_Occurred()) SWIG_fail;
6157 }
6158 resultobj = SWIG_Py_Void();
6159 return resultobj;
6160 fail:
6161 return NULL;
6162 }
6163
6164
6165 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6166 PyObject *resultobj = 0;
6167 wxComboBox *arg1 = (wxComboBox *) 0 ;
6168 long *arg2 = (long *) 0 ;
6169 long *arg3 = (long *) 0 ;
6170 void *argp1 = 0 ;
6171 int res1 = 0 ;
6172 long temp2 ;
6173 int res2 = SWIG_TMPOBJ ;
6174 long temp3 ;
6175 int res3 = SWIG_TMPOBJ ;
6176 PyObject *swig_obj[1] ;
6177
6178 arg2 = &temp2;
6179 arg3 = &temp3;
6180 if (!args) SWIG_fail;
6181 swig_obj[0] = args;
6182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6183 if (!SWIG_IsOK(res1)) {
6184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6185 }
6186 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6187 {
6188 PyThreadState* __tstate = wxPyBeginAllowThreads();
6189 (arg1)->GetSelection(arg2,arg3);
6190 wxPyEndAllowThreads(__tstate);
6191 if (PyErr_Occurred()) SWIG_fail;
6192 }
6193 resultobj = SWIG_Py_Void();
6194 if (SWIG_IsTmpObj(res2)) {
6195 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6196 } else {
6197 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6198 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6199 }
6200 if (SWIG_IsTmpObj(res3)) {
6201 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6202 } else {
6203 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6204 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6205 }
6206 return resultobj;
6207 fail:
6208 return NULL;
6209 }
6210
6211
6212 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6213 PyObject *resultobj = 0;
6214 wxComboBox *arg1 = (wxComboBox *) 0 ;
6215 int result;
6216 void *argp1 = 0 ;
6217 int res1 = 0 ;
6218 PyObject *swig_obj[1] ;
6219
6220 if (!args) SWIG_fail;
6221 swig_obj[0] = args;
6222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6223 if (!SWIG_IsOK(res1)) {
6224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6225 }
6226 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6227 {
6228 PyThreadState* __tstate = wxPyBeginAllowThreads();
6229 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6230 wxPyEndAllowThreads(__tstate);
6231 if (PyErr_Occurred()) SWIG_fail;
6232 }
6233 resultobj = SWIG_From_int(static_cast< int >(result));
6234 return resultobj;
6235 fail:
6236 return NULL;
6237 }
6238
6239
6240 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6241 PyObject *resultobj = 0;
6242 wxComboBox *arg1 = (wxComboBox *) 0 ;
6243 wxString *arg2 = 0 ;
6244 bool result;
6245 void *argp1 = 0 ;
6246 int res1 = 0 ;
6247 bool temp2 = false ;
6248 PyObject * obj0 = 0 ;
6249 PyObject * obj1 = 0 ;
6250 char * kwnames[] = {
6251 (char *) "self",(char *) "string", NULL
6252 };
6253
6254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6256 if (!SWIG_IsOK(res1)) {
6257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6258 }
6259 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6260 {
6261 arg2 = wxString_in_helper(obj1);
6262 if (arg2 == NULL) SWIG_fail;
6263 temp2 = true;
6264 }
6265 {
6266 PyThreadState* __tstate = wxPyBeginAllowThreads();
6267 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6268 wxPyEndAllowThreads(__tstate);
6269 if (PyErr_Occurred()) SWIG_fail;
6270 }
6271 {
6272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6273 }
6274 {
6275 if (temp2)
6276 delete arg2;
6277 }
6278 return resultobj;
6279 fail:
6280 {
6281 if (temp2)
6282 delete arg2;
6283 }
6284 return NULL;
6285 }
6286
6287
6288 SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6289 PyObject *resultobj = 0;
6290 wxComboBox *arg1 = (wxComboBox *) 0 ;
6291 int arg2 ;
6292 wxString *arg3 = 0 ;
6293 void *argp1 = 0 ;
6294 int res1 = 0 ;
6295 int val2 ;
6296 int ecode2 = 0 ;
6297 bool temp3 = false ;
6298 PyObject * obj0 = 0 ;
6299 PyObject * obj1 = 0 ;
6300 PyObject * obj2 = 0 ;
6301 char * kwnames[] = {
6302 (char *) "self",(char *) "n",(char *) "string", NULL
6303 };
6304
6305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6307 if (!SWIG_IsOK(res1)) {
6308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6309 }
6310 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6311 ecode2 = SWIG_AsVal_int(obj1, &val2);
6312 if (!SWIG_IsOK(ecode2)) {
6313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6314 }
6315 arg2 = static_cast< int >(val2);
6316 {
6317 arg3 = wxString_in_helper(obj2);
6318 if (arg3 == NULL) SWIG_fail;
6319 temp3 = true;
6320 }
6321 {
6322 PyThreadState* __tstate = wxPyBeginAllowThreads();
6323 (arg1)->SetString(arg2,(wxString const &)*arg3);
6324 wxPyEndAllowThreads(__tstate);
6325 if (PyErr_Occurred()) SWIG_fail;
6326 }
6327 resultobj = SWIG_Py_Void();
6328 {
6329 if (temp3)
6330 delete arg3;
6331 }
6332 return resultobj;
6333 fail:
6334 {
6335 if (temp3)
6336 delete arg3;
6337 }
6338 return NULL;
6339 }
6340
6341
6342 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6343 PyObject *resultobj = 0;
6344 wxComboBox *arg1 = (wxComboBox *) 0 ;
6345 bool arg2 ;
6346 void *argp1 = 0 ;
6347 int res1 = 0 ;
6348 bool val2 ;
6349 int ecode2 = 0 ;
6350 PyObject * obj0 = 0 ;
6351 PyObject * obj1 = 0 ;
6352 char * kwnames[] = {
6353 (char *) "self",(char *) "editable", NULL
6354 };
6355
6356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6358 if (!SWIG_IsOK(res1)) {
6359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6360 }
6361 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6362 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6363 if (!SWIG_IsOK(ecode2)) {
6364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6365 }
6366 arg2 = static_cast< bool >(val2);
6367 {
6368 PyThreadState* __tstate = wxPyBeginAllowThreads();
6369 (arg1)->SetEditable(arg2);
6370 wxPyEndAllowThreads(__tstate);
6371 if (PyErr_Occurred()) SWIG_fail;
6372 }
6373 resultobj = SWIG_Py_Void();
6374 return resultobj;
6375 fail:
6376 return NULL;
6377 }
6378
6379
6380 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6381 PyObject *resultobj = 0;
6382 wxComboBox *arg1 = (wxComboBox *) 0 ;
6383 void *argp1 = 0 ;
6384 int res1 = 0 ;
6385 PyObject *swig_obj[1] ;
6386
6387 if (!args) SWIG_fail;
6388 swig_obj[0] = args;
6389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6390 if (!SWIG_IsOK(res1)) {
6391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6392 }
6393 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6394 {
6395 PyThreadState* __tstate = wxPyBeginAllowThreads();
6396 (arg1)->SetInsertionPointEnd();
6397 wxPyEndAllowThreads(__tstate);
6398 if (PyErr_Occurred()) SWIG_fail;
6399 }
6400 resultobj = SWIG_Py_Void();
6401 return resultobj;
6402 fail:
6403 return NULL;
6404 }
6405
6406
6407 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6408 PyObject *resultobj = 0;
6409 wxComboBox *arg1 = (wxComboBox *) 0 ;
6410 long arg2 ;
6411 long arg3 ;
6412 void *argp1 = 0 ;
6413 int res1 = 0 ;
6414 long val2 ;
6415 int ecode2 = 0 ;
6416 long val3 ;
6417 int ecode3 = 0 ;
6418 PyObject * obj0 = 0 ;
6419 PyObject * obj1 = 0 ;
6420 PyObject * obj2 = 0 ;
6421 char * kwnames[] = {
6422 (char *) "self",(char *) "from",(char *) "to", NULL
6423 };
6424
6425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6427 if (!SWIG_IsOK(res1)) {
6428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6429 }
6430 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6431 ecode2 = SWIG_AsVal_long(obj1, &val2);
6432 if (!SWIG_IsOK(ecode2)) {
6433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6434 }
6435 arg2 = static_cast< long >(val2);
6436 ecode3 = SWIG_AsVal_long(obj2, &val3);
6437 if (!SWIG_IsOK(ecode3)) {
6438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6439 }
6440 arg3 = static_cast< long >(val3);
6441 {
6442 PyThreadState* __tstate = wxPyBeginAllowThreads();
6443 (arg1)->Remove(arg2,arg3);
6444 wxPyEndAllowThreads(__tstate);
6445 if (PyErr_Occurred()) SWIG_fail;
6446 }
6447 resultobj = SWIG_Py_Void();
6448 return resultobj;
6449 fail:
6450 return NULL;
6451 }
6452
6453
6454 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6455 PyObject *resultobj = 0;
6456 wxComboBox *arg1 = (wxComboBox *) 0 ;
6457 bool result;
6458 void *argp1 = 0 ;
6459 int res1 = 0 ;
6460 PyObject *swig_obj[1] ;
6461
6462 if (!args) SWIG_fail;
6463 swig_obj[0] = args;
6464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6465 if (!SWIG_IsOK(res1)) {
6466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6467 }
6468 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6469 {
6470 PyThreadState* __tstate = wxPyBeginAllowThreads();
6471 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6472 wxPyEndAllowThreads(__tstate);
6473 if (PyErr_Occurred()) SWIG_fail;
6474 }
6475 {
6476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6477 }
6478 return resultobj;
6479 fail:
6480 return NULL;
6481 }
6482
6483
6484 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6485 PyObject *resultobj = 0;
6486 wxComboBox *arg1 = (wxComboBox *) 0 ;
6487 void *argp1 = 0 ;
6488 int res1 = 0 ;
6489 PyObject *swig_obj[1] ;
6490
6491 if (!args) SWIG_fail;
6492 swig_obj[0] = args;
6493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6494 if (!SWIG_IsOK(res1)) {
6495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6496 }
6497 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6498 {
6499 PyThreadState* __tstate = wxPyBeginAllowThreads();
6500 (arg1)->Undo();
6501 wxPyEndAllowThreads(__tstate);
6502 if (PyErr_Occurred()) SWIG_fail;
6503 }
6504 resultobj = SWIG_Py_Void();
6505 return resultobj;
6506 fail:
6507 return NULL;
6508 }
6509
6510
6511 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6512 PyObject *resultobj = 0;
6513 wxComboBox *arg1 = (wxComboBox *) 0 ;
6514 void *argp1 = 0 ;
6515 int res1 = 0 ;
6516 PyObject *swig_obj[1] ;
6517
6518 if (!args) SWIG_fail;
6519 swig_obj[0] = args;
6520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6521 if (!SWIG_IsOK(res1)) {
6522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6523 }
6524 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6525 {
6526 PyThreadState* __tstate = wxPyBeginAllowThreads();
6527 (arg1)->Redo();
6528 wxPyEndAllowThreads(__tstate);
6529 if (PyErr_Occurred()) SWIG_fail;
6530 }
6531 resultobj = SWIG_Py_Void();
6532 return resultobj;
6533 fail:
6534 return NULL;
6535 }
6536
6537
6538 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6539 PyObject *resultobj = 0;
6540 wxComboBox *arg1 = (wxComboBox *) 0 ;
6541 void *argp1 = 0 ;
6542 int res1 = 0 ;
6543 PyObject *swig_obj[1] ;
6544
6545 if (!args) SWIG_fail;
6546 swig_obj[0] = args;
6547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6548 if (!SWIG_IsOK(res1)) {
6549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6550 }
6551 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6552 {
6553 PyThreadState* __tstate = wxPyBeginAllowThreads();
6554 (arg1)->SelectAll();
6555 wxPyEndAllowThreads(__tstate);
6556 if (PyErr_Occurred()) SWIG_fail;
6557 }
6558 resultobj = SWIG_Py_Void();
6559 return resultobj;
6560 fail:
6561 return NULL;
6562 }
6563
6564
6565 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6566 PyObject *resultobj = 0;
6567 wxComboBox *arg1 = (wxComboBox *) 0 ;
6568 bool result;
6569 void *argp1 = 0 ;
6570 int res1 = 0 ;
6571 PyObject *swig_obj[1] ;
6572
6573 if (!args) SWIG_fail;
6574 swig_obj[0] = args;
6575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6576 if (!SWIG_IsOK(res1)) {
6577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6578 }
6579 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6580 {
6581 PyThreadState* __tstate = wxPyBeginAllowThreads();
6582 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6583 wxPyEndAllowThreads(__tstate);
6584 if (PyErr_Occurred()) SWIG_fail;
6585 }
6586 {
6587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6588 }
6589 return resultobj;
6590 fail:
6591 return NULL;
6592 }
6593
6594
6595 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6596 PyObject *resultobj = 0;
6597 wxComboBox *arg1 = (wxComboBox *) 0 ;
6598 bool result;
6599 void *argp1 = 0 ;
6600 int res1 = 0 ;
6601 PyObject *swig_obj[1] ;
6602
6603 if (!args) SWIG_fail;
6604 swig_obj[0] = args;
6605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6606 if (!SWIG_IsOK(res1)) {
6607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6608 }
6609 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6610 {
6611 PyThreadState* __tstate = wxPyBeginAllowThreads();
6612 result = (bool)((wxComboBox const *)arg1)->CanCut();
6613 wxPyEndAllowThreads(__tstate);
6614 if (PyErr_Occurred()) SWIG_fail;
6615 }
6616 {
6617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6618 }
6619 return resultobj;
6620 fail:
6621 return NULL;
6622 }
6623
6624
6625 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6626 PyObject *resultobj = 0;
6627 wxComboBox *arg1 = (wxComboBox *) 0 ;
6628 bool result;
6629 void *argp1 = 0 ;
6630 int res1 = 0 ;
6631 PyObject *swig_obj[1] ;
6632
6633 if (!args) SWIG_fail;
6634 swig_obj[0] = args;
6635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6636 if (!SWIG_IsOK(res1)) {
6637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6638 }
6639 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6640 {
6641 PyThreadState* __tstate = wxPyBeginAllowThreads();
6642 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6643 wxPyEndAllowThreads(__tstate);
6644 if (PyErr_Occurred()) SWIG_fail;
6645 }
6646 {
6647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6648 }
6649 return resultobj;
6650 fail:
6651 return NULL;
6652 }
6653
6654
6655 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6656 PyObject *resultobj = 0;
6657 wxComboBox *arg1 = (wxComboBox *) 0 ;
6658 bool result;
6659 void *argp1 = 0 ;
6660 int res1 = 0 ;
6661 PyObject *swig_obj[1] ;
6662
6663 if (!args) SWIG_fail;
6664 swig_obj[0] = args;
6665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6666 if (!SWIG_IsOK(res1)) {
6667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6668 }
6669 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6670 {
6671 PyThreadState* __tstate = wxPyBeginAllowThreads();
6672 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6673 wxPyEndAllowThreads(__tstate);
6674 if (PyErr_Occurred()) SWIG_fail;
6675 }
6676 {
6677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6678 }
6679 return resultobj;
6680 fail:
6681 return NULL;
6682 }
6683
6684
6685 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6686 PyObject *resultobj = 0;
6687 wxComboBox *arg1 = (wxComboBox *) 0 ;
6688 bool result;
6689 void *argp1 = 0 ;
6690 int res1 = 0 ;
6691 PyObject *swig_obj[1] ;
6692
6693 if (!args) SWIG_fail;
6694 swig_obj[0] = args;
6695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6696 if (!SWIG_IsOK(res1)) {
6697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6698 }
6699 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6700 {
6701 PyThreadState* __tstate = wxPyBeginAllowThreads();
6702 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6703 wxPyEndAllowThreads(__tstate);
6704 if (PyErr_Occurred()) SWIG_fail;
6705 }
6706 {
6707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6708 }
6709 return resultobj;
6710 fail:
6711 return NULL;
6712 }
6713
6714
6715 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6716 PyObject *resultobj = 0;
6717 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6718 SwigValueWrapper<wxVisualAttributes > result;
6719 int val1 ;
6720 int ecode1 = 0 ;
6721 PyObject * obj0 = 0 ;
6722 char * kwnames[] = {
6723 (char *) "variant", NULL
6724 };
6725
6726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6727 if (obj0) {
6728 ecode1 = SWIG_AsVal_int(obj0, &val1);
6729 if (!SWIG_IsOK(ecode1)) {
6730 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6731 }
6732 arg1 = static_cast< wxWindowVariant >(val1);
6733 }
6734 {
6735 if (!wxPyCheckForApp()) SWIG_fail;
6736 PyThreadState* __tstate = wxPyBeginAllowThreads();
6737 result = wxComboBox::GetClassDefaultAttributes(arg1);
6738 wxPyEndAllowThreads(__tstate);
6739 if (PyErr_Occurred()) SWIG_fail;
6740 }
6741 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6742 return resultobj;
6743 fail:
6744 return NULL;
6745 }
6746
6747
6748 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6749 PyObject *obj;
6750 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6751 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6752 return SWIG_Py_Void();
6753 }
6754
6755 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6756 return SWIG_Python_InitShadowInstance(args);
6757 }
6758
6759 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6760 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6761 return 1;
6762 }
6763
6764
6765 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6766 PyObject *pyobj = 0;
6767
6768 {
6769 #if wxUSE_UNICODE
6770 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6771 #else
6772 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6773 #endif
6774 }
6775 return pyobj;
6776 }
6777
6778
6779 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6780 PyObject *resultobj = 0;
6781 wxWindow *arg1 = (wxWindow *) 0 ;
6782 int arg2 = (int) -1 ;
6783 int arg3 = (int) 100 ;
6784 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6785 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6786 wxSize const &arg5_defvalue = wxDefaultSize ;
6787 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6788 long arg6 = (long) wxGA_HORIZONTAL ;
6789 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6790 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6791 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6792 wxString *arg8 = (wxString *) &arg8_defvalue ;
6793 wxGauge *result = 0 ;
6794 void *argp1 = 0 ;
6795 int res1 = 0 ;
6796 int val2 ;
6797 int ecode2 = 0 ;
6798 int val3 ;
6799 int ecode3 = 0 ;
6800 wxPoint temp4 ;
6801 wxSize temp5 ;
6802 long val6 ;
6803 int ecode6 = 0 ;
6804 void *argp7 = 0 ;
6805 int res7 = 0 ;
6806 bool temp8 = false ;
6807 PyObject * obj0 = 0 ;
6808 PyObject * obj1 = 0 ;
6809 PyObject * obj2 = 0 ;
6810 PyObject * obj3 = 0 ;
6811 PyObject * obj4 = 0 ;
6812 PyObject * obj5 = 0 ;
6813 PyObject * obj6 = 0 ;
6814 PyObject * obj7 = 0 ;
6815 char * kwnames[] = {
6816 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6817 };
6818
6819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6821 if (!SWIG_IsOK(res1)) {
6822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6823 }
6824 arg1 = reinterpret_cast< wxWindow * >(argp1);
6825 if (obj1) {
6826 ecode2 = SWIG_AsVal_int(obj1, &val2);
6827 if (!SWIG_IsOK(ecode2)) {
6828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6829 }
6830 arg2 = static_cast< int >(val2);
6831 }
6832 if (obj2) {
6833 ecode3 = SWIG_AsVal_int(obj2, &val3);
6834 if (!SWIG_IsOK(ecode3)) {
6835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6836 }
6837 arg3 = static_cast< int >(val3);
6838 }
6839 if (obj3) {
6840 {
6841 arg4 = &temp4;
6842 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6843 }
6844 }
6845 if (obj4) {
6846 {
6847 arg5 = &temp5;
6848 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6849 }
6850 }
6851 if (obj5) {
6852 ecode6 = SWIG_AsVal_long(obj5, &val6);
6853 if (!SWIG_IsOK(ecode6)) {
6854 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6855 }
6856 arg6 = static_cast< long >(val6);
6857 }
6858 if (obj6) {
6859 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6860 if (!SWIG_IsOK(res7)) {
6861 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6862 }
6863 if (!argp7) {
6864 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6865 }
6866 arg7 = reinterpret_cast< wxValidator * >(argp7);
6867 }
6868 if (obj7) {
6869 {
6870 arg8 = wxString_in_helper(obj7);
6871 if (arg8 == NULL) SWIG_fail;
6872 temp8 = true;
6873 }
6874 }
6875 {
6876 if (!wxPyCheckForApp()) SWIG_fail;
6877 PyThreadState* __tstate = wxPyBeginAllowThreads();
6878 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6879 wxPyEndAllowThreads(__tstate);
6880 if (PyErr_Occurred()) SWIG_fail;
6881 }
6882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6883 {
6884 if (temp8)
6885 delete arg8;
6886 }
6887 return resultobj;
6888 fail:
6889 {
6890 if (temp8)
6891 delete arg8;
6892 }
6893 return NULL;
6894 }
6895
6896
6897 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6898 PyObject *resultobj = 0;
6899 wxGauge *result = 0 ;
6900
6901 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6902 {
6903 if (!wxPyCheckForApp()) SWIG_fail;
6904 PyThreadState* __tstate = wxPyBeginAllowThreads();
6905 result = (wxGauge *)new wxGauge();
6906 wxPyEndAllowThreads(__tstate);
6907 if (PyErr_Occurred()) SWIG_fail;
6908 }
6909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6910 return resultobj;
6911 fail:
6912 return NULL;
6913 }
6914
6915
6916 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6917 PyObject *resultobj = 0;
6918 wxGauge *arg1 = (wxGauge *) 0 ;
6919 wxWindow *arg2 = (wxWindow *) 0 ;
6920 int arg3 = (int) -1 ;
6921 int arg4 = (int) 100 ;
6922 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6923 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6924 wxSize const &arg6_defvalue = wxDefaultSize ;
6925 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6926 long arg7 = (long) wxGA_HORIZONTAL ;
6927 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6928 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6929 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6930 wxString *arg9 = (wxString *) &arg9_defvalue ;
6931 bool result;
6932 void *argp1 = 0 ;
6933 int res1 = 0 ;
6934 void *argp2 = 0 ;
6935 int res2 = 0 ;
6936 int val3 ;
6937 int ecode3 = 0 ;
6938 int val4 ;
6939 int ecode4 = 0 ;
6940 wxPoint temp5 ;
6941 wxSize temp6 ;
6942 long val7 ;
6943 int ecode7 = 0 ;
6944 void *argp8 = 0 ;
6945 int res8 = 0 ;
6946 bool temp9 = false ;
6947 PyObject * obj0 = 0 ;
6948 PyObject * obj1 = 0 ;
6949 PyObject * obj2 = 0 ;
6950 PyObject * obj3 = 0 ;
6951 PyObject * obj4 = 0 ;
6952 PyObject * obj5 = 0 ;
6953 PyObject * obj6 = 0 ;
6954 PyObject * obj7 = 0 ;
6955 PyObject * obj8 = 0 ;
6956 char * kwnames[] = {
6957 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6958 };
6959
6960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6962 if (!SWIG_IsOK(res1)) {
6963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6964 }
6965 arg1 = reinterpret_cast< wxGauge * >(argp1);
6966 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6967 if (!SWIG_IsOK(res2)) {
6968 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6969 }
6970 arg2 = reinterpret_cast< wxWindow * >(argp2);
6971 if (obj2) {
6972 ecode3 = SWIG_AsVal_int(obj2, &val3);
6973 if (!SWIG_IsOK(ecode3)) {
6974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6975 }
6976 arg3 = static_cast< int >(val3);
6977 }
6978 if (obj3) {
6979 ecode4 = SWIG_AsVal_int(obj3, &val4);
6980 if (!SWIG_IsOK(ecode4)) {
6981 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6982 }
6983 arg4 = static_cast< int >(val4);
6984 }
6985 if (obj4) {
6986 {
6987 arg5 = &temp5;
6988 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6989 }
6990 }
6991 if (obj5) {
6992 {
6993 arg6 = &temp6;
6994 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6995 }
6996 }
6997 if (obj6) {
6998 ecode7 = SWIG_AsVal_long(obj6, &val7);
6999 if (!SWIG_IsOK(ecode7)) {
7000 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7001 }
7002 arg7 = static_cast< long >(val7);
7003 }
7004 if (obj7) {
7005 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7006 if (!SWIG_IsOK(res8)) {
7007 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7008 }
7009 if (!argp8) {
7010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7011 }
7012 arg8 = reinterpret_cast< wxValidator * >(argp8);
7013 }
7014 if (obj8) {
7015 {
7016 arg9 = wxString_in_helper(obj8);
7017 if (arg9 == NULL) SWIG_fail;
7018 temp9 = true;
7019 }
7020 }
7021 {
7022 PyThreadState* __tstate = wxPyBeginAllowThreads();
7023 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7024 wxPyEndAllowThreads(__tstate);
7025 if (PyErr_Occurred()) SWIG_fail;
7026 }
7027 {
7028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7029 }
7030 {
7031 if (temp9)
7032 delete arg9;
7033 }
7034 return resultobj;
7035 fail:
7036 {
7037 if (temp9)
7038 delete arg9;
7039 }
7040 return NULL;
7041 }
7042
7043
7044 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7045 PyObject *resultobj = 0;
7046 wxGauge *arg1 = (wxGauge *) 0 ;
7047 int arg2 ;
7048 void *argp1 = 0 ;
7049 int res1 = 0 ;
7050 int val2 ;
7051 int ecode2 = 0 ;
7052 PyObject * obj0 = 0 ;
7053 PyObject * obj1 = 0 ;
7054 char * kwnames[] = {
7055 (char *) "self",(char *) "range", NULL
7056 };
7057
7058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7060 if (!SWIG_IsOK(res1)) {
7061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7062 }
7063 arg1 = reinterpret_cast< wxGauge * >(argp1);
7064 ecode2 = SWIG_AsVal_int(obj1, &val2);
7065 if (!SWIG_IsOK(ecode2)) {
7066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7067 }
7068 arg2 = static_cast< int >(val2);
7069 {
7070 PyThreadState* __tstate = wxPyBeginAllowThreads();
7071 (arg1)->SetRange(arg2);
7072 wxPyEndAllowThreads(__tstate);
7073 if (PyErr_Occurred()) SWIG_fail;
7074 }
7075 resultobj = SWIG_Py_Void();
7076 return resultobj;
7077 fail:
7078 return NULL;
7079 }
7080
7081
7082 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7083 PyObject *resultobj = 0;
7084 wxGauge *arg1 = (wxGauge *) 0 ;
7085 int result;
7086 void *argp1 = 0 ;
7087 int res1 = 0 ;
7088 PyObject *swig_obj[1] ;
7089
7090 if (!args) SWIG_fail;
7091 swig_obj[0] = args;
7092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7093 if (!SWIG_IsOK(res1)) {
7094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7095 }
7096 arg1 = reinterpret_cast< wxGauge * >(argp1);
7097 {
7098 PyThreadState* __tstate = wxPyBeginAllowThreads();
7099 result = (int)((wxGauge const *)arg1)->GetRange();
7100 wxPyEndAllowThreads(__tstate);
7101 if (PyErr_Occurred()) SWIG_fail;
7102 }
7103 resultobj = SWIG_From_int(static_cast< int >(result));
7104 return resultobj;
7105 fail:
7106 return NULL;
7107 }
7108
7109
7110 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7111 PyObject *resultobj = 0;
7112 wxGauge *arg1 = (wxGauge *) 0 ;
7113 int arg2 ;
7114 void *argp1 = 0 ;
7115 int res1 = 0 ;
7116 int val2 ;
7117 int ecode2 = 0 ;
7118 PyObject * obj0 = 0 ;
7119 PyObject * obj1 = 0 ;
7120 char * kwnames[] = {
7121 (char *) "self",(char *) "pos", NULL
7122 };
7123
7124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7126 if (!SWIG_IsOK(res1)) {
7127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7128 }
7129 arg1 = reinterpret_cast< wxGauge * >(argp1);
7130 ecode2 = SWIG_AsVal_int(obj1, &val2);
7131 if (!SWIG_IsOK(ecode2)) {
7132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7133 }
7134 arg2 = static_cast< int >(val2);
7135 {
7136 PyThreadState* __tstate = wxPyBeginAllowThreads();
7137 (arg1)->SetValue(arg2);
7138 wxPyEndAllowThreads(__tstate);
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 resultobj = SWIG_Py_Void();
7142 return resultobj;
7143 fail:
7144 return NULL;
7145 }
7146
7147
7148 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7149 PyObject *resultobj = 0;
7150 wxGauge *arg1 = (wxGauge *) 0 ;
7151 int result;
7152 void *argp1 = 0 ;
7153 int res1 = 0 ;
7154 PyObject *swig_obj[1] ;
7155
7156 if (!args) SWIG_fail;
7157 swig_obj[0] = args;
7158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7159 if (!SWIG_IsOK(res1)) {
7160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7161 }
7162 arg1 = reinterpret_cast< wxGauge * >(argp1);
7163 {
7164 PyThreadState* __tstate = wxPyBeginAllowThreads();
7165 result = (int)((wxGauge const *)arg1)->GetValue();
7166 wxPyEndAllowThreads(__tstate);
7167 if (PyErr_Occurred()) SWIG_fail;
7168 }
7169 resultobj = SWIG_From_int(static_cast< int >(result));
7170 return resultobj;
7171 fail:
7172 return NULL;
7173 }
7174
7175
7176 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7177 PyObject *resultobj = 0;
7178 wxGauge *arg1 = (wxGauge *) 0 ;
7179 bool result;
7180 void *argp1 = 0 ;
7181 int res1 = 0 ;
7182 PyObject *swig_obj[1] ;
7183
7184 if (!args) SWIG_fail;
7185 swig_obj[0] = args;
7186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7187 if (!SWIG_IsOK(res1)) {
7188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7189 }
7190 arg1 = reinterpret_cast< wxGauge * >(argp1);
7191 {
7192 PyThreadState* __tstate = wxPyBeginAllowThreads();
7193 result = (bool)((wxGauge const *)arg1)->IsVertical();
7194 wxPyEndAllowThreads(__tstate);
7195 if (PyErr_Occurred()) SWIG_fail;
7196 }
7197 {
7198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7199 }
7200 return resultobj;
7201 fail:
7202 return NULL;
7203 }
7204
7205
7206 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7207 PyObject *resultobj = 0;
7208 wxGauge *arg1 = (wxGauge *) 0 ;
7209 int arg2 ;
7210 void *argp1 = 0 ;
7211 int res1 = 0 ;
7212 int val2 ;
7213 int ecode2 = 0 ;
7214 PyObject * obj0 = 0 ;
7215 PyObject * obj1 = 0 ;
7216 char * kwnames[] = {
7217 (char *) "self",(char *) "w", NULL
7218 };
7219
7220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7222 if (!SWIG_IsOK(res1)) {
7223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7224 }
7225 arg1 = reinterpret_cast< wxGauge * >(argp1);
7226 ecode2 = SWIG_AsVal_int(obj1, &val2);
7227 if (!SWIG_IsOK(ecode2)) {
7228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7229 }
7230 arg2 = static_cast< int >(val2);
7231 {
7232 PyThreadState* __tstate = wxPyBeginAllowThreads();
7233 (arg1)->SetShadowWidth(arg2);
7234 wxPyEndAllowThreads(__tstate);
7235 if (PyErr_Occurred()) SWIG_fail;
7236 }
7237 resultobj = SWIG_Py_Void();
7238 return resultobj;
7239 fail:
7240 return NULL;
7241 }
7242
7243
7244 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7245 PyObject *resultobj = 0;
7246 wxGauge *arg1 = (wxGauge *) 0 ;
7247 int result;
7248 void *argp1 = 0 ;
7249 int res1 = 0 ;
7250 PyObject *swig_obj[1] ;
7251
7252 if (!args) SWIG_fail;
7253 swig_obj[0] = args;
7254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7255 if (!SWIG_IsOK(res1)) {
7256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7257 }
7258 arg1 = reinterpret_cast< wxGauge * >(argp1);
7259 {
7260 PyThreadState* __tstate = wxPyBeginAllowThreads();
7261 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7262 wxPyEndAllowThreads(__tstate);
7263 if (PyErr_Occurred()) SWIG_fail;
7264 }
7265 resultobj = SWIG_From_int(static_cast< int >(result));
7266 return resultobj;
7267 fail:
7268 return NULL;
7269 }
7270
7271
7272 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7273 PyObject *resultobj = 0;
7274 wxGauge *arg1 = (wxGauge *) 0 ;
7275 int arg2 ;
7276 void *argp1 = 0 ;
7277 int res1 = 0 ;
7278 int val2 ;
7279 int ecode2 = 0 ;
7280 PyObject * obj0 = 0 ;
7281 PyObject * obj1 = 0 ;
7282 char * kwnames[] = {
7283 (char *) "self",(char *) "w", NULL
7284 };
7285
7286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7288 if (!SWIG_IsOK(res1)) {
7289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7290 }
7291 arg1 = reinterpret_cast< wxGauge * >(argp1);
7292 ecode2 = SWIG_AsVal_int(obj1, &val2);
7293 if (!SWIG_IsOK(ecode2)) {
7294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7295 }
7296 arg2 = static_cast< int >(val2);
7297 {
7298 PyThreadState* __tstate = wxPyBeginAllowThreads();
7299 (arg1)->SetBezelFace(arg2);
7300 wxPyEndAllowThreads(__tstate);
7301 if (PyErr_Occurred()) SWIG_fail;
7302 }
7303 resultobj = SWIG_Py_Void();
7304 return resultobj;
7305 fail:
7306 return NULL;
7307 }
7308
7309
7310 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7311 PyObject *resultobj = 0;
7312 wxGauge *arg1 = (wxGauge *) 0 ;
7313 int result;
7314 void *argp1 = 0 ;
7315 int res1 = 0 ;
7316 PyObject *swig_obj[1] ;
7317
7318 if (!args) SWIG_fail;
7319 swig_obj[0] = args;
7320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7321 if (!SWIG_IsOK(res1)) {
7322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7323 }
7324 arg1 = reinterpret_cast< wxGauge * >(argp1);
7325 {
7326 PyThreadState* __tstate = wxPyBeginAllowThreads();
7327 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7328 wxPyEndAllowThreads(__tstate);
7329 if (PyErr_Occurred()) SWIG_fail;
7330 }
7331 resultobj = SWIG_From_int(static_cast< int >(result));
7332 return resultobj;
7333 fail:
7334 return NULL;
7335 }
7336
7337
7338 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7339 PyObject *resultobj = 0;
7340 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7341 SwigValueWrapper<wxVisualAttributes > result;
7342 int val1 ;
7343 int ecode1 = 0 ;
7344 PyObject * obj0 = 0 ;
7345 char * kwnames[] = {
7346 (char *) "variant", NULL
7347 };
7348
7349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7350 if (obj0) {
7351 ecode1 = SWIG_AsVal_int(obj0, &val1);
7352 if (!SWIG_IsOK(ecode1)) {
7353 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7354 }
7355 arg1 = static_cast< wxWindowVariant >(val1);
7356 }
7357 {
7358 if (!wxPyCheckForApp()) SWIG_fail;
7359 PyThreadState* __tstate = wxPyBeginAllowThreads();
7360 result = wxGauge::GetClassDefaultAttributes(arg1);
7361 wxPyEndAllowThreads(__tstate);
7362 if (PyErr_Occurred()) SWIG_fail;
7363 }
7364 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7365 return resultobj;
7366 fail:
7367 return NULL;
7368 }
7369
7370
7371 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7372 PyObject *obj;
7373 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7374 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7375 return SWIG_Py_Void();
7376 }
7377
7378 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7379 return SWIG_Python_InitShadowInstance(args);
7380 }
7381
7382 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7383 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7384 return 1;
7385 }
7386
7387
7388 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7389 PyObject *pyobj = 0;
7390
7391 {
7392 #if wxUSE_UNICODE
7393 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7394 #else
7395 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7396 #endif
7397 }
7398 return pyobj;
7399 }
7400
7401
7402 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7403 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7404 return 1;
7405 }
7406
7407
7408 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7409 PyObject *pyobj = 0;
7410
7411 {
7412 #if wxUSE_UNICODE
7413 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7414 #else
7415 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7416 #endif
7417 }
7418 return pyobj;
7419 }
7420
7421
7422 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7423 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7424 return 1;
7425 }
7426
7427
7428 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7429 PyObject *pyobj = 0;
7430
7431 {
7432 #if wxUSE_UNICODE
7433 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7434 #else
7435 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7436 #endif
7437 }
7438 return pyobj;
7439 }
7440
7441
7442 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7443 PyObject *resultobj = 0;
7444 wxWindow *arg1 = (wxWindow *) 0 ;
7445 int arg2 = (int) -1 ;
7446 wxString const &arg3_defvalue = wxPyEmptyString ;
7447 wxString *arg3 = (wxString *) &arg3_defvalue ;
7448 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7449 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7450 wxSize const &arg5_defvalue = wxDefaultSize ;
7451 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7452 long arg6 = (long) 0 ;
7453 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7454 wxString *arg7 = (wxString *) &arg7_defvalue ;
7455 wxStaticBox *result = 0 ;
7456 void *argp1 = 0 ;
7457 int res1 = 0 ;
7458 int val2 ;
7459 int ecode2 = 0 ;
7460 bool temp3 = false ;
7461 wxPoint temp4 ;
7462 wxSize temp5 ;
7463 long val6 ;
7464 int ecode6 = 0 ;
7465 bool temp7 = false ;
7466 PyObject * obj0 = 0 ;
7467 PyObject * obj1 = 0 ;
7468 PyObject * obj2 = 0 ;
7469 PyObject * obj3 = 0 ;
7470 PyObject * obj4 = 0 ;
7471 PyObject * obj5 = 0 ;
7472 PyObject * obj6 = 0 ;
7473 char * kwnames[] = {
7474 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7475 };
7476
7477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7479 if (!SWIG_IsOK(res1)) {
7480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7481 }
7482 arg1 = reinterpret_cast< wxWindow * >(argp1);
7483 if (obj1) {
7484 ecode2 = SWIG_AsVal_int(obj1, &val2);
7485 if (!SWIG_IsOK(ecode2)) {
7486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7487 }
7488 arg2 = static_cast< int >(val2);
7489 }
7490 if (obj2) {
7491 {
7492 arg3 = wxString_in_helper(obj2);
7493 if (arg3 == NULL) SWIG_fail;
7494 temp3 = true;
7495 }
7496 }
7497 if (obj3) {
7498 {
7499 arg4 = &temp4;
7500 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7501 }
7502 }
7503 if (obj4) {
7504 {
7505 arg5 = &temp5;
7506 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7507 }
7508 }
7509 if (obj5) {
7510 ecode6 = SWIG_AsVal_long(obj5, &val6);
7511 if (!SWIG_IsOK(ecode6)) {
7512 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7513 }
7514 arg6 = static_cast< long >(val6);
7515 }
7516 if (obj6) {
7517 {
7518 arg7 = wxString_in_helper(obj6);
7519 if (arg7 == NULL) SWIG_fail;
7520 temp7 = true;
7521 }
7522 }
7523 {
7524 if (!wxPyCheckForApp()) SWIG_fail;
7525 PyThreadState* __tstate = wxPyBeginAllowThreads();
7526 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7527 wxPyEndAllowThreads(__tstate);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7531 {
7532 if (temp3)
7533 delete arg3;
7534 }
7535 {
7536 if (temp7)
7537 delete arg7;
7538 }
7539 return resultobj;
7540 fail:
7541 {
7542 if (temp3)
7543 delete arg3;
7544 }
7545 {
7546 if (temp7)
7547 delete arg7;
7548 }
7549 return NULL;
7550 }
7551
7552
7553 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7554 PyObject *resultobj = 0;
7555 wxStaticBox *result = 0 ;
7556
7557 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7558 {
7559 if (!wxPyCheckForApp()) SWIG_fail;
7560 PyThreadState* __tstate = wxPyBeginAllowThreads();
7561 result = (wxStaticBox *)new wxStaticBox();
7562 wxPyEndAllowThreads(__tstate);
7563 if (PyErr_Occurred()) SWIG_fail;
7564 }
7565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7566 return resultobj;
7567 fail:
7568 return NULL;
7569 }
7570
7571
7572 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7573 PyObject *resultobj = 0;
7574 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7575 wxWindow *arg2 = (wxWindow *) 0 ;
7576 int arg3 = (int) -1 ;
7577 wxString const &arg4_defvalue = wxPyEmptyString ;
7578 wxString *arg4 = (wxString *) &arg4_defvalue ;
7579 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7580 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7581 wxSize const &arg6_defvalue = wxDefaultSize ;
7582 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7583 long arg7 = (long) 0 ;
7584 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7585 wxString *arg8 = (wxString *) &arg8_defvalue ;
7586 bool result;
7587 void *argp1 = 0 ;
7588 int res1 = 0 ;
7589 void *argp2 = 0 ;
7590 int res2 = 0 ;
7591 int val3 ;
7592 int ecode3 = 0 ;
7593 bool temp4 = false ;
7594 wxPoint temp5 ;
7595 wxSize temp6 ;
7596 long val7 ;
7597 int ecode7 = 0 ;
7598 bool temp8 = false ;
7599 PyObject * obj0 = 0 ;
7600 PyObject * obj1 = 0 ;
7601 PyObject * obj2 = 0 ;
7602 PyObject * obj3 = 0 ;
7603 PyObject * obj4 = 0 ;
7604 PyObject * obj5 = 0 ;
7605 PyObject * obj6 = 0 ;
7606 PyObject * obj7 = 0 ;
7607 char * kwnames[] = {
7608 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7609 };
7610
7611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7613 if (!SWIG_IsOK(res1)) {
7614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7615 }
7616 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7617 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7618 if (!SWIG_IsOK(res2)) {
7619 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7620 }
7621 arg2 = reinterpret_cast< wxWindow * >(argp2);
7622 if (obj2) {
7623 ecode3 = SWIG_AsVal_int(obj2, &val3);
7624 if (!SWIG_IsOK(ecode3)) {
7625 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7626 }
7627 arg3 = static_cast< int >(val3);
7628 }
7629 if (obj3) {
7630 {
7631 arg4 = wxString_in_helper(obj3);
7632 if (arg4 == NULL) SWIG_fail;
7633 temp4 = true;
7634 }
7635 }
7636 if (obj4) {
7637 {
7638 arg5 = &temp5;
7639 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7640 }
7641 }
7642 if (obj5) {
7643 {
7644 arg6 = &temp6;
7645 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7646 }
7647 }
7648 if (obj6) {
7649 ecode7 = SWIG_AsVal_long(obj6, &val7);
7650 if (!SWIG_IsOK(ecode7)) {
7651 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7652 }
7653 arg7 = static_cast< long >(val7);
7654 }
7655 if (obj7) {
7656 {
7657 arg8 = wxString_in_helper(obj7);
7658 if (arg8 == NULL) SWIG_fail;
7659 temp8 = true;
7660 }
7661 }
7662 {
7663 PyThreadState* __tstate = wxPyBeginAllowThreads();
7664 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7665 wxPyEndAllowThreads(__tstate);
7666 if (PyErr_Occurred()) SWIG_fail;
7667 }
7668 {
7669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7670 }
7671 {
7672 if (temp4)
7673 delete arg4;
7674 }
7675 {
7676 if (temp8)
7677 delete arg8;
7678 }
7679 return resultobj;
7680 fail:
7681 {
7682 if (temp4)
7683 delete arg4;
7684 }
7685 {
7686 if (temp8)
7687 delete arg8;
7688 }
7689 return NULL;
7690 }
7691
7692
7693 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7694 PyObject *resultobj = 0;
7695 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7696 SwigValueWrapper<wxVisualAttributes > result;
7697 int val1 ;
7698 int ecode1 = 0 ;
7699 PyObject * obj0 = 0 ;
7700 char * kwnames[] = {
7701 (char *) "variant", NULL
7702 };
7703
7704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7705 if (obj0) {
7706 ecode1 = SWIG_AsVal_int(obj0, &val1);
7707 if (!SWIG_IsOK(ecode1)) {
7708 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7709 }
7710 arg1 = static_cast< wxWindowVariant >(val1);
7711 }
7712 {
7713 if (!wxPyCheckForApp()) SWIG_fail;
7714 PyThreadState* __tstate = wxPyBeginAllowThreads();
7715 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7716 wxPyEndAllowThreads(__tstate);
7717 if (PyErr_Occurred()) SWIG_fail;
7718 }
7719 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7720 return resultobj;
7721 fail:
7722 return NULL;
7723 }
7724
7725
7726 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7727 PyObject *obj;
7728 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7729 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7730 return SWIG_Py_Void();
7731 }
7732
7733 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7734 return SWIG_Python_InitShadowInstance(args);
7735 }
7736
7737 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7738 PyObject *resultobj = 0;
7739 wxWindow *arg1 = (wxWindow *) 0 ;
7740 int arg2 = (int) -1 ;
7741 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7742 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7743 wxSize const &arg4_defvalue = wxDefaultSize ;
7744 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7745 long arg5 = (long) wxLI_HORIZONTAL ;
7746 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7747 wxString *arg6 = (wxString *) &arg6_defvalue ;
7748 wxStaticLine *result = 0 ;
7749 void *argp1 = 0 ;
7750 int res1 = 0 ;
7751 int val2 ;
7752 int ecode2 = 0 ;
7753 wxPoint temp3 ;
7754 wxSize temp4 ;
7755 long val5 ;
7756 int ecode5 = 0 ;
7757 bool temp6 = false ;
7758 PyObject * obj0 = 0 ;
7759 PyObject * obj1 = 0 ;
7760 PyObject * obj2 = 0 ;
7761 PyObject * obj3 = 0 ;
7762 PyObject * obj4 = 0 ;
7763 PyObject * obj5 = 0 ;
7764 char * kwnames[] = {
7765 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7766 };
7767
7768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7770 if (!SWIG_IsOK(res1)) {
7771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7772 }
7773 arg1 = reinterpret_cast< wxWindow * >(argp1);
7774 if (obj1) {
7775 ecode2 = SWIG_AsVal_int(obj1, &val2);
7776 if (!SWIG_IsOK(ecode2)) {
7777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7778 }
7779 arg2 = static_cast< int >(val2);
7780 }
7781 if (obj2) {
7782 {
7783 arg3 = &temp3;
7784 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7785 }
7786 }
7787 if (obj3) {
7788 {
7789 arg4 = &temp4;
7790 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7791 }
7792 }
7793 if (obj4) {
7794 ecode5 = SWIG_AsVal_long(obj4, &val5);
7795 if (!SWIG_IsOK(ecode5)) {
7796 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7797 }
7798 arg5 = static_cast< long >(val5);
7799 }
7800 if (obj5) {
7801 {
7802 arg6 = wxString_in_helper(obj5);
7803 if (arg6 == NULL) SWIG_fail;
7804 temp6 = true;
7805 }
7806 }
7807 {
7808 if (!wxPyCheckForApp()) SWIG_fail;
7809 PyThreadState* __tstate = wxPyBeginAllowThreads();
7810 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7811 wxPyEndAllowThreads(__tstate);
7812 if (PyErr_Occurred()) SWIG_fail;
7813 }
7814 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7815 {
7816 if (temp6)
7817 delete arg6;
7818 }
7819 return resultobj;
7820 fail:
7821 {
7822 if (temp6)
7823 delete arg6;
7824 }
7825 return NULL;
7826 }
7827
7828
7829 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7830 PyObject *resultobj = 0;
7831 wxStaticLine *result = 0 ;
7832
7833 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7834 {
7835 if (!wxPyCheckForApp()) SWIG_fail;
7836 PyThreadState* __tstate = wxPyBeginAllowThreads();
7837 result = (wxStaticLine *)new wxStaticLine();
7838 wxPyEndAllowThreads(__tstate);
7839 if (PyErr_Occurred()) SWIG_fail;
7840 }
7841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7842 return resultobj;
7843 fail:
7844 return NULL;
7845 }
7846
7847
7848 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7849 PyObject *resultobj = 0;
7850 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7851 wxWindow *arg2 = (wxWindow *) 0 ;
7852 int arg3 = (int) -1 ;
7853 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7854 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7855 wxSize const &arg5_defvalue = wxDefaultSize ;
7856 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7857 long arg6 = (long) wxLI_HORIZONTAL ;
7858 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7859 wxString *arg7 = (wxString *) &arg7_defvalue ;
7860 bool result;
7861 void *argp1 = 0 ;
7862 int res1 = 0 ;
7863 void *argp2 = 0 ;
7864 int res2 = 0 ;
7865 int val3 ;
7866 int ecode3 = 0 ;
7867 wxPoint temp4 ;
7868 wxSize temp5 ;
7869 long val6 ;
7870 int ecode6 = 0 ;
7871 bool temp7 = false ;
7872 PyObject * obj0 = 0 ;
7873 PyObject * obj1 = 0 ;
7874 PyObject * obj2 = 0 ;
7875 PyObject * obj3 = 0 ;
7876 PyObject * obj4 = 0 ;
7877 PyObject * obj5 = 0 ;
7878 PyObject * obj6 = 0 ;
7879 char * kwnames[] = {
7880 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7881 };
7882
7883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7885 if (!SWIG_IsOK(res1)) {
7886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7887 }
7888 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7889 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7890 if (!SWIG_IsOK(res2)) {
7891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7892 }
7893 arg2 = reinterpret_cast< wxWindow * >(argp2);
7894 if (obj2) {
7895 ecode3 = SWIG_AsVal_int(obj2, &val3);
7896 if (!SWIG_IsOK(ecode3)) {
7897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7898 }
7899 arg3 = static_cast< int >(val3);
7900 }
7901 if (obj3) {
7902 {
7903 arg4 = &temp4;
7904 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7905 }
7906 }
7907 if (obj4) {
7908 {
7909 arg5 = &temp5;
7910 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7911 }
7912 }
7913 if (obj5) {
7914 ecode6 = SWIG_AsVal_long(obj5, &val6);
7915 if (!SWIG_IsOK(ecode6)) {
7916 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7917 }
7918 arg6 = static_cast< long >(val6);
7919 }
7920 if (obj6) {
7921 {
7922 arg7 = wxString_in_helper(obj6);
7923 if (arg7 == NULL) SWIG_fail;
7924 temp7 = true;
7925 }
7926 }
7927 {
7928 PyThreadState* __tstate = wxPyBeginAllowThreads();
7929 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7930 wxPyEndAllowThreads(__tstate);
7931 if (PyErr_Occurred()) SWIG_fail;
7932 }
7933 {
7934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7935 }
7936 {
7937 if (temp7)
7938 delete arg7;
7939 }
7940 return resultobj;
7941 fail:
7942 {
7943 if (temp7)
7944 delete arg7;
7945 }
7946 return NULL;
7947 }
7948
7949
7950 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7951 PyObject *resultobj = 0;
7952 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7953 bool result;
7954 void *argp1 = 0 ;
7955 int res1 = 0 ;
7956 PyObject *swig_obj[1] ;
7957
7958 if (!args) SWIG_fail;
7959 swig_obj[0] = args;
7960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7961 if (!SWIG_IsOK(res1)) {
7962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7963 }
7964 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7965 {
7966 PyThreadState* __tstate = wxPyBeginAllowThreads();
7967 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7968 wxPyEndAllowThreads(__tstate);
7969 if (PyErr_Occurred()) SWIG_fail;
7970 }
7971 {
7972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7973 }
7974 return resultobj;
7975 fail:
7976 return NULL;
7977 }
7978
7979
7980 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7981 PyObject *resultobj = 0;
7982 int result;
7983
7984 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7985 {
7986 PyThreadState* __tstate = wxPyBeginAllowThreads();
7987 result = (int)wxStaticLine::GetDefaultSize();
7988 wxPyEndAllowThreads(__tstate);
7989 if (PyErr_Occurred()) SWIG_fail;
7990 }
7991 resultobj = SWIG_From_int(static_cast< int >(result));
7992 return resultobj;
7993 fail:
7994 return NULL;
7995 }
7996
7997
7998 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7999 PyObject *resultobj = 0;
8000 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8001 SwigValueWrapper<wxVisualAttributes > result;
8002 int val1 ;
8003 int ecode1 = 0 ;
8004 PyObject * obj0 = 0 ;
8005 char * kwnames[] = {
8006 (char *) "variant", NULL
8007 };
8008
8009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8010 if (obj0) {
8011 ecode1 = SWIG_AsVal_int(obj0, &val1);
8012 if (!SWIG_IsOK(ecode1)) {
8013 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8014 }
8015 arg1 = static_cast< wxWindowVariant >(val1);
8016 }
8017 {
8018 if (!wxPyCheckForApp()) SWIG_fail;
8019 PyThreadState* __tstate = wxPyBeginAllowThreads();
8020 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8021 wxPyEndAllowThreads(__tstate);
8022 if (PyErr_Occurred()) SWIG_fail;
8023 }
8024 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8025 return resultobj;
8026 fail:
8027 return NULL;
8028 }
8029
8030
8031 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8032 PyObject *obj;
8033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8034 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8035 return SWIG_Py_Void();
8036 }
8037
8038 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8039 return SWIG_Python_InitShadowInstance(args);
8040 }
8041
8042 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8043 PyObject *resultobj = 0;
8044 wxWindow *arg1 = (wxWindow *) 0 ;
8045 int arg2 = (int) -1 ;
8046 wxString const &arg3_defvalue = wxPyEmptyString ;
8047 wxString *arg3 = (wxString *) &arg3_defvalue ;
8048 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8049 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8050 wxSize const &arg5_defvalue = wxDefaultSize ;
8051 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8052 long arg6 = (long) 0 ;
8053 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8054 wxString *arg7 = (wxString *) &arg7_defvalue ;
8055 wxStaticText *result = 0 ;
8056 void *argp1 = 0 ;
8057 int res1 = 0 ;
8058 int val2 ;
8059 int ecode2 = 0 ;
8060 bool temp3 = false ;
8061 wxPoint temp4 ;
8062 wxSize temp5 ;
8063 long val6 ;
8064 int ecode6 = 0 ;
8065 bool temp7 = false ;
8066 PyObject * obj0 = 0 ;
8067 PyObject * obj1 = 0 ;
8068 PyObject * obj2 = 0 ;
8069 PyObject * obj3 = 0 ;
8070 PyObject * obj4 = 0 ;
8071 PyObject * obj5 = 0 ;
8072 PyObject * obj6 = 0 ;
8073 char * kwnames[] = {
8074 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8075 };
8076
8077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8079 if (!SWIG_IsOK(res1)) {
8080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8081 }
8082 arg1 = reinterpret_cast< wxWindow * >(argp1);
8083 if (obj1) {
8084 ecode2 = SWIG_AsVal_int(obj1, &val2);
8085 if (!SWIG_IsOK(ecode2)) {
8086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8087 }
8088 arg2 = static_cast< int >(val2);
8089 }
8090 if (obj2) {
8091 {
8092 arg3 = wxString_in_helper(obj2);
8093 if (arg3 == NULL) SWIG_fail;
8094 temp3 = true;
8095 }
8096 }
8097 if (obj3) {
8098 {
8099 arg4 = &temp4;
8100 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8101 }
8102 }
8103 if (obj4) {
8104 {
8105 arg5 = &temp5;
8106 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8107 }
8108 }
8109 if (obj5) {
8110 ecode6 = SWIG_AsVal_long(obj5, &val6);
8111 if (!SWIG_IsOK(ecode6)) {
8112 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8113 }
8114 arg6 = static_cast< long >(val6);
8115 }
8116 if (obj6) {
8117 {
8118 arg7 = wxString_in_helper(obj6);
8119 if (arg7 == NULL) SWIG_fail;
8120 temp7 = true;
8121 }
8122 }
8123 {
8124 if (!wxPyCheckForApp()) SWIG_fail;
8125 PyThreadState* __tstate = wxPyBeginAllowThreads();
8126 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8127 wxPyEndAllowThreads(__tstate);
8128 if (PyErr_Occurred()) SWIG_fail;
8129 }
8130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8131 {
8132 if (temp3)
8133 delete arg3;
8134 }
8135 {
8136 if (temp7)
8137 delete arg7;
8138 }
8139 return resultobj;
8140 fail:
8141 {
8142 if (temp3)
8143 delete arg3;
8144 }
8145 {
8146 if (temp7)
8147 delete arg7;
8148 }
8149 return NULL;
8150 }
8151
8152
8153 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8154 PyObject *resultobj = 0;
8155 wxStaticText *result = 0 ;
8156
8157 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8158 {
8159 if (!wxPyCheckForApp()) SWIG_fail;
8160 PyThreadState* __tstate = wxPyBeginAllowThreads();
8161 result = (wxStaticText *)new wxStaticText();
8162 wxPyEndAllowThreads(__tstate);
8163 if (PyErr_Occurred()) SWIG_fail;
8164 }
8165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8166 return resultobj;
8167 fail:
8168 return NULL;
8169 }
8170
8171
8172 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8173 PyObject *resultobj = 0;
8174 wxStaticText *arg1 = (wxStaticText *) 0 ;
8175 wxWindow *arg2 = (wxWindow *) 0 ;
8176 int arg3 = (int) -1 ;
8177 wxString const &arg4_defvalue = wxPyEmptyString ;
8178 wxString *arg4 = (wxString *) &arg4_defvalue ;
8179 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8180 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8181 wxSize const &arg6_defvalue = wxDefaultSize ;
8182 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8183 long arg7 = (long) 0 ;
8184 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8185 wxString *arg8 = (wxString *) &arg8_defvalue ;
8186 bool result;
8187 void *argp1 = 0 ;
8188 int res1 = 0 ;
8189 void *argp2 = 0 ;
8190 int res2 = 0 ;
8191 int val3 ;
8192 int ecode3 = 0 ;
8193 bool temp4 = false ;
8194 wxPoint temp5 ;
8195 wxSize temp6 ;
8196 long val7 ;
8197 int ecode7 = 0 ;
8198 bool temp8 = false ;
8199 PyObject * obj0 = 0 ;
8200 PyObject * obj1 = 0 ;
8201 PyObject * obj2 = 0 ;
8202 PyObject * obj3 = 0 ;
8203 PyObject * obj4 = 0 ;
8204 PyObject * obj5 = 0 ;
8205 PyObject * obj6 = 0 ;
8206 PyObject * obj7 = 0 ;
8207 char * kwnames[] = {
8208 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8209 };
8210
8211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8213 if (!SWIG_IsOK(res1)) {
8214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8215 }
8216 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8217 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8218 if (!SWIG_IsOK(res2)) {
8219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8220 }
8221 arg2 = reinterpret_cast< wxWindow * >(argp2);
8222 if (obj2) {
8223 ecode3 = SWIG_AsVal_int(obj2, &val3);
8224 if (!SWIG_IsOK(ecode3)) {
8225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8226 }
8227 arg3 = static_cast< int >(val3);
8228 }
8229 if (obj3) {
8230 {
8231 arg4 = wxString_in_helper(obj3);
8232 if (arg4 == NULL) SWIG_fail;
8233 temp4 = true;
8234 }
8235 }
8236 if (obj4) {
8237 {
8238 arg5 = &temp5;
8239 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8240 }
8241 }
8242 if (obj5) {
8243 {
8244 arg6 = &temp6;
8245 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8246 }
8247 }
8248 if (obj6) {
8249 ecode7 = SWIG_AsVal_long(obj6, &val7);
8250 if (!SWIG_IsOK(ecode7)) {
8251 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8252 }
8253 arg7 = static_cast< long >(val7);
8254 }
8255 if (obj7) {
8256 {
8257 arg8 = wxString_in_helper(obj7);
8258 if (arg8 == NULL) SWIG_fail;
8259 temp8 = true;
8260 }
8261 }
8262 {
8263 PyThreadState* __tstate = wxPyBeginAllowThreads();
8264 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8265 wxPyEndAllowThreads(__tstate);
8266 if (PyErr_Occurred()) SWIG_fail;
8267 }
8268 {
8269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8270 }
8271 {
8272 if (temp4)
8273 delete arg4;
8274 }
8275 {
8276 if (temp8)
8277 delete arg8;
8278 }
8279 return resultobj;
8280 fail:
8281 {
8282 if (temp4)
8283 delete arg4;
8284 }
8285 {
8286 if (temp8)
8287 delete arg8;
8288 }
8289 return NULL;
8290 }
8291
8292
8293 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8294 PyObject *resultobj = 0;
8295 wxStaticText *arg1 = (wxStaticText *) 0 ;
8296 int arg2 ;
8297 void *argp1 = 0 ;
8298 int res1 = 0 ;
8299 int val2 ;
8300 int ecode2 = 0 ;
8301 PyObject * obj0 = 0 ;
8302 PyObject * obj1 = 0 ;
8303 char * kwnames[] = {
8304 (char *) "self",(char *) "width", NULL
8305 };
8306
8307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8309 if (!SWIG_IsOK(res1)) {
8310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8311 }
8312 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8313 ecode2 = SWIG_AsVal_int(obj1, &val2);
8314 if (!SWIG_IsOK(ecode2)) {
8315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8316 }
8317 arg2 = static_cast< int >(val2);
8318 {
8319 PyThreadState* __tstate = wxPyBeginAllowThreads();
8320 (arg1)->Wrap(arg2);
8321 wxPyEndAllowThreads(__tstate);
8322 if (PyErr_Occurred()) SWIG_fail;
8323 }
8324 resultobj = SWIG_Py_Void();
8325 return resultobj;
8326 fail:
8327 return NULL;
8328 }
8329
8330
8331 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8332 PyObject *resultobj = 0;
8333 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8334 SwigValueWrapper<wxVisualAttributes > result;
8335 int val1 ;
8336 int ecode1 = 0 ;
8337 PyObject * obj0 = 0 ;
8338 char * kwnames[] = {
8339 (char *) "variant", NULL
8340 };
8341
8342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8343 if (obj0) {
8344 ecode1 = SWIG_AsVal_int(obj0, &val1);
8345 if (!SWIG_IsOK(ecode1)) {
8346 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8347 }
8348 arg1 = static_cast< wxWindowVariant >(val1);
8349 }
8350 {
8351 if (!wxPyCheckForApp()) SWIG_fail;
8352 PyThreadState* __tstate = wxPyBeginAllowThreads();
8353 result = wxStaticText::GetClassDefaultAttributes(arg1);
8354 wxPyEndAllowThreads(__tstate);
8355 if (PyErr_Occurred()) SWIG_fail;
8356 }
8357 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8358 return resultobj;
8359 fail:
8360 return NULL;
8361 }
8362
8363
8364 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8365 PyObject *obj;
8366 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8367 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8368 return SWIG_Py_Void();
8369 }
8370
8371 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8372 return SWIG_Python_InitShadowInstance(args);
8373 }
8374
8375 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8376 PyObject *resultobj = 0;
8377 wxWindow *arg1 = (wxWindow *) 0 ;
8378 int arg2 = (int) -1 ;
8379 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8380 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8381 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8382 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8383 wxSize const &arg5_defvalue = wxDefaultSize ;
8384 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8385 long arg6 = (long) 0 ;
8386 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8387 wxString *arg7 = (wxString *) &arg7_defvalue ;
8388 wxStaticBitmap *result = 0 ;
8389 void *argp1 = 0 ;
8390 int res1 = 0 ;
8391 int val2 ;
8392 int ecode2 = 0 ;
8393 void *argp3 = 0 ;
8394 int res3 = 0 ;
8395 wxPoint temp4 ;
8396 wxSize temp5 ;
8397 long val6 ;
8398 int ecode6 = 0 ;
8399 bool temp7 = false ;
8400 PyObject * obj0 = 0 ;
8401 PyObject * obj1 = 0 ;
8402 PyObject * obj2 = 0 ;
8403 PyObject * obj3 = 0 ;
8404 PyObject * obj4 = 0 ;
8405 PyObject * obj5 = 0 ;
8406 PyObject * obj6 = 0 ;
8407 char * kwnames[] = {
8408 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8409 };
8410
8411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8413 if (!SWIG_IsOK(res1)) {
8414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8415 }
8416 arg1 = reinterpret_cast< wxWindow * >(argp1);
8417 if (obj1) {
8418 ecode2 = SWIG_AsVal_int(obj1, &val2);
8419 if (!SWIG_IsOK(ecode2)) {
8420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8421 }
8422 arg2 = static_cast< int >(val2);
8423 }
8424 if (obj2) {
8425 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8426 if (!SWIG_IsOK(res3)) {
8427 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8428 }
8429 if (!argp3) {
8430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8431 }
8432 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8433 }
8434 if (obj3) {
8435 {
8436 arg4 = &temp4;
8437 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8438 }
8439 }
8440 if (obj4) {
8441 {
8442 arg5 = &temp5;
8443 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8444 }
8445 }
8446 if (obj5) {
8447 ecode6 = SWIG_AsVal_long(obj5, &val6);
8448 if (!SWIG_IsOK(ecode6)) {
8449 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8450 }
8451 arg6 = static_cast< long >(val6);
8452 }
8453 if (obj6) {
8454 {
8455 arg7 = wxString_in_helper(obj6);
8456 if (arg7 == NULL) SWIG_fail;
8457 temp7 = true;
8458 }
8459 }
8460 {
8461 if (!wxPyCheckForApp()) SWIG_fail;
8462 PyThreadState* __tstate = wxPyBeginAllowThreads();
8463 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8464 wxPyEndAllowThreads(__tstate);
8465 if (PyErr_Occurred()) SWIG_fail;
8466 }
8467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8468 {
8469 if (temp7)
8470 delete arg7;
8471 }
8472 return resultobj;
8473 fail:
8474 {
8475 if (temp7)
8476 delete arg7;
8477 }
8478 return NULL;
8479 }
8480
8481
8482 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8483 PyObject *resultobj = 0;
8484 wxStaticBitmap *result = 0 ;
8485
8486 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8487 {
8488 if (!wxPyCheckForApp()) SWIG_fail;
8489 PyThreadState* __tstate = wxPyBeginAllowThreads();
8490 result = (wxStaticBitmap *)new wxStaticBitmap();
8491 wxPyEndAllowThreads(__tstate);
8492 if (PyErr_Occurred()) SWIG_fail;
8493 }
8494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8495 return resultobj;
8496 fail:
8497 return NULL;
8498 }
8499
8500
8501 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8502 PyObject *resultobj = 0;
8503 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8504 wxWindow *arg2 = (wxWindow *) 0 ;
8505 int arg3 = (int) -1 ;
8506 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8507 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8508 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8509 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8510 wxSize const &arg6_defvalue = wxDefaultSize ;
8511 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8512 long arg7 = (long) 0 ;
8513 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8514 wxString *arg8 = (wxString *) &arg8_defvalue ;
8515 bool result;
8516 void *argp1 = 0 ;
8517 int res1 = 0 ;
8518 void *argp2 = 0 ;
8519 int res2 = 0 ;
8520 int val3 ;
8521 int ecode3 = 0 ;
8522 void *argp4 = 0 ;
8523 int res4 = 0 ;
8524 wxPoint temp5 ;
8525 wxSize temp6 ;
8526 long val7 ;
8527 int ecode7 = 0 ;
8528 bool temp8 = false ;
8529 PyObject * obj0 = 0 ;
8530 PyObject * obj1 = 0 ;
8531 PyObject * obj2 = 0 ;
8532 PyObject * obj3 = 0 ;
8533 PyObject * obj4 = 0 ;
8534 PyObject * obj5 = 0 ;
8535 PyObject * obj6 = 0 ;
8536 PyObject * obj7 = 0 ;
8537 char * kwnames[] = {
8538 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8539 };
8540
8541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8543 if (!SWIG_IsOK(res1)) {
8544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8545 }
8546 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8547 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8548 if (!SWIG_IsOK(res2)) {
8549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8550 }
8551 arg2 = reinterpret_cast< wxWindow * >(argp2);
8552 if (obj2) {
8553 ecode3 = SWIG_AsVal_int(obj2, &val3);
8554 if (!SWIG_IsOK(ecode3)) {
8555 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8556 }
8557 arg3 = static_cast< int >(val3);
8558 }
8559 if (obj3) {
8560 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8561 if (!SWIG_IsOK(res4)) {
8562 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8563 }
8564 if (!argp4) {
8565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8566 }
8567 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8568 }
8569 if (obj4) {
8570 {
8571 arg5 = &temp5;
8572 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8573 }
8574 }
8575 if (obj5) {
8576 {
8577 arg6 = &temp6;
8578 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8579 }
8580 }
8581 if (obj6) {
8582 ecode7 = SWIG_AsVal_long(obj6, &val7);
8583 if (!SWIG_IsOK(ecode7)) {
8584 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8585 }
8586 arg7 = static_cast< long >(val7);
8587 }
8588 if (obj7) {
8589 {
8590 arg8 = wxString_in_helper(obj7);
8591 if (arg8 == NULL) SWIG_fail;
8592 temp8 = true;
8593 }
8594 }
8595 {
8596 PyThreadState* __tstate = wxPyBeginAllowThreads();
8597 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8598 wxPyEndAllowThreads(__tstate);
8599 if (PyErr_Occurred()) SWIG_fail;
8600 }
8601 {
8602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8603 }
8604 {
8605 if (temp8)
8606 delete arg8;
8607 }
8608 return resultobj;
8609 fail:
8610 {
8611 if (temp8)
8612 delete arg8;
8613 }
8614 return NULL;
8615 }
8616
8617
8618 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8619 PyObject *resultobj = 0;
8620 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8621 wxBitmap result;
8622 void *argp1 = 0 ;
8623 int res1 = 0 ;
8624 PyObject *swig_obj[1] ;
8625
8626 if (!args) SWIG_fail;
8627 swig_obj[0] = args;
8628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8629 if (!SWIG_IsOK(res1)) {
8630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8631 }
8632 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8633 {
8634 PyThreadState* __tstate = wxPyBeginAllowThreads();
8635 result = (arg1)->GetBitmap();
8636 wxPyEndAllowThreads(__tstate);
8637 if (PyErr_Occurred()) SWIG_fail;
8638 }
8639 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8640 return resultobj;
8641 fail:
8642 return NULL;
8643 }
8644
8645
8646 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8647 PyObject *resultobj = 0;
8648 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8649 wxBitmap *arg2 = 0 ;
8650 void *argp1 = 0 ;
8651 int res1 = 0 ;
8652 void *argp2 = 0 ;
8653 int res2 = 0 ;
8654 PyObject * obj0 = 0 ;
8655 PyObject * obj1 = 0 ;
8656 char * kwnames[] = {
8657 (char *) "self",(char *) "bitmap", NULL
8658 };
8659
8660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8662 if (!SWIG_IsOK(res1)) {
8663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8664 }
8665 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8667 if (!SWIG_IsOK(res2)) {
8668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8669 }
8670 if (!argp2) {
8671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8672 }
8673 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8674 {
8675 PyThreadState* __tstate = wxPyBeginAllowThreads();
8676 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8677 wxPyEndAllowThreads(__tstate);
8678 if (PyErr_Occurred()) SWIG_fail;
8679 }
8680 resultobj = SWIG_Py_Void();
8681 return resultobj;
8682 fail:
8683 return NULL;
8684 }
8685
8686
8687 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8688 PyObject *resultobj = 0;
8689 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8690 wxIcon *arg2 = 0 ;
8691 void *argp1 = 0 ;
8692 int res1 = 0 ;
8693 void *argp2 = 0 ;
8694 int res2 = 0 ;
8695 PyObject * obj0 = 0 ;
8696 PyObject * obj1 = 0 ;
8697 char * kwnames[] = {
8698 (char *) "self",(char *) "icon", NULL
8699 };
8700
8701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8703 if (!SWIG_IsOK(res1)) {
8704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8705 }
8706 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8707 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8708 if (!SWIG_IsOK(res2)) {
8709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8710 }
8711 if (!argp2) {
8712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8713 }
8714 arg2 = reinterpret_cast< wxIcon * >(argp2);
8715 {
8716 PyThreadState* __tstate = wxPyBeginAllowThreads();
8717 (arg1)->SetIcon((wxIcon const &)*arg2);
8718 wxPyEndAllowThreads(__tstate);
8719 if (PyErr_Occurred()) SWIG_fail;
8720 }
8721 resultobj = SWIG_Py_Void();
8722 return resultobj;
8723 fail:
8724 return NULL;
8725 }
8726
8727
8728 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8729 PyObject *resultobj = 0;
8730 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8731 SwigValueWrapper<wxVisualAttributes > result;
8732 int val1 ;
8733 int ecode1 = 0 ;
8734 PyObject * obj0 = 0 ;
8735 char * kwnames[] = {
8736 (char *) "variant", NULL
8737 };
8738
8739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8740 if (obj0) {
8741 ecode1 = SWIG_AsVal_int(obj0, &val1);
8742 if (!SWIG_IsOK(ecode1)) {
8743 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8744 }
8745 arg1 = static_cast< wxWindowVariant >(val1);
8746 }
8747 {
8748 if (!wxPyCheckForApp()) SWIG_fail;
8749 PyThreadState* __tstate = wxPyBeginAllowThreads();
8750 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8751 wxPyEndAllowThreads(__tstate);
8752 if (PyErr_Occurred()) SWIG_fail;
8753 }
8754 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8755 return resultobj;
8756 fail:
8757 return NULL;
8758 }
8759
8760
8761 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8762 PyObject *obj;
8763 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8764 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8765 return SWIG_Py_Void();
8766 }
8767
8768 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8769 return SWIG_Python_InitShadowInstance(args);
8770 }
8771
8772 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8773 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8774 return 1;
8775 }
8776
8777
8778 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8779 PyObject *pyobj = 0;
8780
8781 {
8782 #if wxUSE_UNICODE
8783 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8784 #else
8785 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8786 #endif
8787 }
8788 return pyobj;
8789 }
8790
8791
8792 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8793 PyObject *resultobj = 0;
8794 wxWindow *arg1 = (wxWindow *) 0 ;
8795 int arg2 = (int) -1 ;
8796 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8797 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8798 wxSize const &arg4_defvalue = wxDefaultSize ;
8799 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8800 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8801 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8802 long arg6 = (long) 0 ;
8803 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8804 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8805 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8806 wxString *arg8 = (wxString *) &arg8_defvalue ;
8807 wxListBox *result = 0 ;
8808 void *argp1 = 0 ;
8809 int res1 = 0 ;
8810 int val2 ;
8811 int ecode2 = 0 ;
8812 wxPoint temp3 ;
8813 wxSize temp4 ;
8814 bool temp5 = false ;
8815 long val6 ;
8816 int ecode6 = 0 ;
8817 void *argp7 = 0 ;
8818 int res7 = 0 ;
8819 bool temp8 = false ;
8820 PyObject * obj0 = 0 ;
8821 PyObject * obj1 = 0 ;
8822 PyObject * obj2 = 0 ;
8823 PyObject * obj3 = 0 ;
8824 PyObject * obj4 = 0 ;
8825 PyObject * obj5 = 0 ;
8826 PyObject * obj6 = 0 ;
8827 PyObject * obj7 = 0 ;
8828 char * kwnames[] = {
8829 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8830 };
8831
8832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8834 if (!SWIG_IsOK(res1)) {
8835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8836 }
8837 arg1 = reinterpret_cast< wxWindow * >(argp1);
8838 if (obj1) {
8839 ecode2 = SWIG_AsVal_int(obj1, &val2);
8840 if (!SWIG_IsOK(ecode2)) {
8841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8842 }
8843 arg2 = static_cast< int >(val2);
8844 }
8845 if (obj2) {
8846 {
8847 arg3 = &temp3;
8848 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8849 }
8850 }
8851 if (obj3) {
8852 {
8853 arg4 = &temp4;
8854 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8855 }
8856 }
8857 if (obj4) {
8858 {
8859 if (! PySequence_Check(obj4)) {
8860 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8861 SWIG_fail;
8862 }
8863 arg5 = new wxArrayString;
8864 temp5 = true;
8865 int i, len=PySequence_Length(obj4);
8866 for (i=0; i<len; i++) {
8867 PyObject* item = PySequence_GetItem(obj4, i);
8868 wxString* s = wxString_in_helper(item);
8869 if (PyErr_Occurred()) SWIG_fail;
8870 arg5->Add(*s);
8871 delete s;
8872 Py_DECREF(item);
8873 }
8874 }
8875 }
8876 if (obj5) {
8877 ecode6 = SWIG_AsVal_long(obj5, &val6);
8878 if (!SWIG_IsOK(ecode6)) {
8879 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8880 }
8881 arg6 = static_cast< long >(val6);
8882 }
8883 if (obj6) {
8884 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8885 if (!SWIG_IsOK(res7)) {
8886 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8887 }
8888 if (!argp7) {
8889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8890 }
8891 arg7 = reinterpret_cast< wxValidator * >(argp7);
8892 }
8893 if (obj7) {
8894 {
8895 arg8 = wxString_in_helper(obj7);
8896 if (arg8 == NULL) SWIG_fail;
8897 temp8 = true;
8898 }
8899 }
8900 {
8901 if (!wxPyCheckForApp()) SWIG_fail;
8902 PyThreadState* __tstate = wxPyBeginAllowThreads();
8903 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8904 wxPyEndAllowThreads(__tstate);
8905 if (PyErr_Occurred()) SWIG_fail;
8906 }
8907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8908 {
8909 if (temp5) delete arg5;
8910 }
8911 {
8912 if (temp8)
8913 delete arg8;
8914 }
8915 return resultobj;
8916 fail:
8917 {
8918 if (temp5) delete arg5;
8919 }
8920 {
8921 if (temp8)
8922 delete arg8;
8923 }
8924 return NULL;
8925 }
8926
8927
8928 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8929 PyObject *resultobj = 0;
8930 wxListBox *result = 0 ;
8931
8932 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8933 {
8934 if (!wxPyCheckForApp()) SWIG_fail;
8935 PyThreadState* __tstate = wxPyBeginAllowThreads();
8936 result = (wxListBox *)new wxListBox();
8937 wxPyEndAllowThreads(__tstate);
8938 if (PyErr_Occurred()) SWIG_fail;
8939 }
8940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8941 return resultobj;
8942 fail:
8943 return NULL;
8944 }
8945
8946
8947 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8948 PyObject *resultobj = 0;
8949 wxListBox *arg1 = (wxListBox *) 0 ;
8950 wxWindow *arg2 = (wxWindow *) 0 ;
8951 int arg3 = (int) -1 ;
8952 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8953 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8954 wxSize const &arg5_defvalue = wxDefaultSize ;
8955 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8956 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8957 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8958 long arg7 = (long) 0 ;
8959 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8960 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8961 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8962 wxString *arg9 = (wxString *) &arg9_defvalue ;
8963 bool result;
8964 void *argp1 = 0 ;
8965 int res1 = 0 ;
8966 void *argp2 = 0 ;
8967 int res2 = 0 ;
8968 int val3 ;
8969 int ecode3 = 0 ;
8970 wxPoint temp4 ;
8971 wxSize temp5 ;
8972 bool temp6 = false ;
8973 long val7 ;
8974 int ecode7 = 0 ;
8975 void *argp8 = 0 ;
8976 int res8 = 0 ;
8977 bool temp9 = false ;
8978 PyObject * obj0 = 0 ;
8979 PyObject * obj1 = 0 ;
8980 PyObject * obj2 = 0 ;
8981 PyObject * obj3 = 0 ;
8982 PyObject * obj4 = 0 ;
8983 PyObject * obj5 = 0 ;
8984 PyObject * obj6 = 0 ;
8985 PyObject * obj7 = 0 ;
8986 PyObject * obj8 = 0 ;
8987 char * kwnames[] = {
8988 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8989 };
8990
8991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8993 if (!SWIG_IsOK(res1)) {
8994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8995 }
8996 arg1 = reinterpret_cast< wxListBox * >(argp1);
8997 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8998 if (!SWIG_IsOK(res2)) {
8999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9000 }
9001 arg2 = reinterpret_cast< wxWindow * >(argp2);
9002 if (obj2) {
9003 ecode3 = SWIG_AsVal_int(obj2, &val3);
9004 if (!SWIG_IsOK(ecode3)) {
9005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9006 }
9007 arg3 = static_cast< int >(val3);
9008 }
9009 if (obj3) {
9010 {
9011 arg4 = &temp4;
9012 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9013 }
9014 }
9015 if (obj4) {
9016 {
9017 arg5 = &temp5;
9018 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9019 }
9020 }
9021 if (obj5) {
9022 {
9023 if (! PySequence_Check(obj5)) {
9024 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9025 SWIG_fail;
9026 }
9027 arg6 = new wxArrayString;
9028 temp6 = true;
9029 int i, len=PySequence_Length(obj5);
9030 for (i=0; i<len; i++) {
9031 PyObject* item = PySequence_GetItem(obj5, i);
9032 wxString* s = wxString_in_helper(item);
9033 if (PyErr_Occurred()) SWIG_fail;
9034 arg6->Add(*s);
9035 delete s;
9036 Py_DECREF(item);
9037 }
9038 }
9039 }
9040 if (obj6) {
9041 ecode7 = SWIG_AsVal_long(obj6, &val7);
9042 if (!SWIG_IsOK(ecode7)) {
9043 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9044 }
9045 arg7 = static_cast< long >(val7);
9046 }
9047 if (obj7) {
9048 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9049 if (!SWIG_IsOK(res8)) {
9050 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9051 }
9052 if (!argp8) {
9053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9054 }
9055 arg8 = reinterpret_cast< wxValidator * >(argp8);
9056 }
9057 if (obj8) {
9058 {
9059 arg9 = wxString_in_helper(obj8);
9060 if (arg9 == NULL) SWIG_fail;
9061 temp9 = true;
9062 }
9063 }
9064 {
9065 PyThreadState* __tstate = wxPyBeginAllowThreads();
9066 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9067 wxPyEndAllowThreads(__tstate);
9068 if (PyErr_Occurred()) SWIG_fail;
9069 }
9070 {
9071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9072 }
9073 {
9074 if (temp6) delete arg6;
9075 }
9076 {
9077 if (temp9)
9078 delete arg9;
9079 }
9080 return resultobj;
9081 fail:
9082 {
9083 if (temp6) delete arg6;
9084 }
9085 {
9086 if (temp9)
9087 delete arg9;
9088 }
9089 return NULL;
9090 }
9091
9092
9093 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9094 PyObject *resultobj = 0;
9095 wxListBox *arg1 = (wxListBox *) 0 ;
9096 wxString *arg2 = 0 ;
9097 int arg3 ;
9098 PyObject *arg4 = (PyObject *) NULL ;
9099 void *argp1 = 0 ;
9100 int res1 = 0 ;
9101 bool temp2 = false ;
9102 int val3 ;
9103 int ecode3 = 0 ;
9104 PyObject * obj0 = 0 ;
9105 PyObject * obj1 = 0 ;
9106 PyObject * obj2 = 0 ;
9107 PyObject * obj3 = 0 ;
9108 char * kwnames[] = {
9109 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9110 };
9111
9112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9114 if (!SWIG_IsOK(res1)) {
9115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9116 }
9117 arg1 = reinterpret_cast< wxListBox * >(argp1);
9118 {
9119 arg2 = wxString_in_helper(obj1);
9120 if (arg2 == NULL) SWIG_fail;
9121 temp2 = true;
9122 }
9123 ecode3 = SWIG_AsVal_int(obj2, &val3);
9124 if (!SWIG_IsOK(ecode3)) {
9125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9126 }
9127 arg3 = static_cast< int >(val3);
9128 if (obj3) {
9129 arg4 = obj3;
9130 }
9131 {
9132 PyThreadState* __tstate = wxPyBeginAllowThreads();
9133 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9134 wxPyEndAllowThreads(__tstate);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 }
9137 resultobj = SWIG_Py_Void();
9138 {
9139 if (temp2)
9140 delete arg2;
9141 }
9142 return resultobj;
9143 fail:
9144 {
9145 if (temp2)
9146 delete arg2;
9147 }
9148 return NULL;
9149 }
9150
9151
9152 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9153 PyObject *resultobj = 0;
9154 wxListBox *arg1 = (wxListBox *) 0 ;
9155 wxArrayString *arg2 = 0 ;
9156 unsigned int arg3 ;
9157 void *argp1 = 0 ;
9158 int res1 = 0 ;
9159 bool temp2 = false ;
9160 unsigned int val3 ;
9161 int ecode3 = 0 ;
9162 PyObject * obj0 = 0 ;
9163 PyObject * obj1 = 0 ;
9164 PyObject * obj2 = 0 ;
9165 char * kwnames[] = {
9166 (char *) "self",(char *) "items",(char *) "pos", NULL
9167 };
9168
9169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9171 if (!SWIG_IsOK(res1)) {
9172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9173 }
9174 arg1 = reinterpret_cast< wxListBox * >(argp1);
9175 {
9176 if (! PySequence_Check(obj1)) {
9177 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9178 SWIG_fail;
9179 }
9180 arg2 = new wxArrayString;
9181 temp2 = true;
9182 int i, len=PySequence_Length(obj1);
9183 for (i=0; i<len; i++) {
9184 PyObject* item = PySequence_GetItem(obj1, i);
9185 wxString* s = wxString_in_helper(item);
9186 if (PyErr_Occurred()) SWIG_fail;
9187 arg2->Add(*s);
9188 delete s;
9189 Py_DECREF(item);
9190 }
9191 }
9192 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9193 if (!SWIG_IsOK(ecode3)) {
9194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9195 }
9196 arg3 = static_cast< unsigned int >(val3);
9197 {
9198 PyThreadState* __tstate = wxPyBeginAllowThreads();
9199 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9200 wxPyEndAllowThreads(__tstate);
9201 if (PyErr_Occurred()) SWIG_fail;
9202 }
9203 resultobj = SWIG_Py_Void();
9204 {
9205 if (temp2) delete arg2;
9206 }
9207 return resultobj;
9208 fail:
9209 {
9210 if (temp2) delete arg2;
9211 }
9212 return NULL;
9213 }
9214
9215
9216 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9217 PyObject *resultobj = 0;
9218 wxListBox *arg1 = (wxListBox *) 0 ;
9219 wxArrayString *arg2 = 0 ;
9220 void *argp1 = 0 ;
9221 int res1 = 0 ;
9222 bool temp2 = false ;
9223 PyObject * obj0 = 0 ;
9224 PyObject * obj1 = 0 ;
9225 char * kwnames[] = {
9226 (char *) "self",(char *) "items", NULL
9227 };
9228
9229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9231 if (!SWIG_IsOK(res1)) {
9232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9233 }
9234 arg1 = reinterpret_cast< wxListBox * >(argp1);
9235 {
9236 if (! PySequence_Check(obj1)) {
9237 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9238 SWIG_fail;
9239 }
9240 arg2 = new wxArrayString;
9241 temp2 = true;
9242 int i, len=PySequence_Length(obj1);
9243 for (i=0; i<len; i++) {
9244 PyObject* item = PySequence_GetItem(obj1, i);
9245 wxString* s = wxString_in_helper(item);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 arg2->Add(*s);
9248 delete s;
9249 Py_DECREF(item);
9250 }
9251 }
9252 {
9253 PyThreadState* __tstate = wxPyBeginAllowThreads();
9254 (arg1)->Set((wxArrayString const &)*arg2);
9255 wxPyEndAllowThreads(__tstate);
9256 if (PyErr_Occurred()) SWIG_fail;
9257 }
9258 resultobj = SWIG_Py_Void();
9259 {
9260 if (temp2) delete arg2;
9261 }
9262 return resultobj;
9263 fail:
9264 {
9265 if (temp2) delete arg2;
9266 }
9267 return NULL;
9268 }
9269
9270
9271 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9272 PyObject *resultobj = 0;
9273 wxListBox *arg1 = (wxListBox *) 0 ;
9274 int arg2 ;
9275 bool result;
9276 void *argp1 = 0 ;
9277 int res1 = 0 ;
9278 int val2 ;
9279 int ecode2 = 0 ;
9280 PyObject * obj0 = 0 ;
9281 PyObject * obj1 = 0 ;
9282 char * kwnames[] = {
9283 (char *) "self",(char *) "n", NULL
9284 };
9285
9286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9288 if (!SWIG_IsOK(res1)) {
9289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9290 }
9291 arg1 = reinterpret_cast< wxListBox * >(argp1);
9292 ecode2 = SWIG_AsVal_int(obj1, &val2);
9293 if (!SWIG_IsOK(ecode2)) {
9294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9295 }
9296 arg2 = static_cast< int >(val2);
9297 {
9298 PyThreadState* __tstate = wxPyBeginAllowThreads();
9299 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9300 wxPyEndAllowThreads(__tstate);
9301 if (PyErr_Occurred()) SWIG_fail;
9302 }
9303 {
9304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9305 }
9306 return resultobj;
9307 fail:
9308 return NULL;
9309 }
9310
9311
9312 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9313 PyObject *resultobj = 0;
9314 wxListBox *arg1 = (wxListBox *) 0 ;
9315 int arg2 ;
9316 bool arg3 = (bool) true ;
9317 void *argp1 = 0 ;
9318 int res1 = 0 ;
9319 int val2 ;
9320 int ecode2 = 0 ;
9321 bool val3 ;
9322 int ecode3 = 0 ;
9323 PyObject * obj0 = 0 ;
9324 PyObject * obj1 = 0 ;
9325 PyObject * obj2 = 0 ;
9326 char * kwnames[] = {
9327 (char *) "self",(char *) "n",(char *) "select", NULL
9328 };
9329
9330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9332 if (!SWIG_IsOK(res1)) {
9333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9334 }
9335 arg1 = reinterpret_cast< wxListBox * >(argp1);
9336 ecode2 = SWIG_AsVal_int(obj1, &val2);
9337 if (!SWIG_IsOK(ecode2)) {
9338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9339 }
9340 arg2 = static_cast< int >(val2);
9341 if (obj2) {
9342 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9343 if (!SWIG_IsOK(ecode3)) {
9344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9345 }
9346 arg3 = static_cast< bool >(val3);
9347 }
9348 {
9349 PyThreadState* __tstate = wxPyBeginAllowThreads();
9350 (arg1)->SetSelection(arg2,arg3);
9351 wxPyEndAllowThreads(__tstate);
9352 if (PyErr_Occurred()) SWIG_fail;
9353 }
9354 resultobj = SWIG_Py_Void();
9355 return resultobj;
9356 fail:
9357 return NULL;
9358 }
9359
9360
9361 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9362 PyObject *resultobj = 0;
9363 wxListBox *arg1 = (wxListBox *) 0 ;
9364 int arg2 ;
9365 void *argp1 = 0 ;
9366 int res1 = 0 ;
9367 int val2 ;
9368 int ecode2 = 0 ;
9369 PyObject * obj0 = 0 ;
9370 PyObject * obj1 = 0 ;
9371 char * kwnames[] = {
9372 (char *) "self",(char *) "n", NULL
9373 };
9374
9375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9377 if (!SWIG_IsOK(res1)) {
9378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9379 }
9380 arg1 = reinterpret_cast< wxListBox * >(argp1);
9381 ecode2 = SWIG_AsVal_int(obj1, &val2);
9382 if (!SWIG_IsOK(ecode2)) {
9383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9384 }
9385 arg2 = static_cast< int >(val2);
9386 {
9387 PyThreadState* __tstate = wxPyBeginAllowThreads();
9388 (arg1)->Select(arg2);
9389 wxPyEndAllowThreads(__tstate);
9390 if (PyErr_Occurred()) SWIG_fail;
9391 }
9392 resultobj = SWIG_Py_Void();
9393 return resultobj;
9394 fail:
9395 return NULL;
9396 }
9397
9398
9399 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9400 PyObject *resultobj = 0;
9401 wxListBox *arg1 = (wxListBox *) 0 ;
9402 int arg2 ;
9403 void *argp1 = 0 ;
9404 int res1 = 0 ;
9405 int val2 ;
9406 int ecode2 = 0 ;
9407 PyObject * obj0 = 0 ;
9408 PyObject * obj1 = 0 ;
9409 char * kwnames[] = {
9410 (char *) "self",(char *) "n", NULL
9411 };
9412
9413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9415 if (!SWIG_IsOK(res1)) {
9416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9417 }
9418 arg1 = reinterpret_cast< wxListBox * >(argp1);
9419 ecode2 = SWIG_AsVal_int(obj1, &val2);
9420 if (!SWIG_IsOK(ecode2)) {
9421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9422 }
9423 arg2 = static_cast< int >(val2);
9424 {
9425 PyThreadState* __tstate = wxPyBeginAllowThreads();
9426 (arg1)->Deselect(arg2);
9427 wxPyEndAllowThreads(__tstate);
9428 if (PyErr_Occurred()) SWIG_fail;
9429 }
9430 resultobj = SWIG_Py_Void();
9431 return resultobj;
9432 fail:
9433 return NULL;
9434 }
9435
9436
9437 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9438 PyObject *resultobj = 0;
9439 wxListBox *arg1 = (wxListBox *) 0 ;
9440 int arg2 = (int) -1 ;
9441 void *argp1 = 0 ;
9442 int res1 = 0 ;
9443 int val2 ;
9444 int ecode2 = 0 ;
9445 PyObject * obj0 = 0 ;
9446 PyObject * obj1 = 0 ;
9447 char * kwnames[] = {
9448 (char *) "self",(char *) "itemToLeaveSelected", NULL
9449 };
9450
9451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9453 if (!SWIG_IsOK(res1)) {
9454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9455 }
9456 arg1 = reinterpret_cast< wxListBox * >(argp1);
9457 if (obj1) {
9458 ecode2 = SWIG_AsVal_int(obj1, &val2);
9459 if (!SWIG_IsOK(ecode2)) {
9460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9461 }
9462 arg2 = static_cast< int >(val2);
9463 }
9464 {
9465 PyThreadState* __tstate = wxPyBeginAllowThreads();
9466 (arg1)->DeselectAll(arg2);
9467 wxPyEndAllowThreads(__tstate);
9468 if (PyErr_Occurred()) SWIG_fail;
9469 }
9470 resultobj = SWIG_Py_Void();
9471 return resultobj;
9472 fail:
9473 return NULL;
9474 }
9475
9476
9477 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9478 PyObject *resultobj = 0;
9479 wxListBox *arg1 = (wxListBox *) 0 ;
9480 wxString *arg2 = 0 ;
9481 bool arg3 = (bool) true ;
9482 bool result;
9483 void *argp1 = 0 ;
9484 int res1 = 0 ;
9485 bool temp2 = false ;
9486 bool val3 ;
9487 int ecode3 = 0 ;
9488 PyObject * obj0 = 0 ;
9489 PyObject * obj1 = 0 ;
9490 PyObject * obj2 = 0 ;
9491 char * kwnames[] = {
9492 (char *) "self",(char *) "s",(char *) "select", NULL
9493 };
9494
9495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9497 if (!SWIG_IsOK(res1)) {
9498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9499 }
9500 arg1 = reinterpret_cast< wxListBox * >(argp1);
9501 {
9502 arg2 = wxString_in_helper(obj1);
9503 if (arg2 == NULL) SWIG_fail;
9504 temp2 = true;
9505 }
9506 if (obj2) {
9507 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9508 if (!SWIG_IsOK(ecode3)) {
9509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9510 }
9511 arg3 = static_cast< bool >(val3);
9512 }
9513 {
9514 PyThreadState* __tstate = wxPyBeginAllowThreads();
9515 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9516 wxPyEndAllowThreads(__tstate);
9517 if (PyErr_Occurred()) SWIG_fail;
9518 }
9519 {
9520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9521 }
9522 {
9523 if (temp2)
9524 delete arg2;
9525 }
9526 return resultobj;
9527 fail:
9528 {
9529 if (temp2)
9530 delete arg2;
9531 }
9532 return NULL;
9533 }
9534
9535
9536 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9537 PyObject *resultobj = 0;
9538 wxListBox *arg1 = (wxListBox *) 0 ;
9539 PyObject *result = 0 ;
9540 void *argp1 = 0 ;
9541 int res1 = 0 ;
9542 PyObject *swig_obj[1] ;
9543
9544 if (!args) SWIG_fail;
9545 swig_obj[0] = args;
9546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9547 if (!SWIG_IsOK(res1)) {
9548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9549 }
9550 arg1 = reinterpret_cast< wxListBox * >(argp1);
9551 {
9552 PyThreadState* __tstate = wxPyBeginAllowThreads();
9553 result = (PyObject *)wxListBox_GetSelections(arg1);
9554 wxPyEndAllowThreads(__tstate);
9555 if (PyErr_Occurred()) SWIG_fail;
9556 }
9557 resultobj = result;
9558 return resultobj;
9559 fail:
9560 return NULL;
9561 }
9562
9563
9564 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9565 PyObject *resultobj = 0;
9566 wxListBox *arg1 = (wxListBox *) 0 ;
9567 int arg2 ;
9568 void *argp1 = 0 ;
9569 int res1 = 0 ;
9570 int val2 ;
9571 int ecode2 = 0 ;
9572 PyObject * obj0 = 0 ;
9573 PyObject * obj1 = 0 ;
9574 char * kwnames[] = {
9575 (char *) "self",(char *) "n", NULL
9576 };
9577
9578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9580 if (!SWIG_IsOK(res1)) {
9581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9582 }
9583 arg1 = reinterpret_cast< wxListBox * >(argp1);
9584 ecode2 = SWIG_AsVal_int(obj1, &val2);
9585 if (!SWIG_IsOK(ecode2)) {
9586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9587 }
9588 arg2 = static_cast< int >(val2);
9589 {
9590 PyThreadState* __tstate = wxPyBeginAllowThreads();
9591 (arg1)->SetFirstItem(arg2);
9592 wxPyEndAllowThreads(__tstate);
9593 if (PyErr_Occurred()) SWIG_fail;
9594 }
9595 resultobj = SWIG_Py_Void();
9596 return resultobj;
9597 fail:
9598 return NULL;
9599 }
9600
9601
9602 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9603 PyObject *resultobj = 0;
9604 wxListBox *arg1 = (wxListBox *) 0 ;
9605 wxString *arg2 = 0 ;
9606 void *argp1 = 0 ;
9607 int res1 = 0 ;
9608 bool temp2 = false ;
9609 PyObject * obj0 = 0 ;
9610 PyObject * obj1 = 0 ;
9611 char * kwnames[] = {
9612 (char *) "self",(char *) "s", NULL
9613 };
9614
9615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9617 if (!SWIG_IsOK(res1)) {
9618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9619 }
9620 arg1 = reinterpret_cast< wxListBox * >(argp1);
9621 {
9622 arg2 = wxString_in_helper(obj1);
9623 if (arg2 == NULL) SWIG_fail;
9624 temp2 = true;
9625 }
9626 {
9627 PyThreadState* __tstate = wxPyBeginAllowThreads();
9628 (arg1)->SetFirstItem((wxString const &)*arg2);
9629 wxPyEndAllowThreads(__tstate);
9630 if (PyErr_Occurred()) SWIG_fail;
9631 }
9632 resultobj = SWIG_Py_Void();
9633 {
9634 if (temp2)
9635 delete arg2;
9636 }
9637 return resultobj;
9638 fail:
9639 {
9640 if (temp2)
9641 delete arg2;
9642 }
9643 return NULL;
9644 }
9645
9646
9647 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9648 PyObject *resultobj = 0;
9649 wxListBox *arg1 = (wxListBox *) 0 ;
9650 int arg2 ;
9651 void *argp1 = 0 ;
9652 int res1 = 0 ;
9653 int val2 ;
9654 int ecode2 = 0 ;
9655 PyObject * obj0 = 0 ;
9656 PyObject * obj1 = 0 ;
9657 char * kwnames[] = {
9658 (char *) "self",(char *) "n", NULL
9659 };
9660
9661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9663 if (!SWIG_IsOK(res1)) {
9664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9665 }
9666 arg1 = reinterpret_cast< wxListBox * >(argp1);
9667 ecode2 = SWIG_AsVal_int(obj1, &val2);
9668 if (!SWIG_IsOK(ecode2)) {
9669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9670 }
9671 arg2 = static_cast< int >(val2);
9672 {
9673 PyThreadState* __tstate = wxPyBeginAllowThreads();
9674 (arg1)->EnsureVisible(arg2);
9675 wxPyEndAllowThreads(__tstate);
9676 if (PyErr_Occurred()) SWIG_fail;
9677 }
9678 resultobj = SWIG_Py_Void();
9679 return resultobj;
9680 fail:
9681 return NULL;
9682 }
9683
9684
9685 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9686 PyObject *resultobj = 0;
9687 wxListBox *arg1 = (wxListBox *) 0 ;
9688 wxString *arg2 = 0 ;
9689 void *argp1 = 0 ;
9690 int res1 = 0 ;
9691 bool temp2 = false ;
9692 PyObject * obj0 = 0 ;
9693 PyObject * obj1 = 0 ;
9694 char * kwnames[] = {
9695 (char *) "self",(char *) "s", NULL
9696 };
9697
9698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9700 if (!SWIG_IsOK(res1)) {
9701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9702 }
9703 arg1 = reinterpret_cast< wxListBox * >(argp1);
9704 {
9705 arg2 = wxString_in_helper(obj1);
9706 if (arg2 == NULL) SWIG_fail;
9707 temp2 = true;
9708 }
9709 {
9710 PyThreadState* __tstate = wxPyBeginAllowThreads();
9711 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9712 wxPyEndAllowThreads(__tstate);
9713 if (PyErr_Occurred()) SWIG_fail;
9714 }
9715 resultobj = SWIG_Py_Void();
9716 {
9717 if (temp2)
9718 delete arg2;
9719 }
9720 return resultobj;
9721 fail:
9722 {
9723 if (temp2)
9724 delete arg2;
9725 }
9726 return NULL;
9727 }
9728
9729
9730 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9731 PyObject *resultobj = 0;
9732 wxListBox *arg1 = (wxListBox *) 0 ;
9733 bool result;
9734 void *argp1 = 0 ;
9735 int res1 = 0 ;
9736 PyObject *swig_obj[1] ;
9737
9738 if (!args) SWIG_fail;
9739 swig_obj[0] = args;
9740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9741 if (!SWIG_IsOK(res1)) {
9742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9743 }
9744 arg1 = reinterpret_cast< wxListBox * >(argp1);
9745 {
9746 PyThreadState* __tstate = wxPyBeginAllowThreads();
9747 result = (bool)((wxListBox const *)arg1)->IsSorted();
9748 wxPyEndAllowThreads(__tstate);
9749 if (PyErr_Occurred()) SWIG_fail;
9750 }
9751 {
9752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9753 }
9754 return resultobj;
9755 fail:
9756 return NULL;
9757 }
9758
9759
9760 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9761 PyObject *resultobj = 0;
9762 wxListBox *arg1 = (wxListBox *) 0 ;
9763 wxPoint *arg2 = 0 ;
9764 int result;
9765 void *argp1 = 0 ;
9766 int res1 = 0 ;
9767 wxPoint temp2 ;
9768 PyObject * obj0 = 0 ;
9769 PyObject * obj1 = 0 ;
9770 char * kwnames[] = {
9771 (char *) "self",(char *) "pt", NULL
9772 };
9773
9774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9776 if (!SWIG_IsOK(res1)) {
9777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9778 }
9779 arg1 = reinterpret_cast< wxListBox * >(argp1);
9780 {
9781 arg2 = &temp2;
9782 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9783 }
9784 {
9785 PyThreadState* __tstate = wxPyBeginAllowThreads();
9786 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9787 wxPyEndAllowThreads(__tstate);
9788 if (PyErr_Occurred()) SWIG_fail;
9789 }
9790 resultobj = SWIG_From_int(static_cast< int >(result));
9791 return resultobj;
9792 fail:
9793 return NULL;
9794 }
9795
9796
9797 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9798 PyObject *resultobj = 0;
9799 wxListBox *arg1 = (wxListBox *) 0 ;
9800 int arg2 ;
9801 wxColour *arg3 = 0 ;
9802 void *argp1 = 0 ;
9803 int res1 = 0 ;
9804 int val2 ;
9805 int ecode2 = 0 ;
9806 wxColour temp3 ;
9807 PyObject * obj0 = 0 ;
9808 PyObject * obj1 = 0 ;
9809 PyObject * obj2 = 0 ;
9810 char * kwnames[] = {
9811 (char *) "self",(char *) "item",(char *) "c", NULL
9812 };
9813
9814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9816 if (!SWIG_IsOK(res1)) {
9817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9818 }
9819 arg1 = reinterpret_cast< wxListBox * >(argp1);
9820 ecode2 = SWIG_AsVal_int(obj1, &val2);
9821 if (!SWIG_IsOK(ecode2)) {
9822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9823 }
9824 arg2 = static_cast< int >(val2);
9825 {
9826 arg3 = &temp3;
9827 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9828 }
9829 {
9830 PyThreadState* __tstate = wxPyBeginAllowThreads();
9831 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9832 wxPyEndAllowThreads(__tstate);
9833 if (PyErr_Occurred()) SWIG_fail;
9834 }
9835 resultobj = SWIG_Py_Void();
9836 return resultobj;
9837 fail:
9838 return NULL;
9839 }
9840
9841
9842 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9843 PyObject *resultobj = 0;
9844 wxListBox *arg1 = (wxListBox *) 0 ;
9845 int arg2 ;
9846 wxColour *arg3 = 0 ;
9847 void *argp1 = 0 ;
9848 int res1 = 0 ;
9849 int val2 ;
9850 int ecode2 = 0 ;
9851 wxColour temp3 ;
9852 PyObject * obj0 = 0 ;
9853 PyObject * obj1 = 0 ;
9854 PyObject * obj2 = 0 ;
9855 char * kwnames[] = {
9856 (char *) "self",(char *) "item",(char *) "c", NULL
9857 };
9858
9859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9861 if (!SWIG_IsOK(res1)) {
9862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9863 }
9864 arg1 = reinterpret_cast< wxListBox * >(argp1);
9865 ecode2 = SWIG_AsVal_int(obj1, &val2);
9866 if (!SWIG_IsOK(ecode2)) {
9867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9868 }
9869 arg2 = static_cast< int >(val2);
9870 {
9871 arg3 = &temp3;
9872 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9873 }
9874 {
9875 PyThreadState* __tstate = wxPyBeginAllowThreads();
9876 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9877 wxPyEndAllowThreads(__tstate);
9878 if (PyErr_Occurred()) SWIG_fail;
9879 }
9880 resultobj = SWIG_Py_Void();
9881 return resultobj;
9882 fail:
9883 return NULL;
9884 }
9885
9886
9887 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9888 PyObject *resultobj = 0;
9889 wxListBox *arg1 = (wxListBox *) 0 ;
9890 int arg2 ;
9891 wxFont *arg3 = 0 ;
9892 void *argp1 = 0 ;
9893 int res1 = 0 ;
9894 int val2 ;
9895 int ecode2 = 0 ;
9896 void *argp3 = 0 ;
9897 int res3 = 0 ;
9898 PyObject * obj0 = 0 ;
9899 PyObject * obj1 = 0 ;
9900 PyObject * obj2 = 0 ;
9901 char * kwnames[] = {
9902 (char *) "self",(char *) "item",(char *) "f", NULL
9903 };
9904
9905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9907 if (!SWIG_IsOK(res1)) {
9908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9909 }
9910 arg1 = reinterpret_cast< wxListBox * >(argp1);
9911 ecode2 = SWIG_AsVal_int(obj1, &val2);
9912 if (!SWIG_IsOK(ecode2)) {
9913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9914 }
9915 arg2 = static_cast< int >(val2);
9916 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9917 if (!SWIG_IsOK(res3)) {
9918 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9919 }
9920 if (!argp3) {
9921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9922 }
9923 arg3 = reinterpret_cast< wxFont * >(argp3);
9924 {
9925 PyThreadState* __tstate = wxPyBeginAllowThreads();
9926 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9927 wxPyEndAllowThreads(__tstate);
9928 if (PyErr_Occurred()) SWIG_fail;
9929 }
9930 resultobj = SWIG_Py_Void();
9931 return resultobj;
9932 fail:
9933 return NULL;
9934 }
9935
9936
9937 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9938 PyObject *resultobj = 0;
9939 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9940 SwigValueWrapper<wxVisualAttributes > result;
9941 int val1 ;
9942 int ecode1 = 0 ;
9943 PyObject * obj0 = 0 ;
9944 char * kwnames[] = {
9945 (char *) "variant", NULL
9946 };
9947
9948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9949 if (obj0) {
9950 ecode1 = SWIG_AsVal_int(obj0, &val1);
9951 if (!SWIG_IsOK(ecode1)) {
9952 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9953 }
9954 arg1 = static_cast< wxWindowVariant >(val1);
9955 }
9956 {
9957 if (!wxPyCheckForApp()) SWIG_fail;
9958 PyThreadState* __tstate = wxPyBeginAllowThreads();
9959 result = wxListBox::GetClassDefaultAttributes(arg1);
9960 wxPyEndAllowThreads(__tstate);
9961 if (PyErr_Occurred()) SWIG_fail;
9962 }
9963 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9964 return resultobj;
9965 fail:
9966 return NULL;
9967 }
9968
9969
9970 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9971 PyObject *obj;
9972 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9973 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9974 return SWIG_Py_Void();
9975 }
9976
9977 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9978 return SWIG_Python_InitShadowInstance(args);
9979 }
9980
9981 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9982 PyObject *resultobj = 0;
9983 wxWindow *arg1 = (wxWindow *) 0 ;
9984 int arg2 = (int) -1 ;
9985 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9986 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9987 wxSize const &arg4_defvalue = wxDefaultSize ;
9988 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9989 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9990 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9991 long arg6 = (long) 0 ;
9992 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9993 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9994 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9995 wxString *arg8 = (wxString *) &arg8_defvalue ;
9996 wxCheckListBox *result = 0 ;
9997 void *argp1 = 0 ;
9998 int res1 = 0 ;
9999 int val2 ;
10000 int ecode2 = 0 ;
10001 wxPoint temp3 ;
10002 wxSize temp4 ;
10003 bool temp5 = false ;
10004 long val6 ;
10005 int ecode6 = 0 ;
10006 void *argp7 = 0 ;
10007 int res7 = 0 ;
10008 bool temp8 = false ;
10009 PyObject * obj0 = 0 ;
10010 PyObject * obj1 = 0 ;
10011 PyObject * obj2 = 0 ;
10012 PyObject * obj3 = 0 ;
10013 PyObject * obj4 = 0 ;
10014 PyObject * obj5 = 0 ;
10015 PyObject * obj6 = 0 ;
10016 PyObject * obj7 = 0 ;
10017 char * kwnames[] = {
10018 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10019 };
10020
10021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10023 if (!SWIG_IsOK(res1)) {
10024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10025 }
10026 arg1 = reinterpret_cast< wxWindow * >(argp1);
10027 if (obj1) {
10028 ecode2 = SWIG_AsVal_int(obj1, &val2);
10029 if (!SWIG_IsOK(ecode2)) {
10030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10031 }
10032 arg2 = static_cast< int >(val2);
10033 }
10034 if (obj2) {
10035 {
10036 arg3 = &temp3;
10037 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10038 }
10039 }
10040 if (obj3) {
10041 {
10042 arg4 = &temp4;
10043 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10044 }
10045 }
10046 if (obj4) {
10047 {
10048 if (! PySequence_Check(obj4)) {
10049 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10050 SWIG_fail;
10051 }
10052 arg5 = new wxArrayString;
10053 temp5 = true;
10054 int i, len=PySequence_Length(obj4);
10055 for (i=0; i<len; i++) {
10056 PyObject* item = PySequence_GetItem(obj4, i);
10057 wxString* s = wxString_in_helper(item);
10058 if (PyErr_Occurred()) SWIG_fail;
10059 arg5->Add(*s);
10060 delete s;
10061 Py_DECREF(item);
10062 }
10063 }
10064 }
10065 if (obj5) {
10066 ecode6 = SWIG_AsVal_long(obj5, &val6);
10067 if (!SWIG_IsOK(ecode6)) {
10068 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10069 }
10070 arg6 = static_cast< long >(val6);
10071 }
10072 if (obj6) {
10073 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10074 if (!SWIG_IsOK(res7)) {
10075 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10076 }
10077 if (!argp7) {
10078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10079 }
10080 arg7 = reinterpret_cast< wxValidator * >(argp7);
10081 }
10082 if (obj7) {
10083 {
10084 arg8 = wxString_in_helper(obj7);
10085 if (arg8 == NULL) SWIG_fail;
10086 temp8 = true;
10087 }
10088 }
10089 {
10090 if (!wxPyCheckForApp()) SWIG_fail;
10091 PyThreadState* __tstate = wxPyBeginAllowThreads();
10092 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10093 wxPyEndAllowThreads(__tstate);
10094 if (PyErr_Occurred()) SWIG_fail;
10095 }
10096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10097 {
10098 if (temp5) delete arg5;
10099 }
10100 {
10101 if (temp8)
10102 delete arg8;
10103 }
10104 return resultobj;
10105 fail:
10106 {
10107 if (temp5) delete arg5;
10108 }
10109 {
10110 if (temp8)
10111 delete arg8;
10112 }
10113 return NULL;
10114 }
10115
10116
10117 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10118 PyObject *resultobj = 0;
10119 wxCheckListBox *result = 0 ;
10120
10121 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10122 {
10123 if (!wxPyCheckForApp()) SWIG_fail;
10124 PyThreadState* __tstate = wxPyBeginAllowThreads();
10125 result = (wxCheckListBox *)new wxCheckListBox();
10126 wxPyEndAllowThreads(__tstate);
10127 if (PyErr_Occurred()) SWIG_fail;
10128 }
10129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10130 return resultobj;
10131 fail:
10132 return NULL;
10133 }
10134
10135
10136 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10137 PyObject *resultobj = 0;
10138 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10139 wxWindow *arg2 = (wxWindow *) 0 ;
10140 int arg3 = (int) -1 ;
10141 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10142 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10143 wxSize const &arg5_defvalue = wxDefaultSize ;
10144 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10145 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10146 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10147 long arg7 = (long) 0 ;
10148 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10149 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10150 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10151 wxString *arg9 = (wxString *) &arg9_defvalue ;
10152 bool result;
10153 void *argp1 = 0 ;
10154 int res1 = 0 ;
10155 void *argp2 = 0 ;
10156 int res2 = 0 ;
10157 int val3 ;
10158 int ecode3 = 0 ;
10159 wxPoint temp4 ;
10160 wxSize temp5 ;
10161 bool temp6 = false ;
10162 long val7 ;
10163 int ecode7 = 0 ;
10164 void *argp8 = 0 ;
10165 int res8 = 0 ;
10166 bool temp9 = false ;
10167 PyObject * obj0 = 0 ;
10168 PyObject * obj1 = 0 ;
10169 PyObject * obj2 = 0 ;
10170 PyObject * obj3 = 0 ;
10171 PyObject * obj4 = 0 ;
10172 PyObject * obj5 = 0 ;
10173 PyObject * obj6 = 0 ;
10174 PyObject * obj7 = 0 ;
10175 PyObject * obj8 = 0 ;
10176 char * kwnames[] = {
10177 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10178 };
10179
10180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10182 if (!SWIG_IsOK(res1)) {
10183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10184 }
10185 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10186 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10187 if (!SWIG_IsOK(res2)) {
10188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10189 }
10190 arg2 = reinterpret_cast< wxWindow * >(argp2);
10191 if (obj2) {
10192 ecode3 = SWIG_AsVal_int(obj2, &val3);
10193 if (!SWIG_IsOK(ecode3)) {
10194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10195 }
10196 arg3 = static_cast< int >(val3);
10197 }
10198 if (obj3) {
10199 {
10200 arg4 = &temp4;
10201 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10202 }
10203 }
10204 if (obj4) {
10205 {
10206 arg5 = &temp5;
10207 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10208 }
10209 }
10210 if (obj5) {
10211 {
10212 if (! PySequence_Check(obj5)) {
10213 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10214 SWIG_fail;
10215 }
10216 arg6 = new wxArrayString;
10217 temp6 = true;
10218 int i, len=PySequence_Length(obj5);
10219 for (i=0; i<len; i++) {
10220 PyObject* item = PySequence_GetItem(obj5, i);
10221 wxString* s = wxString_in_helper(item);
10222 if (PyErr_Occurred()) SWIG_fail;
10223 arg6->Add(*s);
10224 delete s;
10225 Py_DECREF(item);
10226 }
10227 }
10228 }
10229 if (obj6) {
10230 ecode7 = SWIG_AsVal_long(obj6, &val7);
10231 if (!SWIG_IsOK(ecode7)) {
10232 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10233 }
10234 arg7 = static_cast< long >(val7);
10235 }
10236 if (obj7) {
10237 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10238 if (!SWIG_IsOK(res8)) {
10239 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10240 }
10241 if (!argp8) {
10242 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10243 }
10244 arg8 = reinterpret_cast< wxValidator * >(argp8);
10245 }
10246 if (obj8) {
10247 {
10248 arg9 = wxString_in_helper(obj8);
10249 if (arg9 == NULL) SWIG_fail;
10250 temp9 = true;
10251 }
10252 }
10253 {
10254 PyThreadState* __tstate = wxPyBeginAllowThreads();
10255 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10256 wxPyEndAllowThreads(__tstate);
10257 if (PyErr_Occurred()) SWIG_fail;
10258 }
10259 {
10260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10261 }
10262 {
10263 if (temp6) delete arg6;
10264 }
10265 {
10266 if (temp9)
10267 delete arg9;
10268 }
10269 return resultobj;
10270 fail:
10271 {
10272 if (temp6) delete arg6;
10273 }
10274 {
10275 if (temp9)
10276 delete arg9;
10277 }
10278 return NULL;
10279 }
10280
10281
10282 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10283 PyObject *resultobj = 0;
10284 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10285 unsigned int arg2 ;
10286 bool result;
10287 void *argp1 = 0 ;
10288 int res1 = 0 ;
10289 unsigned int val2 ;
10290 int ecode2 = 0 ;
10291 PyObject * obj0 = 0 ;
10292 PyObject * obj1 = 0 ;
10293 char * kwnames[] = {
10294 (char *) "self",(char *) "index", NULL
10295 };
10296
10297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10299 if (!SWIG_IsOK(res1)) {
10300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10301 }
10302 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10303 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10304 if (!SWIG_IsOK(ecode2)) {
10305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10306 }
10307 arg2 = static_cast< unsigned int >(val2);
10308 {
10309 PyThreadState* __tstate = wxPyBeginAllowThreads();
10310 result = (bool)(arg1)->IsChecked(arg2);
10311 wxPyEndAllowThreads(__tstate);
10312 if (PyErr_Occurred()) SWIG_fail;
10313 }
10314 {
10315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10316 }
10317 return resultobj;
10318 fail:
10319 return NULL;
10320 }
10321
10322
10323 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10324 PyObject *resultobj = 0;
10325 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10326 unsigned int arg2 ;
10327 int arg3 = (int) true ;
10328 void *argp1 = 0 ;
10329 int res1 = 0 ;
10330 unsigned int val2 ;
10331 int ecode2 = 0 ;
10332 int val3 ;
10333 int ecode3 = 0 ;
10334 PyObject * obj0 = 0 ;
10335 PyObject * obj1 = 0 ;
10336 PyObject * obj2 = 0 ;
10337 char * kwnames[] = {
10338 (char *) "self",(char *) "index",(char *) "check", NULL
10339 };
10340
10341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10343 if (!SWIG_IsOK(res1)) {
10344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10345 }
10346 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10347 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10348 if (!SWIG_IsOK(ecode2)) {
10349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10350 }
10351 arg2 = static_cast< unsigned int >(val2);
10352 if (obj2) {
10353 ecode3 = SWIG_AsVal_int(obj2, &val3);
10354 if (!SWIG_IsOK(ecode3)) {
10355 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10356 }
10357 arg3 = static_cast< int >(val3);
10358 }
10359 {
10360 PyThreadState* __tstate = wxPyBeginAllowThreads();
10361 (arg1)->Check(arg2,arg3);
10362 wxPyEndAllowThreads(__tstate);
10363 if (PyErr_Occurred()) SWIG_fail;
10364 }
10365 resultobj = SWIG_Py_Void();
10366 return resultobj;
10367 fail:
10368 return NULL;
10369 }
10370
10371
10372 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10373 PyObject *resultobj = 0;
10374 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10375 int result;
10376 void *argp1 = 0 ;
10377 int res1 = 0 ;
10378 PyObject *swig_obj[1] ;
10379
10380 if (!args) SWIG_fail;
10381 swig_obj[0] = args;
10382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10383 if (!SWIG_IsOK(res1)) {
10384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10385 }
10386 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10387 {
10388 PyThreadState* __tstate = wxPyBeginAllowThreads();
10389 result = (int)(arg1)->GetItemHeight();
10390 wxPyEndAllowThreads(__tstate);
10391 if (PyErr_Occurred()) SWIG_fail;
10392 }
10393 resultobj = SWIG_From_int(static_cast< int >(result));
10394 return resultobj;
10395 fail:
10396 return NULL;
10397 }
10398
10399
10400 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10401 PyObject *obj;
10402 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10403 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10404 return SWIG_Py_Void();
10405 }
10406
10407 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10408 return SWIG_Python_InitShadowInstance(args);
10409 }
10410
10411 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10412 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10413 return 1;
10414 }
10415
10416
10417 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10418 PyObject *pyobj = 0;
10419
10420 {
10421 #if wxUSE_UNICODE
10422 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10423 #else
10424 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10425 #endif
10426 }
10427 return pyobj;
10428 }
10429
10430
10431 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10432 PyObject *resultobj = 0;
10433 wxColour const &arg1_defvalue = wxNullColour ;
10434 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10435 wxColour const &arg2_defvalue = wxNullColour ;
10436 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10437 wxFont const &arg3_defvalue = wxNullFont ;
10438 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10439 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10440 wxTextAttr *result = 0 ;
10441 wxColour temp1 ;
10442 wxColour temp2 ;
10443 void *argp3 = 0 ;
10444 int res3 = 0 ;
10445 int val4 ;
10446 int ecode4 = 0 ;
10447 PyObject * obj0 = 0 ;
10448 PyObject * obj1 = 0 ;
10449 PyObject * obj2 = 0 ;
10450 PyObject * obj3 = 0 ;
10451 char * kwnames[] = {
10452 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10453 };
10454
10455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10456 if (obj0) {
10457 {
10458 arg1 = &temp1;
10459 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10460 }
10461 }
10462 if (obj1) {
10463 {
10464 arg2 = &temp2;
10465 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10466 }
10467 }
10468 if (obj2) {
10469 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10470 if (!SWIG_IsOK(res3)) {
10471 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10472 }
10473 if (!argp3) {
10474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10475 }
10476 arg3 = reinterpret_cast< wxFont * >(argp3);
10477 }
10478 if (obj3) {
10479 ecode4 = SWIG_AsVal_int(obj3, &val4);
10480 if (!SWIG_IsOK(ecode4)) {
10481 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10482 }
10483 arg4 = static_cast< wxTextAttrAlignment >(val4);
10484 }
10485 {
10486 PyThreadState* __tstate = wxPyBeginAllowThreads();
10487 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10488 wxPyEndAllowThreads(__tstate);
10489 if (PyErr_Occurred()) SWIG_fail;
10490 }
10491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10492 return resultobj;
10493 fail:
10494 return NULL;
10495 }
10496
10497
10498 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10499 PyObject *resultobj = 0;
10500 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10501 void *argp1 = 0 ;
10502 int res1 = 0 ;
10503 PyObject *swig_obj[1] ;
10504
10505 if (!args) SWIG_fail;
10506 swig_obj[0] = args;
10507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10508 if (!SWIG_IsOK(res1)) {
10509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10510 }
10511 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10512 {
10513 PyThreadState* __tstate = wxPyBeginAllowThreads();
10514 delete arg1;
10515
10516 wxPyEndAllowThreads(__tstate);
10517 if (PyErr_Occurred()) SWIG_fail;
10518 }
10519 resultobj = SWIG_Py_Void();
10520 return resultobj;
10521 fail:
10522 return NULL;
10523 }
10524
10525
10526 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10527 PyObject *resultobj = 0;
10528 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10529 void *argp1 = 0 ;
10530 int res1 = 0 ;
10531 PyObject *swig_obj[1] ;
10532
10533 if (!args) SWIG_fail;
10534 swig_obj[0] = args;
10535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10536 if (!SWIG_IsOK(res1)) {
10537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10538 }
10539 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10540 {
10541 PyThreadState* __tstate = wxPyBeginAllowThreads();
10542 (arg1)->Init();
10543 wxPyEndAllowThreads(__tstate);
10544 if (PyErr_Occurred()) SWIG_fail;
10545 }
10546 resultobj = SWIG_Py_Void();
10547 return resultobj;
10548 fail:
10549 return NULL;
10550 }
10551
10552
10553 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10554 PyObject *resultobj = 0;
10555 wxTextAttr *arg1 = 0 ;
10556 wxTextAttr *arg2 = 0 ;
10557 wxTextAttr result;
10558 void *argp1 = 0 ;
10559 int res1 = 0 ;
10560 void *argp2 = 0 ;
10561 int res2 = 0 ;
10562 PyObject * obj0 = 0 ;
10563 PyObject * obj1 = 0 ;
10564 char * kwnames[] = {
10565 (char *) "base",(char *) "overlay", NULL
10566 };
10567
10568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10569 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10570 if (!SWIG_IsOK(res1)) {
10571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10572 }
10573 if (!argp1) {
10574 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10575 }
10576 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10578 if (!SWIG_IsOK(res2)) {
10579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10580 }
10581 if (!argp2) {
10582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10583 }
10584 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10585 {
10586 PyThreadState* __tstate = wxPyBeginAllowThreads();
10587 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10588 wxPyEndAllowThreads(__tstate);
10589 if (PyErr_Occurred()) SWIG_fail;
10590 }
10591 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10592 return resultobj;
10593 fail:
10594 return NULL;
10595 }
10596
10597
10598 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10599 PyObject *resultobj = 0;
10600 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10601 wxColour *arg2 = 0 ;
10602 void *argp1 = 0 ;
10603 int res1 = 0 ;
10604 wxColour temp2 ;
10605 PyObject * obj0 = 0 ;
10606 PyObject * obj1 = 0 ;
10607 char * kwnames[] = {
10608 (char *) "self",(char *) "colText", NULL
10609 };
10610
10611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10613 if (!SWIG_IsOK(res1)) {
10614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10615 }
10616 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10617 {
10618 arg2 = &temp2;
10619 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10620 }
10621 {
10622 PyThreadState* __tstate = wxPyBeginAllowThreads();
10623 (arg1)->SetTextColour((wxColour const &)*arg2);
10624 wxPyEndAllowThreads(__tstate);
10625 if (PyErr_Occurred()) SWIG_fail;
10626 }
10627 resultobj = SWIG_Py_Void();
10628 return resultobj;
10629 fail:
10630 return NULL;
10631 }
10632
10633
10634 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10635 PyObject *resultobj = 0;
10636 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10637 wxColour *arg2 = 0 ;
10638 void *argp1 = 0 ;
10639 int res1 = 0 ;
10640 wxColour temp2 ;
10641 PyObject * obj0 = 0 ;
10642 PyObject * obj1 = 0 ;
10643 char * kwnames[] = {
10644 (char *) "self",(char *) "colBack", NULL
10645 };
10646
10647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10649 if (!SWIG_IsOK(res1)) {
10650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10651 }
10652 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10653 {
10654 arg2 = &temp2;
10655 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10656 }
10657 {
10658 PyThreadState* __tstate = wxPyBeginAllowThreads();
10659 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10660 wxPyEndAllowThreads(__tstate);
10661 if (PyErr_Occurred()) SWIG_fail;
10662 }
10663 resultobj = SWIG_Py_Void();
10664 return resultobj;
10665 fail:
10666 return NULL;
10667 }
10668
10669
10670 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10671 PyObject *resultobj = 0;
10672 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10673 wxFont *arg2 = 0 ;
10674 long arg3 = (long) wxTEXT_ATTR_FONT ;
10675 void *argp1 = 0 ;
10676 int res1 = 0 ;
10677 void *argp2 = 0 ;
10678 int res2 = 0 ;
10679 long val3 ;
10680 int ecode3 = 0 ;
10681 PyObject * obj0 = 0 ;
10682 PyObject * obj1 = 0 ;
10683 PyObject * obj2 = 0 ;
10684 char * kwnames[] = {
10685 (char *) "self",(char *) "font",(char *) "flags", NULL
10686 };
10687
10688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10690 if (!SWIG_IsOK(res1)) {
10691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10692 }
10693 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10694 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10695 if (!SWIG_IsOK(res2)) {
10696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10697 }
10698 if (!argp2) {
10699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10700 }
10701 arg2 = reinterpret_cast< wxFont * >(argp2);
10702 if (obj2) {
10703 ecode3 = SWIG_AsVal_long(obj2, &val3);
10704 if (!SWIG_IsOK(ecode3)) {
10705 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10706 }
10707 arg3 = static_cast< long >(val3);
10708 }
10709 {
10710 PyThreadState* __tstate = wxPyBeginAllowThreads();
10711 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10712 wxPyEndAllowThreads(__tstate);
10713 if (PyErr_Occurred()) SWIG_fail;
10714 }
10715 resultobj = SWIG_Py_Void();
10716 return resultobj;
10717 fail:
10718 return NULL;
10719 }
10720
10721
10722 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10723 PyObject *resultobj = 0;
10724 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10725 wxTextAttrAlignment arg2 ;
10726 void *argp1 = 0 ;
10727 int res1 = 0 ;
10728 int val2 ;
10729 int ecode2 = 0 ;
10730 PyObject * obj0 = 0 ;
10731 PyObject * obj1 = 0 ;
10732 char * kwnames[] = {
10733 (char *) "self",(char *) "alignment", NULL
10734 };
10735
10736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10738 if (!SWIG_IsOK(res1)) {
10739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10740 }
10741 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10742 ecode2 = SWIG_AsVal_int(obj1, &val2);
10743 if (!SWIG_IsOK(ecode2)) {
10744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10745 }
10746 arg2 = static_cast< wxTextAttrAlignment >(val2);
10747 {
10748 PyThreadState* __tstate = wxPyBeginAllowThreads();
10749 (arg1)->SetAlignment(arg2);
10750 wxPyEndAllowThreads(__tstate);
10751 if (PyErr_Occurred()) SWIG_fail;
10752 }
10753 resultobj = SWIG_Py_Void();
10754 return resultobj;
10755 fail:
10756 return NULL;
10757 }
10758
10759
10760 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10761 PyObject *resultobj = 0;
10762 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10763 wxArrayInt *arg2 = 0 ;
10764 void *argp1 = 0 ;
10765 int res1 = 0 ;
10766 bool temp2 = false ;
10767 PyObject * obj0 = 0 ;
10768 PyObject * obj1 = 0 ;
10769 char * kwnames[] = {
10770 (char *) "self",(char *) "tabs", NULL
10771 };
10772
10773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10775 if (!SWIG_IsOK(res1)) {
10776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10777 }
10778 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10779 {
10780 if (! PySequence_Check(obj1)) {
10781 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10782 SWIG_fail;
10783 }
10784 arg2 = new wxArrayInt;
10785 temp2 = true;
10786 int i, len=PySequence_Length(obj1);
10787 for (i=0; i<len; i++) {
10788 PyObject* item = PySequence_GetItem(obj1, i);
10789 PyObject* number = PyNumber_Int(item);
10790 arg2->Add(PyInt_AS_LONG(number));
10791 Py_DECREF(item);
10792 Py_DECREF(number);
10793 }
10794 }
10795 {
10796 PyThreadState* __tstate = wxPyBeginAllowThreads();
10797 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10798 wxPyEndAllowThreads(__tstate);
10799 if (PyErr_Occurred()) SWIG_fail;
10800 }
10801 resultobj = SWIG_Py_Void();
10802 {
10803 if (temp2) delete arg2;
10804 }
10805 return resultobj;
10806 fail:
10807 {
10808 if (temp2) delete arg2;
10809 }
10810 return NULL;
10811 }
10812
10813
10814 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10815 PyObject *resultobj = 0;
10816 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10817 int arg2 ;
10818 int arg3 = (int) 0 ;
10819 void *argp1 = 0 ;
10820 int res1 = 0 ;
10821 int val2 ;
10822 int ecode2 = 0 ;
10823 int val3 ;
10824 int ecode3 = 0 ;
10825 PyObject * obj0 = 0 ;
10826 PyObject * obj1 = 0 ;
10827 PyObject * obj2 = 0 ;
10828 char * kwnames[] = {
10829 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10830 };
10831
10832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10834 if (!SWIG_IsOK(res1)) {
10835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10836 }
10837 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10838 ecode2 = SWIG_AsVal_int(obj1, &val2);
10839 if (!SWIG_IsOK(ecode2)) {
10840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10841 }
10842 arg2 = static_cast< int >(val2);
10843 if (obj2) {
10844 ecode3 = SWIG_AsVal_int(obj2, &val3);
10845 if (!SWIG_IsOK(ecode3)) {
10846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10847 }
10848 arg3 = static_cast< int >(val3);
10849 }
10850 {
10851 PyThreadState* __tstate = wxPyBeginAllowThreads();
10852 (arg1)->SetLeftIndent(arg2,arg3);
10853 wxPyEndAllowThreads(__tstate);
10854 if (PyErr_Occurred()) SWIG_fail;
10855 }
10856 resultobj = SWIG_Py_Void();
10857 return resultobj;
10858 fail:
10859 return NULL;
10860 }
10861
10862
10863 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10864 PyObject *resultobj = 0;
10865 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10866 int arg2 ;
10867 void *argp1 = 0 ;
10868 int res1 = 0 ;
10869 int val2 ;
10870 int ecode2 = 0 ;
10871 PyObject * obj0 = 0 ;
10872 PyObject * obj1 = 0 ;
10873 char * kwnames[] = {
10874 (char *) "self",(char *) "indent", NULL
10875 };
10876
10877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10879 if (!SWIG_IsOK(res1)) {
10880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10881 }
10882 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10883 ecode2 = SWIG_AsVal_int(obj1, &val2);
10884 if (!SWIG_IsOK(ecode2)) {
10885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10886 }
10887 arg2 = static_cast< int >(val2);
10888 {
10889 PyThreadState* __tstate = wxPyBeginAllowThreads();
10890 (arg1)->SetRightIndent(arg2);
10891 wxPyEndAllowThreads(__tstate);
10892 if (PyErr_Occurred()) SWIG_fail;
10893 }
10894 resultobj = SWIG_Py_Void();
10895 return resultobj;
10896 fail:
10897 return NULL;
10898 }
10899
10900
10901 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10902 PyObject *resultobj = 0;
10903 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10904 long arg2 ;
10905 void *argp1 = 0 ;
10906 int res1 = 0 ;
10907 long val2 ;
10908 int ecode2 = 0 ;
10909 PyObject * obj0 = 0 ;
10910 PyObject * obj1 = 0 ;
10911 char * kwnames[] = {
10912 (char *) "self",(char *) "flags", NULL
10913 };
10914
10915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10917 if (!SWIG_IsOK(res1)) {
10918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10919 }
10920 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10921 ecode2 = SWIG_AsVal_long(obj1, &val2);
10922 if (!SWIG_IsOK(ecode2)) {
10923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10924 }
10925 arg2 = static_cast< long >(val2);
10926 {
10927 PyThreadState* __tstate = wxPyBeginAllowThreads();
10928 (arg1)->SetFlags(arg2);
10929 wxPyEndAllowThreads(__tstate);
10930 if (PyErr_Occurred()) SWIG_fail;
10931 }
10932 resultobj = SWIG_Py_Void();
10933 return resultobj;
10934 fail:
10935 return NULL;
10936 }
10937
10938
10939 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10940 PyObject *resultobj = 0;
10941 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10942 bool result;
10943 void *argp1 = 0 ;
10944 int res1 = 0 ;
10945 PyObject *swig_obj[1] ;
10946
10947 if (!args) SWIG_fail;
10948 swig_obj[0] = args;
10949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10950 if (!SWIG_IsOK(res1)) {
10951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10952 }
10953 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10954 {
10955 PyThreadState* __tstate = wxPyBeginAllowThreads();
10956 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10957 wxPyEndAllowThreads(__tstate);
10958 if (PyErr_Occurred()) SWIG_fail;
10959 }
10960 {
10961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10962 }
10963 return resultobj;
10964 fail:
10965 return NULL;
10966 }
10967
10968
10969 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10970 PyObject *resultobj = 0;
10971 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10972 bool result;
10973 void *argp1 = 0 ;
10974 int res1 = 0 ;
10975 PyObject *swig_obj[1] ;
10976
10977 if (!args) SWIG_fail;
10978 swig_obj[0] = args;
10979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10980 if (!SWIG_IsOK(res1)) {
10981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10982 }
10983 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10984 {
10985 PyThreadState* __tstate = wxPyBeginAllowThreads();
10986 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10987 wxPyEndAllowThreads(__tstate);
10988 if (PyErr_Occurred()) SWIG_fail;
10989 }
10990 {
10991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10992 }
10993 return resultobj;
10994 fail:
10995 return NULL;
10996 }
10997
10998
10999 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11000 PyObject *resultobj = 0;
11001 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11002 bool result;
11003 void *argp1 = 0 ;
11004 int res1 = 0 ;
11005 PyObject *swig_obj[1] ;
11006
11007 if (!args) SWIG_fail;
11008 swig_obj[0] = args;
11009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11010 if (!SWIG_IsOK(res1)) {
11011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11012 }
11013 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11014 {
11015 PyThreadState* __tstate = wxPyBeginAllowThreads();
11016 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11017 wxPyEndAllowThreads(__tstate);
11018 if (PyErr_Occurred()) SWIG_fail;
11019 }
11020 {
11021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11022 }
11023 return resultobj;
11024 fail:
11025 return NULL;
11026 }
11027
11028
11029 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11030 PyObject *resultobj = 0;
11031 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11032 bool result;
11033 void *argp1 = 0 ;
11034 int res1 = 0 ;
11035 PyObject *swig_obj[1] ;
11036
11037 if (!args) SWIG_fail;
11038 swig_obj[0] = args;
11039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11040 if (!SWIG_IsOK(res1)) {
11041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11042 }
11043 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11044 {
11045 PyThreadState* __tstate = wxPyBeginAllowThreads();
11046 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11047 wxPyEndAllowThreads(__tstate);
11048 if (PyErr_Occurred()) SWIG_fail;
11049 }
11050 {
11051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11052 }
11053 return resultobj;
11054 fail:
11055 return NULL;
11056 }
11057
11058
11059 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11060 PyObject *resultobj = 0;
11061 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11062 bool result;
11063 void *argp1 = 0 ;
11064 int res1 = 0 ;
11065 PyObject *swig_obj[1] ;
11066
11067 if (!args) SWIG_fail;
11068 swig_obj[0] = args;
11069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11070 if (!SWIG_IsOK(res1)) {
11071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11072 }
11073 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11074 {
11075 PyThreadState* __tstate = wxPyBeginAllowThreads();
11076 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11077 wxPyEndAllowThreads(__tstate);
11078 if (PyErr_Occurred()) SWIG_fail;
11079 }
11080 {
11081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11082 }
11083 return resultobj;
11084 fail:
11085 return NULL;
11086 }
11087
11088
11089 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11090 PyObject *resultobj = 0;
11091 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11092 bool result;
11093 void *argp1 = 0 ;
11094 int res1 = 0 ;
11095 PyObject *swig_obj[1] ;
11096
11097 if (!args) SWIG_fail;
11098 swig_obj[0] = args;
11099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11100 if (!SWIG_IsOK(res1)) {
11101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11102 }
11103 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11104 {
11105 PyThreadState* __tstate = wxPyBeginAllowThreads();
11106 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11107 wxPyEndAllowThreads(__tstate);
11108 if (PyErr_Occurred()) SWIG_fail;
11109 }
11110 {
11111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11112 }
11113 return resultobj;
11114 fail:
11115 return NULL;
11116 }
11117
11118
11119 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11120 PyObject *resultobj = 0;
11121 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11122 bool result;
11123 void *argp1 = 0 ;
11124 int res1 = 0 ;
11125 PyObject *swig_obj[1] ;
11126
11127 if (!args) SWIG_fail;
11128 swig_obj[0] = args;
11129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11130 if (!SWIG_IsOK(res1)) {
11131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11132 }
11133 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11134 {
11135 PyThreadState* __tstate = wxPyBeginAllowThreads();
11136 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11137 wxPyEndAllowThreads(__tstate);
11138 if (PyErr_Occurred()) SWIG_fail;
11139 }
11140 {
11141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11142 }
11143 return resultobj;
11144 fail:
11145 return NULL;
11146 }
11147
11148
11149 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11150 PyObject *resultobj = 0;
11151 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11152 long arg2 ;
11153 bool result;
11154 void *argp1 = 0 ;
11155 int res1 = 0 ;
11156 long val2 ;
11157 int ecode2 = 0 ;
11158 PyObject * obj0 = 0 ;
11159 PyObject * obj1 = 0 ;
11160 char * kwnames[] = {
11161 (char *) "self",(char *) "flag", NULL
11162 };
11163
11164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11166 if (!SWIG_IsOK(res1)) {
11167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11168 }
11169 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11170 ecode2 = SWIG_AsVal_long(obj1, &val2);
11171 if (!SWIG_IsOK(ecode2)) {
11172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11173 }
11174 arg2 = static_cast< long >(val2);
11175 {
11176 PyThreadState* __tstate = wxPyBeginAllowThreads();
11177 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11178 wxPyEndAllowThreads(__tstate);
11179 if (PyErr_Occurred()) SWIG_fail;
11180 }
11181 {
11182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11183 }
11184 return resultobj;
11185 fail:
11186 return NULL;
11187 }
11188
11189
11190 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11191 PyObject *resultobj = 0;
11192 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11193 wxColour *result = 0 ;
11194 void *argp1 = 0 ;
11195 int res1 = 0 ;
11196 PyObject *swig_obj[1] ;
11197
11198 if (!args) SWIG_fail;
11199 swig_obj[0] = args;
11200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11201 if (!SWIG_IsOK(res1)) {
11202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11203 }
11204 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11205 {
11206 PyThreadState* __tstate = wxPyBeginAllowThreads();
11207 {
11208 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11209 result = (wxColour *) &_result_ref;
11210 }
11211 wxPyEndAllowThreads(__tstate);
11212 if (PyErr_Occurred()) SWIG_fail;
11213 }
11214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11215 return resultobj;
11216 fail:
11217 return NULL;
11218 }
11219
11220
11221 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11222 PyObject *resultobj = 0;
11223 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11224 wxColour *result = 0 ;
11225 void *argp1 = 0 ;
11226 int res1 = 0 ;
11227 PyObject *swig_obj[1] ;
11228
11229 if (!args) SWIG_fail;
11230 swig_obj[0] = args;
11231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11232 if (!SWIG_IsOK(res1)) {
11233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11234 }
11235 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11236 {
11237 PyThreadState* __tstate = wxPyBeginAllowThreads();
11238 {
11239 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11240 result = (wxColour *) &_result_ref;
11241 }
11242 wxPyEndAllowThreads(__tstate);
11243 if (PyErr_Occurred()) SWIG_fail;
11244 }
11245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11246 return resultobj;
11247 fail:
11248 return NULL;
11249 }
11250
11251
11252 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11253 PyObject *resultobj = 0;
11254 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11255 wxFont *result = 0 ;
11256 void *argp1 = 0 ;
11257 int res1 = 0 ;
11258 PyObject *swig_obj[1] ;
11259
11260 if (!args) SWIG_fail;
11261 swig_obj[0] = args;
11262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11263 if (!SWIG_IsOK(res1)) {
11264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11265 }
11266 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11267 {
11268 PyThreadState* __tstate = wxPyBeginAllowThreads();
11269 {
11270 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11271 result = (wxFont *) &_result_ref;
11272 }
11273 wxPyEndAllowThreads(__tstate);
11274 if (PyErr_Occurred()) SWIG_fail;
11275 }
11276 {
11277 wxFont* resultptr = new wxFont(*result);
11278 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11279 }
11280 return resultobj;
11281 fail:
11282 return NULL;
11283 }
11284
11285
11286 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11287 PyObject *resultobj = 0;
11288 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11289 wxTextAttrAlignment result;
11290 void *argp1 = 0 ;
11291 int res1 = 0 ;
11292 PyObject *swig_obj[1] ;
11293
11294 if (!args) SWIG_fail;
11295 swig_obj[0] = args;
11296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11297 if (!SWIG_IsOK(res1)) {
11298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11299 }
11300 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11301 {
11302 PyThreadState* __tstate = wxPyBeginAllowThreads();
11303 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11304 wxPyEndAllowThreads(__tstate);
11305 if (PyErr_Occurred()) SWIG_fail;
11306 }
11307 resultobj = SWIG_From_int(static_cast< int >(result));
11308 return resultobj;
11309 fail:
11310 return NULL;
11311 }
11312
11313
11314 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11315 PyObject *resultobj = 0;
11316 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11317 wxArrayInt *result = 0 ;
11318 void *argp1 = 0 ;
11319 int res1 = 0 ;
11320 PyObject *swig_obj[1] ;
11321
11322 if (!args) SWIG_fail;
11323 swig_obj[0] = args;
11324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11325 if (!SWIG_IsOK(res1)) {
11326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11327 }
11328 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11329 {
11330 PyThreadState* __tstate = wxPyBeginAllowThreads();
11331 {
11332 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11333 result = (wxArrayInt *) &_result_ref;
11334 }
11335 wxPyEndAllowThreads(__tstate);
11336 if (PyErr_Occurred()) SWIG_fail;
11337 }
11338 {
11339 resultobj = PyList_New(0);
11340 size_t idx;
11341 for (idx = 0; idx < result->GetCount(); idx += 1) {
11342 PyObject* val = PyInt_FromLong( result->Item(idx) );
11343 PyList_Append(resultobj, val);
11344 Py_DECREF(val);
11345 }
11346 }
11347 return resultobj;
11348 fail:
11349 return NULL;
11350 }
11351
11352
11353 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11354 PyObject *resultobj = 0;
11355 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11356 long result;
11357 void *argp1 = 0 ;
11358 int res1 = 0 ;
11359 PyObject *swig_obj[1] ;
11360
11361 if (!args) SWIG_fail;
11362 swig_obj[0] = args;
11363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11364 if (!SWIG_IsOK(res1)) {
11365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11366 }
11367 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11368 {
11369 PyThreadState* __tstate = wxPyBeginAllowThreads();
11370 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11371 wxPyEndAllowThreads(__tstate);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 resultobj = SWIG_From_long(static_cast< long >(result));
11375 return resultobj;
11376 fail:
11377 return NULL;
11378 }
11379
11380
11381 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11382 PyObject *resultobj = 0;
11383 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11384 long result;
11385 void *argp1 = 0 ;
11386 int res1 = 0 ;
11387 PyObject *swig_obj[1] ;
11388
11389 if (!args) SWIG_fail;
11390 swig_obj[0] = args;
11391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11392 if (!SWIG_IsOK(res1)) {
11393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11394 }
11395 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11396 {
11397 PyThreadState* __tstate = wxPyBeginAllowThreads();
11398 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11399 wxPyEndAllowThreads(__tstate);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 }
11402 resultobj = SWIG_From_long(static_cast< long >(result));
11403 return resultobj;
11404 fail:
11405 return NULL;
11406 }
11407
11408
11409 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11410 PyObject *resultobj = 0;
11411 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11412 long result;
11413 void *argp1 = 0 ;
11414 int res1 = 0 ;
11415 PyObject *swig_obj[1] ;
11416
11417 if (!args) SWIG_fail;
11418 swig_obj[0] = args;
11419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11420 if (!SWIG_IsOK(res1)) {
11421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11422 }
11423 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11424 {
11425 PyThreadState* __tstate = wxPyBeginAllowThreads();
11426 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11427 wxPyEndAllowThreads(__tstate);
11428 if (PyErr_Occurred()) SWIG_fail;
11429 }
11430 resultobj = SWIG_From_long(static_cast< long >(result));
11431 return resultobj;
11432 fail:
11433 return NULL;
11434 }
11435
11436
11437 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11438 PyObject *resultobj = 0;
11439 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11440 long result;
11441 void *argp1 = 0 ;
11442 int res1 = 0 ;
11443 PyObject *swig_obj[1] ;
11444
11445 if (!args) SWIG_fail;
11446 swig_obj[0] = args;
11447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11448 if (!SWIG_IsOK(res1)) {
11449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11450 }
11451 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11452 {
11453 PyThreadState* __tstate = wxPyBeginAllowThreads();
11454 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11455 wxPyEndAllowThreads(__tstate);
11456 if (PyErr_Occurred()) SWIG_fail;
11457 }
11458 resultobj = SWIG_From_long(static_cast< long >(result));
11459 return resultobj;
11460 fail:
11461 return NULL;
11462 }
11463
11464
11465 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11466 PyObject *resultobj = 0;
11467 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11468 bool result;
11469 void *argp1 = 0 ;
11470 int res1 = 0 ;
11471 PyObject *swig_obj[1] ;
11472
11473 if (!args) SWIG_fail;
11474 swig_obj[0] = args;
11475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11476 if (!SWIG_IsOK(res1)) {
11477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11478 }
11479 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11480 {
11481 PyThreadState* __tstate = wxPyBeginAllowThreads();
11482 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11483 wxPyEndAllowThreads(__tstate);
11484 if (PyErr_Occurred()) SWIG_fail;
11485 }
11486 {
11487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11488 }
11489 return resultobj;
11490 fail:
11491 return NULL;
11492 }
11493
11494
11495 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11496 PyObject *resultobj = 0;
11497 wxTextAttr *arg1 = 0 ;
11498 wxTextAttr *arg2 = 0 ;
11499 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11500 wxTextAttr result;
11501 void *argp1 = 0 ;
11502 int res1 = 0 ;
11503 void *argp2 = 0 ;
11504 int res2 = 0 ;
11505 void *argp3 = 0 ;
11506 int res3 = 0 ;
11507 PyObject * obj0 = 0 ;
11508 PyObject * obj1 = 0 ;
11509 PyObject * obj2 = 0 ;
11510 char * kwnames[] = {
11511 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11512 };
11513
11514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11515 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11516 if (!SWIG_IsOK(res1)) {
11517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11518 }
11519 if (!argp1) {
11520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11521 }
11522 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11523 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11524 if (!SWIG_IsOK(res2)) {
11525 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11526 }
11527 if (!argp2) {
11528 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11529 }
11530 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11531 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11532 if (!SWIG_IsOK(res3)) {
11533 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11534 }
11535 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11536 {
11537 PyThreadState* __tstate = wxPyBeginAllowThreads();
11538 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11539 wxPyEndAllowThreads(__tstate);
11540 if (PyErr_Occurred()) SWIG_fail;
11541 }
11542 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11543 return resultobj;
11544 fail:
11545 return NULL;
11546 }
11547
11548
11549 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11550 PyObject *obj;
11551 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11552 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11553 return SWIG_Py_Void();
11554 }
11555
11556 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11557 return SWIG_Python_InitShadowInstance(args);
11558 }
11559
11560 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11561 PyObject *resultobj = 0;
11562 wxWindow *arg1 = (wxWindow *) 0 ;
11563 int arg2 = (int) -1 ;
11564 wxString const &arg3_defvalue = wxPyEmptyString ;
11565 wxString *arg3 = (wxString *) &arg3_defvalue ;
11566 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11567 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11568 wxSize const &arg5_defvalue = wxDefaultSize ;
11569 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11570 long arg6 = (long) 0 ;
11571 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11572 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11573 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11574 wxString *arg8 = (wxString *) &arg8_defvalue ;
11575 wxTextCtrl *result = 0 ;
11576 void *argp1 = 0 ;
11577 int res1 = 0 ;
11578 int val2 ;
11579 int ecode2 = 0 ;
11580 bool temp3 = false ;
11581 wxPoint temp4 ;
11582 wxSize temp5 ;
11583 long val6 ;
11584 int ecode6 = 0 ;
11585 void *argp7 = 0 ;
11586 int res7 = 0 ;
11587 bool temp8 = false ;
11588 PyObject * obj0 = 0 ;
11589 PyObject * obj1 = 0 ;
11590 PyObject * obj2 = 0 ;
11591 PyObject * obj3 = 0 ;
11592 PyObject * obj4 = 0 ;
11593 PyObject * obj5 = 0 ;
11594 PyObject * obj6 = 0 ;
11595 PyObject * obj7 = 0 ;
11596 char * kwnames[] = {
11597 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11598 };
11599
11600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11602 if (!SWIG_IsOK(res1)) {
11603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11604 }
11605 arg1 = reinterpret_cast< wxWindow * >(argp1);
11606 if (obj1) {
11607 ecode2 = SWIG_AsVal_int(obj1, &val2);
11608 if (!SWIG_IsOK(ecode2)) {
11609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11610 }
11611 arg2 = static_cast< int >(val2);
11612 }
11613 if (obj2) {
11614 {
11615 arg3 = wxString_in_helper(obj2);
11616 if (arg3 == NULL) SWIG_fail;
11617 temp3 = true;
11618 }
11619 }
11620 if (obj3) {
11621 {
11622 arg4 = &temp4;
11623 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11624 }
11625 }
11626 if (obj4) {
11627 {
11628 arg5 = &temp5;
11629 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11630 }
11631 }
11632 if (obj5) {
11633 ecode6 = SWIG_AsVal_long(obj5, &val6);
11634 if (!SWIG_IsOK(ecode6)) {
11635 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11636 }
11637 arg6 = static_cast< long >(val6);
11638 }
11639 if (obj6) {
11640 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11641 if (!SWIG_IsOK(res7)) {
11642 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11643 }
11644 if (!argp7) {
11645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11646 }
11647 arg7 = reinterpret_cast< wxValidator * >(argp7);
11648 }
11649 if (obj7) {
11650 {
11651 arg8 = wxString_in_helper(obj7);
11652 if (arg8 == NULL) SWIG_fail;
11653 temp8 = true;
11654 }
11655 }
11656 {
11657 if (!wxPyCheckForApp()) SWIG_fail;
11658 PyThreadState* __tstate = wxPyBeginAllowThreads();
11659 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11660 wxPyEndAllowThreads(__tstate);
11661 if (PyErr_Occurred()) SWIG_fail;
11662 }
11663 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11664 {
11665 if (temp3)
11666 delete arg3;
11667 }
11668 {
11669 if (temp8)
11670 delete arg8;
11671 }
11672 return resultobj;
11673 fail:
11674 {
11675 if (temp3)
11676 delete arg3;
11677 }
11678 {
11679 if (temp8)
11680 delete arg8;
11681 }
11682 return NULL;
11683 }
11684
11685
11686 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11687 PyObject *resultobj = 0;
11688 wxTextCtrl *result = 0 ;
11689
11690 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11691 {
11692 if (!wxPyCheckForApp()) SWIG_fail;
11693 PyThreadState* __tstate = wxPyBeginAllowThreads();
11694 result = (wxTextCtrl *)new wxTextCtrl();
11695 wxPyEndAllowThreads(__tstate);
11696 if (PyErr_Occurred()) SWIG_fail;
11697 }
11698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11699 return resultobj;
11700 fail:
11701 return NULL;
11702 }
11703
11704
11705 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11706 PyObject *resultobj = 0;
11707 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11708 wxWindow *arg2 = (wxWindow *) 0 ;
11709 int arg3 = (int) -1 ;
11710 wxString const &arg4_defvalue = wxPyEmptyString ;
11711 wxString *arg4 = (wxString *) &arg4_defvalue ;
11712 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11713 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11714 wxSize const &arg6_defvalue = wxDefaultSize ;
11715 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11716 long arg7 = (long) 0 ;
11717 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11718 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11719 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11720 wxString *arg9 = (wxString *) &arg9_defvalue ;
11721 bool result;
11722 void *argp1 = 0 ;
11723 int res1 = 0 ;
11724 void *argp2 = 0 ;
11725 int res2 = 0 ;
11726 int val3 ;
11727 int ecode3 = 0 ;
11728 bool temp4 = false ;
11729 wxPoint temp5 ;
11730 wxSize temp6 ;
11731 long val7 ;
11732 int ecode7 = 0 ;
11733 void *argp8 = 0 ;
11734 int res8 = 0 ;
11735 bool temp9 = false ;
11736 PyObject * obj0 = 0 ;
11737 PyObject * obj1 = 0 ;
11738 PyObject * obj2 = 0 ;
11739 PyObject * obj3 = 0 ;
11740 PyObject * obj4 = 0 ;
11741 PyObject * obj5 = 0 ;
11742 PyObject * obj6 = 0 ;
11743 PyObject * obj7 = 0 ;
11744 PyObject * obj8 = 0 ;
11745 char * kwnames[] = {
11746 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11747 };
11748
11749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11751 if (!SWIG_IsOK(res1)) {
11752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11753 }
11754 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11755 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11756 if (!SWIG_IsOK(res2)) {
11757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11758 }
11759 arg2 = reinterpret_cast< wxWindow * >(argp2);
11760 if (obj2) {
11761 ecode3 = SWIG_AsVal_int(obj2, &val3);
11762 if (!SWIG_IsOK(ecode3)) {
11763 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11764 }
11765 arg3 = static_cast< int >(val3);
11766 }
11767 if (obj3) {
11768 {
11769 arg4 = wxString_in_helper(obj3);
11770 if (arg4 == NULL) SWIG_fail;
11771 temp4 = true;
11772 }
11773 }
11774 if (obj4) {
11775 {
11776 arg5 = &temp5;
11777 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11778 }
11779 }
11780 if (obj5) {
11781 {
11782 arg6 = &temp6;
11783 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11784 }
11785 }
11786 if (obj6) {
11787 ecode7 = SWIG_AsVal_long(obj6, &val7);
11788 if (!SWIG_IsOK(ecode7)) {
11789 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11790 }
11791 arg7 = static_cast< long >(val7);
11792 }
11793 if (obj7) {
11794 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11795 if (!SWIG_IsOK(res8)) {
11796 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11797 }
11798 if (!argp8) {
11799 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11800 }
11801 arg8 = reinterpret_cast< wxValidator * >(argp8);
11802 }
11803 if (obj8) {
11804 {
11805 arg9 = wxString_in_helper(obj8);
11806 if (arg9 == NULL) SWIG_fail;
11807 temp9 = true;
11808 }
11809 }
11810 {
11811 PyThreadState* __tstate = wxPyBeginAllowThreads();
11812 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11813 wxPyEndAllowThreads(__tstate);
11814 if (PyErr_Occurred()) SWIG_fail;
11815 }
11816 {
11817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11818 }
11819 {
11820 if (temp4)
11821 delete arg4;
11822 }
11823 {
11824 if (temp9)
11825 delete arg9;
11826 }
11827 return resultobj;
11828 fail:
11829 {
11830 if (temp4)
11831 delete arg4;
11832 }
11833 {
11834 if (temp9)
11835 delete arg9;
11836 }
11837 return NULL;
11838 }
11839
11840
11841 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11842 PyObject *resultobj = 0;
11843 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11844 wxString result;
11845 void *argp1 = 0 ;
11846 int res1 = 0 ;
11847 PyObject *swig_obj[1] ;
11848
11849 if (!args) SWIG_fail;
11850 swig_obj[0] = args;
11851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11852 if (!SWIG_IsOK(res1)) {
11853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11854 }
11855 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11856 {
11857 PyThreadState* __tstate = wxPyBeginAllowThreads();
11858 result = ((wxTextCtrl const *)arg1)->GetValue();
11859 wxPyEndAllowThreads(__tstate);
11860 if (PyErr_Occurred()) SWIG_fail;
11861 }
11862 {
11863 #if wxUSE_UNICODE
11864 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11865 #else
11866 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11867 #endif
11868 }
11869 return resultobj;
11870 fail:
11871 return NULL;
11872 }
11873
11874
11875 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11876 PyObject *resultobj = 0;
11877 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11878 wxString *arg2 = 0 ;
11879 void *argp1 = 0 ;
11880 int res1 = 0 ;
11881 bool temp2 = false ;
11882 PyObject * obj0 = 0 ;
11883 PyObject * obj1 = 0 ;
11884 char * kwnames[] = {
11885 (char *) "self",(char *) "value", NULL
11886 };
11887
11888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11890 if (!SWIG_IsOK(res1)) {
11891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11892 }
11893 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11894 {
11895 arg2 = wxString_in_helper(obj1);
11896 if (arg2 == NULL) SWIG_fail;
11897 temp2 = true;
11898 }
11899 {
11900 PyThreadState* __tstate = wxPyBeginAllowThreads();
11901 (arg1)->SetValue((wxString const &)*arg2);
11902 wxPyEndAllowThreads(__tstate);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 }
11905 resultobj = SWIG_Py_Void();
11906 {
11907 if (temp2)
11908 delete arg2;
11909 }
11910 return resultobj;
11911 fail:
11912 {
11913 if (temp2)
11914 delete arg2;
11915 }
11916 return NULL;
11917 }
11918
11919
11920 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11921 PyObject *resultobj = 0;
11922 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11923 long arg2 ;
11924 long arg3 ;
11925 wxString result;
11926 void *argp1 = 0 ;
11927 int res1 = 0 ;
11928 long val2 ;
11929 int ecode2 = 0 ;
11930 long val3 ;
11931 int ecode3 = 0 ;
11932 PyObject * obj0 = 0 ;
11933 PyObject * obj1 = 0 ;
11934 PyObject * obj2 = 0 ;
11935 char * kwnames[] = {
11936 (char *) "self",(char *) "from",(char *) "to", NULL
11937 };
11938
11939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11941 if (!SWIG_IsOK(res1)) {
11942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11943 }
11944 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11945 ecode2 = SWIG_AsVal_long(obj1, &val2);
11946 if (!SWIG_IsOK(ecode2)) {
11947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11948 }
11949 arg2 = static_cast< long >(val2);
11950 ecode3 = SWIG_AsVal_long(obj2, &val3);
11951 if (!SWIG_IsOK(ecode3)) {
11952 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11953 }
11954 arg3 = static_cast< long >(val3);
11955 {
11956 PyThreadState* __tstate = wxPyBeginAllowThreads();
11957 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11958 wxPyEndAllowThreads(__tstate);
11959 if (PyErr_Occurred()) SWIG_fail;
11960 }
11961 {
11962 #if wxUSE_UNICODE
11963 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11964 #else
11965 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11966 #endif
11967 }
11968 return resultobj;
11969 fail:
11970 return NULL;
11971 }
11972
11973
11974 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11975 PyObject *resultobj = 0;
11976 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11977 long arg2 ;
11978 int result;
11979 void *argp1 = 0 ;
11980 int res1 = 0 ;
11981 long val2 ;
11982 int ecode2 = 0 ;
11983 PyObject * obj0 = 0 ;
11984 PyObject * obj1 = 0 ;
11985 char * kwnames[] = {
11986 (char *) "self",(char *) "lineNo", NULL
11987 };
11988
11989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11991 if (!SWIG_IsOK(res1)) {
11992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11993 }
11994 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11995 ecode2 = SWIG_AsVal_long(obj1, &val2);
11996 if (!SWIG_IsOK(ecode2)) {
11997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11998 }
11999 arg2 = static_cast< long >(val2);
12000 {
12001 PyThreadState* __tstate = wxPyBeginAllowThreads();
12002 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12003 wxPyEndAllowThreads(__tstate);
12004 if (PyErr_Occurred()) SWIG_fail;
12005 }
12006 resultobj = SWIG_From_int(static_cast< int >(result));
12007 return resultobj;
12008 fail:
12009 return NULL;
12010 }
12011
12012
12013 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12014 PyObject *resultobj = 0;
12015 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12016 long arg2 ;
12017 wxString result;
12018 void *argp1 = 0 ;
12019 int res1 = 0 ;
12020 long val2 ;
12021 int ecode2 = 0 ;
12022 PyObject * obj0 = 0 ;
12023 PyObject * obj1 = 0 ;
12024 char * kwnames[] = {
12025 (char *) "self",(char *) "lineNo", NULL
12026 };
12027
12028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12030 if (!SWIG_IsOK(res1)) {
12031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12032 }
12033 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12034 ecode2 = SWIG_AsVal_long(obj1, &val2);
12035 if (!SWIG_IsOK(ecode2)) {
12036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12037 }
12038 arg2 = static_cast< long >(val2);
12039 {
12040 PyThreadState* __tstate = wxPyBeginAllowThreads();
12041 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12042 wxPyEndAllowThreads(__tstate);
12043 if (PyErr_Occurred()) SWIG_fail;
12044 }
12045 {
12046 #if wxUSE_UNICODE
12047 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12048 #else
12049 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12050 #endif
12051 }
12052 return resultobj;
12053 fail:
12054 return NULL;
12055 }
12056
12057
12058 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12059 PyObject *resultobj = 0;
12060 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12061 int result;
12062 void *argp1 = 0 ;
12063 int res1 = 0 ;
12064 PyObject *swig_obj[1] ;
12065
12066 if (!args) SWIG_fail;
12067 swig_obj[0] = args;
12068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12069 if (!SWIG_IsOK(res1)) {
12070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12071 }
12072 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12073 {
12074 PyThreadState* __tstate = wxPyBeginAllowThreads();
12075 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12076 wxPyEndAllowThreads(__tstate);
12077 if (PyErr_Occurred()) SWIG_fail;
12078 }
12079 resultobj = SWIG_From_int(static_cast< int >(result));
12080 return resultobj;
12081 fail:
12082 return NULL;
12083 }
12084
12085
12086 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12087 PyObject *resultobj = 0;
12088 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12089 bool result;
12090 void *argp1 = 0 ;
12091 int res1 = 0 ;
12092 PyObject *swig_obj[1] ;
12093
12094 if (!args) SWIG_fail;
12095 swig_obj[0] = args;
12096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12097 if (!SWIG_IsOK(res1)) {
12098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12099 }
12100 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12101 {
12102 PyThreadState* __tstate = wxPyBeginAllowThreads();
12103 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12104 wxPyEndAllowThreads(__tstate);
12105 if (PyErr_Occurred()) SWIG_fail;
12106 }
12107 {
12108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12109 }
12110 return resultobj;
12111 fail:
12112 return NULL;
12113 }
12114
12115
12116 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12117 PyObject *resultobj = 0;
12118 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12119 bool result;
12120 void *argp1 = 0 ;
12121 int res1 = 0 ;
12122 PyObject *swig_obj[1] ;
12123
12124 if (!args) SWIG_fail;
12125 swig_obj[0] = args;
12126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12127 if (!SWIG_IsOK(res1)) {
12128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12129 }
12130 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12131 {
12132 PyThreadState* __tstate = wxPyBeginAllowThreads();
12133 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12134 wxPyEndAllowThreads(__tstate);
12135 if (PyErr_Occurred()) SWIG_fail;
12136 }
12137 {
12138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12139 }
12140 return resultobj;
12141 fail:
12142 return NULL;
12143 }
12144
12145
12146 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12147 PyObject *resultobj = 0;
12148 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12149 bool result;
12150 void *argp1 = 0 ;
12151 int res1 = 0 ;
12152 PyObject *swig_obj[1] ;
12153
12154 if (!args) SWIG_fail;
12155 swig_obj[0] = args;
12156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12157 if (!SWIG_IsOK(res1)) {
12158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12159 }
12160 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12161 {
12162 PyThreadState* __tstate = wxPyBeginAllowThreads();
12163 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12164 wxPyEndAllowThreads(__tstate);
12165 if (PyErr_Occurred()) SWIG_fail;
12166 }
12167 {
12168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12169 }
12170 return resultobj;
12171 fail:
12172 return NULL;
12173 }
12174
12175
12176 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12177 PyObject *resultobj = 0;
12178 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12179 bool result;
12180 void *argp1 = 0 ;
12181 int res1 = 0 ;
12182 PyObject *swig_obj[1] ;
12183
12184 if (!args) SWIG_fail;
12185 swig_obj[0] = args;
12186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12187 if (!SWIG_IsOK(res1)) {
12188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12189 }
12190 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12191 {
12192 PyThreadState* __tstate = wxPyBeginAllowThreads();
12193 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12194 wxPyEndAllowThreads(__tstate);
12195 if (PyErr_Occurred()) SWIG_fail;
12196 }
12197 {
12198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12199 }
12200 return resultobj;
12201 fail:
12202 return NULL;
12203 }
12204
12205
12206 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12207 PyObject *resultobj = 0;
12208 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12209 long *arg2 = (long *) 0 ;
12210 long *arg3 = (long *) 0 ;
12211 void *argp1 = 0 ;
12212 int res1 = 0 ;
12213 long temp2 ;
12214 int res2 = SWIG_TMPOBJ ;
12215 long temp3 ;
12216 int res3 = SWIG_TMPOBJ ;
12217 PyObject *swig_obj[1] ;
12218
12219 arg2 = &temp2;
12220 arg3 = &temp3;
12221 if (!args) SWIG_fail;
12222 swig_obj[0] = args;
12223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12224 if (!SWIG_IsOK(res1)) {
12225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12226 }
12227 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12228 {
12229 PyThreadState* __tstate = wxPyBeginAllowThreads();
12230 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12231 wxPyEndAllowThreads(__tstate);
12232 if (PyErr_Occurred()) SWIG_fail;
12233 }
12234 resultobj = SWIG_Py_Void();
12235 if (SWIG_IsTmpObj(res2)) {
12236 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12237 } else {
12238 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12239 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12240 }
12241 if (SWIG_IsTmpObj(res3)) {
12242 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12243 } else {
12244 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12245 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12246 }
12247 return resultobj;
12248 fail:
12249 return NULL;
12250 }
12251
12252
12253 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12254 PyObject *resultobj = 0;
12255 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12256 wxString result;
12257 void *argp1 = 0 ;
12258 int res1 = 0 ;
12259 PyObject *swig_obj[1] ;
12260
12261 if (!args) SWIG_fail;
12262 swig_obj[0] = args;
12263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12264 if (!SWIG_IsOK(res1)) {
12265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12266 }
12267 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12268 {
12269 PyThreadState* __tstate = wxPyBeginAllowThreads();
12270 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12271 wxPyEndAllowThreads(__tstate);
12272 if (PyErr_Occurred()) SWIG_fail;
12273 }
12274 {
12275 #if wxUSE_UNICODE
12276 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12277 #else
12278 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12279 #endif
12280 }
12281 return resultobj;
12282 fail:
12283 return NULL;
12284 }
12285
12286
12287 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12288 PyObject *resultobj = 0;
12289 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12290 void *argp1 = 0 ;
12291 int res1 = 0 ;
12292 PyObject *swig_obj[1] ;
12293
12294 if (!args) SWIG_fail;
12295 swig_obj[0] = args;
12296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12297 if (!SWIG_IsOK(res1)) {
12298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12299 }
12300 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12301 {
12302 PyThreadState* __tstate = wxPyBeginAllowThreads();
12303 (arg1)->Clear();
12304 wxPyEndAllowThreads(__tstate);
12305 if (PyErr_Occurred()) SWIG_fail;
12306 }
12307 resultobj = SWIG_Py_Void();
12308 return resultobj;
12309 fail:
12310 return NULL;
12311 }
12312
12313
12314 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12315 PyObject *resultobj = 0;
12316 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12317 long arg2 ;
12318 long arg3 ;
12319 wxString *arg4 = 0 ;
12320 void *argp1 = 0 ;
12321 int res1 = 0 ;
12322 long val2 ;
12323 int ecode2 = 0 ;
12324 long val3 ;
12325 int ecode3 = 0 ;
12326 bool temp4 = false ;
12327 PyObject * obj0 = 0 ;
12328 PyObject * obj1 = 0 ;
12329 PyObject * obj2 = 0 ;
12330 PyObject * obj3 = 0 ;
12331 char * kwnames[] = {
12332 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12333 };
12334
12335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12337 if (!SWIG_IsOK(res1)) {
12338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12339 }
12340 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12341 ecode2 = SWIG_AsVal_long(obj1, &val2);
12342 if (!SWIG_IsOK(ecode2)) {
12343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12344 }
12345 arg2 = static_cast< long >(val2);
12346 ecode3 = SWIG_AsVal_long(obj2, &val3);
12347 if (!SWIG_IsOK(ecode3)) {
12348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12349 }
12350 arg3 = static_cast< long >(val3);
12351 {
12352 arg4 = wxString_in_helper(obj3);
12353 if (arg4 == NULL) SWIG_fail;
12354 temp4 = true;
12355 }
12356 {
12357 PyThreadState* __tstate = wxPyBeginAllowThreads();
12358 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12359 wxPyEndAllowThreads(__tstate);
12360 if (PyErr_Occurred()) SWIG_fail;
12361 }
12362 resultobj = SWIG_Py_Void();
12363 {
12364 if (temp4)
12365 delete arg4;
12366 }
12367 return resultobj;
12368 fail:
12369 {
12370 if (temp4)
12371 delete arg4;
12372 }
12373 return NULL;
12374 }
12375
12376
12377 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12378 PyObject *resultobj = 0;
12379 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12380 long arg2 ;
12381 long arg3 ;
12382 void *argp1 = 0 ;
12383 int res1 = 0 ;
12384 long val2 ;
12385 int ecode2 = 0 ;
12386 long val3 ;
12387 int ecode3 = 0 ;
12388 PyObject * obj0 = 0 ;
12389 PyObject * obj1 = 0 ;
12390 PyObject * obj2 = 0 ;
12391 char * kwnames[] = {
12392 (char *) "self",(char *) "from",(char *) "to", NULL
12393 };
12394
12395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12397 if (!SWIG_IsOK(res1)) {
12398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12399 }
12400 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12401 ecode2 = SWIG_AsVal_long(obj1, &val2);
12402 if (!SWIG_IsOK(ecode2)) {
12403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12404 }
12405 arg2 = static_cast< long >(val2);
12406 ecode3 = SWIG_AsVal_long(obj2, &val3);
12407 if (!SWIG_IsOK(ecode3)) {
12408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12409 }
12410 arg3 = static_cast< long >(val3);
12411 {
12412 PyThreadState* __tstate = wxPyBeginAllowThreads();
12413 (arg1)->Remove(arg2,arg3);
12414 wxPyEndAllowThreads(__tstate);
12415 if (PyErr_Occurred()) SWIG_fail;
12416 }
12417 resultobj = SWIG_Py_Void();
12418 return resultobj;
12419 fail:
12420 return NULL;
12421 }
12422
12423
12424 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12425 PyObject *resultobj = 0;
12426 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12427 wxString *arg2 = 0 ;
12428 bool result;
12429 void *argp1 = 0 ;
12430 int res1 = 0 ;
12431 bool temp2 = false ;
12432 PyObject * obj0 = 0 ;
12433 PyObject * obj1 = 0 ;
12434 char * kwnames[] = {
12435 (char *) "self",(char *) "file", NULL
12436 };
12437
12438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12440 if (!SWIG_IsOK(res1)) {
12441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12442 }
12443 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12444 {
12445 arg2 = wxString_in_helper(obj1);
12446 if (arg2 == NULL) SWIG_fail;
12447 temp2 = true;
12448 }
12449 {
12450 PyThreadState* __tstate = wxPyBeginAllowThreads();
12451 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12452 wxPyEndAllowThreads(__tstate);
12453 if (PyErr_Occurred()) SWIG_fail;
12454 }
12455 {
12456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12457 }
12458 {
12459 if (temp2)
12460 delete arg2;
12461 }
12462 return resultobj;
12463 fail:
12464 {
12465 if (temp2)
12466 delete arg2;
12467 }
12468 return NULL;
12469 }
12470
12471
12472 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12473 PyObject *resultobj = 0;
12474 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12475 wxString const &arg2_defvalue = wxPyEmptyString ;
12476 wxString *arg2 = (wxString *) &arg2_defvalue ;
12477 bool result;
12478 void *argp1 = 0 ;
12479 int res1 = 0 ;
12480 bool temp2 = false ;
12481 PyObject * obj0 = 0 ;
12482 PyObject * obj1 = 0 ;
12483 char * kwnames[] = {
12484 (char *) "self",(char *) "file", NULL
12485 };
12486
12487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12489 if (!SWIG_IsOK(res1)) {
12490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12491 }
12492 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12493 if (obj1) {
12494 {
12495 arg2 = wxString_in_helper(obj1);
12496 if (arg2 == NULL) SWIG_fail;
12497 temp2 = true;
12498 }
12499 }
12500 {
12501 PyThreadState* __tstate = wxPyBeginAllowThreads();
12502 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12503 wxPyEndAllowThreads(__tstate);
12504 if (PyErr_Occurred()) SWIG_fail;
12505 }
12506 {
12507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12508 }
12509 {
12510 if (temp2)
12511 delete arg2;
12512 }
12513 return resultobj;
12514 fail:
12515 {
12516 if (temp2)
12517 delete arg2;
12518 }
12519 return NULL;
12520 }
12521
12522
12523 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12524 PyObject *resultobj = 0;
12525 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12526 void *argp1 = 0 ;
12527 int res1 = 0 ;
12528 PyObject *swig_obj[1] ;
12529
12530 if (!args) SWIG_fail;
12531 swig_obj[0] = args;
12532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12533 if (!SWIG_IsOK(res1)) {
12534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12535 }
12536 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12537 {
12538 PyThreadState* __tstate = wxPyBeginAllowThreads();
12539 (arg1)->MarkDirty();
12540 wxPyEndAllowThreads(__tstate);
12541 if (PyErr_Occurred()) SWIG_fail;
12542 }
12543 resultobj = SWIG_Py_Void();
12544 return resultobj;
12545 fail:
12546 return NULL;
12547 }
12548
12549
12550 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12551 PyObject *resultobj = 0;
12552 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12553 void *argp1 = 0 ;
12554 int res1 = 0 ;
12555 PyObject *swig_obj[1] ;
12556
12557 if (!args) SWIG_fail;
12558 swig_obj[0] = args;
12559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12560 if (!SWIG_IsOK(res1)) {
12561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12562 }
12563 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12564 {
12565 PyThreadState* __tstate = wxPyBeginAllowThreads();
12566 (arg1)->DiscardEdits();
12567 wxPyEndAllowThreads(__tstate);
12568 if (PyErr_Occurred()) SWIG_fail;
12569 }
12570 resultobj = SWIG_Py_Void();
12571 return resultobj;
12572 fail:
12573 return NULL;
12574 }
12575
12576
12577 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12578 PyObject *resultobj = 0;
12579 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12580 unsigned long arg2 ;
12581 void *argp1 = 0 ;
12582 int res1 = 0 ;
12583 unsigned long val2 ;
12584 int ecode2 = 0 ;
12585 PyObject * obj0 = 0 ;
12586 PyObject * obj1 = 0 ;
12587 char * kwnames[] = {
12588 (char *) "self",(char *) "len", NULL
12589 };
12590
12591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12593 if (!SWIG_IsOK(res1)) {
12594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12595 }
12596 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12597 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12598 if (!SWIG_IsOK(ecode2)) {
12599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12600 }
12601 arg2 = static_cast< unsigned long >(val2);
12602 {
12603 PyThreadState* __tstate = wxPyBeginAllowThreads();
12604 (arg1)->SetMaxLength(arg2);
12605 wxPyEndAllowThreads(__tstate);
12606 if (PyErr_Occurred()) SWIG_fail;
12607 }
12608 resultobj = SWIG_Py_Void();
12609 return resultobj;
12610 fail:
12611 return NULL;
12612 }
12613
12614
12615 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12616 PyObject *resultobj = 0;
12617 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12618 wxString *arg2 = 0 ;
12619 void *argp1 = 0 ;
12620 int res1 = 0 ;
12621 bool temp2 = false ;
12622 PyObject * obj0 = 0 ;
12623 PyObject * obj1 = 0 ;
12624 char * kwnames[] = {
12625 (char *) "self",(char *) "text", NULL
12626 };
12627
12628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12630 if (!SWIG_IsOK(res1)) {
12631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12632 }
12633 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12634 {
12635 arg2 = wxString_in_helper(obj1);
12636 if (arg2 == NULL) SWIG_fail;
12637 temp2 = true;
12638 }
12639 {
12640 PyThreadState* __tstate = wxPyBeginAllowThreads();
12641 (arg1)->WriteText((wxString const &)*arg2);
12642 wxPyEndAllowThreads(__tstate);
12643 if (PyErr_Occurred()) SWIG_fail;
12644 }
12645 resultobj = SWIG_Py_Void();
12646 {
12647 if (temp2)
12648 delete arg2;
12649 }
12650 return resultobj;
12651 fail:
12652 {
12653 if (temp2)
12654 delete arg2;
12655 }
12656 return NULL;
12657 }
12658
12659
12660 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12661 PyObject *resultobj = 0;
12662 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12663 wxString *arg2 = 0 ;
12664 void *argp1 = 0 ;
12665 int res1 = 0 ;
12666 bool temp2 = false ;
12667 PyObject * obj0 = 0 ;
12668 PyObject * obj1 = 0 ;
12669 char * kwnames[] = {
12670 (char *) "self",(char *) "text", NULL
12671 };
12672
12673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12675 if (!SWIG_IsOK(res1)) {
12676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12677 }
12678 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12679 {
12680 arg2 = wxString_in_helper(obj1);
12681 if (arg2 == NULL) SWIG_fail;
12682 temp2 = true;
12683 }
12684 {
12685 PyThreadState* __tstate = wxPyBeginAllowThreads();
12686 (arg1)->AppendText((wxString const &)*arg2);
12687 wxPyEndAllowThreads(__tstate);
12688 if (PyErr_Occurred()) SWIG_fail;
12689 }
12690 resultobj = SWIG_Py_Void();
12691 {
12692 if (temp2)
12693 delete arg2;
12694 }
12695 return resultobj;
12696 fail:
12697 {
12698 if (temp2)
12699 delete arg2;
12700 }
12701 return NULL;
12702 }
12703
12704
12705 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12706 PyObject *resultobj = 0;
12707 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12708 wxKeyEvent *arg2 = 0 ;
12709 bool result;
12710 void *argp1 = 0 ;
12711 int res1 = 0 ;
12712 void *argp2 = 0 ;
12713 int res2 = 0 ;
12714 PyObject * obj0 = 0 ;
12715 PyObject * obj1 = 0 ;
12716 char * kwnames[] = {
12717 (char *) "self",(char *) "event", NULL
12718 };
12719
12720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12722 if (!SWIG_IsOK(res1)) {
12723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12724 }
12725 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12726 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12727 if (!SWIG_IsOK(res2)) {
12728 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12729 }
12730 if (!argp2) {
12731 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12732 }
12733 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12734 {
12735 PyThreadState* __tstate = wxPyBeginAllowThreads();
12736 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12737 wxPyEndAllowThreads(__tstate);
12738 if (PyErr_Occurred()) SWIG_fail;
12739 }
12740 {
12741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12742 }
12743 return resultobj;
12744 fail:
12745 return NULL;
12746 }
12747
12748
12749 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12750 PyObject *resultobj = 0;
12751 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12752 long arg2 ;
12753 long arg3 ;
12754 wxTextAttr *arg4 = 0 ;
12755 bool result;
12756 void *argp1 = 0 ;
12757 int res1 = 0 ;
12758 long val2 ;
12759 int ecode2 = 0 ;
12760 long val3 ;
12761 int ecode3 = 0 ;
12762 void *argp4 = 0 ;
12763 int res4 = 0 ;
12764 PyObject * obj0 = 0 ;
12765 PyObject * obj1 = 0 ;
12766 PyObject * obj2 = 0 ;
12767 PyObject * obj3 = 0 ;
12768 char * kwnames[] = {
12769 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12770 };
12771
12772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12774 if (!SWIG_IsOK(res1)) {
12775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12776 }
12777 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12778 ecode2 = SWIG_AsVal_long(obj1, &val2);
12779 if (!SWIG_IsOK(ecode2)) {
12780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12781 }
12782 arg2 = static_cast< long >(val2);
12783 ecode3 = SWIG_AsVal_long(obj2, &val3);
12784 if (!SWIG_IsOK(ecode3)) {
12785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12786 }
12787 arg3 = static_cast< long >(val3);
12788 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12789 if (!SWIG_IsOK(res4)) {
12790 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12791 }
12792 if (!argp4) {
12793 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12794 }
12795 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12796 {
12797 PyThreadState* __tstate = wxPyBeginAllowThreads();
12798 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12799 wxPyEndAllowThreads(__tstate);
12800 if (PyErr_Occurred()) SWIG_fail;
12801 }
12802 {
12803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12804 }
12805 return resultobj;
12806 fail:
12807 return NULL;
12808 }
12809
12810
12811 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12812 PyObject *resultobj = 0;
12813 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12814 long arg2 ;
12815 wxTextAttr *arg3 = 0 ;
12816 bool result;
12817 void *argp1 = 0 ;
12818 int res1 = 0 ;
12819 long val2 ;
12820 int ecode2 = 0 ;
12821 void *argp3 = 0 ;
12822 int res3 = 0 ;
12823 PyObject * obj0 = 0 ;
12824 PyObject * obj1 = 0 ;
12825 PyObject * obj2 = 0 ;
12826 char * kwnames[] = {
12827 (char *) "self",(char *) "position",(char *) "style", NULL
12828 };
12829
12830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12832 if (!SWIG_IsOK(res1)) {
12833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12834 }
12835 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12836 ecode2 = SWIG_AsVal_long(obj1, &val2);
12837 if (!SWIG_IsOK(ecode2)) {
12838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12839 }
12840 arg2 = static_cast< long >(val2);
12841 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12842 if (!SWIG_IsOK(res3)) {
12843 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12844 }
12845 if (!argp3) {
12846 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12847 }
12848 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12849 {
12850 PyThreadState* __tstate = wxPyBeginAllowThreads();
12851 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12852 wxPyEndAllowThreads(__tstate);
12853 if (PyErr_Occurred()) SWIG_fail;
12854 }
12855 {
12856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12857 }
12858 return resultobj;
12859 fail:
12860 return NULL;
12861 }
12862
12863
12864 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12865 PyObject *resultobj = 0;
12866 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12867 wxTextAttr *arg2 = 0 ;
12868 bool result;
12869 void *argp1 = 0 ;
12870 int res1 = 0 ;
12871 void *argp2 = 0 ;
12872 int res2 = 0 ;
12873 PyObject * obj0 = 0 ;
12874 PyObject * obj1 = 0 ;
12875 char * kwnames[] = {
12876 (char *) "self",(char *) "style", NULL
12877 };
12878
12879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12881 if (!SWIG_IsOK(res1)) {
12882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12883 }
12884 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12885 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12886 if (!SWIG_IsOK(res2)) {
12887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12888 }
12889 if (!argp2) {
12890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12891 }
12892 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12893 {
12894 PyThreadState* __tstate = wxPyBeginAllowThreads();
12895 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12896 wxPyEndAllowThreads(__tstate);
12897 if (PyErr_Occurred()) SWIG_fail;
12898 }
12899 {
12900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12901 }
12902 return resultobj;
12903 fail:
12904 return NULL;
12905 }
12906
12907
12908 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12909 PyObject *resultobj = 0;
12910 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12911 wxTextAttr *result = 0 ;
12912 void *argp1 = 0 ;
12913 int res1 = 0 ;
12914 PyObject *swig_obj[1] ;
12915
12916 if (!args) SWIG_fail;
12917 swig_obj[0] = args;
12918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12919 if (!SWIG_IsOK(res1)) {
12920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12921 }
12922 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12923 {
12924 PyThreadState* __tstate = wxPyBeginAllowThreads();
12925 {
12926 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12927 result = (wxTextAttr *) &_result_ref;
12928 }
12929 wxPyEndAllowThreads(__tstate);
12930 if (PyErr_Occurred()) SWIG_fail;
12931 }
12932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12933 return resultobj;
12934 fail:
12935 return NULL;
12936 }
12937
12938
12939 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12940 PyObject *resultobj = 0;
12941 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12942 long arg2 ;
12943 long arg3 ;
12944 long result;
12945 void *argp1 = 0 ;
12946 int res1 = 0 ;
12947 long val2 ;
12948 int ecode2 = 0 ;
12949 long val3 ;
12950 int ecode3 = 0 ;
12951 PyObject * obj0 = 0 ;
12952 PyObject * obj1 = 0 ;
12953 PyObject * obj2 = 0 ;
12954 char * kwnames[] = {
12955 (char *) "self",(char *) "x",(char *) "y", NULL
12956 };
12957
12958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12960 if (!SWIG_IsOK(res1)) {
12961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12962 }
12963 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12964 ecode2 = SWIG_AsVal_long(obj1, &val2);
12965 if (!SWIG_IsOK(ecode2)) {
12966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12967 }
12968 arg2 = static_cast< long >(val2);
12969 ecode3 = SWIG_AsVal_long(obj2, &val3);
12970 if (!SWIG_IsOK(ecode3)) {
12971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12972 }
12973 arg3 = static_cast< long >(val3);
12974 {
12975 PyThreadState* __tstate = wxPyBeginAllowThreads();
12976 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12977 wxPyEndAllowThreads(__tstate);
12978 if (PyErr_Occurred()) SWIG_fail;
12979 }
12980 resultobj = SWIG_From_long(static_cast< long >(result));
12981 return resultobj;
12982 fail:
12983 return NULL;
12984 }
12985
12986
12987 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12988 PyObject *resultobj = 0;
12989 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12990 long arg2 ;
12991 long *arg3 = (long *) 0 ;
12992 long *arg4 = (long *) 0 ;
12993 void *argp1 = 0 ;
12994 int res1 = 0 ;
12995 long val2 ;
12996 int ecode2 = 0 ;
12997 long temp3 ;
12998 int res3 = SWIG_TMPOBJ ;
12999 long temp4 ;
13000 int res4 = SWIG_TMPOBJ ;
13001 PyObject * obj0 = 0 ;
13002 PyObject * obj1 = 0 ;
13003 char * kwnames[] = {
13004 (char *) "self",(char *) "pos", NULL
13005 };
13006
13007 arg3 = &temp3;
13008 arg4 = &temp4;
13009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13011 if (!SWIG_IsOK(res1)) {
13012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13013 }
13014 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13015 ecode2 = SWIG_AsVal_long(obj1, &val2);
13016 if (!SWIG_IsOK(ecode2)) {
13017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13018 }
13019 arg2 = static_cast< long >(val2);
13020 {
13021 PyThreadState* __tstate = wxPyBeginAllowThreads();
13022 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13023 wxPyEndAllowThreads(__tstate);
13024 if (PyErr_Occurred()) SWIG_fail;
13025 }
13026 resultobj = SWIG_Py_Void();
13027 if (SWIG_IsTmpObj(res3)) {
13028 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13029 } else {
13030 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13031 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13032 }
13033 if (SWIG_IsTmpObj(res4)) {
13034 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13035 } else {
13036 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13037 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13038 }
13039 return resultobj;
13040 fail:
13041 return NULL;
13042 }
13043
13044
13045 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13046 PyObject *resultobj = 0;
13047 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13048 long arg2 ;
13049 void *argp1 = 0 ;
13050 int res1 = 0 ;
13051 long val2 ;
13052 int ecode2 = 0 ;
13053 PyObject * obj0 = 0 ;
13054 PyObject * obj1 = 0 ;
13055 char * kwnames[] = {
13056 (char *) "self",(char *) "pos", NULL
13057 };
13058
13059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13061 if (!SWIG_IsOK(res1)) {
13062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13063 }
13064 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13065 ecode2 = SWIG_AsVal_long(obj1, &val2);
13066 if (!SWIG_IsOK(ecode2)) {
13067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13068 }
13069 arg2 = static_cast< long >(val2);
13070 {
13071 PyThreadState* __tstate = wxPyBeginAllowThreads();
13072 (arg1)->ShowPosition(arg2);
13073 wxPyEndAllowThreads(__tstate);
13074 if (PyErr_Occurred()) SWIG_fail;
13075 }
13076 resultobj = SWIG_Py_Void();
13077 return resultobj;
13078 fail:
13079 return NULL;
13080 }
13081
13082
13083 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13084 PyObject *resultobj = 0;
13085 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13086 wxPoint *arg2 = 0 ;
13087 long *arg3 = (long *) 0 ;
13088 long *arg4 = (long *) 0 ;
13089 wxTextCtrlHitTestResult result;
13090 void *argp1 = 0 ;
13091 int res1 = 0 ;
13092 wxPoint temp2 ;
13093 long temp3 ;
13094 int res3 = SWIG_TMPOBJ ;
13095 long temp4 ;
13096 int res4 = SWIG_TMPOBJ ;
13097 PyObject * obj0 = 0 ;
13098 PyObject * obj1 = 0 ;
13099 char * kwnames[] = {
13100 (char *) "self",(char *) "pt", NULL
13101 };
13102
13103 arg3 = &temp3;
13104 arg4 = &temp4;
13105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13107 if (!SWIG_IsOK(res1)) {
13108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13109 }
13110 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13111 {
13112 arg2 = &temp2;
13113 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13114 }
13115 {
13116 PyThreadState* __tstate = wxPyBeginAllowThreads();
13117 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13118 wxPyEndAllowThreads(__tstate);
13119 if (PyErr_Occurred()) SWIG_fail;
13120 }
13121 resultobj = SWIG_From_int(static_cast< int >(result));
13122 if (SWIG_IsTmpObj(res3)) {
13123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13124 } else {
13125 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13127 }
13128 if (SWIG_IsTmpObj(res4)) {
13129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13130 } else {
13131 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13132 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13133 }
13134 return resultobj;
13135 fail:
13136 return NULL;
13137 }
13138
13139
13140 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13141 PyObject *resultobj = 0;
13142 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13143 wxPoint *arg2 = 0 ;
13144 long *arg3 = (long *) 0 ;
13145 wxTextCtrlHitTestResult result;
13146 void *argp1 = 0 ;
13147 int res1 = 0 ;
13148 wxPoint temp2 ;
13149 long temp3 ;
13150 int res3 = SWIG_TMPOBJ ;
13151 PyObject * obj0 = 0 ;
13152 PyObject * obj1 = 0 ;
13153 char * kwnames[] = {
13154 (char *) "self",(char *) "pt", NULL
13155 };
13156
13157 arg3 = &temp3;
13158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13160 if (!SWIG_IsOK(res1)) {
13161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13162 }
13163 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13164 {
13165 arg2 = &temp2;
13166 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13167 }
13168 {
13169 PyThreadState* __tstate = wxPyBeginAllowThreads();
13170 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13171 wxPyEndAllowThreads(__tstate);
13172 if (PyErr_Occurred()) SWIG_fail;
13173 }
13174 resultobj = SWIG_From_int(static_cast< int >(result));
13175 if (SWIG_IsTmpObj(res3)) {
13176 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13177 } else {
13178 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13179 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13180 }
13181 return resultobj;
13182 fail:
13183 return NULL;
13184 }
13185
13186
13187 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13188 PyObject *resultobj = 0;
13189 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13190 void *argp1 = 0 ;
13191 int res1 = 0 ;
13192 PyObject *swig_obj[1] ;
13193
13194 if (!args) SWIG_fail;
13195 swig_obj[0] = args;
13196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13197 if (!SWIG_IsOK(res1)) {
13198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13199 }
13200 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13201 {
13202 PyThreadState* __tstate = wxPyBeginAllowThreads();
13203 (arg1)->Copy();
13204 wxPyEndAllowThreads(__tstate);
13205 if (PyErr_Occurred()) SWIG_fail;
13206 }
13207 resultobj = SWIG_Py_Void();
13208 return resultobj;
13209 fail:
13210 return NULL;
13211 }
13212
13213
13214 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13215 PyObject *resultobj = 0;
13216 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13217 void *argp1 = 0 ;
13218 int res1 = 0 ;
13219 PyObject *swig_obj[1] ;
13220
13221 if (!args) SWIG_fail;
13222 swig_obj[0] = args;
13223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13224 if (!SWIG_IsOK(res1)) {
13225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13226 }
13227 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13228 {
13229 PyThreadState* __tstate = wxPyBeginAllowThreads();
13230 (arg1)->Cut();
13231 wxPyEndAllowThreads(__tstate);
13232 if (PyErr_Occurred()) SWIG_fail;
13233 }
13234 resultobj = SWIG_Py_Void();
13235 return resultobj;
13236 fail:
13237 return NULL;
13238 }
13239
13240
13241 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13242 PyObject *resultobj = 0;
13243 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13244 void *argp1 = 0 ;
13245 int res1 = 0 ;
13246 PyObject *swig_obj[1] ;
13247
13248 if (!args) SWIG_fail;
13249 swig_obj[0] = args;
13250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13251 if (!SWIG_IsOK(res1)) {
13252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13253 }
13254 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13255 {
13256 PyThreadState* __tstate = wxPyBeginAllowThreads();
13257 (arg1)->Paste();
13258 wxPyEndAllowThreads(__tstate);
13259 if (PyErr_Occurred()) SWIG_fail;
13260 }
13261 resultobj = SWIG_Py_Void();
13262 return resultobj;
13263 fail:
13264 return NULL;
13265 }
13266
13267
13268 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13269 PyObject *resultobj = 0;
13270 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13271 bool result;
13272 void *argp1 = 0 ;
13273 int res1 = 0 ;
13274 PyObject *swig_obj[1] ;
13275
13276 if (!args) SWIG_fail;
13277 swig_obj[0] = args;
13278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13279 if (!SWIG_IsOK(res1)) {
13280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13281 }
13282 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13283 {
13284 PyThreadState* __tstate = wxPyBeginAllowThreads();
13285 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13286 wxPyEndAllowThreads(__tstate);
13287 if (PyErr_Occurred()) SWIG_fail;
13288 }
13289 {
13290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13291 }
13292 return resultobj;
13293 fail:
13294 return NULL;
13295 }
13296
13297
13298 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13299 PyObject *resultobj = 0;
13300 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13301 bool result;
13302 void *argp1 = 0 ;
13303 int res1 = 0 ;
13304 PyObject *swig_obj[1] ;
13305
13306 if (!args) SWIG_fail;
13307 swig_obj[0] = args;
13308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13309 if (!SWIG_IsOK(res1)) {
13310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13311 }
13312 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13313 {
13314 PyThreadState* __tstate = wxPyBeginAllowThreads();
13315 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13316 wxPyEndAllowThreads(__tstate);
13317 if (PyErr_Occurred()) SWIG_fail;
13318 }
13319 {
13320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13321 }
13322 return resultobj;
13323 fail:
13324 return NULL;
13325 }
13326
13327
13328 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13329 PyObject *resultobj = 0;
13330 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13331 bool result;
13332 void *argp1 = 0 ;
13333 int res1 = 0 ;
13334 PyObject *swig_obj[1] ;
13335
13336 if (!args) SWIG_fail;
13337 swig_obj[0] = args;
13338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13339 if (!SWIG_IsOK(res1)) {
13340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13341 }
13342 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13343 {
13344 PyThreadState* __tstate = wxPyBeginAllowThreads();
13345 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13346 wxPyEndAllowThreads(__tstate);
13347 if (PyErr_Occurred()) SWIG_fail;
13348 }
13349 {
13350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13351 }
13352 return resultobj;
13353 fail:
13354 return NULL;
13355 }
13356
13357
13358 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13359 PyObject *resultobj = 0;
13360 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13361 void *argp1 = 0 ;
13362 int res1 = 0 ;
13363 PyObject *swig_obj[1] ;
13364
13365 if (!args) SWIG_fail;
13366 swig_obj[0] = args;
13367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13368 if (!SWIG_IsOK(res1)) {
13369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13370 }
13371 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13372 {
13373 PyThreadState* __tstate = wxPyBeginAllowThreads();
13374 (arg1)->Undo();
13375 wxPyEndAllowThreads(__tstate);
13376 if (PyErr_Occurred()) SWIG_fail;
13377 }
13378 resultobj = SWIG_Py_Void();
13379 return resultobj;
13380 fail:
13381 return NULL;
13382 }
13383
13384
13385 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13386 PyObject *resultobj = 0;
13387 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13388 void *argp1 = 0 ;
13389 int res1 = 0 ;
13390 PyObject *swig_obj[1] ;
13391
13392 if (!args) SWIG_fail;
13393 swig_obj[0] = args;
13394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13395 if (!SWIG_IsOK(res1)) {
13396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13397 }
13398 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13399 {
13400 PyThreadState* __tstate = wxPyBeginAllowThreads();
13401 (arg1)->Redo();
13402 wxPyEndAllowThreads(__tstate);
13403 if (PyErr_Occurred()) SWIG_fail;
13404 }
13405 resultobj = SWIG_Py_Void();
13406 return resultobj;
13407 fail:
13408 return NULL;
13409 }
13410
13411
13412 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13413 PyObject *resultobj = 0;
13414 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13415 bool result;
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_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13425 }
13426 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13427 {
13428 PyThreadState* __tstate = wxPyBeginAllowThreads();
13429 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 {
13434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13435 }
13436 return resultobj;
13437 fail:
13438 return NULL;
13439 }
13440
13441
13442 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13443 PyObject *resultobj = 0;
13444 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13445 bool result;
13446 void *argp1 = 0 ;
13447 int res1 = 0 ;
13448 PyObject *swig_obj[1] ;
13449
13450 if (!args) SWIG_fail;
13451 swig_obj[0] = args;
13452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13453 if (!SWIG_IsOK(res1)) {
13454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13455 }
13456 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13457 {
13458 PyThreadState* __tstate = wxPyBeginAllowThreads();
13459 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13460 wxPyEndAllowThreads(__tstate);
13461 if (PyErr_Occurred()) SWIG_fail;
13462 }
13463 {
13464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13465 }
13466 return resultobj;
13467 fail:
13468 return NULL;
13469 }
13470
13471
13472 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13473 PyObject *resultobj = 0;
13474 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13475 long arg2 ;
13476 void *argp1 = 0 ;
13477 int res1 = 0 ;
13478 long val2 ;
13479 int ecode2 = 0 ;
13480 PyObject * obj0 = 0 ;
13481 PyObject * obj1 = 0 ;
13482 char * kwnames[] = {
13483 (char *) "self",(char *) "pos", NULL
13484 };
13485
13486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13488 if (!SWIG_IsOK(res1)) {
13489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13490 }
13491 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13492 ecode2 = SWIG_AsVal_long(obj1, &val2);
13493 if (!SWIG_IsOK(ecode2)) {
13494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13495 }
13496 arg2 = static_cast< long >(val2);
13497 {
13498 PyThreadState* __tstate = wxPyBeginAllowThreads();
13499 (arg1)->SetInsertionPoint(arg2);
13500 wxPyEndAllowThreads(__tstate);
13501 if (PyErr_Occurred()) SWIG_fail;
13502 }
13503 resultobj = SWIG_Py_Void();
13504 return resultobj;
13505 fail:
13506 return NULL;
13507 }
13508
13509
13510 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13511 PyObject *resultobj = 0;
13512 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13513 void *argp1 = 0 ;
13514 int res1 = 0 ;
13515 PyObject *swig_obj[1] ;
13516
13517 if (!args) SWIG_fail;
13518 swig_obj[0] = args;
13519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13520 if (!SWIG_IsOK(res1)) {
13521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13522 }
13523 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13524 {
13525 PyThreadState* __tstate = wxPyBeginAllowThreads();
13526 (arg1)->SetInsertionPointEnd();
13527 wxPyEndAllowThreads(__tstate);
13528 if (PyErr_Occurred()) SWIG_fail;
13529 }
13530 resultobj = SWIG_Py_Void();
13531 return resultobj;
13532 fail:
13533 return NULL;
13534 }
13535
13536
13537 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13538 PyObject *resultobj = 0;
13539 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13540 long result;
13541 void *argp1 = 0 ;
13542 int res1 = 0 ;
13543 PyObject *swig_obj[1] ;
13544
13545 if (!args) SWIG_fail;
13546 swig_obj[0] = args;
13547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13548 if (!SWIG_IsOK(res1)) {
13549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13550 }
13551 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13552 {
13553 PyThreadState* __tstate = wxPyBeginAllowThreads();
13554 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13555 wxPyEndAllowThreads(__tstate);
13556 if (PyErr_Occurred()) SWIG_fail;
13557 }
13558 resultobj = SWIG_From_long(static_cast< long >(result));
13559 return resultobj;
13560 fail:
13561 return NULL;
13562 }
13563
13564
13565 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13566 PyObject *resultobj = 0;
13567 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13568 long result;
13569 void *argp1 = 0 ;
13570 int res1 = 0 ;
13571 PyObject *swig_obj[1] ;
13572
13573 if (!args) SWIG_fail;
13574 swig_obj[0] = args;
13575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13576 if (!SWIG_IsOK(res1)) {
13577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13578 }
13579 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13580 {
13581 PyThreadState* __tstate = wxPyBeginAllowThreads();
13582 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13583 wxPyEndAllowThreads(__tstate);
13584 if (PyErr_Occurred()) SWIG_fail;
13585 }
13586 resultobj = SWIG_From_long(static_cast< long >(result));
13587 return resultobj;
13588 fail:
13589 return NULL;
13590 }
13591
13592
13593 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13594 PyObject *resultobj = 0;
13595 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13596 long arg2 ;
13597 long arg3 ;
13598 void *argp1 = 0 ;
13599 int res1 = 0 ;
13600 long val2 ;
13601 int ecode2 = 0 ;
13602 long val3 ;
13603 int ecode3 = 0 ;
13604 PyObject * obj0 = 0 ;
13605 PyObject * obj1 = 0 ;
13606 PyObject * obj2 = 0 ;
13607 char * kwnames[] = {
13608 (char *) "self",(char *) "from",(char *) "to", NULL
13609 };
13610
13611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13613 if (!SWIG_IsOK(res1)) {
13614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13615 }
13616 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13617 ecode2 = SWIG_AsVal_long(obj1, &val2);
13618 if (!SWIG_IsOK(ecode2)) {
13619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13620 }
13621 arg2 = static_cast< long >(val2);
13622 ecode3 = SWIG_AsVal_long(obj2, &val3);
13623 if (!SWIG_IsOK(ecode3)) {
13624 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13625 }
13626 arg3 = static_cast< long >(val3);
13627 {
13628 PyThreadState* __tstate = wxPyBeginAllowThreads();
13629 (arg1)->SetSelection(arg2,arg3);
13630 wxPyEndAllowThreads(__tstate);
13631 if (PyErr_Occurred()) SWIG_fail;
13632 }
13633 resultobj = SWIG_Py_Void();
13634 return resultobj;
13635 fail:
13636 return NULL;
13637 }
13638
13639
13640 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13641 PyObject *resultobj = 0;
13642 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13643 void *argp1 = 0 ;
13644 int res1 = 0 ;
13645 PyObject *swig_obj[1] ;
13646
13647 if (!args) SWIG_fail;
13648 swig_obj[0] = args;
13649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13650 if (!SWIG_IsOK(res1)) {
13651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13652 }
13653 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13654 {
13655 PyThreadState* __tstate = wxPyBeginAllowThreads();
13656 (arg1)->SelectAll();
13657 wxPyEndAllowThreads(__tstate);
13658 if (PyErr_Occurred()) SWIG_fail;
13659 }
13660 resultobj = SWIG_Py_Void();
13661 return resultobj;
13662 fail:
13663 return NULL;
13664 }
13665
13666
13667 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13668 PyObject *resultobj = 0;
13669 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13670 bool arg2 ;
13671 void *argp1 = 0 ;
13672 int res1 = 0 ;
13673 bool val2 ;
13674 int ecode2 = 0 ;
13675 PyObject * obj0 = 0 ;
13676 PyObject * obj1 = 0 ;
13677 char * kwnames[] = {
13678 (char *) "self",(char *) "editable", NULL
13679 };
13680
13681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13683 if (!SWIG_IsOK(res1)) {
13684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13685 }
13686 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13687 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13688 if (!SWIG_IsOK(ecode2)) {
13689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13690 }
13691 arg2 = static_cast< bool >(val2);
13692 {
13693 PyThreadState* __tstate = wxPyBeginAllowThreads();
13694 (arg1)->SetEditable(arg2);
13695 wxPyEndAllowThreads(__tstate);
13696 if (PyErr_Occurred()) SWIG_fail;
13697 }
13698 resultobj = SWIG_Py_Void();
13699 return resultobj;
13700 fail:
13701 return NULL;
13702 }
13703
13704
13705 SWIGINTERN PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13706 PyObject *resultobj = 0;
13707 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13708 bool arg2 = (bool) true ;
13709 bool result;
13710 void *argp1 = 0 ;
13711 int res1 = 0 ;
13712 bool val2 ;
13713 int ecode2 = 0 ;
13714 PyObject * obj0 = 0 ;
13715 PyObject * obj1 = 0 ;
13716 char * kwnames[] = {
13717 (char *) "self",(char *) "show", NULL
13718 };
13719
13720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) SWIG_fail;
13721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13722 if (!SWIG_IsOK(res1)) {
13723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13724 }
13725 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13726 if (obj1) {
13727 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13728 if (!SWIG_IsOK(ecode2)) {
13729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "2"" of type '" "bool""'");
13730 }
13731 arg2 = static_cast< bool >(val2);
13732 }
13733 {
13734 PyThreadState* __tstate = wxPyBeginAllowThreads();
13735 result = (bool)(arg1)->ShowNativeCaret(arg2);
13736 wxPyEndAllowThreads(__tstate);
13737 if (PyErr_Occurred()) SWIG_fail;
13738 }
13739 {
13740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13741 }
13742 return resultobj;
13743 fail:
13744 return NULL;
13745 }
13746
13747
13748 SWIGINTERN PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13749 PyObject *resultobj = 0;
13750 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13751 bool result;
13752 void *argp1 = 0 ;
13753 int res1 = 0 ;
13754 PyObject *swig_obj[1] ;
13755
13756 if (!args) SWIG_fail;
13757 swig_obj[0] = args;
13758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13759 if (!SWIG_IsOK(res1)) {
13760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HideNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13761 }
13762 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13763 {
13764 PyThreadState* __tstate = wxPyBeginAllowThreads();
13765 result = (bool)(arg1)->HideNativeCaret();
13766 wxPyEndAllowThreads(__tstate);
13767 if (PyErr_Occurred()) SWIG_fail;
13768 }
13769 {
13770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13771 }
13772 return resultobj;
13773 fail:
13774 return NULL;
13775 }
13776
13777
13778 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13779 PyObject *resultobj = 0;
13780 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13781 wxString *arg2 = 0 ;
13782 void *argp1 = 0 ;
13783 int res1 = 0 ;
13784 bool temp2 = false ;
13785 PyObject * obj0 = 0 ;
13786 PyObject * obj1 = 0 ;
13787 char * kwnames[] = {
13788 (char *) "self",(char *) "text", NULL
13789 };
13790
13791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13793 if (!SWIG_IsOK(res1)) {
13794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13795 }
13796 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13797 {
13798 arg2 = wxString_in_helper(obj1);
13799 if (arg2 == NULL) SWIG_fail;
13800 temp2 = true;
13801 }
13802 {
13803 PyThreadState* __tstate = wxPyBeginAllowThreads();
13804 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13805 wxPyEndAllowThreads(__tstate);
13806 if (PyErr_Occurred()) SWIG_fail;
13807 }
13808 resultobj = SWIG_Py_Void();
13809 {
13810 if (temp2)
13811 delete arg2;
13812 }
13813 return resultobj;
13814 fail:
13815 {
13816 if (temp2)
13817 delete arg2;
13818 }
13819 return NULL;
13820 }
13821
13822
13823 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13824 PyObject *resultobj = 0;
13825 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13826 long arg2 ;
13827 long arg3 ;
13828 wxString result;
13829 void *argp1 = 0 ;
13830 int res1 = 0 ;
13831 long val2 ;
13832 int ecode2 = 0 ;
13833 long val3 ;
13834 int ecode3 = 0 ;
13835 PyObject * obj0 = 0 ;
13836 PyObject * obj1 = 0 ;
13837 PyObject * obj2 = 0 ;
13838 char * kwnames[] = {
13839 (char *) "self",(char *) "from",(char *) "to", NULL
13840 };
13841
13842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13844 if (!SWIG_IsOK(res1)) {
13845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13846 }
13847 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13848 ecode2 = SWIG_AsVal_long(obj1, &val2);
13849 if (!SWIG_IsOK(ecode2)) {
13850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13851 }
13852 arg2 = static_cast< long >(val2);
13853 ecode3 = SWIG_AsVal_long(obj2, &val3);
13854 if (!SWIG_IsOK(ecode3)) {
13855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13856 }
13857 arg3 = static_cast< long >(val3);
13858 {
13859 PyThreadState* __tstate = wxPyBeginAllowThreads();
13860 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13861 wxPyEndAllowThreads(__tstate);
13862 if (PyErr_Occurred()) SWIG_fail;
13863 }
13864 {
13865 #if wxUSE_UNICODE
13866 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13867 #else
13868 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13869 #endif
13870 }
13871 return resultobj;
13872 fail:
13873 return NULL;
13874 }
13875
13876
13877 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13878 PyObject *resultobj = 0;
13879 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13880 SwigValueWrapper<wxVisualAttributes > result;
13881 int val1 ;
13882 int ecode1 = 0 ;
13883 PyObject * obj0 = 0 ;
13884 char * kwnames[] = {
13885 (char *) "variant", NULL
13886 };
13887
13888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13889 if (obj0) {
13890 ecode1 = SWIG_AsVal_int(obj0, &val1);
13891 if (!SWIG_IsOK(ecode1)) {
13892 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13893 }
13894 arg1 = static_cast< wxWindowVariant >(val1);
13895 }
13896 {
13897 if (!wxPyCheckForApp()) SWIG_fail;
13898 PyThreadState* __tstate = wxPyBeginAllowThreads();
13899 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13900 wxPyEndAllowThreads(__tstate);
13901 if (PyErr_Occurred()) SWIG_fail;
13902 }
13903 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13904 return resultobj;
13905 fail:
13906 return NULL;
13907 }
13908
13909
13910 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13911 PyObject *obj;
13912 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13913 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13914 return SWIG_Py_Void();
13915 }
13916
13917 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13918 return SWIG_Python_InitShadowInstance(args);
13919 }
13920
13921 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13922 PyObject *resultobj = 0;
13923 int arg1 ;
13924 wxMouseEvent *arg2 = 0 ;
13925 long arg3 ;
13926 long arg4 ;
13927 wxTextUrlEvent *result = 0 ;
13928 int val1 ;
13929 int ecode1 = 0 ;
13930 void *argp2 = 0 ;
13931 int res2 = 0 ;
13932 long val3 ;
13933 int ecode3 = 0 ;
13934 long val4 ;
13935 int ecode4 = 0 ;
13936 PyObject * obj0 = 0 ;
13937 PyObject * obj1 = 0 ;
13938 PyObject * obj2 = 0 ;
13939 PyObject * obj3 = 0 ;
13940 char * kwnames[] = {
13941 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13942 };
13943
13944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13945 ecode1 = SWIG_AsVal_int(obj0, &val1);
13946 if (!SWIG_IsOK(ecode1)) {
13947 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13948 }
13949 arg1 = static_cast< int >(val1);
13950 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13951 if (!SWIG_IsOK(res2)) {
13952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13953 }
13954 if (!argp2) {
13955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13956 }
13957 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13958 ecode3 = SWIG_AsVal_long(obj2, &val3);
13959 if (!SWIG_IsOK(ecode3)) {
13960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13961 }
13962 arg3 = static_cast< long >(val3);
13963 ecode4 = SWIG_AsVal_long(obj3, &val4);
13964 if (!SWIG_IsOK(ecode4)) {
13965 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13966 }
13967 arg4 = static_cast< long >(val4);
13968 {
13969 PyThreadState* __tstate = wxPyBeginAllowThreads();
13970 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13971 wxPyEndAllowThreads(__tstate);
13972 if (PyErr_Occurred()) SWIG_fail;
13973 }
13974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13975 return resultobj;
13976 fail:
13977 return NULL;
13978 }
13979
13980
13981 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13982 PyObject *resultobj = 0;
13983 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13984 wxMouseEvent *result = 0 ;
13985 void *argp1 = 0 ;
13986 int res1 = 0 ;
13987 PyObject *swig_obj[1] ;
13988
13989 if (!args) SWIG_fail;
13990 swig_obj[0] = args;
13991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13992 if (!SWIG_IsOK(res1)) {
13993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13994 }
13995 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13996 {
13997 PyThreadState* __tstate = wxPyBeginAllowThreads();
13998 {
13999 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14000 result = (wxMouseEvent *) &_result_ref;
14001 }
14002 wxPyEndAllowThreads(__tstate);
14003 if (PyErr_Occurred()) SWIG_fail;
14004 }
14005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14006 return resultobj;
14007 fail:
14008 return NULL;
14009 }
14010
14011
14012 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14013 PyObject *resultobj = 0;
14014 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14015 long 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_wxTextUrlEvent, 0 | 0 );
14023 if (!SWIG_IsOK(res1)) {
14024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14025 }
14026 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14027 {
14028 PyThreadState* __tstate = wxPyBeginAllowThreads();
14029 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14030 wxPyEndAllowThreads(__tstate);
14031 if (PyErr_Occurred()) SWIG_fail;
14032 }
14033 resultobj = SWIG_From_long(static_cast< long >(result));
14034 return resultobj;
14035 fail:
14036 return NULL;
14037 }
14038
14039
14040 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14041 PyObject *resultobj = 0;
14042 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14043 long result;
14044 void *argp1 = 0 ;
14045 int res1 = 0 ;
14046 PyObject *swig_obj[1] ;
14047
14048 if (!args) SWIG_fail;
14049 swig_obj[0] = args;
14050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14051 if (!SWIG_IsOK(res1)) {
14052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14053 }
14054 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14055 {
14056 PyThreadState* __tstate = wxPyBeginAllowThreads();
14057 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14058 wxPyEndAllowThreads(__tstate);
14059 if (PyErr_Occurred()) SWIG_fail;
14060 }
14061 resultobj = SWIG_From_long(static_cast< long >(result));
14062 return resultobj;
14063 fail:
14064 return NULL;
14065 }
14066
14067
14068 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14069 PyObject *obj;
14070 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14071 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14072 return SWIG_Py_Void();
14073 }
14074
14075 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14076 return SWIG_Python_InitShadowInstance(args);
14077 }
14078
14079 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14080 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14081 return 1;
14082 }
14083
14084
14085 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14086 PyObject *pyobj = 0;
14087
14088 {
14089 #if wxUSE_UNICODE
14090 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14091 #else
14092 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14093 #endif
14094 }
14095 return pyobj;
14096 }
14097
14098
14099 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14100 PyObject *resultobj = 0;
14101 wxWindow *arg1 = (wxWindow *) 0 ;
14102 int arg2 = (int) -1 ;
14103 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14104 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14105 wxSize const &arg4_defvalue = wxDefaultSize ;
14106 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14107 long arg5 = (long) wxSB_HORIZONTAL ;
14108 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14109 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14110 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14111 wxString *arg7 = (wxString *) &arg7_defvalue ;
14112 wxScrollBar *result = 0 ;
14113 void *argp1 = 0 ;
14114 int res1 = 0 ;
14115 int val2 ;
14116 int ecode2 = 0 ;
14117 wxPoint temp3 ;
14118 wxSize temp4 ;
14119 long val5 ;
14120 int ecode5 = 0 ;
14121 void *argp6 = 0 ;
14122 int res6 = 0 ;
14123 bool temp7 = false ;
14124 PyObject * obj0 = 0 ;
14125 PyObject * obj1 = 0 ;
14126 PyObject * obj2 = 0 ;
14127 PyObject * obj3 = 0 ;
14128 PyObject * obj4 = 0 ;
14129 PyObject * obj5 = 0 ;
14130 PyObject * obj6 = 0 ;
14131 char * kwnames[] = {
14132 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14133 };
14134
14135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14137 if (!SWIG_IsOK(res1)) {
14138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14139 }
14140 arg1 = reinterpret_cast< wxWindow * >(argp1);
14141 if (obj1) {
14142 ecode2 = SWIG_AsVal_int(obj1, &val2);
14143 if (!SWIG_IsOK(ecode2)) {
14144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14145 }
14146 arg2 = static_cast< int >(val2);
14147 }
14148 if (obj2) {
14149 {
14150 arg3 = &temp3;
14151 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14152 }
14153 }
14154 if (obj3) {
14155 {
14156 arg4 = &temp4;
14157 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14158 }
14159 }
14160 if (obj4) {
14161 ecode5 = SWIG_AsVal_long(obj4, &val5);
14162 if (!SWIG_IsOK(ecode5)) {
14163 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14164 }
14165 arg5 = static_cast< long >(val5);
14166 }
14167 if (obj5) {
14168 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14169 if (!SWIG_IsOK(res6)) {
14170 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14171 }
14172 if (!argp6) {
14173 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14174 }
14175 arg6 = reinterpret_cast< wxValidator * >(argp6);
14176 }
14177 if (obj6) {
14178 {
14179 arg7 = wxString_in_helper(obj6);
14180 if (arg7 == NULL) SWIG_fail;
14181 temp7 = true;
14182 }
14183 }
14184 {
14185 if (!wxPyCheckForApp()) SWIG_fail;
14186 PyThreadState* __tstate = wxPyBeginAllowThreads();
14187 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14188 wxPyEndAllowThreads(__tstate);
14189 if (PyErr_Occurred()) SWIG_fail;
14190 }
14191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14192 {
14193 if (temp7)
14194 delete arg7;
14195 }
14196 return resultobj;
14197 fail:
14198 {
14199 if (temp7)
14200 delete arg7;
14201 }
14202 return NULL;
14203 }
14204
14205
14206 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14207 PyObject *resultobj = 0;
14208 wxScrollBar *result = 0 ;
14209
14210 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14211 {
14212 if (!wxPyCheckForApp()) SWIG_fail;
14213 PyThreadState* __tstate = wxPyBeginAllowThreads();
14214 result = (wxScrollBar *)new wxScrollBar();
14215 wxPyEndAllowThreads(__tstate);
14216 if (PyErr_Occurred()) SWIG_fail;
14217 }
14218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14219 return resultobj;
14220 fail:
14221 return NULL;
14222 }
14223
14224
14225 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14226 PyObject *resultobj = 0;
14227 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14228 wxWindow *arg2 = (wxWindow *) 0 ;
14229 int arg3 = (int) -1 ;
14230 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14231 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14232 wxSize const &arg5_defvalue = wxDefaultSize ;
14233 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14234 long arg6 = (long) wxSB_HORIZONTAL ;
14235 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14236 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14237 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14238 wxString *arg8 = (wxString *) &arg8_defvalue ;
14239 bool result;
14240 void *argp1 = 0 ;
14241 int res1 = 0 ;
14242 void *argp2 = 0 ;
14243 int res2 = 0 ;
14244 int val3 ;
14245 int ecode3 = 0 ;
14246 wxPoint temp4 ;
14247 wxSize temp5 ;
14248 long val6 ;
14249 int ecode6 = 0 ;
14250 void *argp7 = 0 ;
14251 int res7 = 0 ;
14252 bool temp8 = false ;
14253 PyObject * obj0 = 0 ;
14254 PyObject * obj1 = 0 ;
14255 PyObject * obj2 = 0 ;
14256 PyObject * obj3 = 0 ;
14257 PyObject * obj4 = 0 ;
14258 PyObject * obj5 = 0 ;
14259 PyObject * obj6 = 0 ;
14260 PyObject * obj7 = 0 ;
14261 char * kwnames[] = {
14262 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14263 };
14264
14265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14267 if (!SWIG_IsOK(res1)) {
14268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14269 }
14270 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14271 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14272 if (!SWIG_IsOK(res2)) {
14273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14274 }
14275 arg2 = reinterpret_cast< wxWindow * >(argp2);
14276 if (obj2) {
14277 ecode3 = SWIG_AsVal_int(obj2, &val3);
14278 if (!SWIG_IsOK(ecode3)) {
14279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14280 }
14281 arg3 = static_cast< int >(val3);
14282 }
14283 if (obj3) {
14284 {
14285 arg4 = &temp4;
14286 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14287 }
14288 }
14289 if (obj4) {
14290 {
14291 arg5 = &temp5;
14292 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14293 }
14294 }
14295 if (obj5) {
14296 ecode6 = SWIG_AsVal_long(obj5, &val6);
14297 if (!SWIG_IsOK(ecode6)) {
14298 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14299 }
14300 arg6 = static_cast< long >(val6);
14301 }
14302 if (obj6) {
14303 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14304 if (!SWIG_IsOK(res7)) {
14305 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14306 }
14307 if (!argp7) {
14308 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14309 }
14310 arg7 = reinterpret_cast< wxValidator * >(argp7);
14311 }
14312 if (obj7) {
14313 {
14314 arg8 = wxString_in_helper(obj7);
14315 if (arg8 == NULL) SWIG_fail;
14316 temp8 = true;
14317 }
14318 }
14319 {
14320 PyThreadState* __tstate = wxPyBeginAllowThreads();
14321 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14322 wxPyEndAllowThreads(__tstate);
14323 if (PyErr_Occurred()) SWIG_fail;
14324 }
14325 {
14326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14327 }
14328 {
14329 if (temp8)
14330 delete arg8;
14331 }
14332 return resultobj;
14333 fail:
14334 {
14335 if (temp8)
14336 delete arg8;
14337 }
14338 return NULL;
14339 }
14340
14341
14342 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14343 PyObject *resultobj = 0;
14344 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14345 int result;
14346 void *argp1 = 0 ;
14347 int res1 = 0 ;
14348 PyObject *swig_obj[1] ;
14349
14350 if (!args) SWIG_fail;
14351 swig_obj[0] = args;
14352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14353 if (!SWIG_IsOK(res1)) {
14354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14355 }
14356 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14357 {
14358 PyThreadState* __tstate = wxPyBeginAllowThreads();
14359 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14360 wxPyEndAllowThreads(__tstate);
14361 if (PyErr_Occurred()) SWIG_fail;
14362 }
14363 resultobj = SWIG_From_int(static_cast< int >(result));
14364 return resultobj;
14365 fail:
14366 return NULL;
14367 }
14368
14369
14370 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14371 PyObject *resultobj = 0;
14372 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14373 int result;
14374 void *argp1 = 0 ;
14375 int res1 = 0 ;
14376 PyObject *swig_obj[1] ;
14377
14378 if (!args) SWIG_fail;
14379 swig_obj[0] = args;
14380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14381 if (!SWIG_IsOK(res1)) {
14382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14383 }
14384 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14385 {
14386 PyThreadState* __tstate = wxPyBeginAllowThreads();
14387 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14388 wxPyEndAllowThreads(__tstate);
14389 if (PyErr_Occurred()) SWIG_fail;
14390 }
14391 resultobj = SWIG_From_int(static_cast< int >(result));
14392 return resultobj;
14393 fail:
14394 return NULL;
14395 }
14396
14397
14398 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14399 PyObject *resultobj = 0;
14400 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14401 int result;
14402 void *argp1 = 0 ;
14403 int res1 = 0 ;
14404 PyObject *swig_obj[1] ;
14405
14406 if (!args) SWIG_fail;
14407 swig_obj[0] = args;
14408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14409 if (!SWIG_IsOK(res1)) {
14410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14411 }
14412 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14413 {
14414 PyThreadState* __tstate = wxPyBeginAllowThreads();
14415 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14416 wxPyEndAllowThreads(__tstate);
14417 if (PyErr_Occurred()) SWIG_fail;
14418 }
14419 resultobj = SWIG_From_int(static_cast< int >(result));
14420 return resultobj;
14421 fail:
14422 return NULL;
14423 }
14424
14425
14426 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14427 PyObject *resultobj = 0;
14428 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14429 int result;
14430 void *argp1 = 0 ;
14431 int res1 = 0 ;
14432 PyObject *swig_obj[1] ;
14433
14434 if (!args) SWIG_fail;
14435 swig_obj[0] = args;
14436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14437 if (!SWIG_IsOK(res1)) {
14438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14439 }
14440 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14441 {
14442 PyThreadState* __tstate = wxPyBeginAllowThreads();
14443 result = (int)((wxScrollBar const *)arg1)->GetRange();
14444 wxPyEndAllowThreads(__tstate);
14445 if (PyErr_Occurred()) SWIG_fail;
14446 }
14447 resultobj = SWIG_From_int(static_cast< int >(result));
14448 return resultobj;
14449 fail:
14450 return NULL;
14451 }
14452
14453
14454 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14455 PyObject *resultobj = 0;
14456 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14457 bool result;
14458 void *argp1 = 0 ;
14459 int res1 = 0 ;
14460 PyObject *swig_obj[1] ;
14461
14462 if (!args) SWIG_fail;
14463 swig_obj[0] = args;
14464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14465 if (!SWIG_IsOK(res1)) {
14466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14467 }
14468 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14469 {
14470 PyThreadState* __tstate = wxPyBeginAllowThreads();
14471 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14472 wxPyEndAllowThreads(__tstate);
14473 if (PyErr_Occurred()) SWIG_fail;
14474 }
14475 {
14476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14477 }
14478 return resultobj;
14479 fail:
14480 return NULL;
14481 }
14482
14483
14484 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14485 PyObject *resultobj = 0;
14486 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14487 int arg2 ;
14488 void *argp1 = 0 ;
14489 int res1 = 0 ;
14490 int val2 ;
14491 int ecode2 = 0 ;
14492 PyObject * obj0 = 0 ;
14493 PyObject * obj1 = 0 ;
14494 char * kwnames[] = {
14495 (char *) "self",(char *) "viewStart", NULL
14496 };
14497
14498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14500 if (!SWIG_IsOK(res1)) {
14501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14502 }
14503 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14504 ecode2 = SWIG_AsVal_int(obj1, &val2);
14505 if (!SWIG_IsOK(ecode2)) {
14506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14507 }
14508 arg2 = static_cast< int >(val2);
14509 {
14510 PyThreadState* __tstate = wxPyBeginAllowThreads();
14511 (arg1)->SetThumbPosition(arg2);
14512 wxPyEndAllowThreads(__tstate);
14513 if (PyErr_Occurred()) SWIG_fail;
14514 }
14515 resultobj = SWIG_Py_Void();
14516 return resultobj;
14517 fail:
14518 return NULL;
14519 }
14520
14521
14522 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14523 PyObject *resultobj = 0;
14524 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14525 SwigValueWrapper<wxVisualAttributes > result;
14526 int val1 ;
14527 int ecode1 = 0 ;
14528 PyObject * obj0 = 0 ;
14529 char * kwnames[] = {
14530 (char *) "variant", NULL
14531 };
14532
14533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14534 if (obj0) {
14535 ecode1 = SWIG_AsVal_int(obj0, &val1);
14536 if (!SWIG_IsOK(ecode1)) {
14537 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14538 }
14539 arg1 = static_cast< wxWindowVariant >(val1);
14540 }
14541 {
14542 if (!wxPyCheckForApp()) SWIG_fail;
14543 PyThreadState* __tstate = wxPyBeginAllowThreads();
14544 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14545 wxPyEndAllowThreads(__tstate);
14546 if (PyErr_Occurred()) SWIG_fail;
14547 }
14548 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14549 return resultobj;
14550 fail:
14551 return NULL;
14552 }
14553
14554
14555 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14556 PyObject *obj;
14557 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14558 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14559 return SWIG_Py_Void();
14560 }
14561
14562 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14563 return SWIG_Python_InitShadowInstance(args);
14564 }
14565
14566 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14567 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14568 return 1;
14569 }
14570
14571
14572 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14573 PyObject *pyobj = 0;
14574
14575 {
14576 #if wxUSE_UNICODE
14577 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14578 #else
14579 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14580 #endif
14581 }
14582 return pyobj;
14583 }
14584
14585
14586 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14587 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14588 return 1;
14589 }
14590
14591
14592 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14593 PyObject *pyobj = 0;
14594
14595 {
14596 #if wxUSE_UNICODE
14597 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14598 #else
14599 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14600 #endif
14601 }
14602 return pyobj;
14603 }
14604
14605
14606 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14607 PyObject *resultobj = 0;
14608 wxWindow *arg1 = (wxWindow *) 0 ;
14609 int arg2 = (int) -1 ;
14610 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14611 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14612 wxSize const &arg4_defvalue = wxDefaultSize ;
14613 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14614 long arg5 = (long) wxSP_HORIZONTAL ;
14615 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14616 wxString *arg6 = (wxString *) &arg6_defvalue ;
14617 wxSpinButton *result = 0 ;
14618 void *argp1 = 0 ;
14619 int res1 = 0 ;
14620 int val2 ;
14621 int ecode2 = 0 ;
14622 wxPoint temp3 ;
14623 wxSize temp4 ;
14624 long val5 ;
14625 int ecode5 = 0 ;
14626 bool temp6 = false ;
14627 PyObject * obj0 = 0 ;
14628 PyObject * obj1 = 0 ;
14629 PyObject * obj2 = 0 ;
14630 PyObject * obj3 = 0 ;
14631 PyObject * obj4 = 0 ;
14632 PyObject * obj5 = 0 ;
14633 char * kwnames[] = {
14634 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14635 };
14636
14637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14639 if (!SWIG_IsOK(res1)) {
14640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14641 }
14642 arg1 = reinterpret_cast< wxWindow * >(argp1);
14643 if (obj1) {
14644 ecode2 = SWIG_AsVal_int(obj1, &val2);
14645 if (!SWIG_IsOK(ecode2)) {
14646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14647 }
14648 arg2 = static_cast< int >(val2);
14649 }
14650 if (obj2) {
14651 {
14652 arg3 = &temp3;
14653 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14654 }
14655 }
14656 if (obj3) {
14657 {
14658 arg4 = &temp4;
14659 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14660 }
14661 }
14662 if (obj4) {
14663 ecode5 = SWIG_AsVal_long(obj4, &val5);
14664 if (!SWIG_IsOK(ecode5)) {
14665 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14666 }
14667 arg5 = static_cast< long >(val5);
14668 }
14669 if (obj5) {
14670 {
14671 arg6 = wxString_in_helper(obj5);
14672 if (arg6 == NULL) SWIG_fail;
14673 temp6 = true;
14674 }
14675 }
14676 {
14677 if (!wxPyCheckForApp()) SWIG_fail;
14678 PyThreadState* __tstate = wxPyBeginAllowThreads();
14679 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14680 wxPyEndAllowThreads(__tstate);
14681 if (PyErr_Occurred()) SWIG_fail;
14682 }
14683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14684 {
14685 if (temp6)
14686 delete arg6;
14687 }
14688 return resultobj;
14689 fail:
14690 {
14691 if (temp6)
14692 delete arg6;
14693 }
14694 return NULL;
14695 }
14696
14697
14698 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14699 PyObject *resultobj = 0;
14700 wxSpinButton *result = 0 ;
14701
14702 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14703 {
14704 if (!wxPyCheckForApp()) SWIG_fail;
14705 PyThreadState* __tstate = wxPyBeginAllowThreads();
14706 result = (wxSpinButton *)new wxSpinButton();
14707 wxPyEndAllowThreads(__tstate);
14708 if (PyErr_Occurred()) SWIG_fail;
14709 }
14710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14711 return resultobj;
14712 fail:
14713 return NULL;
14714 }
14715
14716
14717 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14718 PyObject *resultobj = 0;
14719 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14720 wxWindow *arg2 = (wxWindow *) 0 ;
14721 int arg3 = (int) -1 ;
14722 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14723 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14724 wxSize const &arg5_defvalue = wxDefaultSize ;
14725 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14726 long arg6 = (long) wxSP_HORIZONTAL ;
14727 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14728 wxString *arg7 = (wxString *) &arg7_defvalue ;
14729 bool result;
14730 void *argp1 = 0 ;
14731 int res1 = 0 ;
14732 void *argp2 = 0 ;
14733 int res2 = 0 ;
14734 int val3 ;
14735 int ecode3 = 0 ;
14736 wxPoint temp4 ;
14737 wxSize temp5 ;
14738 long val6 ;
14739 int ecode6 = 0 ;
14740 bool temp7 = false ;
14741 PyObject * obj0 = 0 ;
14742 PyObject * obj1 = 0 ;
14743 PyObject * obj2 = 0 ;
14744 PyObject * obj3 = 0 ;
14745 PyObject * obj4 = 0 ;
14746 PyObject * obj5 = 0 ;
14747 PyObject * obj6 = 0 ;
14748 char * kwnames[] = {
14749 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14750 };
14751
14752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14754 if (!SWIG_IsOK(res1)) {
14755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14756 }
14757 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14758 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14759 if (!SWIG_IsOK(res2)) {
14760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14761 }
14762 arg2 = reinterpret_cast< wxWindow * >(argp2);
14763 if (obj2) {
14764 ecode3 = SWIG_AsVal_int(obj2, &val3);
14765 if (!SWIG_IsOK(ecode3)) {
14766 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14767 }
14768 arg3 = static_cast< int >(val3);
14769 }
14770 if (obj3) {
14771 {
14772 arg4 = &temp4;
14773 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14774 }
14775 }
14776 if (obj4) {
14777 {
14778 arg5 = &temp5;
14779 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14780 }
14781 }
14782 if (obj5) {
14783 ecode6 = SWIG_AsVal_long(obj5, &val6);
14784 if (!SWIG_IsOK(ecode6)) {
14785 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14786 }
14787 arg6 = static_cast< long >(val6);
14788 }
14789 if (obj6) {
14790 {
14791 arg7 = wxString_in_helper(obj6);
14792 if (arg7 == NULL) SWIG_fail;
14793 temp7 = true;
14794 }
14795 }
14796 {
14797 PyThreadState* __tstate = wxPyBeginAllowThreads();
14798 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14799 wxPyEndAllowThreads(__tstate);
14800 if (PyErr_Occurred()) SWIG_fail;
14801 }
14802 {
14803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14804 }
14805 {
14806 if (temp7)
14807 delete arg7;
14808 }
14809 return resultobj;
14810 fail:
14811 {
14812 if (temp7)
14813 delete arg7;
14814 }
14815 return NULL;
14816 }
14817
14818
14819 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14820 PyObject *resultobj = 0;
14821 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14822 int result;
14823 void *argp1 = 0 ;
14824 int res1 = 0 ;
14825 PyObject *swig_obj[1] ;
14826
14827 if (!args) SWIG_fail;
14828 swig_obj[0] = args;
14829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14830 if (!SWIG_IsOK(res1)) {
14831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14832 }
14833 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14834 {
14835 PyThreadState* __tstate = wxPyBeginAllowThreads();
14836 result = (int)((wxSpinButton const *)arg1)->GetValue();
14837 wxPyEndAllowThreads(__tstate);
14838 if (PyErr_Occurred()) SWIG_fail;
14839 }
14840 resultobj = SWIG_From_int(static_cast< int >(result));
14841 return resultobj;
14842 fail:
14843 return NULL;
14844 }
14845
14846
14847 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14848 PyObject *resultobj = 0;
14849 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14850 int result;
14851 void *argp1 = 0 ;
14852 int res1 = 0 ;
14853 PyObject *swig_obj[1] ;
14854
14855 if (!args) SWIG_fail;
14856 swig_obj[0] = args;
14857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14858 if (!SWIG_IsOK(res1)) {
14859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14860 }
14861 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14862 {
14863 PyThreadState* __tstate = wxPyBeginAllowThreads();
14864 result = (int)((wxSpinButton const *)arg1)->GetMin();
14865 wxPyEndAllowThreads(__tstate);
14866 if (PyErr_Occurred()) SWIG_fail;
14867 }
14868 resultobj = SWIG_From_int(static_cast< int >(result));
14869 return resultobj;
14870 fail:
14871 return NULL;
14872 }
14873
14874
14875 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14876 PyObject *resultobj = 0;
14877 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14878 int result;
14879 void *argp1 = 0 ;
14880 int res1 = 0 ;
14881 PyObject *swig_obj[1] ;
14882
14883 if (!args) SWIG_fail;
14884 swig_obj[0] = args;
14885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14886 if (!SWIG_IsOK(res1)) {
14887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14888 }
14889 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14890 {
14891 PyThreadState* __tstate = wxPyBeginAllowThreads();
14892 result = (int)((wxSpinButton const *)arg1)->GetMax();
14893 wxPyEndAllowThreads(__tstate);
14894 if (PyErr_Occurred()) SWIG_fail;
14895 }
14896 resultobj = SWIG_From_int(static_cast< int >(result));
14897 return resultobj;
14898 fail:
14899 return NULL;
14900 }
14901
14902
14903 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14904 PyObject *resultobj = 0;
14905 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14906 int arg2 ;
14907 void *argp1 = 0 ;
14908 int res1 = 0 ;
14909 int val2 ;
14910 int ecode2 = 0 ;
14911 PyObject * obj0 = 0 ;
14912 PyObject * obj1 = 0 ;
14913 char * kwnames[] = {
14914 (char *) "self",(char *) "val", NULL
14915 };
14916
14917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14919 if (!SWIG_IsOK(res1)) {
14920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14921 }
14922 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14923 ecode2 = SWIG_AsVal_int(obj1, &val2);
14924 if (!SWIG_IsOK(ecode2)) {
14925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14926 }
14927 arg2 = static_cast< int >(val2);
14928 {
14929 PyThreadState* __tstate = wxPyBeginAllowThreads();
14930 (arg1)->SetValue(arg2);
14931 wxPyEndAllowThreads(__tstate);
14932 if (PyErr_Occurred()) SWIG_fail;
14933 }
14934 resultobj = SWIG_Py_Void();
14935 return resultobj;
14936 fail:
14937 return NULL;
14938 }
14939
14940
14941 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14942 PyObject *resultobj = 0;
14943 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14944 int arg2 ;
14945 void *argp1 = 0 ;
14946 int res1 = 0 ;
14947 int val2 ;
14948 int ecode2 = 0 ;
14949 PyObject * obj0 = 0 ;
14950 PyObject * obj1 = 0 ;
14951 char * kwnames[] = {
14952 (char *) "self",(char *) "minVal", NULL
14953 };
14954
14955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14957 if (!SWIG_IsOK(res1)) {
14958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14959 }
14960 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14961 ecode2 = SWIG_AsVal_int(obj1, &val2);
14962 if (!SWIG_IsOK(ecode2)) {
14963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14964 }
14965 arg2 = static_cast< int >(val2);
14966 {
14967 PyThreadState* __tstate = wxPyBeginAllowThreads();
14968 (arg1)->SetMin(arg2);
14969 wxPyEndAllowThreads(__tstate);
14970 if (PyErr_Occurred()) SWIG_fail;
14971 }
14972 resultobj = SWIG_Py_Void();
14973 return resultobj;
14974 fail:
14975 return NULL;
14976 }
14977
14978
14979 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14980 PyObject *resultobj = 0;
14981 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14982 int arg2 ;
14983 void *argp1 = 0 ;
14984 int res1 = 0 ;
14985 int val2 ;
14986 int ecode2 = 0 ;
14987 PyObject * obj0 = 0 ;
14988 PyObject * obj1 = 0 ;
14989 char * kwnames[] = {
14990 (char *) "self",(char *) "maxVal", NULL
14991 };
14992
14993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14995 if (!SWIG_IsOK(res1)) {
14996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14997 }
14998 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14999 ecode2 = SWIG_AsVal_int(obj1, &val2);
15000 if (!SWIG_IsOK(ecode2)) {
15001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15002 }
15003 arg2 = static_cast< int >(val2);
15004 {
15005 PyThreadState* __tstate = wxPyBeginAllowThreads();
15006 (arg1)->SetMax(arg2);
15007 wxPyEndAllowThreads(__tstate);
15008 if (PyErr_Occurred()) SWIG_fail;
15009 }
15010 resultobj = SWIG_Py_Void();
15011 return resultobj;
15012 fail:
15013 return NULL;
15014 }
15015
15016
15017 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15018 PyObject *resultobj = 0;
15019 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15020 int arg2 ;
15021 int arg3 ;
15022 void *argp1 = 0 ;
15023 int res1 = 0 ;
15024 int val2 ;
15025 int ecode2 = 0 ;
15026 int val3 ;
15027 int ecode3 = 0 ;
15028 PyObject * obj0 = 0 ;
15029 PyObject * obj1 = 0 ;
15030 PyObject * obj2 = 0 ;
15031 char * kwnames[] = {
15032 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15033 };
15034
15035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15037 if (!SWIG_IsOK(res1)) {
15038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15039 }
15040 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15041 ecode2 = SWIG_AsVal_int(obj1, &val2);
15042 if (!SWIG_IsOK(ecode2)) {
15043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15044 }
15045 arg2 = static_cast< int >(val2);
15046 ecode3 = SWIG_AsVal_int(obj2, &val3);
15047 if (!SWIG_IsOK(ecode3)) {
15048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15049 }
15050 arg3 = static_cast< int >(val3);
15051 {
15052 PyThreadState* __tstate = wxPyBeginAllowThreads();
15053 (arg1)->SetRange(arg2,arg3);
15054 wxPyEndAllowThreads(__tstate);
15055 if (PyErr_Occurred()) SWIG_fail;
15056 }
15057 resultobj = SWIG_Py_Void();
15058 return resultobj;
15059 fail:
15060 return NULL;
15061 }
15062
15063
15064 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15065 PyObject *resultobj = 0;
15066 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15067 bool result;
15068 void *argp1 = 0 ;
15069 int res1 = 0 ;
15070 PyObject *swig_obj[1] ;
15071
15072 if (!args) SWIG_fail;
15073 swig_obj[0] = args;
15074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15075 if (!SWIG_IsOK(res1)) {
15076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15077 }
15078 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15079 {
15080 PyThreadState* __tstate = wxPyBeginAllowThreads();
15081 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15082 wxPyEndAllowThreads(__tstate);
15083 if (PyErr_Occurred()) SWIG_fail;
15084 }
15085 {
15086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15087 }
15088 return resultobj;
15089 fail:
15090 return NULL;
15091 }
15092
15093
15094 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15095 PyObject *resultobj = 0;
15096 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15097 SwigValueWrapper<wxVisualAttributes > result;
15098 int val1 ;
15099 int ecode1 = 0 ;
15100 PyObject * obj0 = 0 ;
15101 char * kwnames[] = {
15102 (char *) "variant", NULL
15103 };
15104
15105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15106 if (obj0) {
15107 ecode1 = SWIG_AsVal_int(obj0, &val1);
15108 if (!SWIG_IsOK(ecode1)) {
15109 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15110 }
15111 arg1 = static_cast< wxWindowVariant >(val1);
15112 }
15113 {
15114 if (!wxPyCheckForApp()) SWIG_fail;
15115 PyThreadState* __tstate = wxPyBeginAllowThreads();
15116 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15117 wxPyEndAllowThreads(__tstate);
15118 if (PyErr_Occurred()) SWIG_fail;
15119 }
15120 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15121 return resultobj;
15122 fail:
15123 return NULL;
15124 }
15125
15126
15127 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15128 PyObject *obj;
15129 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15130 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15131 return SWIG_Py_Void();
15132 }
15133
15134 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15135 return SWIG_Python_InitShadowInstance(args);
15136 }
15137
15138 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15139 PyObject *resultobj = 0;
15140 wxWindow *arg1 = (wxWindow *) 0 ;
15141 int arg2 = (int) -1 ;
15142 wxString const &arg3_defvalue = wxPyEmptyString ;
15143 wxString *arg3 = (wxString *) &arg3_defvalue ;
15144 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15145 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15146 wxSize const &arg5_defvalue = wxDefaultSize ;
15147 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15148 long arg6 = (long) wxSP_ARROW_KEYS ;
15149 int arg7 = (int) 0 ;
15150 int arg8 = (int) 100 ;
15151 int arg9 = (int) 0 ;
15152 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15153 wxString *arg10 = (wxString *) &arg10_defvalue ;
15154 wxSpinCtrl *result = 0 ;
15155 void *argp1 = 0 ;
15156 int res1 = 0 ;
15157 int val2 ;
15158 int ecode2 = 0 ;
15159 bool temp3 = false ;
15160 wxPoint temp4 ;
15161 wxSize temp5 ;
15162 long val6 ;
15163 int ecode6 = 0 ;
15164 int val7 ;
15165 int ecode7 = 0 ;
15166 int val8 ;
15167 int ecode8 = 0 ;
15168 int val9 ;
15169 int ecode9 = 0 ;
15170 bool temp10 = false ;
15171 PyObject * obj0 = 0 ;
15172 PyObject * obj1 = 0 ;
15173 PyObject * obj2 = 0 ;
15174 PyObject * obj3 = 0 ;
15175 PyObject * obj4 = 0 ;
15176 PyObject * obj5 = 0 ;
15177 PyObject * obj6 = 0 ;
15178 PyObject * obj7 = 0 ;
15179 PyObject * obj8 = 0 ;
15180 PyObject * obj9 = 0 ;
15181 char * kwnames[] = {
15182 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15183 };
15184
15185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15187 if (!SWIG_IsOK(res1)) {
15188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15189 }
15190 arg1 = reinterpret_cast< wxWindow * >(argp1);
15191 if (obj1) {
15192 ecode2 = SWIG_AsVal_int(obj1, &val2);
15193 if (!SWIG_IsOK(ecode2)) {
15194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15195 }
15196 arg2 = static_cast< int >(val2);
15197 }
15198 if (obj2) {
15199 {
15200 arg3 = wxString_in_helper(obj2);
15201 if (arg3 == NULL) SWIG_fail;
15202 temp3 = true;
15203 }
15204 }
15205 if (obj3) {
15206 {
15207 arg4 = &temp4;
15208 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15209 }
15210 }
15211 if (obj4) {
15212 {
15213 arg5 = &temp5;
15214 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15215 }
15216 }
15217 if (obj5) {
15218 ecode6 = SWIG_AsVal_long(obj5, &val6);
15219 if (!SWIG_IsOK(ecode6)) {
15220 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15221 }
15222 arg6 = static_cast< long >(val6);
15223 }
15224 if (obj6) {
15225 ecode7 = SWIG_AsVal_int(obj6, &val7);
15226 if (!SWIG_IsOK(ecode7)) {
15227 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15228 }
15229 arg7 = static_cast< int >(val7);
15230 }
15231 if (obj7) {
15232 ecode8 = SWIG_AsVal_int(obj7, &val8);
15233 if (!SWIG_IsOK(ecode8)) {
15234 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15235 }
15236 arg8 = static_cast< int >(val8);
15237 }
15238 if (obj8) {
15239 ecode9 = SWIG_AsVal_int(obj8, &val9);
15240 if (!SWIG_IsOK(ecode9)) {
15241 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15242 }
15243 arg9 = static_cast< int >(val9);
15244 }
15245 if (obj9) {
15246 {
15247 arg10 = wxString_in_helper(obj9);
15248 if (arg10 == NULL) SWIG_fail;
15249 temp10 = true;
15250 }
15251 }
15252 {
15253 if (!wxPyCheckForApp()) SWIG_fail;
15254 PyThreadState* __tstate = wxPyBeginAllowThreads();
15255 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15256 wxPyEndAllowThreads(__tstate);
15257 if (PyErr_Occurred()) SWIG_fail;
15258 }
15259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15260 {
15261 if (temp3)
15262 delete arg3;
15263 }
15264 {
15265 if (temp10)
15266 delete arg10;
15267 }
15268 return resultobj;
15269 fail:
15270 {
15271 if (temp3)
15272 delete arg3;
15273 }
15274 {
15275 if (temp10)
15276 delete arg10;
15277 }
15278 return NULL;
15279 }
15280
15281
15282 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15283 PyObject *resultobj = 0;
15284 wxSpinCtrl *result = 0 ;
15285
15286 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15287 {
15288 if (!wxPyCheckForApp()) SWIG_fail;
15289 PyThreadState* __tstate = wxPyBeginAllowThreads();
15290 result = (wxSpinCtrl *)new wxSpinCtrl();
15291 wxPyEndAllowThreads(__tstate);
15292 if (PyErr_Occurred()) SWIG_fail;
15293 }
15294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15295 return resultobj;
15296 fail:
15297 return NULL;
15298 }
15299
15300
15301 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15302 PyObject *resultobj = 0;
15303 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15304 wxWindow *arg2 = (wxWindow *) 0 ;
15305 int arg3 = (int) -1 ;
15306 wxString const &arg4_defvalue = wxPyEmptyString ;
15307 wxString *arg4 = (wxString *) &arg4_defvalue ;
15308 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15309 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15310 wxSize const &arg6_defvalue = wxDefaultSize ;
15311 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15312 long arg7 = (long) wxSP_ARROW_KEYS ;
15313 int arg8 = (int) 0 ;
15314 int arg9 = (int) 100 ;
15315 int arg10 = (int) 0 ;
15316 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15317 wxString *arg11 = (wxString *) &arg11_defvalue ;
15318 bool result;
15319 void *argp1 = 0 ;
15320 int res1 = 0 ;
15321 void *argp2 = 0 ;
15322 int res2 = 0 ;
15323 int val3 ;
15324 int ecode3 = 0 ;
15325 bool temp4 = false ;
15326 wxPoint temp5 ;
15327 wxSize temp6 ;
15328 long val7 ;
15329 int ecode7 = 0 ;
15330 int val8 ;
15331 int ecode8 = 0 ;
15332 int val9 ;
15333 int ecode9 = 0 ;
15334 int val10 ;
15335 int ecode10 = 0 ;
15336 bool temp11 = false ;
15337 PyObject * obj0 = 0 ;
15338 PyObject * obj1 = 0 ;
15339 PyObject * obj2 = 0 ;
15340 PyObject * obj3 = 0 ;
15341 PyObject * obj4 = 0 ;
15342 PyObject * obj5 = 0 ;
15343 PyObject * obj6 = 0 ;
15344 PyObject * obj7 = 0 ;
15345 PyObject * obj8 = 0 ;
15346 PyObject * obj9 = 0 ;
15347 PyObject * obj10 = 0 ;
15348 char * kwnames[] = {
15349 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15350 };
15351
15352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15354 if (!SWIG_IsOK(res1)) {
15355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15356 }
15357 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15358 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15359 if (!SWIG_IsOK(res2)) {
15360 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15361 }
15362 arg2 = reinterpret_cast< wxWindow * >(argp2);
15363 if (obj2) {
15364 ecode3 = SWIG_AsVal_int(obj2, &val3);
15365 if (!SWIG_IsOK(ecode3)) {
15366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15367 }
15368 arg3 = static_cast< int >(val3);
15369 }
15370 if (obj3) {
15371 {
15372 arg4 = wxString_in_helper(obj3);
15373 if (arg4 == NULL) SWIG_fail;
15374 temp4 = true;
15375 }
15376 }
15377 if (obj4) {
15378 {
15379 arg5 = &temp5;
15380 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15381 }
15382 }
15383 if (obj5) {
15384 {
15385 arg6 = &temp6;
15386 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15387 }
15388 }
15389 if (obj6) {
15390 ecode7 = SWIG_AsVal_long(obj6, &val7);
15391 if (!SWIG_IsOK(ecode7)) {
15392 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15393 }
15394 arg7 = static_cast< long >(val7);
15395 }
15396 if (obj7) {
15397 ecode8 = SWIG_AsVal_int(obj7, &val8);
15398 if (!SWIG_IsOK(ecode8)) {
15399 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15400 }
15401 arg8 = static_cast< int >(val8);
15402 }
15403 if (obj8) {
15404 ecode9 = SWIG_AsVal_int(obj8, &val9);
15405 if (!SWIG_IsOK(ecode9)) {
15406 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15407 }
15408 arg9 = static_cast< int >(val9);
15409 }
15410 if (obj9) {
15411 ecode10 = SWIG_AsVal_int(obj9, &val10);
15412 if (!SWIG_IsOK(ecode10)) {
15413 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15414 }
15415 arg10 = static_cast< int >(val10);
15416 }
15417 if (obj10) {
15418 {
15419 arg11 = wxString_in_helper(obj10);
15420 if (arg11 == NULL) SWIG_fail;
15421 temp11 = true;
15422 }
15423 }
15424 {
15425 PyThreadState* __tstate = wxPyBeginAllowThreads();
15426 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15427 wxPyEndAllowThreads(__tstate);
15428 if (PyErr_Occurred()) SWIG_fail;
15429 }
15430 {
15431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15432 }
15433 {
15434 if (temp4)
15435 delete arg4;
15436 }
15437 {
15438 if (temp11)
15439 delete arg11;
15440 }
15441 return resultobj;
15442 fail:
15443 {
15444 if (temp4)
15445 delete arg4;
15446 }
15447 {
15448 if (temp11)
15449 delete arg11;
15450 }
15451 return NULL;
15452 }
15453
15454
15455 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15456 PyObject *resultobj = 0;
15457 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15458 int result;
15459 void *argp1 = 0 ;
15460 int res1 = 0 ;
15461 PyObject *swig_obj[1] ;
15462
15463 if (!args) SWIG_fail;
15464 swig_obj[0] = args;
15465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15466 if (!SWIG_IsOK(res1)) {
15467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15468 }
15469 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15470 {
15471 PyThreadState* __tstate = wxPyBeginAllowThreads();
15472 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15473 wxPyEndAllowThreads(__tstate);
15474 if (PyErr_Occurred()) SWIG_fail;
15475 }
15476 resultobj = SWIG_From_int(static_cast< int >(result));
15477 return resultobj;
15478 fail:
15479 return NULL;
15480 }
15481
15482
15483 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15484 PyObject *resultobj = 0;
15485 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15486 int arg2 ;
15487 void *argp1 = 0 ;
15488 int res1 = 0 ;
15489 int val2 ;
15490 int ecode2 = 0 ;
15491 PyObject * obj0 = 0 ;
15492 PyObject * obj1 = 0 ;
15493 char * kwnames[] = {
15494 (char *) "self",(char *) "value", NULL
15495 };
15496
15497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15499 if (!SWIG_IsOK(res1)) {
15500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15501 }
15502 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15503 ecode2 = SWIG_AsVal_int(obj1, &val2);
15504 if (!SWIG_IsOK(ecode2)) {
15505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15506 }
15507 arg2 = static_cast< int >(val2);
15508 {
15509 PyThreadState* __tstate = wxPyBeginAllowThreads();
15510 (arg1)->SetValue(arg2);
15511 wxPyEndAllowThreads(__tstate);
15512 if (PyErr_Occurred()) SWIG_fail;
15513 }
15514 resultobj = SWIG_Py_Void();
15515 return resultobj;
15516 fail:
15517 return NULL;
15518 }
15519
15520
15521 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15522 PyObject *resultobj = 0;
15523 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15524 wxString *arg2 = 0 ;
15525 void *argp1 = 0 ;
15526 int res1 = 0 ;
15527 bool temp2 = false ;
15528 PyObject * obj0 = 0 ;
15529 PyObject * obj1 = 0 ;
15530 char * kwnames[] = {
15531 (char *) "self",(char *) "text", NULL
15532 };
15533
15534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15536 if (!SWIG_IsOK(res1)) {
15537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15538 }
15539 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15540 {
15541 arg2 = wxString_in_helper(obj1);
15542 if (arg2 == NULL) SWIG_fail;
15543 temp2 = true;
15544 }
15545 {
15546 PyThreadState* __tstate = wxPyBeginAllowThreads();
15547 (arg1)->SetValue((wxString const &)*arg2);
15548 wxPyEndAllowThreads(__tstate);
15549 if (PyErr_Occurred()) SWIG_fail;
15550 }
15551 resultobj = SWIG_Py_Void();
15552 {
15553 if (temp2)
15554 delete arg2;
15555 }
15556 return resultobj;
15557 fail:
15558 {
15559 if (temp2)
15560 delete arg2;
15561 }
15562 return NULL;
15563 }
15564
15565
15566 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15567 PyObject *resultobj = 0;
15568 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15569 int arg2 ;
15570 int arg3 ;
15571 void *argp1 = 0 ;
15572 int res1 = 0 ;
15573 int val2 ;
15574 int ecode2 = 0 ;
15575 int val3 ;
15576 int ecode3 = 0 ;
15577 PyObject * obj0 = 0 ;
15578 PyObject * obj1 = 0 ;
15579 PyObject * obj2 = 0 ;
15580 char * kwnames[] = {
15581 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15582 };
15583
15584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15586 if (!SWIG_IsOK(res1)) {
15587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15588 }
15589 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15590 ecode2 = SWIG_AsVal_int(obj1, &val2);
15591 if (!SWIG_IsOK(ecode2)) {
15592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15593 }
15594 arg2 = static_cast< int >(val2);
15595 ecode3 = SWIG_AsVal_int(obj2, &val3);
15596 if (!SWIG_IsOK(ecode3)) {
15597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15598 }
15599 arg3 = static_cast< int >(val3);
15600 {
15601 PyThreadState* __tstate = wxPyBeginAllowThreads();
15602 (arg1)->SetRange(arg2,arg3);
15603 wxPyEndAllowThreads(__tstate);
15604 if (PyErr_Occurred()) SWIG_fail;
15605 }
15606 resultobj = SWIG_Py_Void();
15607 return resultobj;
15608 fail:
15609 return NULL;
15610 }
15611
15612
15613 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15614 PyObject *resultobj = 0;
15615 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15616 int result;
15617 void *argp1 = 0 ;
15618 int res1 = 0 ;
15619 PyObject *swig_obj[1] ;
15620
15621 if (!args) SWIG_fail;
15622 swig_obj[0] = args;
15623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15624 if (!SWIG_IsOK(res1)) {
15625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15626 }
15627 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15628 {
15629 PyThreadState* __tstate = wxPyBeginAllowThreads();
15630 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15631 wxPyEndAllowThreads(__tstate);
15632 if (PyErr_Occurred()) SWIG_fail;
15633 }
15634 resultobj = SWIG_From_int(static_cast< int >(result));
15635 return resultobj;
15636 fail:
15637 return NULL;
15638 }
15639
15640
15641 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15642 PyObject *resultobj = 0;
15643 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15644 int result;
15645 void *argp1 = 0 ;
15646 int res1 = 0 ;
15647 PyObject *swig_obj[1] ;
15648
15649 if (!args) SWIG_fail;
15650 swig_obj[0] = args;
15651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15652 if (!SWIG_IsOK(res1)) {
15653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15654 }
15655 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15656 {
15657 PyThreadState* __tstate = wxPyBeginAllowThreads();
15658 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15659 wxPyEndAllowThreads(__tstate);
15660 if (PyErr_Occurred()) SWIG_fail;
15661 }
15662 resultobj = SWIG_From_int(static_cast< int >(result));
15663 return resultobj;
15664 fail:
15665 return NULL;
15666 }
15667
15668
15669 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15670 PyObject *resultobj = 0;
15671 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15672 long arg2 ;
15673 long arg3 ;
15674 void *argp1 = 0 ;
15675 int res1 = 0 ;
15676 long val2 ;
15677 int ecode2 = 0 ;
15678 long val3 ;
15679 int ecode3 = 0 ;
15680 PyObject * obj0 = 0 ;
15681 PyObject * obj1 = 0 ;
15682 PyObject * obj2 = 0 ;
15683 char * kwnames[] = {
15684 (char *) "self",(char *) "from",(char *) "to", NULL
15685 };
15686
15687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15689 if (!SWIG_IsOK(res1)) {
15690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15691 }
15692 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15693 ecode2 = SWIG_AsVal_long(obj1, &val2);
15694 if (!SWIG_IsOK(ecode2)) {
15695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15696 }
15697 arg2 = static_cast< long >(val2);
15698 ecode3 = SWIG_AsVal_long(obj2, &val3);
15699 if (!SWIG_IsOK(ecode3)) {
15700 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15701 }
15702 arg3 = static_cast< long >(val3);
15703 {
15704 PyThreadState* __tstate = wxPyBeginAllowThreads();
15705 (arg1)->SetSelection(arg2,arg3);
15706 wxPyEndAllowThreads(__tstate);
15707 if (PyErr_Occurred()) SWIG_fail;
15708 }
15709 resultobj = SWIG_Py_Void();
15710 return resultobj;
15711 fail:
15712 return NULL;
15713 }
15714
15715
15716 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15717 PyObject *resultobj = 0;
15718 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15719 SwigValueWrapper<wxVisualAttributes > result;
15720 int val1 ;
15721 int ecode1 = 0 ;
15722 PyObject * obj0 = 0 ;
15723 char * kwnames[] = {
15724 (char *) "variant", NULL
15725 };
15726
15727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15728 if (obj0) {
15729 ecode1 = SWIG_AsVal_int(obj0, &val1);
15730 if (!SWIG_IsOK(ecode1)) {
15731 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15732 }
15733 arg1 = static_cast< wxWindowVariant >(val1);
15734 }
15735 {
15736 if (!wxPyCheckForApp()) SWIG_fail;
15737 PyThreadState* __tstate = wxPyBeginAllowThreads();
15738 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15739 wxPyEndAllowThreads(__tstate);
15740 if (PyErr_Occurred()) SWIG_fail;
15741 }
15742 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15743 return resultobj;
15744 fail:
15745 return NULL;
15746 }
15747
15748
15749 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15750 PyObject *obj;
15751 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15752 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15753 return SWIG_Py_Void();
15754 }
15755
15756 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15757 return SWIG_Python_InitShadowInstance(args);
15758 }
15759
15760 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15761 PyObject *resultobj = 0;
15762 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15763 int arg2 = (int) 0 ;
15764 wxSpinEvent *result = 0 ;
15765 int val1 ;
15766 int ecode1 = 0 ;
15767 int val2 ;
15768 int ecode2 = 0 ;
15769 PyObject * obj0 = 0 ;
15770 PyObject * obj1 = 0 ;
15771 char * kwnames[] = {
15772 (char *) "commandType",(char *) "winid", NULL
15773 };
15774
15775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15776 if (obj0) {
15777 ecode1 = SWIG_AsVal_int(obj0, &val1);
15778 if (!SWIG_IsOK(ecode1)) {
15779 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15780 }
15781 arg1 = static_cast< wxEventType >(val1);
15782 }
15783 if (obj1) {
15784 ecode2 = SWIG_AsVal_int(obj1, &val2);
15785 if (!SWIG_IsOK(ecode2)) {
15786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15787 }
15788 arg2 = static_cast< int >(val2);
15789 }
15790 {
15791 PyThreadState* __tstate = wxPyBeginAllowThreads();
15792 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15793 wxPyEndAllowThreads(__tstate);
15794 if (PyErr_Occurred()) SWIG_fail;
15795 }
15796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15797 return resultobj;
15798 fail:
15799 return NULL;
15800 }
15801
15802
15803 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15804 PyObject *resultobj = 0;
15805 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15806 int result;
15807 void *argp1 = 0 ;
15808 int res1 = 0 ;
15809 PyObject *swig_obj[1] ;
15810
15811 if (!args) SWIG_fail;
15812 swig_obj[0] = args;
15813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15814 if (!SWIG_IsOK(res1)) {
15815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15816 }
15817 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15818 {
15819 PyThreadState* __tstate = wxPyBeginAllowThreads();
15820 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15821 wxPyEndAllowThreads(__tstate);
15822 if (PyErr_Occurred()) SWIG_fail;
15823 }
15824 resultobj = SWIG_From_int(static_cast< int >(result));
15825 return resultobj;
15826 fail:
15827 return NULL;
15828 }
15829
15830
15831 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15832 PyObject *resultobj = 0;
15833 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15834 int arg2 ;
15835 void *argp1 = 0 ;
15836 int res1 = 0 ;
15837 int val2 ;
15838 int ecode2 = 0 ;
15839 PyObject * obj0 = 0 ;
15840 PyObject * obj1 = 0 ;
15841 char * kwnames[] = {
15842 (char *) "self",(char *) "pos", NULL
15843 };
15844
15845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15847 if (!SWIG_IsOK(res1)) {
15848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15849 }
15850 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15851 ecode2 = SWIG_AsVal_int(obj1, &val2);
15852 if (!SWIG_IsOK(ecode2)) {
15853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15854 }
15855 arg2 = static_cast< int >(val2);
15856 {
15857 PyThreadState* __tstate = wxPyBeginAllowThreads();
15858 (arg1)->SetPosition(arg2);
15859 wxPyEndAllowThreads(__tstate);
15860 if (PyErr_Occurred()) SWIG_fail;
15861 }
15862 resultobj = SWIG_Py_Void();
15863 return resultobj;
15864 fail:
15865 return NULL;
15866 }
15867
15868
15869 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15870 PyObject *obj;
15871 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15872 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15873 return SWIG_Py_Void();
15874 }
15875
15876 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15877 return SWIG_Python_InitShadowInstance(args);
15878 }
15879
15880 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15881 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15882 return 1;
15883 }
15884
15885
15886 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15887 PyObject *pyobj = 0;
15888
15889 {
15890 #if wxUSE_UNICODE
15891 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15892 #else
15893 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15894 #endif
15895 }
15896 return pyobj;
15897 }
15898
15899
15900 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15901 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15902 return 1;
15903 }
15904
15905
15906 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15907 PyObject *pyobj = 0;
15908
15909 {
15910 #if wxUSE_UNICODE
15911 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15912 #else
15913 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15914 #endif
15915 }
15916 return pyobj;
15917 }
15918
15919
15920 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15921 PyObject *resultobj = 0;
15922 wxWindow *arg1 = (wxWindow *) 0 ;
15923 int arg2 = (int) -1 ;
15924 wxString const &arg3_defvalue = wxPyEmptyString ;
15925 wxString *arg3 = (wxString *) &arg3_defvalue ;
15926 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15927 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15928 wxSize const &arg5_defvalue = wxDefaultSize ;
15929 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15930 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15931 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15932 int arg7 = (int) 0 ;
15933 long arg8 = (long) wxRA_HORIZONTAL ;
15934 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15935 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15936 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15937 wxString *arg10 = (wxString *) &arg10_defvalue ;
15938 wxRadioBox *result = 0 ;
15939 void *argp1 = 0 ;
15940 int res1 = 0 ;
15941 int val2 ;
15942 int ecode2 = 0 ;
15943 bool temp3 = false ;
15944 wxPoint temp4 ;
15945 wxSize temp5 ;
15946 bool temp6 = false ;
15947 int val7 ;
15948 int ecode7 = 0 ;
15949 long val8 ;
15950 int ecode8 = 0 ;
15951 void *argp9 = 0 ;
15952 int res9 = 0 ;
15953 bool temp10 = false ;
15954 PyObject * obj0 = 0 ;
15955 PyObject * obj1 = 0 ;
15956 PyObject * obj2 = 0 ;
15957 PyObject * obj3 = 0 ;
15958 PyObject * obj4 = 0 ;
15959 PyObject * obj5 = 0 ;
15960 PyObject * obj6 = 0 ;
15961 PyObject * obj7 = 0 ;
15962 PyObject * obj8 = 0 ;
15963 PyObject * obj9 = 0 ;
15964 char * kwnames[] = {
15965 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15966 };
15967
15968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15970 if (!SWIG_IsOK(res1)) {
15971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15972 }
15973 arg1 = reinterpret_cast< wxWindow * >(argp1);
15974 if (obj1) {
15975 ecode2 = SWIG_AsVal_int(obj1, &val2);
15976 if (!SWIG_IsOK(ecode2)) {
15977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15978 }
15979 arg2 = static_cast< int >(val2);
15980 }
15981 if (obj2) {
15982 {
15983 arg3 = wxString_in_helper(obj2);
15984 if (arg3 == NULL) SWIG_fail;
15985 temp3 = true;
15986 }
15987 }
15988 if (obj3) {
15989 {
15990 arg4 = &temp4;
15991 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15992 }
15993 }
15994 if (obj4) {
15995 {
15996 arg5 = &temp5;
15997 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15998 }
15999 }
16000 if (obj5) {
16001 {
16002 if (! PySequence_Check(obj5)) {
16003 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16004 SWIG_fail;
16005 }
16006 arg6 = new wxArrayString;
16007 temp6 = true;
16008 int i, len=PySequence_Length(obj5);
16009 for (i=0; i<len; i++) {
16010 PyObject* item = PySequence_GetItem(obj5, i);
16011 wxString* s = wxString_in_helper(item);
16012 if (PyErr_Occurred()) SWIG_fail;
16013 arg6->Add(*s);
16014 delete s;
16015 Py_DECREF(item);
16016 }
16017 }
16018 }
16019 if (obj6) {
16020 ecode7 = SWIG_AsVal_int(obj6, &val7);
16021 if (!SWIG_IsOK(ecode7)) {
16022 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16023 }
16024 arg7 = static_cast< int >(val7);
16025 }
16026 if (obj7) {
16027 ecode8 = SWIG_AsVal_long(obj7, &val8);
16028 if (!SWIG_IsOK(ecode8)) {
16029 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16030 }
16031 arg8 = static_cast< long >(val8);
16032 }
16033 if (obj8) {
16034 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16035 if (!SWIG_IsOK(res9)) {
16036 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16037 }
16038 if (!argp9) {
16039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16040 }
16041 arg9 = reinterpret_cast< wxValidator * >(argp9);
16042 }
16043 if (obj9) {
16044 {
16045 arg10 = wxString_in_helper(obj9);
16046 if (arg10 == NULL) SWIG_fail;
16047 temp10 = true;
16048 }
16049 }
16050 {
16051 if (!wxPyCheckForApp()) SWIG_fail;
16052 PyThreadState* __tstate = wxPyBeginAllowThreads();
16053 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);
16054 wxPyEndAllowThreads(__tstate);
16055 if (PyErr_Occurred()) SWIG_fail;
16056 }
16057 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16058 {
16059 if (temp3)
16060 delete arg3;
16061 }
16062 {
16063 if (temp6) delete arg6;
16064 }
16065 {
16066 if (temp10)
16067 delete arg10;
16068 }
16069 return resultobj;
16070 fail:
16071 {
16072 if (temp3)
16073 delete arg3;
16074 }
16075 {
16076 if (temp6) delete arg6;
16077 }
16078 {
16079 if (temp10)
16080 delete arg10;
16081 }
16082 return NULL;
16083 }
16084
16085
16086 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16087 PyObject *resultobj = 0;
16088 wxRadioBox *result = 0 ;
16089
16090 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16091 {
16092 if (!wxPyCheckForApp()) SWIG_fail;
16093 PyThreadState* __tstate = wxPyBeginAllowThreads();
16094 result = (wxRadioBox *)new wxRadioBox();
16095 wxPyEndAllowThreads(__tstate);
16096 if (PyErr_Occurred()) SWIG_fail;
16097 }
16098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16099 return resultobj;
16100 fail:
16101 return NULL;
16102 }
16103
16104
16105 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16106 PyObject *resultobj = 0;
16107 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16108 wxWindow *arg2 = (wxWindow *) 0 ;
16109 int arg3 = (int) -1 ;
16110 wxString const &arg4_defvalue = wxPyEmptyString ;
16111 wxString *arg4 = (wxString *) &arg4_defvalue ;
16112 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16113 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16114 wxSize const &arg6_defvalue = wxDefaultSize ;
16115 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16116 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16117 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16118 int arg8 = (int) 0 ;
16119 long arg9 = (long) wxRA_HORIZONTAL ;
16120 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16121 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16122 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16123 wxString *arg11 = (wxString *) &arg11_defvalue ;
16124 bool result;
16125 void *argp1 = 0 ;
16126 int res1 = 0 ;
16127 void *argp2 = 0 ;
16128 int res2 = 0 ;
16129 int val3 ;
16130 int ecode3 = 0 ;
16131 bool temp4 = false ;
16132 wxPoint temp5 ;
16133 wxSize temp6 ;
16134 bool temp7 = false ;
16135 int val8 ;
16136 int ecode8 = 0 ;
16137 long val9 ;
16138 int ecode9 = 0 ;
16139 void *argp10 = 0 ;
16140 int res10 = 0 ;
16141 bool temp11 = false ;
16142 PyObject * obj0 = 0 ;
16143 PyObject * obj1 = 0 ;
16144 PyObject * obj2 = 0 ;
16145 PyObject * obj3 = 0 ;
16146 PyObject * obj4 = 0 ;
16147 PyObject * obj5 = 0 ;
16148 PyObject * obj6 = 0 ;
16149 PyObject * obj7 = 0 ;
16150 PyObject * obj8 = 0 ;
16151 PyObject * obj9 = 0 ;
16152 PyObject * obj10 = 0 ;
16153 char * kwnames[] = {
16154 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16155 };
16156
16157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16159 if (!SWIG_IsOK(res1)) {
16160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16161 }
16162 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16163 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16164 if (!SWIG_IsOK(res2)) {
16165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16166 }
16167 arg2 = reinterpret_cast< wxWindow * >(argp2);
16168 if (obj2) {
16169 ecode3 = SWIG_AsVal_int(obj2, &val3);
16170 if (!SWIG_IsOK(ecode3)) {
16171 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16172 }
16173 arg3 = static_cast< int >(val3);
16174 }
16175 if (obj3) {
16176 {
16177 arg4 = wxString_in_helper(obj3);
16178 if (arg4 == NULL) SWIG_fail;
16179 temp4 = true;
16180 }
16181 }
16182 if (obj4) {
16183 {
16184 arg5 = &temp5;
16185 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16186 }
16187 }
16188 if (obj5) {
16189 {
16190 arg6 = &temp6;
16191 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16192 }
16193 }
16194 if (obj6) {
16195 {
16196 if (! PySequence_Check(obj6)) {
16197 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16198 SWIG_fail;
16199 }
16200 arg7 = new wxArrayString;
16201 temp7 = true;
16202 int i, len=PySequence_Length(obj6);
16203 for (i=0; i<len; i++) {
16204 PyObject* item = PySequence_GetItem(obj6, i);
16205 wxString* s = wxString_in_helper(item);
16206 if (PyErr_Occurred()) SWIG_fail;
16207 arg7->Add(*s);
16208 delete s;
16209 Py_DECREF(item);
16210 }
16211 }
16212 }
16213 if (obj7) {
16214 ecode8 = SWIG_AsVal_int(obj7, &val8);
16215 if (!SWIG_IsOK(ecode8)) {
16216 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16217 }
16218 arg8 = static_cast< int >(val8);
16219 }
16220 if (obj8) {
16221 ecode9 = SWIG_AsVal_long(obj8, &val9);
16222 if (!SWIG_IsOK(ecode9)) {
16223 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16224 }
16225 arg9 = static_cast< long >(val9);
16226 }
16227 if (obj9) {
16228 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16229 if (!SWIG_IsOK(res10)) {
16230 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16231 }
16232 if (!argp10) {
16233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16234 }
16235 arg10 = reinterpret_cast< wxValidator * >(argp10);
16236 }
16237 if (obj10) {
16238 {
16239 arg11 = wxString_in_helper(obj10);
16240 if (arg11 == NULL) SWIG_fail;
16241 temp11 = true;
16242 }
16243 }
16244 {
16245 PyThreadState* __tstate = wxPyBeginAllowThreads();
16246 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);
16247 wxPyEndAllowThreads(__tstate);
16248 if (PyErr_Occurred()) SWIG_fail;
16249 }
16250 {
16251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16252 }
16253 {
16254 if (temp4)
16255 delete arg4;
16256 }
16257 {
16258 if (temp7) delete arg7;
16259 }
16260 {
16261 if (temp11)
16262 delete arg11;
16263 }
16264 return resultobj;
16265 fail:
16266 {
16267 if (temp4)
16268 delete arg4;
16269 }
16270 {
16271 if (temp7) delete arg7;
16272 }
16273 {
16274 if (temp11)
16275 delete arg11;
16276 }
16277 return NULL;
16278 }
16279
16280
16281 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16282 PyObject *resultobj = 0;
16283 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16284 int arg2 ;
16285 void *argp1 = 0 ;
16286 int res1 = 0 ;
16287 int val2 ;
16288 int ecode2 = 0 ;
16289 PyObject * obj0 = 0 ;
16290 PyObject * obj1 = 0 ;
16291 char * kwnames[] = {
16292 (char *) "self",(char *) "n", NULL
16293 };
16294
16295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16297 if (!SWIG_IsOK(res1)) {
16298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16299 }
16300 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16301 ecode2 = SWIG_AsVal_int(obj1, &val2);
16302 if (!SWIG_IsOK(ecode2)) {
16303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16304 }
16305 arg2 = static_cast< int >(val2);
16306 {
16307 PyThreadState* __tstate = wxPyBeginAllowThreads();
16308 (arg1)->SetSelection(arg2);
16309 wxPyEndAllowThreads(__tstate);
16310 if (PyErr_Occurred()) SWIG_fail;
16311 }
16312 resultobj = SWIG_Py_Void();
16313 return resultobj;
16314 fail:
16315 return NULL;
16316 }
16317
16318
16319 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16320 PyObject *resultobj = 0;
16321 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16322 int result;
16323 void *argp1 = 0 ;
16324 int res1 = 0 ;
16325 PyObject *swig_obj[1] ;
16326
16327 if (!args) SWIG_fail;
16328 swig_obj[0] = args;
16329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16330 if (!SWIG_IsOK(res1)) {
16331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16332 }
16333 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16334 {
16335 PyThreadState* __tstate = wxPyBeginAllowThreads();
16336 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16337 wxPyEndAllowThreads(__tstate);
16338 if (PyErr_Occurred()) SWIG_fail;
16339 }
16340 resultobj = SWIG_From_int(static_cast< int >(result));
16341 return resultobj;
16342 fail:
16343 return NULL;
16344 }
16345
16346
16347 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16348 PyObject *resultobj = 0;
16349 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16350 wxString result;
16351 void *argp1 = 0 ;
16352 int res1 = 0 ;
16353 PyObject *swig_obj[1] ;
16354
16355 if (!args) SWIG_fail;
16356 swig_obj[0] = args;
16357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16358 if (!SWIG_IsOK(res1)) {
16359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16360 }
16361 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16362 {
16363 PyThreadState* __tstate = wxPyBeginAllowThreads();
16364 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16365 wxPyEndAllowThreads(__tstate);
16366 if (PyErr_Occurred()) SWIG_fail;
16367 }
16368 {
16369 #if wxUSE_UNICODE
16370 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16371 #else
16372 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16373 #endif
16374 }
16375 return resultobj;
16376 fail:
16377 return NULL;
16378 }
16379
16380
16381 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16382 PyObject *resultobj = 0;
16383 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16384 wxString *arg2 = 0 ;
16385 bool result;
16386 void *argp1 = 0 ;
16387 int res1 = 0 ;
16388 bool temp2 = false ;
16389 PyObject * obj0 = 0 ;
16390 PyObject * obj1 = 0 ;
16391 char * kwnames[] = {
16392 (char *) "self",(char *) "s", NULL
16393 };
16394
16395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16397 if (!SWIG_IsOK(res1)) {
16398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16399 }
16400 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16401 {
16402 arg2 = wxString_in_helper(obj1);
16403 if (arg2 == NULL) SWIG_fail;
16404 temp2 = true;
16405 }
16406 {
16407 PyThreadState* __tstate = wxPyBeginAllowThreads();
16408 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16409 wxPyEndAllowThreads(__tstate);
16410 if (PyErr_Occurred()) SWIG_fail;
16411 }
16412 {
16413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16414 }
16415 {
16416 if (temp2)
16417 delete arg2;
16418 }
16419 return resultobj;
16420 fail:
16421 {
16422 if (temp2)
16423 delete arg2;
16424 }
16425 return NULL;
16426 }
16427
16428
16429 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16430 PyObject *resultobj = 0;
16431 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16432 size_t result;
16433 void *argp1 = 0 ;
16434 int res1 = 0 ;
16435 PyObject *swig_obj[1] ;
16436
16437 if (!args) SWIG_fail;
16438 swig_obj[0] = args;
16439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16440 if (!SWIG_IsOK(res1)) {
16441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16442 }
16443 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16444 {
16445 PyThreadState* __tstate = wxPyBeginAllowThreads();
16446 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16447 wxPyEndAllowThreads(__tstate);
16448 if (PyErr_Occurred()) SWIG_fail;
16449 }
16450 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16451 return resultobj;
16452 fail:
16453 return NULL;
16454 }
16455
16456
16457 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16458 PyObject *resultobj = 0;
16459 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16460 wxString *arg2 = 0 ;
16461 int result;
16462 void *argp1 = 0 ;
16463 int res1 = 0 ;
16464 bool temp2 = false ;
16465 PyObject * obj0 = 0 ;
16466 PyObject * obj1 = 0 ;
16467 char * kwnames[] = {
16468 (char *) "self",(char *) "s", NULL
16469 };
16470
16471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16473 if (!SWIG_IsOK(res1)) {
16474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16475 }
16476 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16477 {
16478 arg2 = wxString_in_helper(obj1);
16479 if (arg2 == NULL) SWIG_fail;
16480 temp2 = true;
16481 }
16482 {
16483 PyThreadState* __tstate = wxPyBeginAllowThreads();
16484 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16485 wxPyEndAllowThreads(__tstate);
16486 if (PyErr_Occurred()) SWIG_fail;
16487 }
16488 resultobj = SWIG_From_int(static_cast< int >(result));
16489 {
16490 if (temp2)
16491 delete arg2;
16492 }
16493 return resultobj;
16494 fail:
16495 {
16496 if (temp2)
16497 delete arg2;
16498 }
16499 return NULL;
16500 }
16501
16502
16503 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16504 PyObject *resultobj = 0;
16505 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16506 int arg2 ;
16507 wxString result;
16508 void *argp1 = 0 ;
16509 int res1 = 0 ;
16510 int val2 ;
16511 int ecode2 = 0 ;
16512 PyObject * obj0 = 0 ;
16513 PyObject * obj1 = 0 ;
16514 char * kwnames[] = {
16515 (char *) "self",(char *) "n", NULL
16516 };
16517
16518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16520 if (!SWIG_IsOK(res1)) {
16521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16522 }
16523 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16524 ecode2 = SWIG_AsVal_int(obj1, &val2);
16525 if (!SWIG_IsOK(ecode2)) {
16526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16527 }
16528 arg2 = static_cast< int >(val2);
16529 {
16530 PyThreadState* __tstate = wxPyBeginAllowThreads();
16531 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16532 wxPyEndAllowThreads(__tstate);
16533 if (PyErr_Occurred()) SWIG_fail;
16534 }
16535 {
16536 #if wxUSE_UNICODE
16537 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16538 #else
16539 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16540 #endif
16541 }
16542 return resultobj;
16543 fail:
16544 return NULL;
16545 }
16546
16547
16548 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16549 PyObject *resultobj = 0;
16550 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16551 int arg2 ;
16552 wxString *arg3 = 0 ;
16553 void *argp1 = 0 ;
16554 int res1 = 0 ;
16555 int val2 ;
16556 int ecode2 = 0 ;
16557 bool temp3 = false ;
16558 PyObject * obj0 = 0 ;
16559 PyObject * obj1 = 0 ;
16560 PyObject * obj2 = 0 ;
16561 char * kwnames[] = {
16562 (char *) "self",(char *) "n",(char *) "label", NULL
16563 };
16564
16565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16567 if (!SWIG_IsOK(res1)) {
16568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16569 }
16570 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16571 ecode2 = SWIG_AsVal_int(obj1, &val2);
16572 if (!SWIG_IsOK(ecode2)) {
16573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16574 }
16575 arg2 = static_cast< int >(val2);
16576 {
16577 arg3 = wxString_in_helper(obj2);
16578 if (arg3 == NULL) SWIG_fail;
16579 temp3 = true;
16580 }
16581 {
16582 PyThreadState* __tstate = wxPyBeginAllowThreads();
16583 (arg1)->SetString(arg2,(wxString const &)*arg3);
16584 wxPyEndAllowThreads(__tstate);
16585 if (PyErr_Occurred()) SWIG_fail;
16586 }
16587 resultobj = SWIG_Py_Void();
16588 {
16589 if (temp3)
16590 delete arg3;
16591 }
16592 return resultobj;
16593 fail:
16594 {
16595 if (temp3)
16596 delete arg3;
16597 }
16598 return NULL;
16599 }
16600
16601
16602 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16603 PyObject *resultobj = 0;
16604 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16605 unsigned int arg2 ;
16606 bool arg3 = (bool) true ;
16607 void *argp1 = 0 ;
16608 int res1 = 0 ;
16609 unsigned int val2 ;
16610 int ecode2 = 0 ;
16611 bool val3 ;
16612 int ecode3 = 0 ;
16613 PyObject * obj0 = 0 ;
16614 PyObject * obj1 = 0 ;
16615 PyObject * obj2 = 0 ;
16616 char * kwnames[] = {
16617 (char *) "self",(char *) "n",(char *) "enable", NULL
16618 };
16619
16620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16622 if (!SWIG_IsOK(res1)) {
16623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16624 }
16625 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16626 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16627 if (!SWIG_IsOK(ecode2)) {
16628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16629 }
16630 arg2 = static_cast< unsigned int >(val2);
16631 if (obj2) {
16632 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16633 if (!SWIG_IsOK(ecode3)) {
16634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16635 }
16636 arg3 = static_cast< bool >(val3);
16637 }
16638 {
16639 PyThreadState* __tstate = wxPyBeginAllowThreads();
16640 (arg1)->Enable(arg2,arg3);
16641 wxPyEndAllowThreads(__tstate);
16642 if (PyErr_Occurred()) SWIG_fail;
16643 }
16644 resultobj = SWIG_Py_Void();
16645 return resultobj;
16646 fail:
16647 return NULL;
16648 }
16649
16650
16651 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16652 PyObject *resultobj = 0;
16653 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16654 unsigned int arg2 ;
16655 bool arg3 = (bool) true ;
16656 void *argp1 = 0 ;
16657 int res1 = 0 ;
16658 unsigned int val2 ;
16659 int ecode2 = 0 ;
16660 bool val3 ;
16661 int ecode3 = 0 ;
16662 PyObject * obj0 = 0 ;
16663 PyObject * obj1 = 0 ;
16664 PyObject * obj2 = 0 ;
16665 char * kwnames[] = {
16666 (char *) "self",(char *) "n",(char *) "show", NULL
16667 };
16668
16669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16671 if (!SWIG_IsOK(res1)) {
16672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16673 }
16674 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16675 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16676 if (!SWIG_IsOK(ecode2)) {
16677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16678 }
16679 arg2 = static_cast< unsigned int >(val2);
16680 if (obj2) {
16681 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16682 if (!SWIG_IsOK(ecode3)) {
16683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16684 }
16685 arg3 = static_cast< bool >(val3);
16686 }
16687 {
16688 PyThreadState* __tstate = wxPyBeginAllowThreads();
16689 (arg1)->Show(arg2,arg3);
16690 wxPyEndAllowThreads(__tstate);
16691 if (PyErr_Occurred()) SWIG_fail;
16692 }
16693 resultobj = SWIG_Py_Void();
16694 return resultobj;
16695 fail:
16696 return NULL;
16697 }
16698
16699
16700 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16701 PyObject *resultobj = 0;
16702 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16703 unsigned int arg2 ;
16704 bool result;
16705 void *argp1 = 0 ;
16706 int res1 = 0 ;
16707 unsigned int val2 ;
16708 int ecode2 = 0 ;
16709 PyObject * obj0 = 0 ;
16710 PyObject * obj1 = 0 ;
16711 char * kwnames[] = {
16712 (char *) "self",(char *) "n", NULL
16713 };
16714
16715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16717 if (!SWIG_IsOK(res1)) {
16718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16719 }
16720 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16721 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16722 if (!SWIG_IsOK(ecode2)) {
16723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16724 }
16725 arg2 = static_cast< unsigned int >(val2);
16726 {
16727 PyThreadState* __tstate = wxPyBeginAllowThreads();
16728 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16729 wxPyEndAllowThreads(__tstate);
16730 if (PyErr_Occurred()) SWIG_fail;
16731 }
16732 {
16733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16734 }
16735 return resultobj;
16736 fail:
16737 return NULL;
16738 }
16739
16740
16741 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16742 PyObject *resultobj = 0;
16743 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16744 unsigned int arg2 ;
16745 bool result;
16746 void *argp1 = 0 ;
16747 int res1 = 0 ;
16748 unsigned int val2 ;
16749 int ecode2 = 0 ;
16750 PyObject * obj0 = 0 ;
16751 PyObject * obj1 = 0 ;
16752 char * kwnames[] = {
16753 (char *) "self",(char *) "n", NULL
16754 };
16755
16756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16758 if (!SWIG_IsOK(res1)) {
16759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16760 }
16761 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16762 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16763 if (!SWIG_IsOK(ecode2)) {
16764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16765 }
16766 arg2 = static_cast< unsigned int >(val2);
16767 {
16768 PyThreadState* __tstate = wxPyBeginAllowThreads();
16769 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16770 wxPyEndAllowThreads(__tstate);
16771 if (PyErr_Occurred()) SWIG_fail;
16772 }
16773 {
16774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16775 }
16776 return resultobj;
16777 fail:
16778 return NULL;
16779 }
16780
16781
16782 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16783 PyObject *resultobj = 0;
16784 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16785 unsigned int result;
16786 void *argp1 = 0 ;
16787 int res1 = 0 ;
16788 PyObject *swig_obj[1] ;
16789
16790 if (!args) SWIG_fail;
16791 swig_obj[0] = args;
16792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16793 if (!SWIG_IsOK(res1)) {
16794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16795 }
16796 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16797 {
16798 PyThreadState* __tstate = wxPyBeginAllowThreads();
16799 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16800 wxPyEndAllowThreads(__tstate);
16801 if (PyErr_Occurred()) SWIG_fail;
16802 }
16803 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16804 return resultobj;
16805 fail:
16806 return NULL;
16807 }
16808
16809
16810 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16811 PyObject *resultobj = 0;
16812 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16813 unsigned int result;
16814 void *argp1 = 0 ;
16815 int res1 = 0 ;
16816 PyObject *swig_obj[1] ;
16817
16818 if (!args) SWIG_fail;
16819 swig_obj[0] = args;
16820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16821 if (!SWIG_IsOK(res1)) {
16822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16823 }
16824 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16825 {
16826 PyThreadState* __tstate = wxPyBeginAllowThreads();
16827 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16828 wxPyEndAllowThreads(__tstate);
16829 if (PyErr_Occurred()) SWIG_fail;
16830 }
16831 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16832 return resultobj;
16833 fail:
16834 return NULL;
16835 }
16836
16837
16838 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16839 PyObject *resultobj = 0;
16840 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16841 int arg2 ;
16842 wxDirection arg3 ;
16843 long arg4 ;
16844 int result;
16845 void *argp1 = 0 ;
16846 int res1 = 0 ;
16847 int val2 ;
16848 int ecode2 = 0 ;
16849 int val3 ;
16850 int ecode3 = 0 ;
16851 long val4 ;
16852 int ecode4 = 0 ;
16853 PyObject * obj0 = 0 ;
16854 PyObject * obj1 = 0 ;
16855 PyObject * obj2 = 0 ;
16856 PyObject * obj3 = 0 ;
16857 char * kwnames[] = {
16858 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16859 };
16860
16861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16863 if (!SWIG_IsOK(res1)) {
16864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16865 }
16866 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16867 ecode2 = SWIG_AsVal_int(obj1, &val2);
16868 if (!SWIG_IsOK(ecode2)) {
16869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16870 }
16871 arg2 = static_cast< int >(val2);
16872 ecode3 = SWIG_AsVal_int(obj2, &val3);
16873 if (!SWIG_IsOK(ecode3)) {
16874 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16875 }
16876 arg3 = static_cast< wxDirection >(val3);
16877 ecode4 = SWIG_AsVal_long(obj3, &val4);
16878 if (!SWIG_IsOK(ecode4)) {
16879 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16880 }
16881 arg4 = static_cast< long >(val4);
16882 {
16883 PyThreadState* __tstate = wxPyBeginAllowThreads();
16884 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16885 wxPyEndAllowThreads(__tstate);
16886 if (PyErr_Occurred()) SWIG_fail;
16887 }
16888 resultobj = SWIG_From_int(static_cast< int >(result));
16889 return resultobj;
16890 fail:
16891 return NULL;
16892 }
16893
16894
16895 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16896 PyObject *resultobj = 0;
16897 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16898 unsigned int arg2 ;
16899 wxString *arg3 = 0 ;
16900 void *argp1 = 0 ;
16901 int res1 = 0 ;
16902 unsigned int val2 ;
16903 int ecode2 = 0 ;
16904 bool temp3 = false ;
16905 PyObject * obj0 = 0 ;
16906 PyObject * obj1 = 0 ;
16907 PyObject * obj2 = 0 ;
16908 char * kwnames[] = {
16909 (char *) "self",(char *) "item",(char *) "text", NULL
16910 };
16911
16912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16914 if (!SWIG_IsOK(res1)) {
16915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16916 }
16917 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16918 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16919 if (!SWIG_IsOK(ecode2)) {
16920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16921 }
16922 arg2 = static_cast< unsigned int >(val2);
16923 {
16924 arg3 = wxString_in_helper(obj2);
16925 if (arg3 == NULL) SWIG_fail;
16926 temp3 = true;
16927 }
16928 {
16929 PyThreadState* __tstate = wxPyBeginAllowThreads();
16930 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16931 wxPyEndAllowThreads(__tstate);
16932 if (PyErr_Occurred()) SWIG_fail;
16933 }
16934 resultobj = SWIG_Py_Void();
16935 {
16936 if (temp3)
16937 delete arg3;
16938 }
16939 return resultobj;
16940 fail:
16941 {
16942 if (temp3)
16943 delete arg3;
16944 }
16945 return NULL;
16946 }
16947
16948
16949 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16950 PyObject *resultobj = 0;
16951 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16952 unsigned int arg2 ;
16953 wxToolTip *result = 0 ;
16954 void *argp1 = 0 ;
16955 int res1 = 0 ;
16956 unsigned int val2 ;
16957 int ecode2 = 0 ;
16958 PyObject * obj0 = 0 ;
16959 PyObject * obj1 = 0 ;
16960 char * kwnames[] = {
16961 (char *) "self",(char *) "item", NULL
16962 };
16963
16964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16966 if (!SWIG_IsOK(res1)) {
16967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16968 }
16969 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16970 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16971 if (!SWIG_IsOK(ecode2)) {
16972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16973 }
16974 arg2 = static_cast< unsigned int >(val2);
16975 {
16976 PyThreadState* __tstate = wxPyBeginAllowThreads();
16977 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16978 wxPyEndAllowThreads(__tstate);
16979 if (PyErr_Occurred()) SWIG_fail;
16980 }
16981 {
16982 resultobj = wxPyMake_wxObject(result, (bool)0);
16983 }
16984 return resultobj;
16985 fail:
16986 return NULL;
16987 }
16988
16989
16990 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16991 PyObject *resultobj = 0;
16992 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16993 SwigValueWrapper<wxVisualAttributes > result;
16994 int val1 ;
16995 int ecode1 = 0 ;
16996 PyObject * obj0 = 0 ;
16997 char * kwnames[] = {
16998 (char *) "variant", NULL
16999 };
17000
17001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17002 if (obj0) {
17003 ecode1 = SWIG_AsVal_int(obj0, &val1);
17004 if (!SWIG_IsOK(ecode1)) {
17005 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17006 }
17007 arg1 = static_cast< wxWindowVariant >(val1);
17008 }
17009 {
17010 if (!wxPyCheckForApp()) SWIG_fail;
17011 PyThreadState* __tstate = wxPyBeginAllowThreads();
17012 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17013 wxPyEndAllowThreads(__tstate);
17014 if (PyErr_Occurred()) SWIG_fail;
17015 }
17016 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17017 return resultobj;
17018 fail:
17019 return NULL;
17020 }
17021
17022
17023 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17024 PyObject *obj;
17025 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17026 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17027 return SWIG_Py_Void();
17028 }
17029
17030 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17031 return SWIG_Python_InitShadowInstance(args);
17032 }
17033
17034 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17035 PyObject *resultobj = 0;
17036 wxWindow *arg1 = (wxWindow *) 0 ;
17037 int arg2 = (int) -1 ;
17038 wxString const &arg3_defvalue = wxPyEmptyString ;
17039 wxString *arg3 = (wxString *) &arg3_defvalue ;
17040 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17041 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17042 wxSize const &arg5_defvalue = wxDefaultSize ;
17043 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17044 long arg6 = (long) 0 ;
17045 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17046 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17047 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17048 wxString *arg8 = (wxString *) &arg8_defvalue ;
17049 wxRadioButton *result = 0 ;
17050 void *argp1 = 0 ;
17051 int res1 = 0 ;
17052 int val2 ;
17053 int ecode2 = 0 ;
17054 bool temp3 = false ;
17055 wxPoint temp4 ;
17056 wxSize temp5 ;
17057 long val6 ;
17058 int ecode6 = 0 ;
17059 void *argp7 = 0 ;
17060 int res7 = 0 ;
17061 bool temp8 = false ;
17062 PyObject * obj0 = 0 ;
17063 PyObject * obj1 = 0 ;
17064 PyObject * obj2 = 0 ;
17065 PyObject * obj3 = 0 ;
17066 PyObject * obj4 = 0 ;
17067 PyObject * obj5 = 0 ;
17068 PyObject * obj6 = 0 ;
17069 PyObject * obj7 = 0 ;
17070 char * kwnames[] = {
17071 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17072 };
17073
17074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17076 if (!SWIG_IsOK(res1)) {
17077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17078 }
17079 arg1 = reinterpret_cast< wxWindow * >(argp1);
17080 if (obj1) {
17081 ecode2 = SWIG_AsVal_int(obj1, &val2);
17082 if (!SWIG_IsOK(ecode2)) {
17083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17084 }
17085 arg2 = static_cast< int >(val2);
17086 }
17087 if (obj2) {
17088 {
17089 arg3 = wxString_in_helper(obj2);
17090 if (arg3 == NULL) SWIG_fail;
17091 temp3 = true;
17092 }
17093 }
17094 if (obj3) {
17095 {
17096 arg4 = &temp4;
17097 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17098 }
17099 }
17100 if (obj4) {
17101 {
17102 arg5 = &temp5;
17103 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17104 }
17105 }
17106 if (obj5) {
17107 ecode6 = SWIG_AsVal_long(obj5, &val6);
17108 if (!SWIG_IsOK(ecode6)) {
17109 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17110 }
17111 arg6 = static_cast< long >(val6);
17112 }
17113 if (obj6) {
17114 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17115 if (!SWIG_IsOK(res7)) {
17116 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17117 }
17118 if (!argp7) {
17119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17120 }
17121 arg7 = reinterpret_cast< wxValidator * >(argp7);
17122 }
17123 if (obj7) {
17124 {
17125 arg8 = wxString_in_helper(obj7);
17126 if (arg8 == NULL) SWIG_fail;
17127 temp8 = true;
17128 }
17129 }
17130 {
17131 if (!wxPyCheckForApp()) SWIG_fail;
17132 PyThreadState* __tstate = wxPyBeginAllowThreads();
17133 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17134 wxPyEndAllowThreads(__tstate);
17135 if (PyErr_Occurred()) SWIG_fail;
17136 }
17137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17138 {
17139 if (temp3)
17140 delete arg3;
17141 }
17142 {
17143 if (temp8)
17144 delete arg8;
17145 }
17146 return resultobj;
17147 fail:
17148 {
17149 if (temp3)
17150 delete arg3;
17151 }
17152 {
17153 if (temp8)
17154 delete arg8;
17155 }
17156 return NULL;
17157 }
17158
17159
17160 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17161 PyObject *resultobj = 0;
17162 wxRadioButton *result = 0 ;
17163
17164 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17165 {
17166 if (!wxPyCheckForApp()) SWIG_fail;
17167 PyThreadState* __tstate = wxPyBeginAllowThreads();
17168 result = (wxRadioButton *)new wxRadioButton();
17169 wxPyEndAllowThreads(__tstate);
17170 if (PyErr_Occurred()) SWIG_fail;
17171 }
17172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17173 return resultobj;
17174 fail:
17175 return NULL;
17176 }
17177
17178
17179 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17180 PyObject *resultobj = 0;
17181 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17182 wxWindow *arg2 = (wxWindow *) 0 ;
17183 int arg3 = (int) -1 ;
17184 wxString const &arg4_defvalue = wxPyEmptyString ;
17185 wxString *arg4 = (wxString *) &arg4_defvalue ;
17186 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17187 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17188 wxSize const &arg6_defvalue = wxDefaultSize ;
17189 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17190 long arg7 = (long) 0 ;
17191 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17192 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17193 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17194 wxString *arg9 = (wxString *) &arg9_defvalue ;
17195 bool result;
17196 void *argp1 = 0 ;
17197 int res1 = 0 ;
17198 void *argp2 = 0 ;
17199 int res2 = 0 ;
17200 int val3 ;
17201 int ecode3 = 0 ;
17202 bool temp4 = false ;
17203 wxPoint temp5 ;
17204 wxSize temp6 ;
17205 long val7 ;
17206 int ecode7 = 0 ;
17207 void *argp8 = 0 ;
17208 int res8 = 0 ;
17209 bool temp9 = false ;
17210 PyObject * obj0 = 0 ;
17211 PyObject * obj1 = 0 ;
17212 PyObject * obj2 = 0 ;
17213 PyObject * obj3 = 0 ;
17214 PyObject * obj4 = 0 ;
17215 PyObject * obj5 = 0 ;
17216 PyObject * obj6 = 0 ;
17217 PyObject * obj7 = 0 ;
17218 PyObject * obj8 = 0 ;
17219 char * kwnames[] = {
17220 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17221 };
17222
17223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17225 if (!SWIG_IsOK(res1)) {
17226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17227 }
17228 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17229 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17230 if (!SWIG_IsOK(res2)) {
17231 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17232 }
17233 arg2 = reinterpret_cast< wxWindow * >(argp2);
17234 if (obj2) {
17235 ecode3 = SWIG_AsVal_int(obj2, &val3);
17236 if (!SWIG_IsOK(ecode3)) {
17237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17238 }
17239 arg3 = static_cast< int >(val3);
17240 }
17241 if (obj3) {
17242 {
17243 arg4 = wxString_in_helper(obj3);
17244 if (arg4 == NULL) SWIG_fail;
17245 temp4 = true;
17246 }
17247 }
17248 if (obj4) {
17249 {
17250 arg5 = &temp5;
17251 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17252 }
17253 }
17254 if (obj5) {
17255 {
17256 arg6 = &temp6;
17257 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17258 }
17259 }
17260 if (obj6) {
17261 ecode7 = SWIG_AsVal_long(obj6, &val7);
17262 if (!SWIG_IsOK(ecode7)) {
17263 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17264 }
17265 arg7 = static_cast< long >(val7);
17266 }
17267 if (obj7) {
17268 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17269 if (!SWIG_IsOK(res8)) {
17270 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17271 }
17272 if (!argp8) {
17273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17274 }
17275 arg8 = reinterpret_cast< wxValidator * >(argp8);
17276 }
17277 if (obj8) {
17278 {
17279 arg9 = wxString_in_helper(obj8);
17280 if (arg9 == NULL) SWIG_fail;
17281 temp9 = true;
17282 }
17283 }
17284 {
17285 PyThreadState* __tstate = wxPyBeginAllowThreads();
17286 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17287 wxPyEndAllowThreads(__tstate);
17288 if (PyErr_Occurred()) SWIG_fail;
17289 }
17290 {
17291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17292 }
17293 {
17294 if (temp4)
17295 delete arg4;
17296 }
17297 {
17298 if (temp9)
17299 delete arg9;
17300 }
17301 return resultobj;
17302 fail:
17303 {
17304 if (temp4)
17305 delete arg4;
17306 }
17307 {
17308 if (temp9)
17309 delete arg9;
17310 }
17311 return NULL;
17312 }
17313
17314
17315 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17316 PyObject *resultobj = 0;
17317 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17318 bool result;
17319 void *argp1 = 0 ;
17320 int res1 = 0 ;
17321 PyObject *swig_obj[1] ;
17322
17323 if (!args) SWIG_fail;
17324 swig_obj[0] = args;
17325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17326 if (!SWIG_IsOK(res1)) {
17327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17328 }
17329 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17330 {
17331 PyThreadState* __tstate = wxPyBeginAllowThreads();
17332 result = (bool)(arg1)->GetValue();
17333 wxPyEndAllowThreads(__tstate);
17334 if (PyErr_Occurred()) SWIG_fail;
17335 }
17336 {
17337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17338 }
17339 return resultobj;
17340 fail:
17341 return NULL;
17342 }
17343
17344
17345 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17346 PyObject *resultobj = 0;
17347 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17348 bool arg2 ;
17349 void *argp1 = 0 ;
17350 int res1 = 0 ;
17351 bool val2 ;
17352 int ecode2 = 0 ;
17353 PyObject * obj0 = 0 ;
17354 PyObject * obj1 = 0 ;
17355 char * kwnames[] = {
17356 (char *) "self",(char *) "value", NULL
17357 };
17358
17359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17361 if (!SWIG_IsOK(res1)) {
17362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17363 }
17364 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17365 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17366 if (!SWIG_IsOK(ecode2)) {
17367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17368 }
17369 arg2 = static_cast< bool >(val2);
17370 {
17371 PyThreadState* __tstate = wxPyBeginAllowThreads();
17372 (arg1)->SetValue(arg2);
17373 wxPyEndAllowThreads(__tstate);
17374 if (PyErr_Occurred()) SWIG_fail;
17375 }
17376 resultobj = SWIG_Py_Void();
17377 return resultobj;
17378 fail:
17379 return NULL;
17380 }
17381
17382
17383 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17384 PyObject *resultobj = 0;
17385 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17386 SwigValueWrapper<wxVisualAttributes > result;
17387 int val1 ;
17388 int ecode1 = 0 ;
17389 PyObject * obj0 = 0 ;
17390 char * kwnames[] = {
17391 (char *) "variant", NULL
17392 };
17393
17394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17395 if (obj0) {
17396 ecode1 = SWIG_AsVal_int(obj0, &val1);
17397 if (!SWIG_IsOK(ecode1)) {
17398 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17399 }
17400 arg1 = static_cast< wxWindowVariant >(val1);
17401 }
17402 {
17403 if (!wxPyCheckForApp()) SWIG_fail;
17404 PyThreadState* __tstate = wxPyBeginAllowThreads();
17405 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17406 wxPyEndAllowThreads(__tstate);
17407 if (PyErr_Occurred()) SWIG_fail;
17408 }
17409 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17410 return resultobj;
17411 fail:
17412 return NULL;
17413 }
17414
17415
17416 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17417 PyObject *obj;
17418 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17419 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17420 return SWIG_Py_Void();
17421 }
17422
17423 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17424 return SWIG_Python_InitShadowInstance(args);
17425 }
17426
17427 SWIGINTERN int SliderNameStr_set(PyObject *) {
17428 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17429 return 1;
17430 }
17431
17432
17433 SWIGINTERN PyObject *SliderNameStr_get(void) {
17434 PyObject *pyobj = 0;
17435
17436 {
17437 #if wxUSE_UNICODE
17438 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17439 #else
17440 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17441 #endif
17442 }
17443 return pyobj;
17444 }
17445
17446
17447 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17448 PyObject *resultobj = 0;
17449 wxWindow *arg1 = (wxWindow *) 0 ;
17450 int arg2 = (int) -1 ;
17451 int arg3 = (int) 0 ;
17452 int arg4 = (int) 0 ;
17453 int arg5 = (int) 100 ;
17454 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17455 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17456 wxSize const &arg7_defvalue = wxDefaultSize ;
17457 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17458 long arg8 = (long) wxSL_HORIZONTAL ;
17459 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17460 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17461 wxString const &arg10_defvalue = wxPySliderNameStr ;
17462 wxString *arg10 = (wxString *) &arg10_defvalue ;
17463 wxSlider *result = 0 ;
17464 void *argp1 = 0 ;
17465 int res1 = 0 ;
17466 int val2 ;
17467 int ecode2 = 0 ;
17468 int val3 ;
17469 int ecode3 = 0 ;
17470 int val4 ;
17471 int ecode4 = 0 ;
17472 int val5 ;
17473 int ecode5 = 0 ;
17474 wxPoint temp6 ;
17475 wxSize temp7 ;
17476 long val8 ;
17477 int ecode8 = 0 ;
17478 void *argp9 = 0 ;
17479 int res9 = 0 ;
17480 bool temp10 = false ;
17481 PyObject * obj0 = 0 ;
17482 PyObject * obj1 = 0 ;
17483 PyObject * obj2 = 0 ;
17484 PyObject * obj3 = 0 ;
17485 PyObject * obj4 = 0 ;
17486 PyObject * obj5 = 0 ;
17487 PyObject * obj6 = 0 ;
17488 PyObject * obj7 = 0 ;
17489 PyObject * obj8 = 0 ;
17490 PyObject * obj9 = 0 ;
17491 char * kwnames[] = {
17492 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17493 };
17494
17495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17497 if (!SWIG_IsOK(res1)) {
17498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17499 }
17500 arg1 = reinterpret_cast< wxWindow * >(argp1);
17501 if (obj1) {
17502 ecode2 = SWIG_AsVal_int(obj1, &val2);
17503 if (!SWIG_IsOK(ecode2)) {
17504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17505 }
17506 arg2 = static_cast< int >(val2);
17507 }
17508 if (obj2) {
17509 ecode3 = SWIG_AsVal_int(obj2, &val3);
17510 if (!SWIG_IsOK(ecode3)) {
17511 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17512 }
17513 arg3 = static_cast< int >(val3);
17514 }
17515 if (obj3) {
17516 ecode4 = SWIG_AsVal_int(obj3, &val4);
17517 if (!SWIG_IsOK(ecode4)) {
17518 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17519 }
17520 arg4 = static_cast< int >(val4);
17521 }
17522 if (obj4) {
17523 ecode5 = SWIG_AsVal_int(obj4, &val5);
17524 if (!SWIG_IsOK(ecode5)) {
17525 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17526 }
17527 arg5 = static_cast< int >(val5);
17528 }
17529 if (obj5) {
17530 {
17531 arg6 = &temp6;
17532 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17533 }
17534 }
17535 if (obj6) {
17536 {
17537 arg7 = &temp7;
17538 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17539 }
17540 }
17541 if (obj7) {
17542 ecode8 = SWIG_AsVal_long(obj7, &val8);
17543 if (!SWIG_IsOK(ecode8)) {
17544 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17545 }
17546 arg8 = static_cast< long >(val8);
17547 }
17548 if (obj8) {
17549 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17550 if (!SWIG_IsOK(res9)) {
17551 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17552 }
17553 if (!argp9) {
17554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17555 }
17556 arg9 = reinterpret_cast< wxValidator * >(argp9);
17557 }
17558 if (obj9) {
17559 {
17560 arg10 = wxString_in_helper(obj9);
17561 if (arg10 == NULL) SWIG_fail;
17562 temp10 = true;
17563 }
17564 }
17565 {
17566 if (!wxPyCheckForApp()) SWIG_fail;
17567 PyThreadState* __tstate = wxPyBeginAllowThreads();
17568 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17569 wxPyEndAllowThreads(__tstate);
17570 if (PyErr_Occurred()) SWIG_fail;
17571 }
17572 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17573 {
17574 if (temp10)
17575 delete arg10;
17576 }
17577 return resultobj;
17578 fail:
17579 {
17580 if (temp10)
17581 delete arg10;
17582 }
17583 return NULL;
17584 }
17585
17586
17587 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17588 PyObject *resultobj = 0;
17589 wxSlider *result = 0 ;
17590
17591 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17592 {
17593 if (!wxPyCheckForApp()) SWIG_fail;
17594 PyThreadState* __tstate = wxPyBeginAllowThreads();
17595 result = (wxSlider *)new wxSlider();
17596 wxPyEndAllowThreads(__tstate);
17597 if (PyErr_Occurred()) SWIG_fail;
17598 }
17599 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17600 return resultobj;
17601 fail:
17602 return NULL;
17603 }
17604
17605
17606 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17607 PyObject *resultobj = 0;
17608 wxSlider *arg1 = (wxSlider *) 0 ;
17609 wxWindow *arg2 = (wxWindow *) 0 ;
17610 int arg3 = (int) -1 ;
17611 int arg4 = (int) 0 ;
17612 int arg5 = (int) 0 ;
17613 int arg6 = (int) 100 ;
17614 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17615 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17616 wxSize const &arg8_defvalue = wxDefaultSize ;
17617 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17618 long arg9 = (long) wxSL_HORIZONTAL ;
17619 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17620 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17621 wxString const &arg11_defvalue = wxPySliderNameStr ;
17622 wxString *arg11 = (wxString *) &arg11_defvalue ;
17623 bool result;
17624 void *argp1 = 0 ;
17625 int res1 = 0 ;
17626 void *argp2 = 0 ;
17627 int res2 = 0 ;
17628 int val3 ;
17629 int ecode3 = 0 ;
17630 int val4 ;
17631 int ecode4 = 0 ;
17632 int val5 ;
17633 int ecode5 = 0 ;
17634 int val6 ;
17635 int ecode6 = 0 ;
17636 wxPoint temp7 ;
17637 wxSize temp8 ;
17638 long val9 ;
17639 int ecode9 = 0 ;
17640 void *argp10 = 0 ;
17641 int res10 = 0 ;
17642 bool temp11 = false ;
17643 PyObject * obj0 = 0 ;
17644 PyObject * obj1 = 0 ;
17645 PyObject * obj2 = 0 ;
17646 PyObject * obj3 = 0 ;
17647 PyObject * obj4 = 0 ;
17648 PyObject * obj5 = 0 ;
17649 PyObject * obj6 = 0 ;
17650 PyObject * obj7 = 0 ;
17651 PyObject * obj8 = 0 ;
17652 PyObject * obj9 = 0 ;
17653 PyObject * obj10 = 0 ;
17654 char * kwnames[] = {
17655 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17656 };
17657
17658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17660 if (!SWIG_IsOK(res1)) {
17661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17662 }
17663 arg1 = reinterpret_cast< wxSlider * >(argp1);
17664 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17665 if (!SWIG_IsOK(res2)) {
17666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17667 }
17668 arg2 = reinterpret_cast< wxWindow * >(argp2);
17669 if (obj2) {
17670 ecode3 = SWIG_AsVal_int(obj2, &val3);
17671 if (!SWIG_IsOK(ecode3)) {
17672 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17673 }
17674 arg3 = static_cast< int >(val3);
17675 }
17676 if (obj3) {
17677 ecode4 = SWIG_AsVal_int(obj3, &val4);
17678 if (!SWIG_IsOK(ecode4)) {
17679 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17680 }
17681 arg4 = static_cast< int >(val4);
17682 }
17683 if (obj4) {
17684 ecode5 = SWIG_AsVal_int(obj4, &val5);
17685 if (!SWIG_IsOK(ecode5)) {
17686 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17687 }
17688 arg5 = static_cast< int >(val5);
17689 }
17690 if (obj5) {
17691 ecode6 = SWIG_AsVal_int(obj5, &val6);
17692 if (!SWIG_IsOK(ecode6)) {
17693 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17694 }
17695 arg6 = static_cast< int >(val6);
17696 }
17697 if (obj6) {
17698 {
17699 arg7 = &temp7;
17700 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17701 }
17702 }
17703 if (obj7) {
17704 {
17705 arg8 = &temp8;
17706 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17707 }
17708 }
17709 if (obj8) {
17710 ecode9 = SWIG_AsVal_long(obj8, &val9);
17711 if (!SWIG_IsOK(ecode9)) {
17712 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17713 }
17714 arg9 = static_cast< long >(val9);
17715 }
17716 if (obj9) {
17717 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17718 if (!SWIG_IsOK(res10)) {
17719 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17720 }
17721 if (!argp10) {
17722 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17723 }
17724 arg10 = reinterpret_cast< wxValidator * >(argp10);
17725 }
17726 if (obj10) {
17727 {
17728 arg11 = wxString_in_helper(obj10);
17729 if (arg11 == NULL) SWIG_fail;
17730 temp11 = true;
17731 }
17732 }
17733 {
17734 PyThreadState* __tstate = wxPyBeginAllowThreads();
17735 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17736 wxPyEndAllowThreads(__tstate);
17737 if (PyErr_Occurred()) SWIG_fail;
17738 }
17739 {
17740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17741 }
17742 {
17743 if (temp11)
17744 delete arg11;
17745 }
17746 return resultobj;
17747 fail:
17748 {
17749 if (temp11)
17750 delete arg11;
17751 }
17752 return NULL;
17753 }
17754
17755
17756 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17757 PyObject *resultobj = 0;
17758 wxSlider *arg1 = (wxSlider *) 0 ;
17759 int result;
17760 void *argp1 = 0 ;
17761 int res1 = 0 ;
17762 PyObject *swig_obj[1] ;
17763
17764 if (!args) SWIG_fail;
17765 swig_obj[0] = args;
17766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17767 if (!SWIG_IsOK(res1)) {
17768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17769 }
17770 arg1 = reinterpret_cast< wxSlider * >(argp1);
17771 {
17772 PyThreadState* __tstate = wxPyBeginAllowThreads();
17773 result = (int)((wxSlider const *)arg1)->GetValue();
17774 wxPyEndAllowThreads(__tstate);
17775 if (PyErr_Occurred()) SWIG_fail;
17776 }
17777 resultobj = SWIG_From_int(static_cast< int >(result));
17778 return resultobj;
17779 fail:
17780 return NULL;
17781 }
17782
17783
17784 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17785 PyObject *resultobj = 0;
17786 wxSlider *arg1 = (wxSlider *) 0 ;
17787 int arg2 ;
17788 void *argp1 = 0 ;
17789 int res1 = 0 ;
17790 int val2 ;
17791 int ecode2 = 0 ;
17792 PyObject * obj0 = 0 ;
17793 PyObject * obj1 = 0 ;
17794 char * kwnames[] = {
17795 (char *) "self",(char *) "value", NULL
17796 };
17797
17798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17800 if (!SWIG_IsOK(res1)) {
17801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17802 }
17803 arg1 = reinterpret_cast< wxSlider * >(argp1);
17804 ecode2 = SWIG_AsVal_int(obj1, &val2);
17805 if (!SWIG_IsOK(ecode2)) {
17806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17807 }
17808 arg2 = static_cast< int >(val2);
17809 {
17810 PyThreadState* __tstate = wxPyBeginAllowThreads();
17811 (arg1)->SetValue(arg2);
17812 wxPyEndAllowThreads(__tstate);
17813 if (PyErr_Occurred()) SWIG_fail;
17814 }
17815 resultobj = SWIG_Py_Void();
17816 return resultobj;
17817 fail:
17818 return NULL;
17819 }
17820
17821
17822 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17823 PyObject *resultobj = 0;
17824 wxSlider *arg1 = (wxSlider *) 0 ;
17825 int arg2 ;
17826 int arg3 ;
17827 void *argp1 = 0 ;
17828 int res1 = 0 ;
17829 int val2 ;
17830 int ecode2 = 0 ;
17831 int val3 ;
17832 int ecode3 = 0 ;
17833 PyObject * obj0 = 0 ;
17834 PyObject * obj1 = 0 ;
17835 PyObject * obj2 = 0 ;
17836 char * kwnames[] = {
17837 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17838 };
17839
17840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17842 if (!SWIG_IsOK(res1)) {
17843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17844 }
17845 arg1 = reinterpret_cast< wxSlider * >(argp1);
17846 ecode2 = SWIG_AsVal_int(obj1, &val2);
17847 if (!SWIG_IsOK(ecode2)) {
17848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17849 }
17850 arg2 = static_cast< int >(val2);
17851 ecode3 = SWIG_AsVal_int(obj2, &val3);
17852 if (!SWIG_IsOK(ecode3)) {
17853 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17854 }
17855 arg3 = static_cast< int >(val3);
17856 {
17857 PyThreadState* __tstate = wxPyBeginAllowThreads();
17858 (arg1)->SetRange(arg2,arg3);
17859 wxPyEndAllowThreads(__tstate);
17860 if (PyErr_Occurred()) SWIG_fail;
17861 }
17862 resultobj = SWIG_Py_Void();
17863 return resultobj;
17864 fail:
17865 return NULL;
17866 }
17867
17868
17869 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17870 PyObject *resultobj = 0;
17871 wxSlider *arg1 = (wxSlider *) 0 ;
17872 int result;
17873 void *argp1 = 0 ;
17874 int res1 = 0 ;
17875 PyObject *swig_obj[1] ;
17876
17877 if (!args) SWIG_fail;
17878 swig_obj[0] = args;
17879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17880 if (!SWIG_IsOK(res1)) {
17881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17882 }
17883 arg1 = reinterpret_cast< wxSlider * >(argp1);
17884 {
17885 PyThreadState* __tstate = wxPyBeginAllowThreads();
17886 result = (int)((wxSlider const *)arg1)->GetMin();
17887 wxPyEndAllowThreads(__tstate);
17888 if (PyErr_Occurred()) SWIG_fail;
17889 }
17890 resultobj = SWIG_From_int(static_cast< int >(result));
17891 return resultobj;
17892 fail:
17893 return NULL;
17894 }
17895
17896
17897 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17898 PyObject *resultobj = 0;
17899 wxSlider *arg1 = (wxSlider *) 0 ;
17900 int result;
17901 void *argp1 = 0 ;
17902 int res1 = 0 ;
17903 PyObject *swig_obj[1] ;
17904
17905 if (!args) SWIG_fail;
17906 swig_obj[0] = args;
17907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17908 if (!SWIG_IsOK(res1)) {
17909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17910 }
17911 arg1 = reinterpret_cast< wxSlider * >(argp1);
17912 {
17913 PyThreadState* __tstate = wxPyBeginAllowThreads();
17914 result = (int)((wxSlider const *)arg1)->GetMax();
17915 wxPyEndAllowThreads(__tstate);
17916 if (PyErr_Occurred()) SWIG_fail;
17917 }
17918 resultobj = SWIG_From_int(static_cast< int >(result));
17919 return resultobj;
17920 fail:
17921 return NULL;
17922 }
17923
17924
17925 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17926 PyObject *resultobj = 0;
17927 wxSlider *arg1 = (wxSlider *) 0 ;
17928 int arg2 ;
17929 void *argp1 = 0 ;
17930 int res1 = 0 ;
17931 int val2 ;
17932 int ecode2 = 0 ;
17933 PyObject * obj0 = 0 ;
17934 PyObject * obj1 = 0 ;
17935 char * kwnames[] = {
17936 (char *) "self",(char *) "minValue", NULL
17937 };
17938
17939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17941 if (!SWIG_IsOK(res1)) {
17942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17943 }
17944 arg1 = reinterpret_cast< wxSlider * >(argp1);
17945 ecode2 = SWIG_AsVal_int(obj1, &val2);
17946 if (!SWIG_IsOK(ecode2)) {
17947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17948 }
17949 arg2 = static_cast< int >(val2);
17950 {
17951 PyThreadState* __tstate = wxPyBeginAllowThreads();
17952 (arg1)->SetMin(arg2);
17953 wxPyEndAllowThreads(__tstate);
17954 if (PyErr_Occurred()) SWIG_fail;
17955 }
17956 resultobj = SWIG_Py_Void();
17957 return resultobj;
17958 fail:
17959 return NULL;
17960 }
17961
17962
17963 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17964 PyObject *resultobj = 0;
17965 wxSlider *arg1 = (wxSlider *) 0 ;
17966 int arg2 ;
17967 void *argp1 = 0 ;
17968 int res1 = 0 ;
17969 int val2 ;
17970 int ecode2 = 0 ;
17971 PyObject * obj0 = 0 ;
17972 PyObject * obj1 = 0 ;
17973 char * kwnames[] = {
17974 (char *) "self",(char *) "maxValue", NULL
17975 };
17976
17977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17979 if (!SWIG_IsOK(res1)) {
17980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17981 }
17982 arg1 = reinterpret_cast< wxSlider * >(argp1);
17983 ecode2 = SWIG_AsVal_int(obj1, &val2);
17984 if (!SWIG_IsOK(ecode2)) {
17985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17986 }
17987 arg2 = static_cast< int >(val2);
17988 {
17989 PyThreadState* __tstate = wxPyBeginAllowThreads();
17990 (arg1)->SetMax(arg2);
17991 wxPyEndAllowThreads(__tstate);
17992 if (PyErr_Occurred()) SWIG_fail;
17993 }
17994 resultobj = SWIG_Py_Void();
17995 return resultobj;
17996 fail:
17997 return NULL;
17998 }
17999
18000
18001 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18002 PyObject *resultobj = 0;
18003 wxSlider *arg1 = (wxSlider *) 0 ;
18004 int arg2 ;
18005 void *argp1 = 0 ;
18006 int res1 = 0 ;
18007 int val2 ;
18008 int ecode2 = 0 ;
18009 PyObject * obj0 = 0 ;
18010 PyObject * obj1 = 0 ;
18011 char * kwnames[] = {
18012 (char *) "self",(char *) "lineSize", NULL
18013 };
18014
18015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18017 if (!SWIG_IsOK(res1)) {
18018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18019 }
18020 arg1 = reinterpret_cast< wxSlider * >(argp1);
18021 ecode2 = SWIG_AsVal_int(obj1, &val2);
18022 if (!SWIG_IsOK(ecode2)) {
18023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18024 }
18025 arg2 = static_cast< int >(val2);
18026 {
18027 PyThreadState* __tstate = wxPyBeginAllowThreads();
18028 (arg1)->SetLineSize(arg2);
18029 wxPyEndAllowThreads(__tstate);
18030 if (PyErr_Occurred()) SWIG_fail;
18031 }
18032 resultobj = SWIG_Py_Void();
18033 return resultobj;
18034 fail:
18035 return NULL;
18036 }
18037
18038
18039 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18040 PyObject *resultobj = 0;
18041 wxSlider *arg1 = (wxSlider *) 0 ;
18042 int arg2 ;
18043 void *argp1 = 0 ;
18044 int res1 = 0 ;
18045 int val2 ;
18046 int ecode2 = 0 ;
18047 PyObject * obj0 = 0 ;
18048 PyObject * obj1 = 0 ;
18049 char * kwnames[] = {
18050 (char *) "self",(char *) "pageSize", NULL
18051 };
18052
18053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18055 if (!SWIG_IsOK(res1)) {
18056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18057 }
18058 arg1 = reinterpret_cast< wxSlider * >(argp1);
18059 ecode2 = SWIG_AsVal_int(obj1, &val2);
18060 if (!SWIG_IsOK(ecode2)) {
18061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18062 }
18063 arg2 = static_cast< int >(val2);
18064 {
18065 PyThreadState* __tstate = wxPyBeginAllowThreads();
18066 (arg1)->SetPageSize(arg2);
18067 wxPyEndAllowThreads(__tstate);
18068 if (PyErr_Occurred()) SWIG_fail;
18069 }
18070 resultobj = SWIG_Py_Void();
18071 return resultobj;
18072 fail:
18073 return NULL;
18074 }
18075
18076
18077 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18078 PyObject *resultobj = 0;
18079 wxSlider *arg1 = (wxSlider *) 0 ;
18080 int result;
18081 void *argp1 = 0 ;
18082 int res1 = 0 ;
18083 PyObject *swig_obj[1] ;
18084
18085 if (!args) SWIG_fail;
18086 swig_obj[0] = args;
18087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18088 if (!SWIG_IsOK(res1)) {
18089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18090 }
18091 arg1 = reinterpret_cast< wxSlider * >(argp1);
18092 {
18093 PyThreadState* __tstate = wxPyBeginAllowThreads();
18094 result = (int)((wxSlider const *)arg1)->GetLineSize();
18095 wxPyEndAllowThreads(__tstate);
18096 if (PyErr_Occurred()) SWIG_fail;
18097 }
18098 resultobj = SWIG_From_int(static_cast< int >(result));
18099 return resultobj;
18100 fail:
18101 return NULL;
18102 }
18103
18104
18105 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18106 PyObject *resultobj = 0;
18107 wxSlider *arg1 = (wxSlider *) 0 ;
18108 int result;
18109 void *argp1 = 0 ;
18110 int res1 = 0 ;
18111 PyObject *swig_obj[1] ;
18112
18113 if (!args) SWIG_fail;
18114 swig_obj[0] = args;
18115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18116 if (!SWIG_IsOK(res1)) {
18117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18118 }
18119 arg1 = reinterpret_cast< wxSlider * >(argp1);
18120 {
18121 PyThreadState* __tstate = wxPyBeginAllowThreads();
18122 result = (int)((wxSlider const *)arg1)->GetPageSize();
18123 wxPyEndAllowThreads(__tstate);
18124 if (PyErr_Occurred()) SWIG_fail;
18125 }
18126 resultobj = SWIG_From_int(static_cast< int >(result));
18127 return resultobj;
18128 fail:
18129 return NULL;
18130 }
18131
18132
18133 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18134 PyObject *resultobj = 0;
18135 wxSlider *arg1 = (wxSlider *) 0 ;
18136 int arg2 ;
18137 void *argp1 = 0 ;
18138 int res1 = 0 ;
18139 int val2 ;
18140 int ecode2 = 0 ;
18141 PyObject * obj0 = 0 ;
18142 PyObject * obj1 = 0 ;
18143 char * kwnames[] = {
18144 (char *) "self",(char *) "lenPixels", NULL
18145 };
18146
18147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18149 if (!SWIG_IsOK(res1)) {
18150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18151 }
18152 arg1 = reinterpret_cast< wxSlider * >(argp1);
18153 ecode2 = SWIG_AsVal_int(obj1, &val2);
18154 if (!SWIG_IsOK(ecode2)) {
18155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18156 }
18157 arg2 = static_cast< int >(val2);
18158 {
18159 PyThreadState* __tstate = wxPyBeginAllowThreads();
18160 (arg1)->SetThumbLength(arg2);
18161 wxPyEndAllowThreads(__tstate);
18162 if (PyErr_Occurred()) SWIG_fail;
18163 }
18164 resultobj = SWIG_Py_Void();
18165 return resultobj;
18166 fail:
18167 return NULL;
18168 }
18169
18170
18171 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18172 PyObject *resultobj = 0;
18173 wxSlider *arg1 = (wxSlider *) 0 ;
18174 int result;
18175 void *argp1 = 0 ;
18176 int res1 = 0 ;
18177 PyObject *swig_obj[1] ;
18178
18179 if (!args) SWIG_fail;
18180 swig_obj[0] = args;
18181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18182 if (!SWIG_IsOK(res1)) {
18183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18184 }
18185 arg1 = reinterpret_cast< wxSlider * >(argp1);
18186 {
18187 PyThreadState* __tstate = wxPyBeginAllowThreads();
18188 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18189 wxPyEndAllowThreads(__tstate);
18190 if (PyErr_Occurred()) SWIG_fail;
18191 }
18192 resultobj = SWIG_From_int(static_cast< int >(result));
18193 return resultobj;
18194 fail:
18195 return NULL;
18196 }
18197
18198
18199 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18200 PyObject *resultobj = 0;
18201 wxSlider *arg1 = (wxSlider *) 0 ;
18202 int arg2 ;
18203 int arg3 = (int) 1 ;
18204 void *argp1 = 0 ;
18205 int res1 = 0 ;
18206 int val2 ;
18207 int ecode2 = 0 ;
18208 int val3 ;
18209 int ecode3 = 0 ;
18210 PyObject * obj0 = 0 ;
18211 PyObject * obj1 = 0 ;
18212 PyObject * obj2 = 0 ;
18213 char * kwnames[] = {
18214 (char *) "self",(char *) "n",(char *) "pos", NULL
18215 };
18216
18217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18219 if (!SWIG_IsOK(res1)) {
18220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18221 }
18222 arg1 = reinterpret_cast< wxSlider * >(argp1);
18223 ecode2 = SWIG_AsVal_int(obj1, &val2);
18224 if (!SWIG_IsOK(ecode2)) {
18225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18226 }
18227 arg2 = static_cast< int >(val2);
18228 if (obj2) {
18229 ecode3 = SWIG_AsVal_int(obj2, &val3);
18230 if (!SWIG_IsOK(ecode3)) {
18231 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18232 }
18233 arg3 = static_cast< int >(val3);
18234 }
18235 {
18236 PyThreadState* __tstate = wxPyBeginAllowThreads();
18237 (arg1)->SetTickFreq(arg2,arg3);
18238 wxPyEndAllowThreads(__tstate);
18239 if (PyErr_Occurred()) SWIG_fail;
18240 }
18241 resultobj = SWIG_Py_Void();
18242 return resultobj;
18243 fail:
18244 return NULL;
18245 }
18246
18247
18248 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18249 PyObject *resultobj = 0;
18250 wxSlider *arg1 = (wxSlider *) 0 ;
18251 int result;
18252 void *argp1 = 0 ;
18253 int res1 = 0 ;
18254 PyObject *swig_obj[1] ;
18255
18256 if (!args) SWIG_fail;
18257 swig_obj[0] = args;
18258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18259 if (!SWIG_IsOK(res1)) {
18260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18261 }
18262 arg1 = reinterpret_cast< wxSlider * >(argp1);
18263 {
18264 PyThreadState* __tstate = wxPyBeginAllowThreads();
18265 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18266 wxPyEndAllowThreads(__tstate);
18267 if (PyErr_Occurred()) SWIG_fail;
18268 }
18269 resultobj = SWIG_From_int(static_cast< int >(result));
18270 return resultobj;
18271 fail:
18272 return NULL;
18273 }
18274
18275
18276 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18277 PyObject *resultobj = 0;
18278 wxSlider *arg1 = (wxSlider *) 0 ;
18279 void *argp1 = 0 ;
18280 int res1 = 0 ;
18281 PyObject *swig_obj[1] ;
18282
18283 if (!args) SWIG_fail;
18284 swig_obj[0] = args;
18285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18286 if (!SWIG_IsOK(res1)) {
18287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18288 }
18289 arg1 = reinterpret_cast< wxSlider * >(argp1);
18290 {
18291 PyThreadState* __tstate = wxPyBeginAllowThreads();
18292 (arg1)->ClearTicks();
18293 wxPyEndAllowThreads(__tstate);
18294 if (PyErr_Occurred()) SWIG_fail;
18295 }
18296 resultobj = SWIG_Py_Void();
18297 return resultobj;
18298 fail:
18299 return NULL;
18300 }
18301
18302
18303 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18304 PyObject *resultobj = 0;
18305 wxSlider *arg1 = (wxSlider *) 0 ;
18306 int arg2 ;
18307 void *argp1 = 0 ;
18308 int res1 = 0 ;
18309 int val2 ;
18310 int ecode2 = 0 ;
18311 PyObject * obj0 = 0 ;
18312 PyObject * obj1 = 0 ;
18313 char * kwnames[] = {
18314 (char *) "self",(char *) "tickPos", NULL
18315 };
18316
18317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18319 if (!SWIG_IsOK(res1)) {
18320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18321 }
18322 arg1 = reinterpret_cast< wxSlider * >(argp1);
18323 ecode2 = SWIG_AsVal_int(obj1, &val2);
18324 if (!SWIG_IsOK(ecode2)) {
18325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18326 }
18327 arg2 = static_cast< int >(val2);
18328 {
18329 PyThreadState* __tstate = wxPyBeginAllowThreads();
18330 (arg1)->SetTick(arg2);
18331 wxPyEndAllowThreads(__tstate);
18332 if (PyErr_Occurred()) SWIG_fail;
18333 }
18334 resultobj = SWIG_Py_Void();
18335 return resultobj;
18336 fail:
18337 return NULL;
18338 }
18339
18340
18341 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18342 PyObject *resultobj = 0;
18343 wxSlider *arg1 = (wxSlider *) 0 ;
18344 void *argp1 = 0 ;
18345 int res1 = 0 ;
18346 PyObject *swig_obj[1] ;
18347
18348 if (!args) SWIG_fail;
18349 swig_obj[0] = args;
18350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18351 if (!SWIG_IsOK(res1)) {
18352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18353 }
18354 arg1 = reinterpret_cast< wxSlider * >(argp1);
18355 {
18356 PyThreadState* __tstate = wxPyBeginAllowThreads();
18357 (arg1)->ClearSel();
18358 wxPyEndAllowThreads(__tstate);
18359 if (PyErr_Occurred()) SWIG_fail;
18360 }
18361 resultobj = SWIG_Py_Void();
18362 return resultobj;
18363 fail:
18364 return NULL;
18365 }
18366
18367
18368 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18369 PyObject *resultobj = 0;
18370 wxSlider *arg1 = (wxSlider *) 0 ;
18371 int result;
18372 void *argp1 = 0 ;
18373 int res1 = 0 ;
18374 PyObject *swig_obj[1] ;
18375
18376 if (!args) SWIG_fail;
18377 swig_obj[0] = args;
18378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18379 if (!SWIG_IsOK(res1)) {
18380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18381 }
18382 arg1 = reinterpret_cast< wxSlider * >(argp1);
18383 {
18384 PyThreadState* __tstate = wxPyBeginAllowThreads();
18385 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18386 wxPyEndAllowThreads(__tstate);
18387 if (PyErr_Occurred()) SWIG_fail;
18388 }
18389 resultobj = SWIG_From_int(static_cast< int >(result));
18390 return resultobj;
18391 fail:
18392 return NULL;
18393 }
18394
18395
18396 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18397 PyObject *resultobj = 0;
18398 wxSlider *arg1 = (wxSlider *) 0 ;
18399 int result;
18400 void *argp1 = 0 ;
18401 int res1 = 0 ;
18402 PyObject *swig_obj[1] ;
18403
18404 if (!args) SWIG_fail;
18405 swig_obj[0] = args;
18406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18407 if (!SWIG_IsOK(res1)) {
18408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18409 }
18410 arg1 = reinterpret_cast< wxSlider * >(argp1);
18411 {
18412 PyThreadState* __tstate = wxPyBeginAllowThreads();
18413 result = (int)((wxSlider const *)arg1)->GetSelStart();
18414 wxPyEndAllowThreads(__tstate);
18415 if (PyErr_Occurred()) SWIG_fail;
18416 }
18417 resultobj = SWIG_From_int(static_cast< int >(result));
18418 return resultobj;
18419 fail:
18420 return NULL;
18421 }
18422
18423
18424 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18425 PyObject *resultobj = 0;
18426 wxSlider *arg1 = (wxSlider *) 0 ;
18427 int arg2 ;
18428 int arg3 ;
18429 void *argp1 = 0 ;
18430 int res1 = 0 ;
18431 int val2 ;
18432 int ecode2 = 0 ;
18433 int val3 ;
18434 int ecode3 = 0 ;
18435 PyObject * obj0 = 0 ;
18436 PyObject * obj1 = 0 ;
18437 PyObject * obj2 = 0 ;
18438 char * kwnames[] = {
18439 (char *) "self",(char *) "min",(char *) "max", NULL
18440 };
18441
18442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18444 if (!SWIG_IsOK(res1)) {
18445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18446 }
18447 arg1 = reinterpret_cast< wxSlider * >(argp1);
18448 ecode2 = SWIG_AsVal_int(obj1, &val2);
18449 if (!SWIG_IsOK(ecode2)) {
18450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18451 }
18452 arg2 = static_cast< int >(val2);
18453 ecode3 = SWIG_AsVal_int(obj2, &val3);
18454 if (!SWIG_IsOK(ecode3)) {
18455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18456 }
18457 arg3 = static_cast< int >(val3);
18458 {
18459 PyThreadState* __tstate = wxPyBeginAllowThreads();
18460 (arg1)->SetSelection(arg2,arg3);
18461 wxPyEndAllowThreads(__tstate);
18462 if (PyErr_Occurred()) SWIG_fail;
18463 }
18464 resultobj = SWIG_Py_Void();
18465 return resultobj;
18466 fail:
18467 return NULL;
18468 }
18469
18470
18471 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18472 PyObject *resultobj = 0;
18473 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18474 SwigValueWrapper<wxVisualAttributes > result;
18475 int val1 ;
18476 int ecode1 = 0 ;
18477 PyObject * obj0 = 0 ;
18478 char * kwnames[] = {
18479 (char *) "variant", NULL
18480 };
18481
18482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18483 if (obj0) {
18484 ecode1 = SWIG_AsVal_int(obj0, &val1);
18485 if (!SWIG_IsOK(ecode1)) {
18486 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18487 }
18488 arg1 = static_cast< wxWindowVariant >(val1);
18489 }
18490 {
18491 if (!wxPyCheckForApp()) SWIG_fail;
18492 PyThreadState* __tstate = wxPyBeginAllowThreads();
18493 result = wxSlider::GetClassDefaultAttributes(arg1);
18494 wxPyEndAllowThreads(__tstate);
18495 if (PyErr_Occurred()) SWIG_fail;
18496 }
18497 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18498 return resultobj;
18499 fail:
18500 return NULL;
18501 }
18502
18503
18504 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18505 PyObject *obj;
18506 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18507 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18508 return SWIG_Py_Void();
18509 }
18510
18511 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18512 return SWIG_Python_InitShadowInstance(args);
18513 }
18514
18515 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18516 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18517 return 1;
18518 }
18519
18520
18521 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18522 PyObject *pyobj = 0;
18523
18524 {
18525 #if wxUSE_UNICODE
18526 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18527 #else
18528 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18529 #endif
18530 }
18531 return pyobj;
18532 }
18533
18534
18535 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18536 PyObject *resultobj = 0;
18537 wxWindow *arg1 = (wxWindow *) 0 ;
18538 int arg2 = (int) -1 ;
18539 wxString const &arg3_defvalue = wxPyEmptyString ;
18540 wxString *arg3 = (wxString *) &arg3_defvalue ;
18541 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18542 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18543 wxSize const &arg5_defvalue = wxDefaultSize ;
18544 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18545 long arg6 = (long) 0 ;
18546 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18547 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18548 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18549 wxString *arg8 = (wxString *) &arg8_defvalue ;
18550 wxToggleButton *result = 0 ;
18551 void *argp1 = 0 ;
18552 int res1 = 0 ;
18553 int val2 ;
18554 int ecode2 = 0 ;
18555 bool temp3 = false ;
18556 wxPoint temp4 ;
18557 wxSize temp5 ;
18558 long val6 ;
18559 int ecode6 = 0 ;
18560 void *argp7 = 0 ;
18561 int res7 = 0 ;
18562 bool temp8 = false ;
18563 PyObject * obj0 = 0 ;
18564 PyObject * obj1 = 0 ;
18565 PyObject * obj2 = 0 ;
18566 PyObject * obj3 = 0 ;
18567 PyObject * obj4 = 0 ;
18568 PyObject * obj5 = 0 ;
18569 PyObject * obj6 = 0 ;
18570 PyObject * obj7 = 0 ;
18571 char * kwnames[] = {
18572 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18573 };
18574
18575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18577 if (!SWIG_IsOK(res1)) {
18578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18579 }
18580 arg1 = reinterpret_cast< wxWindow * >(argp1);
18581 if (obj1) {
18582 ecode2 = SWIG_AsVal_int(obj1, &val2);
18583 if (!SWIG_IsOK(ecode2)) {
18584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18585 }
18586 arg2 = static_cast< int >(val2);
18587 }
18588 if (obj2) {
18589 {
18590 arg3 = wxString_in_helper(obj2);
18591 if (arg3 == NULL) SWIG_fail;
18592 temp3 = true;
18593 }
18594 }
18595 if (obj3) {
18596 {
18597 arg4 = &temp4;
18598 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18599 }
18600 }
18601 if (obj4) {
18602 {
18603 arg5 = &temp5;
18604 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18605 }
18606 }
18607 if (obj5) {
18608 ecode6 = SWIG_AsVal_long(obj5, &val6);
18609 if (!SWIG_IsOK(ecode6)) {
18610 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18611 }
18612 arg6 = static_cast< long >(val6);
18613 }
18614 if (obj6) {
18615 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18616 if (!SWIG_IsOK(res7)) {
18617 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18618 }
18619 if (!argp7) {
18620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18621 }
18622 arg7 = reinterpret_cast< wxValidator * >(argp7);
18623 }
18624 if (obj7) {
18625 {
18626 arg8 = wxString_in_helper(obj7);
18627 if (arg8 == NULL) SWIG_fail;
18628 temp8 = true;
18629 }
18630 }
18631 {
18632 if (!wxPyCheckForApp()) SWIG_fail;
18633 PyThreadState* __tstate = wxPyBeginAllowThreads();
18634 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18635 wxPyEndAllowThreads(__tstate);
18636 if (PyErr_Occurred()) SWIG_fail;
18637 }
18638 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18639 {
18640 if (temp3)
18641 delete arg3;
18642 }
18643 {
18644 if (temp8)
18645 delete arg8;
18646 }
18647 return resultobj;
18648 fail:
18649 {
18650 if (temp3)
18651 delete arg3;
18652 }
18653 {
18654 if (temp8)
18655 delete arg8;
18656 }
18657 return NULL;
18658 }
18659
18660
18661 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18662 PyObject *resultobj = 0;
18663 wxToggleButton *result = 0 ;
18664
18665 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18666 {
18667 if (!wxPyCheckForApp()) SWIG_fail;
18668 PyThreadState* __tstate = wxPyBeginAllowThreads();
18669 result = (wxToggleButton *)new wxToggleButton();
18670 wxPyEndAllowThreads(__tstate);
18671 if (PyErr_Occurred()) SWIG_fail;
18672 }
18673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18674 return resultobj;
18675 fail:
18676 return NULL;
18677 }
18678
18679
18680 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18681 PyObject *resultobj = 0;
18682 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18683 wxWindow *arg2 = (wxWindow *) 0 ;
18684 int arg3 = (int) -1 ;
18685 wxString const &arg4_defvalue = wxPyEmptyString ;
18686 wxString *arg4 = (wxString *) &arg4_defvalue ;
18687 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18688 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18689 wxSize const &arg6_defvalue = wxDefaultSize ;
18690 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18691 long arg7 = (long) 0 ;
18692 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18693 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18694 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18695 wxString *arg9 = (wxString *) &arg9_defvalue ;
18696 bool result;
18697 void *argp1 = 0 ;
18698 int res1 = 0 ;
18699 void *argp2 = 0 ;
18700 int res2 = 0 ;
18701 int val3 ;
18702 int ecode3 = 0 ;
18703 bool temp4 = false ;
18704 wxPoint temp5 ;
18705 wxSize temp6 ;
18706 long val7 ;
18707 int ecode7 = 0 ;
18708 void *argp8 = 0 ;
18709 int res8 = 0 ;
18710 bool temp9 = false ;
18711 PyObject * obj0 = 0 ;
18712 PyObject * obj1 = 0 ;
18713 PyObject * obj2 = 0 ;
18714 PyObject * obj3 = 0 ;
18715 PyObject * obj4 = 0 ;
18716 PyObject * obj5 = 0 ;
18717 PyObject * obj6 = 0 ;
18718 PyObject * obj7 = 0 ;
18719 PyObject * obj8 = 0 ;
18720 char * kwnames[] = {
18721 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18722 };
18723
18724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18726 if (!SWIG_IsOK(res1)) {
18727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18728 }
18729 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18730 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18731 if (!SWIG_IsOK(res2)) {
18732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18733 }
18734 arg2 = reinterpret_cast< wxWindow * >(argp2);
18735 if (obj2) {
18736 ecode3 = SWIG_AsVal_int(obj2, &val3);
18737 if (!SWIG_IsOK(ecode3)) {
18738 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18739 }
18740 arg3 = static_cast< int >(val3);
18741 }
18742 if (obj3) {
18743 {
18744 arg4 = wxString_in_helper(obj3);
18745 if (arg4 == NULL) SWIG_fail;
18746 temp4 = true;
18747 }
18748 }
18749 if (obj4) {
18750 {
18751 arg5 = &temp5;
18752 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18753 }
18754 }
18755 if (obj5) {
18756 {
18757 arg6 = &temp6;
18758 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18759 }
18760 }
18761 if (obj6) {
18762 ecode7 = SWIG_AsVal_long(obj6, &val7);
18763 if (!SWIG_IsOK(ecode7)) {
18764 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18765 }
18766 arg7 = static_cast< long >(val7);
18767 }
18768 if (obj7) {
18769 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18770 if (!SWIG_IsOK(res8)) {
18771 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18772 }
18773 if (!argp8) {
18774 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18775 }
18776 arg8 = reinterpret_cast< wxValidator * >(argp8);
18777 }
18778 if (obj8) {
18779 {
18780 arg9 = wxString_in_helper(obj8);
18781 if (arg9 == NULL) SWIG_fail;
18782 temp9 = true;
18783 }
18784 }
18785 {
18786 PyThreadState* __tstate = wxPyBeginAllowThreads();
18787 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18788 wxPyEndAllowThreads(__tstate);
18789 if (PyErr_Occurred()) SWIG_fail;
18790 }
18791 {
18792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18793 }
18794 {
18795 if (temp4)
18796 delete arg4;
18797 }
18798 {
18799 if (temp9)
18800 delete arg9;
18801 }
18802 return resultobj;
18803 fail:
18804 {
18805 if (temp4)
18806 delete arg4;
18807 }
18808 {
18809 if (temp9)
18810 delete arg9;
18811 }
18812 return NULL;
18813 }
18814
18815
18816 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18817 PyObject *resultobj = 0;
18818 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18819 bool arg2 ;
18820 void *argp1 = 0 ;
18821 int res1 = 0 ;
18822 bool val2 ;
18823 int ecode2 = 0 ;
18824 PyObject * obj0 = 0 ;
18825 PyObject * obj1 = 0 ;
18826 char * kwnames[] = {
18827 (char *) "self",(char *) "value", NULL
18828 };
18829
18830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18832 if (!SWIG_IsOK(res1)) {
18833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18834 }
18835 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18836 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18837 if (!SWIG_IsOK(ecode2)) {
18838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18839 }
18840 arg2 = static_cast< bool >(val2);
18841 {
18842 PyThreadState* __tstate = wxPyBeginAllowThreads();
18843 (arg1)->SetValue(arg2);
18844 wxPyEndAllowThreads(__tstate);
18845 if (PyErr_Occurred()) SWIG_fail;
18846 }
18847 resultobj = SWIG_Py_Void();
18848 return resultobj;
18849 fail:
18850 return NULL;
18851 }
18852
18853
18854 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18855 PyObject *resultobj = 0;
18856 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18857 bool result;
18858 void *argp1 = 0 ;
18859 int res1 = 0 ;
18860 PyObject *swig_obj[1] ;
18861
18862 if (!args) SWIG_fail;
18863 swig_obj[0] = args;
18864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18865 if (!SWIG_IsOK(res1)) {
18866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18867 }
18868 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18869 {
18870 PyThreadState* __tstate = wxPyBeginAllowThreads();
18871 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18872 wxPyEndAllowThreads(__tstate);
18873 if (PyErr_Occurred()) SWIG_fail;
18874 }
18875 {
18876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18877 }
18878 return resultobj;
18879 fail:
18880 return NULL;
18881 }
18882
18883
18884 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18885 PyObject *resultobj = 0;
18886 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18887 SwigValueWrapper<wxVisualAttributes > result;
18888 int val1 ;
18889 int ecode1 = 0 ;
18890 PyObject * obj0 = 0 ;
18891 char * kwnames[] = {
18892 (char *) "variant", NULL
18893 };
18894
18895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18896 if (obj0) {
18897 ecode1 = SWIG_AsVal_int(obj0, &val1);
18898 if (!SWIG_IsOK(ecode1)) {
18899 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18900 }
18901 arg1 = static_cast< wxWindowVariant >(val1);
18902 }
18903 {
18904 if (!wxPyCheckForApp()) SWIG_fail;
18905 PyThreadState* __tstate = wxPyBeginAllowThreads();
18906 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18907 wxPyEndAllowThreads(__tstate);
18908 if (PyErr_Occurred()) SWIG_fail;
18909 }
18910 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18911 return resultobj;
18912 fail:
18913 return NULL;
18914 }
18915
18916
18917 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18918 PyObject *obj;
18919 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18920 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18921 return SWIG_Py_Void();
18922 }
18923
18924 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18925 return SWIG_Python_InitShadowInstance(args);
18926 }
18927
18928 SWIGINTERN int NotebookNameStr_set(PyObject *) {
18929 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18930 return 1;
18931 }
18932
18933
18934 SWIGINTERN PyObject *NotebookNameStr_get(void) {
18935 PyObject *pyobj = 0;
18936
18937 {
18938 #if wxUSE_UNICODE
18939 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18940 #else
18941 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18942 #endif
18943 }
18944 return pyobj;
18945 }
18946
18947
18948 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18949 PyObject *resultobj = 0;
18950 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18951 size_t result;
18952 void *argp1 = 0 ;
18953 int res1 = 0 ;
18954 PyObject *swig_obj[1] ;
18955
18956 if (!args) SWIG_fail;
18957 swig_obj[0] = args;
18958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18959 if (!SWIG_IsOK(res1)) {
18960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18961 }
18962 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18963 {
18964 PyThreadState* __tstate = wxPyBeginAllowThreads();
18965 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18966 wxPyEndAllowThreads(__tstate);
18967 if (PyErr_Occurred()) SWIG_fail;
18968 }
18969 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18970 return resultobj;
18971 fail:
18972 return NULL;
18973 }
18974
18975
18976 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18977 PyObject *resultobj = 0;
18978 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18979 size_t arg2 ;
18980 wxWindow *result = 0 ;
18981 void *argp1 = 0 ;
18982 int res1 = 0 ;
18983 size_t val2 ;
18984 int ecode2 = 0 ;
18985 PyObject * obj0 = 0 ;
18986 PyObject * obj1 = 0 ;
18987 char * kwnames[] = {
18988 (char *) "self",(char *) "n", NULL
18989 };
18990
18991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
18992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18993 if (!SWIG_IsOK(res1)) {
18994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18995 }
18996 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18997 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18998 if (!SWIG_IsOK(ecode2)) {
18999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19000 }
19001 arg2 = static_cast< size_t >(val2);
19002 {
19003 PyThreadState* __tstate = wxPyBeginAllowThreads();
19004 result = (wxWindow *)(arg1)->GetPage(arg2);
19005 wxPyEndAllowThreads(__tstate);
19006 if (PyErr_Occurred()) SWIG_fail;
19007 }
19008 {
19009 resultobj = wxPyMake_wxObject(result, 0);
19010 }
19011 return resultobj;
19012 fail:
19013 return NULL;
19014 }
19015
19016
19017 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19018 PyObject *resultobj = 0;
19019 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19020 wxWindow *result = 0 ;
19021 void *argp1 = 0 ;
19022 int res1 = 0 ;
19023 PyObject *swig_obj[1] ;
19024
19025 if (!args) SWIG_fail;
19026 swig_obj[0] = args;
19027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19028 if (!SWIG_IsOK(res1)) {
19029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19030 }
19031 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19032 {
19033 PyThreadState* __tstate = wxPyBeginAllowThreads();
19034 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19035 wxPyEndAllowThreads(__tstate);
19036 if (PyErr_Occurred()) SWIG_fail;
19037 }
19038 {
19039 resultobj = wxPyMake_wxObject(result, 0);
19040 }
19041 return resultobj;
19042 fail:
19043 return NULL;
19044 }
19045
19046
19047 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19048 PyObject *resultobj = 0;
19049 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19050 int result;
19051 void *argp1 = 0 ;
19052 int res1 = 0 ;
19053 PyObject *swig_obj[1] ;
19054
19055 if (!args) SWIG_fail;
19056 swig_obj[0] = args;
19057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19058 if (!SWIG_IsOK(res1)) {
19059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19060 }
19061 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19062 {
19063 PyThreadState* __tstate = wxPyBeginAllowThreads();
19064 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19065 wxPyEndAllowThreads(__tstate);
19066 if (PyErr_Occurred()) SWIG_fail;
19067 }
19068 resultobj = SWIG_From_int(static_cast< int >(result));
19069 return resultobj;
19070 fail:
19071 return NULL;
19072 }
19073
19074
19075 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19076 PyObject *resultobj = 0;
19077 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19078 size_t arg2 ;
19079 wxString *arg3 = 0 ;
19080 bool result;
19081 void *argp1 = 0 ;
19082 int res1 = 0 ;
19083 size_t val2 ;
19084 int ecode2 = 0 ;
19085 bool temp3 = false ;
19086 PyObject * obj0 = 0 ;
19087 PyObject * obj1 = 0 ;
19088 PyObject * obj2 = 0 ;
19089 char * kwnames[] = {
19090 (char *) "self",(char *) "n",(char *) "strText", NULL
19091 };
19092
19093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19095 if (!SWIG_IsOK(res1)) {
19096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19097 }
19098 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19099 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19100 if (!SWIG_IsOK(ecode2)) {
19101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19102 }
19103 arg2 = static_cast< size_t >(val2);
19104 {
19105 arg3 = wxString_in_helper(obj2);
19106 if (arg3 == NULL) SWIG_fail;
19107 temp3 = true;
19108 }
19109 {
19110 PyThreadState* __tstate = wxPyBeginAllowThreads();
19111 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19112 wxPyEndAllowThreads(__tstate);
19113 if (PyErr_Occurred()) SWIG_fail;
19114 }
19115 {
19116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19117 }
19118 {
19119 if (temp3)
19120 delete arg3;
19121 }
19122 return resultobj;
19123 fail:
19124 {
19125 if (temp3)
19126 delete arg3;
19127 }
19128 return NULL;
19129 }
19130
19131
19132 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19133 PyObject *resultobj = 0;
19134 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19135 size_t arg2 ;
19136 wxString result;
19137 void *argp1 = 0 ;
19138 int res1 = 0 ;
19139 size_t val2 ;
19140 int ecode2 = 0 ;
19141 PyObject * obj0 = 0 ;
19142 PyObject * obj1 = 0 ;
19143 char * kwnames[] = {
19144 (char *) "self",(char *) "n", NULL
19145 };
19146
19147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19149 if (!SWIG_IsOK(res1)) {
19150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19151 }
19152 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19153 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19154 if (!SWIG_IsOK(ecode2)) {
19155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19156 }
19157 arg2 = static_cast< size_t >(val2);
19158 {
19159 PyThreadState* __tstate = wxPyBeginAllowThreads();
19160 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19161 wxPyEndAllowThreads(__tstate);
19162 if (PyErr_Occurred()) SWIG_fail;
19163 }
19164 {
19165 #if wxUSE_UNICODE
19166 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19167 #else
19168 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19169 #endif
19170 }
19171 return resultobj;
19172 fail:
19173 return NULL;
19174 }
19175
19176
19177 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19178 PyObject *resultobj = 0;
19179 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19180 wxImageList *arg2 = (wxImageList *) 0 ;
19181 void *argp1 = 0 ;
19182 int res1 = 0 ;
19183 void *argp2 = 0 ;
19184 int res2 = 0 ;
19185 PyObject * obj0 = 0 ;
19186 PyObject * obj1 = 0 ;
19187 char * kwnames[] = {
19188 (char *) "self",(char *) "imageList", NULL
19189 };
19190
19191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19193 if (!SWIG_IsOK(res1)) {
19194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19195 }
19196 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19197 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19198 if (!SWIG_IsOK(res2)) {
19199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19200 }
19201 arg2 = reinterpret_cast< wxImageList * >(argp2);
19202 {
19203 PyThreadState* __tstate = wxPyBeginAllowThreads();
19204 (arg1)->SetImageList(arg2);
19205 wxPyEndAllowThreads(__tstate);
19206 if (PyErr_Occurred()) SWIG_fail;
19207 }
19208 resultobj = SWIG_Py_Void();
19209 return resultobj;
19210 fail:
19211 return NULL;
19212 }
19213
19214
19215 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19216 PyObject *resultobj = 0;
19217 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19218 wxImageList *arg2 = (wxImageList *) 0 ;
19219 void *argp1 = 0 ;
19220 int res1 = 0 ;
19221 int res2 = 0 ;
19222 PyObject * obj0 = 0 ;
19223 PyObject * obj1 = 0 ;
19224 char * kwnames[] = {
19225 (char *) "self",(char *) "imageList", NULL
19226 };
19227
19228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19230 if (!SWIG_IsOK(res1)) {
19231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19232 }
19233 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19234 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19235 if (!SWIG_IsOK(res2)) {
19236 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19237 }
19238 {
19239 PyThreadState* __tstate = wxPyBeginAllowThreads();
19240 (arg1)->AssignImageList(arg2);
19241 wxPyEndAllowThreads(__tstate);
19242 if (PyErr_Occurred()) SWIG_fail;
19243 }
19244 resultobj = SWIG_Py_Void();
19245 return resultobj;
19246 fail:
19247 return NULL;
19248 }
19249
19250
19251 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19252 PyObject *resultobj = 0;
19253 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19254 wxImageList *result = 0 ;
19255 void *argp1 = 0 ;
19256 int res1 = 0 ;
19257 PyObject *swig_obj[1] ;
19258
19259 if (!args) SWIG_fail;
19260 swig_obj[0] = args;
19261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19262 if (!SWIG_IsOK(res1)) {
19263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19264 }
19265 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19266 {
19267 PyThreadState* __tstate = wxPyBeginAllowThreads();
19268 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19269 wxPyEndAllowThreads(__tstate);
19270 if (PyErr_Occurred()) SWIG_fail;
19271 }
19272 {
19273 resultobj = wxPyMake_wxObject(result, (bool)0);
19274 }
19275 return resultobj;
19276 fail:
19277 return NULL;
19278 }
19279
19280
19281 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19282 PyObject *resultobj = 0;
19283 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19284 size_t arg2 ;
19285 int result;
19286 void *argp1 = 0 ;
19287 int res1 = 0 ;
19288 size_t val2 ;
19289 int ecode2 = 0 ;
19290 PyObject * obj0 = 0 ;
19291 PyObject * obj1 = 0 ;
19292 char * kwnames[] = {
19293 (char *) "self",(char *) "n", NULL
19294 };
19295
19296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19298 if (!SWIG_IsOK(res1)) {
19299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19300 }
19301 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19302 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19303 if (!SWIG_IsOK(ecode2)) {
19304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19305 }
19306 arg2 = static_cast< size_t >(val2);
19307 {
19308 PyThreadState* __tstate = wxPyBeginAllowThreads();
19309 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19310 wxPyEndAllowThreads(__tstate);
19311 if (PyErr_Occurred()) SWIG_fail;
19312 }
19313 resultobj = SWIG_From_int(static_cast< int >(result));
19314 return resultobj;
19315 fail:
19316 return NULL;
19317 }
19318
19319
19320 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19321 PyObject *resultobj = 0;
19322 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19323 size_t arg2 ;
19324 int arg3 ;
19325 bool result;
19326 void *argp1 = 0 ;
19327 int res1 = 0 ;
19328 size_t val2 ;
19329 int ecode2 = 0 ;
19330 int val3 ;
19331 int ecode3 = 0 ;
19332 PyObject * obj0 = 0 ;
19333 PyObject * obj1 = 0 ;
19334 PyObject * obj2 = 0 ;
19335 char * kwnames[] = {
19336 (char *) "self",(char *) "n",(char *) "imageId", NULL
19337 };
19338
19339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19341 if (!SWIG_IsOK(res1)) {
19342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19343 }
19344 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19345 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19346 if (!SWIG_IsOK(ecode2)) {
19347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19348 }
19349 arg2 = static_cast< size_t >(val2);
19350 ecode3 = SWIG_AsVal_int(obj2, &val3);
19351 if (!SWIG_IsOK(ecode3)) {
19352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19353 }
19354 arg3 = static_cast< int >(val3);
19355 {
19356 PyThreadState* __tstate = wxPyBeginAllowThreads();
19357 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19358 wxPyEndAllowThreads(__tstate);
19359 if (PyErr_Occurred()) SWIG_fail;
19360 }
19361 {
19362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19363 }
19364 return resultobj;
19365 fail:
19366 return NULL;
19367 }
19368
19369
19370 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19371 PyObject *resultobj = 0;
19372 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19373 wxSize *arg2 = 0 ;
19374 void *argp1 = 0 ;
19375 int res1 = 0 ;
19376 wxSize temp2 ;
19377 PyObject * obj0 = 0 ;
19378 PyObject * obj1 = 0 ;
19379 char * kwnames[] = {
19380 (char *) "self",(char *) "size", NULL
19381 };
19382
19383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19385 if (!SWIG_IsOK(res1)) {
19386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19387 }
19388 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19389 {
19390 arg2 = &temp2;
19391 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19392 }
19393 {
19394 PyThreadState* __tstate = wxPyBeginAllowThreads();
19395 (arg1)->SetPageSize((wxSize const &)*arg2);
19396 wxPyEndAllowThreads(__tstate);
19397 if (PyErr_Occurred()) SWIG_fail;
19398 }
19399 resultobj = SWIG_Py_Void();
19400 return resultobj;
19401 fail:
19402 return NULL;
19403 }
19404
19405
19406 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19407 PyObject *resultobj = 0;
19408 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19409 wxSize *arg2 = 0 ;
19410 wxSize result;
19411 void *argp1 = 0 ;
19412 int res1 = 0 ;
19413 wxSize temp2 ;
19414 PyObject * obj0 = 0 ;
19415 PyObject * obj1 = 0 ;
19416 char * kwnames[] = {
19417 (char *) "self",(char *) "sizePage", NULL
19418 };
19419
19420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19422 if (!SWIG_IsOK(res1)) {
19423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19424 }
19425 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19426 {
19427 arg2 = &temp2;
19428 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19429 }
19430 {
19431 PyThreadState* __tstate = wxPyBeginAllowThreads();
19432 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19433 wxPyEndAllowThreads(__tstate);
19434 if (PyErr_Occurred()) SWIG_fail;
19435 }
19436 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19437 return resultobj;
19438 fail:
19439 return NULL;
19440 }
19441
19442
19443 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19444 PyObject *resultobj = 0;
19445 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19446 unsigned int result;
19447 void *argp1 = 0 ;
19448 int res1 = 0 ;
19449 PyObject *swig_obj[1] ;
19450
19451 if (!args) SWIG_fail;
19452 swig_obj[0] = args;
19453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19454 if (!SWIG_IsOK(res1)) {
19455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19456 }
19457 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19458 {
19459 PyThreadState* __tstate = wxPyBeginAllowThreads();
19460 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19461 wxPyEndAllowThreads(__tstate);
19462 if (PyErr_Occurred()) SWIG_fail;
19463 }
19464 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19465 return resultobj;
19466 fail:
19467 return NULL;
19468 }
19469
19470
19471 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19472 PyObject *resultobj = 0;
19473 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19474 unsigned int arg2 ;
19475 void *argp1 = 0 ;
19476 int res1 = 0 ;
19477 unsigned int val2 ;
19478 int ecode2 = 0 ;
19479 PyObject * obj0 = 0 ;
19480 PyObject * obj1 = 0 ;
19481 char * kwnames[] = {
19482 (char *) "self",(char *) "internalBorder", NULL
19483 };
19484
19485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19487 if (!SWIG_IsOK(res1)) {
19488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19489 }
19490 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19491 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19492 if (!SWIG_IsOK(ecode2)) {
19493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19494 }
19495 arg2 = static_cast< unsigned int >(val2);
19496 {
19497 PyThreadState* __tstate = wxPyBeginAllowThreads();
19498 (arg1)->SetInternalBorder(arg2);
19499 wxPyEndAllowThreads(__tstate);
19500 if (PyErr_Occurred()) SWIG_fail;
19501 }
19502 resultobj = SWIG_Py_Void();
19503 return resultobj;
19504 fail:
19505 return NULL;
19506 }
19507
19508
19509 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19510 PyObject *resultobj = 0;
19511 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19512 bool result;
19513 void *argp1 = 0 ;
19514 int res1 = 0 ;
19515 PyObject *swig_obj[1] ;
19516
19517 if (!args) SWIG_fail;
19518 swig_obj[0] = args;
19519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19520 if (!SWIG_IsOK(res1)) {
19521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19522 }
19523 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19524 {
19525 PyThreadState* __tstate = wxPyBeginAllowThreads();
19526 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19527 wxPyEndAllowThreads(__tstate);
19528 if (PyErr_Occurred()) SWIG_fail;
19529 }
19530 {
19531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19532 }
19533 return resultobj;
19534 fail:
19535 return NULL;
19536 }
19537
19538
19539 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19540 PyObject *resultobj = 0;
19541 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19542 int arg2 ;
19543 void *argp1 = 0 ;
19544 int res1 = 0 ;
19545 int val2 ;
19546 int ecode2 = 0 ;
19547 PyObject * obj0 = 0 ;
19548 PyObject * obj1 = 0 ;
19549 char * kwnames[] = {
19550 (char *) "self",(char *) "margin", NULL
19551 };
19552
19553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19555 if (!SWIG_IsOK(res1)) {
19556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19557 }
19558 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19559 ecode2 = SWIG_AsVal_int(obj1, &val2);
19560 if (!SWIG_IsOK(ecode2)) {
19561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19562 }
19563 arg2 = static_cast< int >(val2);
19564 {
19565 PyThreadState* __tstate = wxPyBeginAllowThreads();
19566 (arg1)->SetControlMargin(arg2);
19567 wxPyEndAllowThreads(__tstate);
19568 if (PyErr_Occurred()) SWIG_fail;
19569 }
19570 resultobj = SWIG_Py_Void();
19571 return resultobj;
19572 fail:
19573 return NULL;
19574 }
19575
19576
19577 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19578 PyObject *resultobj = 0;
19579 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19580 int result;
19581 void *argp1 = 0 ;
19582 int res1 = 0 ;
19583 PyObject *swig_obj[1] ;
19584
19585 if (!args) SWIG_fail;
19586 swig_obj[0] = args;
19587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19588 if (!SWIG_IsOK(res1)) {
19589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19590 }
19591 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19592 {
19593 PyThreadState* __tstate = wxPyBeginAllowThreads();
19594 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19595 wxPyEndAllowThreads(__tstate);
19596 if (PyErr_Occurred()) SWIG_fail;
19597 }
19598 resultobj = SWIG_From_int(static_cast< int >(result));
19599 return resultobj;
19600 fail:
19601 return NULL;
19602 }
19603
19604
19605 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19606 PyObject *resultobj = 0;
19607 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19608 bool arg2 ;
19609 void *argp1 = 0 ;
19610 int res1 = 0 ;
19611 bool val2 ;
19612 int ecode2 = 0 ;
19613 PyObject * obj0 = 0 ;
19614 PyObject * obj1 = 0 ;
19615 char * kwnames[] = {
19616 (char *) "self",(char *) "fit", NULL
19617 };
19618
19619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19621 if (!SWIG_IsOK(res1)) {
19622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19623 }
19624 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19625 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19626 if (!SWIG_IsOK(ecode2)) {
19627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19628 }
19629 arg2 = static_cast< bool >(val2);
19630 {
19631 PyThreadState* __tstate = wxPyBeginAllowThreads();
19632 (arg1)->SetFitToCurrentPage(arg2);
19633 wxPyEndAllowThreads(__tstate);
19634 if (PyErr_Occurred()) SWIG_fail;
19635 }
19636 resultobj = SWIG_Py_Void();
19637 return resultobj;
19638 fail:
19639 return NULL;
19640 }
19641
19642
19643 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19644 PyObject *resultobj = 0;
19645 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19646 bool result;
19647 void *argp1 = 0 ;
19648 int res1 = 0 ;
19649 PyObject *swig_obj[1] ;
19650
19651 if (!args) SWIG_fail;
19652 swig_obj[0] = args;
19653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19654 if (!SWIG_IsOK(res1)) {
19655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19656 }
19657 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19658 {
19659 PyThreadState* __tstate = wxPyBeginAllowThreads();
19660 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19661 wxPyEndAllowThreads(__tstate);
19662 if (PyErr_Occurred()) SWIG_fail;
19663 }
19664 {
19665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19666 }
19667 return resultobj;
19668 fail:
19669 return NULL;
19670 }
19671
19672
19673 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19674 PyObject *resultobj = 0;
19675 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19676 wxSizer *result = 0 ;
19677 void *argp1 = 0 ;
19678 int res1 = 0 ;
19679 PyObject *swig_obj[1] ;
19680
19681 if (!args) SWIG_fail;
19682 swig_obj[0] = args;
19683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19684 if (!SWIG_IsOK(res1)) {
19685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19686 }
19687 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19688 {
19689 PyThreadState* __tstate = wxPyBeginAllowThreads();
19690 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19691 wxPyEndAllowThreads(__tstate);
19692 if (PyErr_Occurred()) SWIG_fail;
19693 }
19694 {
19695 resultobj = wxPyMake_wxObject(result, (bool)0);
19696 }
19697 return resultobj;
19698 fail:
19699 return NULL;
19700 }
19701
19702
19703 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19704 PyObject *resultobj = 0;
19705 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19706 size_t arg2 ;
19707 bool result;
19708 void *argp1 = 0 ;
19709 int res1 = 0 ;
19710 size_t val2 ;
19711 int ecode2 = 0 ;
19712 PyObject * obj0 = 0 ;
19713 PyObject * obj1 = 0 ;
19714 char * kwnames[] = {
19715 (char *) "self",(char *) "n", NULL
19716 };
19717
19718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19720 if (!SWIG_IsOK(res1)) {
19721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19722 }
19723 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19724 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19725 if (!SWIG_IsOK(ecode2)) {
19726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19727 }
19728 arg2 = static_cast< size_t >(val2);
19729 {
19730 PyThreadState* __tstate = wxPyBeginAllowThreads();
19731 result = (bool)(arg1)->DeletePage(arg2);
19732 wxPyEndAllowThreads(__tstate);
19733 if (PyErr_Occurred()) SWIG_fail;
19734 }
19735 {
19736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19737 }
19738 return resultobj;
19739 fail:
19740 return NULL;
19741 }
19742
19743
19744 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19745 PyObject *resultobj = 0;
19746 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19747 size_t arg2 ;
19748 bool result;
19749 void *argp1 = 0 ;
19750 int res1 = 0 ;
19751 size_t val2 ;
19752 int ecode2 = 0 ;
19753 PyObject * obj0 = 0 ;
19754 PyObject * obj1 = 0 ;
19755 char * kwnames[] = {
19756 (char *) "self",(char *) "n", NULL
19757 };
19758
19759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19761 if (!SWIG_IsOK(res1)) {
19762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19763 }
19764 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19765 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19766 if (!SWIG_IsOK(ecode2)) {
19767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19768 }
19769 arg2 = static_cast< size_t >(val2);
19770 {
19771 PyThreadState* __tstate = wxPyBeginAllowThreads();
19772 result = (bool)(arg1)->RemovePage(arg2);
19773 wxPyEndAllowThreads(__tstate);
19774 if (PyErr_Occurred()) SWIG_fail;
19775 }
19776 {
19777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19778 }
19779 return resultobj;
19780 fail:
19781 return NULL;
19782 }
19783
19784
19785 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19786 PyObject *resultobj = 0;
19787 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19788 bool result;
19789 void *argp1 = 0 ;
19790 int res1 = 0 ;
19791 PyObject *swig_obj[1] ;
19792
19793 if (!args) SWIG_fail;
19794 swig_obj[0] = args;
19795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19796 if (!SWIG_IsOK(res1)) {
19797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19798 }
19799 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19800 {
19801 PyThreadState* __tstate = wxPyBeginAllowThreads();
19802 result = (bool)(arg1)->DeleteAllPages();
19803 wxPyEndAllowThreads(__tstate);
19804 if (PyErr_Occurred()) SWIG_fail;
19805 }
19806 {
19807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19808 }
19809 return resultobj;
19810 fail:
19811 return NULL;
19812 }
19813
19814
19815 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19816 PyObject *resultobj = 0;
19817 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19818 wxWindow *arg2 = (wxWindow *) 0 ;
19819 wxString *arg3 = 0 ;
19820 bool arg4 = (bool) false ;
19821 int arg5 = (int) -1 ;
19822 bool result;
19823 void *argp1 = 0 ;
19824 int res1 = 0 ;
19825 void *argp2 = 0 ;
19826 int res2 = 0 ;
19827 bool temp3 = false ;
19828 bool val4 ;
19829 int ecode4 = 0 ;
19830 int val5 ;
19831 int ecode5 = 0 ;
19832 PyObject * obj0 = 0 ;
19833 PyObject * obj1 = 0 ;
19834 PyObject * obj2 = 0 ;
19835 PyObject * obj3 = 0 ;
19836 PyObject * obj4 = 0 ;
19837 char * kwnames[] = {
19838 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19839 };
19840
19841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19843 if (!SWIG_IsOK(res1)) {
19844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19845 }
19846 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19847 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19848 if (!SWIG_IsOK(res2)) {
19849 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19850 }
19851 arg2 = reinterpret_cast< wxWindow * >(argp2);
19852 {
19853 arg3 = wxString_in_helper(obj2);
19854 if (arg3 == NULL) SWIG_fail;
19855 temp3 = true;
19856 }
19857 if (obj3) {
19858 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19859 if (!SWIG_IsOK(ecode4)) {
19860 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19861 }
19862 arg4 = static_cast< bool >(val4);
19863 }
19864 if (obj4) {
19865 ecode5 = SWIG_AsVal_int(obj4, &val5);
19866 if (!SWIG_IsOK(ecode5)) {
19867 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19868 }
19869 arg5 = static_cast< int >(val5);
19870 }
19871 {
19872 PyThreadState* __tstate = wxPyBeginAllowThreads();
19873 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19874 wxPyEndAllowThreads(__tstate);
19875 if (PyErr_Occurred()) SWIG_fail;
19876 }
19877 {
19878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19879 }
19880 {
19881 if (temp3)
19882 delete arg3;
19883 }
19884 return resultobj;
19885 fail:
19886 {
19887 if (temp3)
19888 delete arg3;
19889 }
19890 return NULL;
19891 }
19892
19893
19894 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19895 PyObject *resultobj = 0;
19896 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19897 size_t arg2 ;
19898 wxWindow *arg3 = (wxWindow *) 0 ;
19899 wxString *arg4 = 0 ;
19900 bool arg5 = (bool) false ;
19901 int arg6 = (int) -1 ;
19902 bool result;
19903 void *argp1 = 0 ;
19904 int res1 = 0 ;
19905 size_t val2 ;
19906 int ecode2 = 0 ;
19907 void *argp3 = 0 ;
19908 int res3 = 0 ;
19909 bool temp4 = false ;
19910 bool val5 ;
19911 int ecode5 = 0 ;
19912 int val6 ;
19913 int ecode6 = 0 ;
19914 PyObject * obj0 = 0 ;
19915 PyObject * obj1 = 0 ;
19916 PyObject * obj2 = 0 ;
19917 PyObject * obj3 = 0 ;
19918 PyObject * obj4 = 0 ;
19919 PyObject * obj5 = 0 ;
19920 char * kwnames[] = {
19921 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19922 };
19923
19924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19926 if (!SWIG_IsOK(res1)) {
19927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19928 }
19929 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19930 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19931 if (!SWIG_IsOK(ecode2)) {
19932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19933 }
19934 arg2 = static_cast< size_t >(val2);
19935 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19936 if (!SWIG_IsOK(res3)) {
19937 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19938 }
19939 arg3 = reinterpret_cast< wxWindow * >(argp3);
19940 {
19941 arg4 = wxString_in_helper(obj3);
19942 if (arg4 == NULL) SWIG_fail;
19943 temp4 = true;
19944 }
19945 if (obj4) {
19946 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19947 if (!SWIG_IsOK(ecode5)) {
19948 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19949 }
19950 arg5 = static_cast< bool >(val5);
19951 }
19952 if (obj5) {
19953 ecode6 = SWIG_AsVal_int(obj5, &val6);
19954 if (!SWIG_IsOK(ecode6)) {
19955 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19956 }
19957 arg6 = static_cast< int >(val6);
19958 }
19959 {
19960 PyThreadState* __tstate = wxPyBeginAllowThreads();
19961 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19962 wxPyEndAllowThreads(__tstate);
19963 if (PyErr_Occurred()) SWIG_fail;
19964 }
19965 {
19966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19967 }
19968 {
19969 if (temp4)
19970 delete arg4;
19971 }
19972 return resultobj;
19973 fail:
19974 {
19975 if (temp4)
19976 delete arg4;
19977 }
19978 return NULL;
19979 }
19980
19981
19982 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19983 PyObject *resultobj = 0;
19984 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19985 size_t arg2 ;
19986 int result;
19987 void *argp1 = 0 ;
19988 int res1 = 0 ;
19989 size_t val2 ;
19990 int ecode2 = 0 ;
19991 PyObject * obj0 = 0 ;
19992 PyObject * obj1 = 0 ;
19993 char * kwnames[] = {
19994 (char *) "self",(char *) "n", NULL
19995 };
19996
19997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19999 if (!SWIG_IsOK(res1)) {
20000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20001 }
20002 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20003 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20004 if (!SWIG_IsOK(ecode2)) {
20005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20006 }
20007 arg2 = static_cast< size_t >(val2);
20008 {
20009 PyThreadState* __tstate = wxPyBeginAllowThreads();
20010 result = (int)(arg1)->SetSelection(arg2);
20011 wxPyEndAllowThreads(__tstate);
20012 if (PyErr_Occurred()) SWIG_fail;
20013 }
20014 resultobj = SWIG_From_int(static_cast< int >(result));
20015 return resultobj;
20016 fail:
20017 return NULL;
20018 }
20019
20020
20021 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20022 PyObject *resultobj = 0;
20023 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20024 bool arg2 = (bool) true ;
20025 void *argp1 = 0 ;
20026 int res1 = 0 ;
20027 bool val2 ;
20028 int ecode2 = 0 ;
20029 PyObject * obj0 = 0 ;
20030 PyObject * obj1 = 0 ;
20031 char * kwnames[] = {
20032 (char *) "self",(char *) "forward", NULL
20033 };
20034
20035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20037 if (!SWIG_IsOK(res1)) {
20038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20039 }
20040 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20041 if (obj1) {
20042 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20043 if (!SWIG_IsOK(ecode2)) {
20044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20045 }
20046 arg2 = static_cast< bool >(val2);
20047 }
20048 {
20049 PyThreadState* __tstate = wxPyBeginAllowThreads();
20050 (arg1)->AdvanceSelection(arg2);
20051 wxPyEndAllowThreads(__tstate);
20052 if (PyErr_Occurred()) SWIG_fail;
20053 }
20054 resultobj = SWIG_Py_Void();
20055 return resultobj;
20056 fail:
20057 return NULL;
20058 }
20059
20060
20061 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20062 PyObject *resultobj = 0;
20063 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20064 wxPoint *arg2 = 0 ;
20065 long *arg3 = (long *) 0 ;
20066 int result;
20067 void *argp1 = 0 ;
20068 int res1 = 0 ;
20069 wxPoint temp2 ;
20070 long temp3 ;
20071 int res3 = SWIG_TMPOBJ ;
20072 PyObject * obj0 = 0 ;
20073 PyObject * obj1 = 0 ;
20074 char * kwnames[] = {
20075 (char *) "self",(char *) "pt", NULL
20076 };
20077
20078 arg3 = &temp3;
20079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20081 if (!SWIG_IsOK(res1)) {
20082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20083 }
20084 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20085 {
20086 arg2 = &temp2;
20087 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20088 }
20089 {
20090 PyThreadState* __tstate = wxPyBeginAllowThreads();
20091 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20092 wxPyEndAllowThreads(__tstate);
20093 if (PyErr_Occurred()) SWIG_fail;
20094 }
20095 resultobj = SWIG_From_int(static_cast< int >(result));
20096 if (SWIG_IsTmpObj(res3)) {
20097 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20098 } else {
20099 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20100 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20101 }
20102 return resultobj;
20103 fail:
20104 return NULL;
20105 }
20106
20107
20108 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20109 PyObject *resultobj = 0;
20110 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20111 SwigValueWrapper<wxVisualAttributes > result;
20112 int val1 ;
20113 int ecode1 = 0 ;
20114 PyObject * obj0 = 0 ;
20115 char * kwnames[] = {
20116 (char *) "variant", NULL
20117 };
20118
20119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20120 if (obj0) {
20121 ecode1 = SWIG_AsVal_int(obj0, &val1);
20122 if (!SWIG_IsOK(ecode1)) {
20123 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20124 }
20125 arg1 = static_cast< wxWindowVariant >(val1);
20126 }
20127 {
20128 if (!wxPyCheckForApp()) SWIG_fail;
20129 PyThreadState* __tstate = wxPyBeginAllowThreads();
20130 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20131 wxPyEndAllowThreads(__tstate);
20132 if (PyErr_Occurred()) SWIG_fail;
20133 }
20134 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20135 return resultobj;
20136 fail:
20137 return NULL;
20138 }
20139
20140
20141 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20142 PyObject *obj;
20143 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20144 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20145 return SWIG_Py_Void();
20146 }
20147
20148 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20149 PyObject *resultobj = 0;
20150 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20151 int arg2 = (int) 0 ;
20152 int arg3 = (int) -1 ;
20153 int arg4 = (int) -1 ;
20154 wxBookCtrlBaseEvent *result = 0 ;
20155 int val1 ;
20156 int ecode1 = 0 ;
20157 int val2 ;
20158 int ecode2 = 0 ;
20159 int val3 ;
20160 int ecode3 = 0 ;
20161 int val4 ;
20162 int ecode4 = 0 ;
20163 PyObject * obj0 = 0 ;
20164 PyObject * obj1 = 0 ;
20165 PyObject * obj2 = 0 ;
20166 PyObject * obj3 = 0 ;
20167 char * kwnames[] = {
20168 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20169 };
20170
20171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20172 if (obj0) {
20173 ecode1 = SWIG_AsVal_int(obj0, &val1);
20174 if (!SWIG_IsOK(ecode1)) {
20175 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20176 }
20177 arg1 = static_cast< wxEventType >(val1);
20178 }
20179 if (obj1) {
20180 ecode2 = SWIG_AsVal_int(obj1, &val2);
20181 if (!SWIG_IsOK(ecode2)) {
20182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20183 }
20184 arg2 = static_cast< int >(val2);
20185 }
20186 if (obj2) {
20187 ecode3 = SWIG_AsVal_int(obj2, &val3);
20188 if (!SWIG_IsOK(ecode3)) {
20189 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20190 }
20191 arg3 = static_cast< int >(val3);
20192 }
20193 if (obj3) {
20194 ecode4 = SWIG_AsVal_int(obj3, &val4);
20195 if (!SWIG_IsOK(ecode4)) {
20196 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20197 }
20198 arg4 = static_cast< int >(val4);
20199 }
20200 {
20201 PyThreadState* __tstate = wxPyBeginAllowThreads();
20202 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20203 wxPyEndAllowThreads(__tstate);
20204 if (PyErr_Occurred()) SWIG_fail;
20205 }
20206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20207 return resultobj;
20208 fail:
20209 return NULL;
20210 }
20211
20212
20213 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20214 PyObject *resultobj = 0;
20215 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20216 int result;
20217 void *argp1 = 0 ;
20218 int res1 = 0 ;
20219 PyObject *swig_obj[1] ;
20220
20221 if (!args) SWIG_fail;
20222 swig_obj[0] = args;
20223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20224 if (!SWIG_IsOK(res1)) {
20225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20226 }
20227 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20228 {
20229 PyThreadState* __tstate = wxPyBeginAllowThreads();
20230 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20231 wxPyEndAllowThreads(__tstate);
20232 if (PyErr_Occurred()) SWIG_fail;
20233 }
20234 resultobj = SWIG_From_int(static_cast< int >(result));
20235 return resultobj;
20236 fail:
20237 return NULL;
20238 }
20239
20240
20241 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20242 PyObject *resultobj = 0;
20243 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20244 int arg2 ;
20245 void *argp1 = 0 ;
20246 int res1 = 0 ;
20247 int val2 ;
20248 int ecode2 = 0 ;
20249 PyObject * obj0 = 0 ;
20250 PyObject * obj1 = 0 ;
20251 char * kwnames[] = {
20252 (char *) "self",(char *) "nSel", NULL
20253 };
20254
20255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20257 if (!SWIG_IsOK(res1)) {
20258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20259 }
20260 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20261 ecode2 = SWIG_AsVal_int(obj1, &val2);
20262 if (!SWIG_IsOK(ecode2)) {
20263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20264 }
20265 arg2 = static_cast< int >(val2);
20266 {
20267 PyThreadState* __tstate = wxPyBeginAllowThreads();
20268 (arg1)->SetSelection(arg2);
20269 wxPyEndAllowThreads(__tstate);
20270 if (PyErr_Occurred()) SWIG_fail;
20271 }
20272 resultobj = SWIG_Py_Void();
20273 return resultobj;
20274 fail:
20275 return NULL;
20276 }
20277
20278
20279 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20280 PyObject *resultobj = 0;
20281 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20282 int result;
20283 void *argp1 = 0 ;
20284 int res1 = 0 ;
20285 PyObject *swig_obj[1] ;
20286
20287 if (!args) SWIG_fail;
20288 swig_obj[0] = args;
20289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20290 if (!SWIG_IsOK(res1)) {
20291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20292 }
20293 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20294 {
20295 PyThreadState* __tstate = wxPyBeginAllowThreads();
20296 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20297 wxPyEndAllowThreads(__tstate);
20298 if (PyErr_Occurred()) SWIG_fail;
20299 }
20300 resultobj = SWIG_From_int(static_cast< int >(result));
20301 return resultobj;
20302 fail:
20303 return NULL;
20304 }
20305
20306
20307 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20308 PyObject *resultobj = 0;
20309 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20310 int arg2 ;
20311 void *argp1 = 0 ;
20312 int res1 = 0 ;
20313 int val2 ;
20314 int ecode2 = 0 ;
20315 PyObject * obj0 = 0 ;
20316 PyObject * obj1 = 0 ;
20317 char * kwnames[] = {
20318 (char *) "self",(char *) "nOldSel", NULL
20319 };
20320
20321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20323 if (!SWIG_IsOK(res1)) {
20324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20325 }
20326 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20327 ecode2 = SWIG_AsVal_int(obj1, &val2);
20328 if (!SWIG_IsOK(ecode2)) {
20329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20330 }
20331 arg2 = static_cast< int >(val2);
20332 {
20333 PyThreadState* __tstate = wxPyBeginAllowThreads();
20334 (arg1)->SetOldSelection(arg2);
20335 wxPyEndAllowThreads(__tstate);
20336 if (PyErr_Occurred()) SWIG_fail;
20337 }
20338 resultobj = SWIG_Py_Void();
20339 return resultobj;
20340 fail:
20341 return NULL;
20342 }
20343
20344
20345 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20346 PyObject *obj;
20347 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20348 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20349 return SWIG_Py_Void();
20350 }
20351
20352 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20353 return SWIG_Python_InitShadowInstance(args);
20354 }
20355
20356 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20357 PyObject *resultobj = 0;
20358 wxWindow *arg1 = (wxWindow *) 0 ;
20359 int arg2 = (int) -1 ;
20360 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20361 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20362 wxSize const &arg4_defvalue = wxDefaultSize ;
20363 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20364 long arg5 = (long) 0 ;
20365 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20366 wxString *arg6 = (wxString *) &arg6_defvalue ;
20367 wxNotebook *result = 0 ;
20368 void *argp1 = 0 ;
20369 int res1 = 0 ;
20370 int val2 ;
20371 int ecode2 = 0 ;
20372 wxPoint temp3 ;
20373 wxSize temp4 ;
20374 long val5 ;
20375 int ecode5 = 0 ;
20376 bool temp6 = false ;
20377 PyObject * obj0 = 0 ;
20378 PyObject * obj1 = 0 ;
20379 PyObject * obj2 = 0 ;
20380 PyObject * obj3 = 0 ;
20381 PyObject * obj4 = 0 ;
20382 PyObject * obj5 = 0 ;
20383 char * kwnames[] = {
20384 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20385 };
20386
20387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20389 if (!SWIG_IsOK(res1)) {
20390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20391 }
20392 arg1 = reinterpret_cast< wxWindow * >(argp1);
20393 if (obj1) {
20394 ecode2 = SWIG_AsVal_int(obj1, &val2);
20395 if (!SWIG_IsOK(ecode2)) {
20396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20397 }
20398 arg2 = static_cast< int >(val2);
20399 }
20400 if (obj2) {
20401 {
20402 arg3 = &temp3;
20403 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20404 }
20405 }
20406 if (obj3) {
20407 {
20408 arg4 = &temp4;
20409 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20410 }
20411 }
20412 if (obj4) {
20413 ecode5 = SWIG_AsVal_long(obj4, &val5);
20414 if (!SWIG_IsOK(ecode5)) {
20415 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20416 }
20417 arg5 = static_cast< long >(val5);
20418 }
20419 if (obj5) {
20420 {
20421 arg6 = wxString_in_helper(obj5);
20422 if (arg6 == NULL) SWIG_fail;
20423 temp6 = true;
20424 }
20425 }
20426 {
20427 if (!wxPyCheckForApp()) SWIG_fail;
20428 PyThreadState* __tstate = wxPyBeginAllowThreads();
20429 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20430 wxPyEndAllowThreads(__tstate);
20431 if (PyErr_Occurred()) SWIG_fail;
20432 }
20433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20434 {
20435 if (temp6)
20436 delete arg6;
20437 }
20438 return resultobj;
20439 fail:
20440 {
20441 if (temp6)
20442 delete arg6;
20443 }
20444 return NULL;
20445 }
20446
20447
20448 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20449 PyObject *resultobj = 0;
20450 wxNotebook *result = 0 ;
20451
20452 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20453 {
20454 if (!wxPyCheckForApp()) SWIG_fail;
20455 PyThreadState* __tstate = wxPyBeginAllowThreads();
20456 result = (wxNotebook *)new wxNotebook();
20457 wxPyEndAllowThreads(__tstate);
20458 if (PyErr_Occurred()) SWIG_fail;
20459 }
20460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20461 return resultobj;
20462 fail:
20463 return NULL;
20464 }
20465
20466
20467 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20468 PyObject *resultobj = 0;
20469 wxNotebook *arg1 = (wxNotebook *) 0 ;
20470 wxWindow *arg2 = (wxWindow *) 0 ;
20471 int arg3 = (int) -1 ;
20472 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20473 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20474 wxSize const &arg5_defvalue = wxDefaultSize ;
20475 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20476 long arg6 = (long) 0 ;
20477 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20478 wxString *arg7 = (wxString *) &arg7_defvalue ;
20479 bool result;
20480 void *argp1 = 0 ;
20481 int res1 = 0 ;
20482 void *argp2 = 0 ;
20483 int res2 = 0 ;
20484 int val3 ;
20485 int ecode3 = 0 ;
20486 wxPoint temp4 ;
20487 wxSize temp5 ;
20488 long val6 ;
20489 int ecode6 = 0 ;
20490 bool temp7 = false ;
20491 PyObject * obj0 = 0 ;
20492 PyObject * obj1 = 0 ;
20493 PyObject * obj2 = 0 ;
20494 PyObject * obj3 = 0 ;
20495 PyObject * obj4 = 0 ;
20496 PyObject * obj5 = 0 ;
20497 PyObject * obj6 = 0 ;
20498 char * kwnames[] = {
20499 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20500 };
20501
20502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20504 if (!SWIG_IsOK(res1)) {
20505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20506 }
20507 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20508 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20509 if (!SWIG_IsOK(res2)) {
20510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20511 }
20512 arg2 = reinterpret_cast< wxWindow * >(argp2);
20513 if (obj2) {
20514 ecode3 = SWIG_AsVal_int(obj2, &val3);
20515 if (!SWIG_IsOK(ecode3)) {
20516 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20517 }
20518 arg3 = static_cast< int >(val3);
20519 }
20520 if (obj3) {
20521 {
20522 arg4 = &temp4;
20523 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20524 }
20525 }
20526 if (obj4) {
20527 {
20528 arg5 = &temp5;
20529 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20530 }
20531 }
20532 if (obj5) {
20533 ecode6 = SWIG_AsVal_long(obj5, &val6);
20534 if (!SWIG_IsOK(ecode6)) {
20535 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20536 }
20537 arg6 = static_cast< long >(val6);
20538 }
20539 if (obj6) {
20540 {
20541 arg7 = wxString_in_helper(obj6);
20542 if (arg7 == NULL) SWIG_fail;
20543 temp7 = true;
20544 }
20545 }
20546 {
20547 PyThreadState* __tstate = wxPyBeginAllowThreads();
20548 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20549 wxPyEndAllowThreads(__tstate);
20550 if (PyErr_Occurred()) SWIG_fail;
20551 }
20552 {
20553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20554 }
20555 {
20556 if (temp7)
20557 delete arg7;
20558 }
20559 return resultobj;
20560 fail:
20561 {
20562 if (temp7)
20563 delete arg7;
20564 }
20565 return NULL;
20566 }
20567
20568
20569 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20570 PyObject *resultobj = 0;
20571 wxNotebook *arg1 = (wxNotebook *) 0 ;
20572 int result;
20573 void *argp1 = 0 ;
20574 int res1 = 0 ;
20575 PyObject *swig_obj[1] ;
20576
20577 if (!args) SWIG_fail;
20578 swig_obj[0] = args;
20579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20580 if (!SWIG_IsOK(res1)) {
20581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20582 }
20583 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20584 {
20585 PyThreadState* __tstate = wxPyBeginAllowThreads();
20586 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20587 wxPyEndAllowThreads(__tstate);
20588 if (PyErr_Occurred()) SWIG_fail;
20589 }
20590 resultobj = SWIG_From_int(static_cast< int >(result));
20591 return resultobj;
20592 fail:
20593 return NULL;
20594 }
20595
20596
20597 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20598 PyObject *resultobj = 0;
20599 wxNotebook *arg1 = (wxNotebook *) 0 ;
20600 wxSize *arg2 = 0 ;
20601 void *argp1 = 0 ;
20602 int res1 = 0 ;
20603 wxSize temp2 ;
20604 PyObject * obj0 = 0 ;
20605 PyObject * obj1 = 0 ;
20606 char * kwnames[] = {
20607 (char *) "self",(char *) "padding", NULL
20608 };
20609
20610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20612 if (!SWIG_IsOK(res1)) {
20613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20614 }
20615 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20616 {
20617 arg2 = &temp2;
20618 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20619 }
20620 {
20621 PyThreadState* __tstate = wxPyBeginAllowThreads();
20622 (arg1)->SetPadding((wxSize const &)*arg2);
20623 wxPyEndAllowThreads(__tstate);
20624 if (PyErr_Occurred()) SWIG_fail;
20625 }
20626 resultobj = SWIG_Py_Void();
20627 return resultobj;
20628 fail:
20629 return NULL;
20630 }
20631
20632
20633 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20634 PyObject *resultobj = 0;
20635 wxNotebook *arg1 = (wxNotebook *) 0 ;
20636 wxSize *arg2 = 0 ;
20637 void *argp1 = 0 ;
20638 int res1 = 0 ;
20639 wxSize temp2 ;
20640 PyObject * obj0 = 0 ;
20641 PyObject * obj1 = 0 ;
20642 char * kwnames[] = {
20643 (char *) "self",(char *) "sz", NULL
20644 };
20645
20646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20648 if (!SWIG_IsOK(res1)) {
20649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20650 }
20651 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20652 {
20653 arg2 = &temp2;
20654 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20655 }
20656 {
20657 PyThreadState* __tstate = wxPyBeginAllowThreads();
20658 (arg1)->SetTabSize((wxSize const &)*arg2);
20659 wxPyEndAllowThreads(__tstate);
20660 if (PyErr_Occurred()) SWIG_fail;
20661 }
20662 resultobj = SWIG_Py_Void();
20663 return resultobj;
20664 fail:
20665 return NULL;
20666 }
20667
20668
20669 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20670 PyObject *resultobj = 0;
20671 wxNotebook *arg1 = (wxNotebook *) 0 ;
20672 wxColour result;
20673 void *argp1 = 0 ;
20674 int res1 = 0 ;
20675 PyObject *swig_obj[1] ;
20676
20677 if (!args) SWIG_fail;
20678 swig_obj[0] = args;
20679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20680 if (!SWIG_IsOK(res1)) {
20681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20682 }
20683 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20684 {
20685 PyThreadState* __tstate = wxPyBeginAllowThreads();
20686 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20687 wxPyEndAllowThreads(__tstate);
20688 if (PyErr_Occurred()) SWIG_fail;
20689 }
20690 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20691 return resultobj;
20692 fail:
20693 return NULL;
20694 }
20695
20696
20697 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20698 PyObject *resultobj = 0;
20699 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20700 SwigValueWrapper<wxVisualAttributes > result;
20701 int val1 ;
20702 int ecode1 = 0 ;
20703 PyObject * obj0 = 0 ;
20704 char * kwnames[] = {
20705 (char *) "variant", NULL
20706 };
20707
20708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20709 if (obj0) {
20710 ecode1 = SWIG_AsVal_int(obj0, &val1);
20711 if (!SWIG_IsOK(ecode1)) {
20712 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20713 }
20714 arg1 = static_cast< wxWindowVariant >(val1);
20715 }
20716 {
20717 if (!wxPyCheckForApp()) SWIG_fail;
20718 PyThreadState* __tstate = wxPyBeginAllowThreads();
20719 result = wxNotebook::GetClassDefaultAttributes(arg1);
20720 wxPyEndAllowThreads(__tstate);
20721 if (PyErr_Occurred()) SWIG_fail;
20722 }
20723 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20724 return resultobj;
20725 fail:
20726 return NULL;
20727 }
20728
20729
20730 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20731 PyObject *obj;
20732 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20733 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20734 return SWIG_Py_Void();
20735 }
20736
20737 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20738 return SWIG_Python_InitShadowInstance(args);
20739 }
20740
20741 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20742 PyObject *resultobj = 0;
20743 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20744 int arg2 = (int) 0 ;
20745 int arg3 = (int) -1 ;
20746 int arg4 = (int) -1 ;
20747 wxNotebookEvent *result = 0 ;
20748 int val1 ;
20749 int ecode1 = 0 ;
20750 int val2 ;
20751 int ecode2 = 0 ;
20752 int val3 ;
20753 int ecode3 = 0 ;
20754 int val4 ;
20755 int ecode4 = 0 ;
20756 PyObject * obj0 = 0 ;
20757 PyObject * obj1 = 0 ;
20758 PyObject * obj2 = 0 ;
20759 PyObject * obj3 = 0 ;
20760 char * kwnames[] = {
20761 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20762 };
20763
20764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20765 if (obj0) {
20766 ecode1 = SWIG_AsVal_int(obj0, &val1);
20767 if (!SWIG_IsOK(ecode1)) {
20768 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20769 }
20770 arg1 = static_cast< wxEventType >(val1);
20771 }
20772 if (obj1) {
20773 ecode2 = SWIG_AsVal_int(obj1, &val2);
20774 if (!SWIG_IsOK(ecode2)) {
20775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20776 }
20777 arg2 = static_cast< int >(val2);
20778 }
20779 if (obj2) {
20780 ecode3 = SWIG_AsVal_int(obj2, &val3);
20781 if (!SWIG_IsOK(ecode3)) {
20782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20783 }
20784 arg3 = static_cast< int >(val3);
20785 }
20786 if (obj3) {
20787 ecode4 = SWIG_AsVal_int(obj3, &val4);
20788 if (!SWIG_IsOK(ecode4)) {
20789 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20790 }
20791 arg4 = static_cast< int >(val4);
20792 }
20793 {
20794 PyThreadState* __tstate = wxPyBeginAllowThreads();
20795 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20796 wxPyEndAllowThreads(__tstate);
20797 if (PyErr_Occurred()) SWIG_fail;
20798 }
20799 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20800 return resultobj;
20801 fail:
20802 return NULL;
20803 }
20804
20805
20806 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20807 PyObject *obj;
20808 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20809 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20810 return SWIG_Py_Void();
20811 }
20812
20813 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20814 return SWIG_Python_InitShadowInstance(args);
20815 }
20816
20817 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20818 PyObject *resultobj = 0;
20819 wxWindow *arg1 = (wxWindow *) 0 ;
20820 int arg2 = (int) -1 ;
20821 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20822 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20823 wxSize const &arg4_defvalue = wxDefaultSize ;
20824 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20825 long arg5 = (long) 0 ;
20826 wxString const &arg6_defvalue = wxPyEmptyString ;
20827 wxString *arg6 = (wxString *) &arg6_defvalue ;
20828 wxListbook *result = 0 ;
20829 void *argp1 = 0 ;
20830 int res1 = 0 ;
20831 int val2 ;
20832 int ecode2 = 0 ;
20833 wxPoint temp3 ;
20834 wxSize temp4 ;
20835 long val5 ;
20836 int ecode5 = 0 ;
20837 bool temp6 = false ;
20838 PyObject * obj0 = 0 ;
20839 PyObject * obj1 = 0 ;
20840 PyObject * obj2 = 0 ;
20841 PyObject * obj3 = 0 ;
20842 PyObject * obj4 = 0 ;
20843 PyObject * obj5 = 0 ;
20844 char * kwnames[] = {
20845 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20846 };
20847
20848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20850 if (!SWIG_IsOK(res1)) {
20851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20852 }
20853 arg1 = reinterpret_cast< wxWindow * >(argp1);
20854 if (obj1) {
20855 ecode2 = SWIG_AsVal_int(obj1, &val2);
20856 if (!SWIG_IsOK(ecode2)) {
20857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20858 }
20859 arg2 = static_cast< int >(val2);
20860 }
20861 if (obj2) {
20862 {
20863 arg3 = &temp3;
20864 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20865 }
20866 }
20867 if (obj3) {
20868 {
20869 arg4 = &temp4;
20870 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20871 }
20872 }
20873 if (obj4) {
20874 ecode5 = SWIG_AsVal_long(obj4, &val5);
20875 if (!SWIG_IsOK(ecode5)) {
20876 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20877 }
20878 arg5 = static_cast< long >(val5);
20879 }
20880 if (obj5) {
20881 {
20882 arg6 = wxString_in_helper(obj5);
20883 if (arg6 == NULL) SWIG_fail;
20884 temp6 = true;
20885 }
20886 }
20887 {
20888 if (!wxPyCheckForApp()) SWIG_fail;
20889 PyThreadState* __tstate = wxPyBeginAllowThreads();
20890 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20891 wxPyEndAllowThreads(__tstate);
20892 if (PyErr_Occurred()) SWIG_fail;
20893 }
20894 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20895 {
20896 if (temp6)
20897 delete arg6;
20898 }
20899 return resultobj;
20900 fail:
20901 {
20902 if (temp6)
20903 delete arg6;
20904 }
20905 return NULL;
20906 }
20907
20908
20909 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20910 PyObject *resultobj = 0;
20911 wxListbook *result = 0 ;
20912
20913 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20914 {
20915 if (!wxPyCheckForApp()) SWIG_fail;
20916 PyThreadState* __tstate = wxPyBeginAllowThreads();
20917 result = (wxListbook *)new wxListbook();
20918 wxPyEndAllowThreads(__tstate);
20919 if (PyErr_Occurred()) SWIG_fail;
20920 }
20921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20922 return resultobj;
20923 fail:
20924 return NULL;
20925 }
20926
20927
20928 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20929 PyObject *resultobj = 0;
20930 wxListbook *arg1 = (wxListbook *) 0 ;
20931 wxWindow *arg2 = (wxWindow *) 0 ;
20932 int arg3 = (int) -1 ;
20933 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20934 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20935 wxSize const &arg5_defvalue = wxDefaultSize ;
20936 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20937 long arg6 = (long) 0 ;
20938 wxString const &arg7_defvalue = wxPyEmptyString ;
20939 wxString *arg7 = (wxString *) &arg7_defvalue ;
20940 bool result;
20941 void *argp1 = 0 ;
20942 int res1 = 0 ;
20943 void *argp2 = 0 ;
20944 int res2 = 0 ;
20945 int val3 ;
20946 int ecode3 = 0 ;
20947 wxPoint temp4 ;
20948 wxSize temp5 ;
20949 long val6 ;
20950 int ecode6 = 0 ;
20951 bool temp7 = false ;
20952 PyObject * obj0 = 0 ;
20953 PyObject * obj1 = 0 ;
20954 PyObject * obj2 = 0 ;
20955 PyObject * obj3 = 0 ;
20956 PyObject * obj4 = 0 ;
20957 PyObject * obj5 = 0 ;
20958 PyObject * obj6 = 0 ;
20959 char * kwnames[] = {
20960 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20961 };
20962
20963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20965 if (!SWIG_IsOK(res1)) {
20966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20967 }
20968 arg1 = reinterpret_cast< wxListbook * >(argp1);
20969 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20970 if (!SWIG_IsOK(res2)) {
20971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20972 }
20973 arg2 = reinterpret_cast< wxWindow * >(argp2);
20974 if (obj2) {
20975 ecode3 = SWIG_AsVal_int(obj2, &val3);
20976 if (!SWIG_IsOK(ecode3)) {
20977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20978 }
20979 arg3 = static_cast< int >(val3);
20980 }
20981 if (obj3) {
20982 {
20983 arg4 = &temp4;
20984 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20985 }
20986 }
20987 if (obj4) {
20988 {
20989 arg5 = &temp5;
20990 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20991 }
20992 }
20993 if (obj5) {
20994 ecode6 = SWIG_AsVal_long(obj5, &val6);
20995 if (!SWIG_IsOK(ecode6)) {
20996 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
20997 }
20998 arg6 = static_cast< long >(val6);
20999 }
21000 if (obj6) {
21001 {
21002 arg7 = wxString_in_helper(obj6);
21003 if (arg7 == NULL) SWIG_fail;
21004 temp7 = true;
21005 }
21006 }
21007 {
21008 PyThreadState* __tstate = wxPyBeginAllowThreads();
21009 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21010 wxPyEndAllowThreads(__tstate);
21011 if (PyErr_Occurred()) SWIG_fail;
21012 }
21013 {
21014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21015 }
21016 {
21017 if (temp7)
21018 delete arg7;
21019 }
21020 return resultobj;
21021 fail:
21022 {
21023 if (temp7)
21024 delete arg7;
21025 }
21026 return NULL;
21027 }
21028
21029
21030 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21031 PyObject *resultobj = 0;
21032 wxListbook *arg1 = (wxListbook *) 0 ;
21033 wxListView *result = 0 ;
21034 void *argp1 = 0 ;
21035 int res1 = 0 ;
21036 PyObject *swig_obj[1] ;
21037
21038 if (!args) SWIG_fail;
21039 swig_obj[0] = args;
21040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21041 if (!SWIG_IsOK(res1)) {
21042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21043 }
21044 arg1 = reinterpret_cast< wxListbook * >(argp1);
21045 {
21046 PyThreadState* __tstate = wxPyBeginAllowThreads();
21047 result = (wxListView *)(arg1)->GetListView();
21048 wxPyEndAllowThreads(__tstate);
21049 if (PyErr_Occurred()) SWIG_fail;
21050 }
21051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21052 return resultobj;
21053 fail:
21054 return NULL;
21055 }
21056
21057
21058 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21059 PyObject *obj;
21060 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21061 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21062 return SWIG_Py_Void();
21063 }
21064
21065 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21066 return SWIG_Python_InitShadowInstance(args);
21067 }
21068
21069 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21070 PyObject *resultobj = 0;
21071 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21072 int arg2 = (int) 0 ;
21073 int arg3 = (int) -1 ;
21074 int arg4 = (int) -1 ;
21075 wxListbookEvent *result = 0 ;
21076 int val1 ;
21077 int ecode1 = 0 ;
21078 int val2 ;
21079 int ecode2 = 0 ;
21080 int val3 ;
21081 int ecode3 = 0 ;
21082 int val4 ;
21083 int ecode4 = 0 ;
21084 PyObject * obj0 = 0 ;
21085 PyObject * obj1 = 0 ;
21086 PyObject * obj2 = 0 ;
21087 PyObject * obj3 = 0 ;
21088 char * kwnames[] = {
21089 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21090 };
21091
21092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21093 if (obj0) {
21094 ecode1 = SWIG_AsVal_int(obj0, &val1);
21095 if (!SWIG_IsOK(ecode1)) {
21096 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21097 }
21098 arg1 = static_cast< wxEventType >(val1);
21099 }
21100 if (obj1) {
21101 ecode2 = SWIG_AsVal_int(obj1, &val2);
21102 if (!SWIG_IsOK(ecode2)) {
21103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21104 }
21105 arg2 = static_cast< int >(val2);
21106 }
21107 if (obj2) {
21108 ecode3 = SWIG_AsVal_int(obj2, &val3);
21109 if (!SWIG_IsOK(ecode3)) {
21110 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21111 }
21112 arg3 = static_cast< int >(val3);
21113 }
21114 if (obj3) {
21115 ecode4 = SWIG_AsVal_int(obj3, &val4);
21116 if (!SWIG_IsOK(ecode4)) {
21117 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21118 }
21119 arg4 = static_cast< int >(val4);
21120 }
21121 {
21122 PyThreadState* __tstate = wxPyBeginAllowThreads();
21123 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21124 wxPyEndAllowThreads(__tstate);
21125 if (PyErr_Occurred()) SWIG_fail;
21126 }
21127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21128 return resultobj;
21129 fail:
21130 return NULL;
21131 }
21132
21133
21134 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21135 PyObject *obj;
21136 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21137 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21138 return SWIG_Py_Void();
21139 }
21140
21141 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21142 return SWIG_Python_InitShadowInstance(args);
21143 }
21144
21145 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21146 PyObject *resultobj = 0;
21147 wxWindow *arg1 = (wxWindow *) 0 ;
21148 int arg2 ;
21149 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21150 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21151 wxSize const &arg4_defvalue = wxDefaultSize ;
21152 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21153 long arg5 = (long) 0 ;
21154 wxString const &arg6_defvalue = wxPyEmptyString ;
21155 wxString *arg6 = (wxString *) &arg6_defvalue ;
21156 wxChoicebook *result = 0 ;
21157 void *argp1 = 0 ;
21158 int res1 = 0 ;
21159 int val2 ;
21160 int ecode2 = 0 ;
21161 wxPoint temp3 ;
21162 wxSize temp4 ;
21163 long val5 ;
21164 int ecode5 = 0 ;
21165 bool temp6 = false ;
21166 PyObject * obj0 = 0 ;
21167 PyObject * obj1 = 0 ;
21168 PyObject * obj2 = 0 ;
21169 PyObject * obj3 = 0 ;
21170 PyObject * obj4 = 0 ;
21171 PyObject * obj5 = 0 ;
21172 char * kwnames[] = {
21173 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21174 };
21175
21176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21178 if (!SWIG_IsOK(res1)) {
21179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21180 }
21181 arg1 = reinterpret_cast< wxWindow * >(argp1);
21182 ecode2 = SWIG_AsVal_int(obj1, &val2);
21183 if (!SWIG_IsOK(ecode2)) {
21184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21185 }
21186 arg2 = static_cast< int >(val2);
21187 if (obj2) {
21188 {
21189 arg3 = &temp3;
21190 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21191 }
21192 }
21193 if (obj3) {
21194 {
21195 arg4 = &temp4;
21196 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21197 }
21198 }
21199 if (obj4) {
21200 ecode5 = SWIG_AsVal_long(obj4, &val5);
21201 if (!SWIG_IsOK(ecode5)) {
21202 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21203 }
21204 arg5 = static_cast< long >(val5);
21205 }
21206 if (obj5) {
21207 {
21208 arg6 = wxString_in_helper(obj5);
21209 if (arg6 == NULL) SWIG_fail;
21210 temp6 = true;
21211 }
21212 }
21213 {
21214 if (!wxPyCheckForApp()) SWIG_fail;
21215 PyThreadState* __tstate = wxPyBeginAllowThreads();
21216 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21217 wxPyEndAllowThreads(__tstate);
21218 if (PyErr_Occurred()) SWIG_fail;
21219 }
21220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21221 {
21222 if (temp6)
21223 delete arg6;
21224 }
21225 return resultobj;
21226 fail:
21227 {
21228 if (temp6)
21229 delete arg6;
21230 }
21231 return NULL;
21232 }
21233
21234
21235 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21236 PyObject *resultobj = 0;
21237 wxChoicebook *result = 0 ;
21238
21239 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21240 {
21241 if (!wxPyCheckForApp()) SWIG_fail;
21242 PyThreadState* __tstate = wxPyBeginAllowThreads();
21243 result = (wxChoicebook *)new wxChoicebook();
21244 wxPyEndAllowThreads(__tstate);
21245 if (PyErr_Occurred()) SWIG_fail;
21246 }
21247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21248 return resultobj;
21249 fail:
21250 return NULL;
21251 }
21252
21253
21254 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21255 PyObject *resultobj = 0;
21256 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21257 wxWindow *arg2 = (wxWindow *) 0 ;
21258 int arg3 ;
21259 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21260 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21261 wxSize const &arg5_defvalue = wxDefaultSize ;
21262 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21263 long arg6 = (long) 0 ;
21264 wxString const &arg7_defvalue = wxPyEmptyString ;
21265 wxString *arg7 = (wxString *) &arg7_defvalue ;
21266 bool result;
21267 void *argp1 = 0 ;
21268 int res1 = 0 ;
21269 void *argp2 = 0 ;
21270 int res2 = 0 ;
21271 int val3 ;
21272 int ecode3 = 0 ;
21273 wxPoint temp4 ;
21274 wxSize temp5 ;
21275 long val6 ;
21276 int ecode6 = 0 ;
21277 bool temp7 = false ;
21278 PyObject * obj0 = 0 ;
21279 PyObject * obj1 = 0 ;
21280 PyObject * obj2 = 0 ;
21281 PyObject * obj3 = 0 ;
21282 PyObject * obj4 = 0 ;
21283 PyObject * obj5 = 0 ;
21284 PyObject * obj6 = 0 ;
21285 char * kwnames[] = {
21286 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21287 };
21288
21289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21291 if (!SWIG_IsOK(res1)) {
21292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21293 }
21294 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21295 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21296 if (!SWIG_IsOK(res2)) {
21297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21298 }
21299 arg2 = reinterpret_cast< wxWindow * >(argp2);
21300 ecode3 = SWIG_AsVal_int(obj2, &val3);
21301 if (!SWIG_IsOK(ecode3)) {
21302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21303 }
21304 arg3 = static_cast< int >(val3);
21305 if (obj3) {
21306 {
21307 arg4 = &temp4;
21308 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21309 }
21310 }
21311 if (obj4) {
21312 {
21313 arg5 = &temp5;
21314 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21315 }
21316 }
21317 if (obj5) {
21318 ecode6 = SWIG_AsVal_long(obj5, &val6);
21319 if (!SWIG_IsOK(ecode6)) {
21320 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21321 }
21322 arg6 = static_cast< long >(val6);
21323 }
21324 if (obj6) {
21325 {
21326 arg7 = wxString_in_helper(obj6);
21327 if (arg7 == NULL) SWIG_fail;
21328 temp7 = true;
21329 }
21330 }
21331 {
21332 PyThreadState* __tstate = wxPyBeginAllowThreads();
21333 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21334 wxPyEndAllowThreads(__tstate);
21335 if (PyErr_Occurred()) SWIG_fail;
21336 }
21337 {
21338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21339 }
21340 {
21341 if (temp7)
21342 delete arg7;
21343 }
21344 return resultobj;
21345 fail:
21346 {
21347 if (temp7)
21348 delete arg7;
21349 }
21350 return NULL;
21351 }
21352
21353
21354 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21355 PyObject *resultobj = 0;
21356 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21357 wxChoice *result = 0 ;
21358 void *argp1 = 0 ;
21359 int res1 = 0 ;
21360 PyObject *swig_obj[1] ;
21361
21362 if (!args) SWIG_fail;
21363 swig_obj[0] = args;
21364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21365 if (!SWIG_IsOK(res1)) {
21366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21367 }
21368 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21369 {
21370 PyThreadState* __tstate = wxPyBeginAllowThreads();
21371 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21372 wxPyEndAllowThreads(__tstate);
21373 if (PyErr_Occurred()) SWIG_fail;
21374 }
21375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21376 return resultobj;
21377 fail:
21378 return NULL;
21379 }
21380
21381
21382 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21383 PyObject *obj;
21384 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21385 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21386 return SWIG_Py_Void();
21387 }
21388
21389 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21390 return SWIG_Python_InitShadowInstance(args);
21391 }
21392
21393 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21394 PyObject *resultobj = 0;
21395 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21396 int arg2 = (int) 0 ;
21397 int arg3 = (int) -1 ;
21398 int arg4 = (int) -1 ;
21399 wxChoicebookEvent *result = 0 ;
21400 int val1 ;
21401 int ecode1 = 0 ;
21402 int val2 ;
21403 int ecode2 = 0 ;
21404 int val3 ;
21405 int ecode3 = 0 ;
21406 int val4 ;
21407 int ecode4 = 0 ;
21408 PyObject * obj0 = 0 ;
21409 PyObject * obj1 = 0 ;
21410 PyObject * obj2 = 0 ;
21411 PyObject * obj3 = 0 ;
21412 char * kwnames[] = {
21413 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21414 };
21415
21416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21417 if (obj0) {
21418 ecode1 = SWIG_AsVal_int(obj0, &val1);
21419 if (!SWIG_IsOK(ecode1)) {
21420 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21421 }
21422 arg1 = static_cast< wxEventType >(val1);
21423 }
21424 if (obj1) {
21425 ecode2 = SWIG_AsVal_int(obj1, &val2);
21426 if (!SWIG_IsOK(ecode2)) {
21427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21428 }
21429 arg2 = static_cast< int >(val2);
21430 }
21431 if (obj2) {
21432 ecode3 = SWIG_AsVal_int(obj2, &val3);
21433 if (!SWIG_IsOK(ecode3)) {
21434 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21435 }
21436 arg3 = static_cast< int >(val3);
21437 }
21438 if (obj3) {
21439 ecode4 = SWIG_AsVal_int(obj3, &val4);
21440 if (!SWIG_IsOK(ecode4)) {
21441 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21442 }
21443 arg4 = static_cast< int >(val4);
21444 }
21445 {
21446 PyThreadState* __tstate = wxPyBeginAllowThreads();
21447 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21448 wxPyEndAllowThreads(__tstate);
21449 if (PyErr_Occurred()) SWIG_fail;
21450 }
21451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21452 return resultobj;
21453 fail:
21454 return NULL;
21455 }
21456
21457
21458 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21459 PyObject *obj;
21460 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21461 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21462 return SWIG_Py_Void();
21463 }
21464
21465 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21466 return SWIG_Python_InitShadowInstance(args);
21467 }
21468
21469 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21470 PyObject *resultobj = 0;
21471 wxWindow *arg1 = (wxWindow *) 0 ;
21472 int arg2 ;
21473 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21474 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21475 wxSize const &arg4_defvalue = wxDefaultSize ;
21476 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21477 long arg5 = (long) wxBK_DEFAULT ;
21478 wxString const &arg6_defvalue = wxPyEmptyString ;
21479 wxString *arg6 = (wxString *) &arg6_defvalue ;
21480 wxTreebook *result = 0 ;
21481 void *argp1 = 0 ;
21482 int res1 = 0 ;
21483 int val2 ;
21484 int ecode2 = 0 ;
21485 wxPoint temp3 ;
21486 wxSize temp4 ;
21487 long val5 ;
21488 int ecode5 = 0 ;
21489 bool temp6 = false ;
21490 PyObject * obj0 = 0 ;
21491 PyObject * obj1 = 0 ;
21492 PyObject * obj2 = 0 ;
21493 PyObject * obj3 = 0 ;
21494 PyObject * obj4 = 0 ;
21495 PyObject * obj5 = 0 ;
21496 char * kwnames[] = {
21497 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21498 };
21499
21500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21502 if (!SWIG_IsOK(res1)) {
21503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21504 }
21505 arg1 = reinterpret_cast< wxWindow * >(argp1);
21506 ecode2 = SWIG_AsVal_int(obj1, &val2);
21507 if (!SWIG_IsOK(ecode2)) {
21508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21509 }
21510 arg2 = static_cast< int >(val2);
21511 if (obj2) {
21512 {
21513 arg3 = &temp3;
21514 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21515 }
21516 }
21517 if (obj3) {
21518 {
21519 arg4 = &temp4;
21520 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21521 }
21522 }
21523 if (obj4) {
21524 ecode5 = SWIG_AsVal_long(obj4, &val5);
21525 if (!SWIG_IsOK(ecode5)) {
21526 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21527 }
21528 arg5 = static_cast< long >(val5);
21529 }
21530 if (obj5) {
21531 {
21532 arg6 = wxString_in_helper(obj5);
21533 if (arg6 == NULL) SWIG_fail;
21534 temp6 = true;
21535 }
21536 }
21537 {
21538 if (!wxPyCheckForApp()) SWIG_fail;
21539 PyThreadState* __tstate = wxPyBeginAllowThreads();
21540 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21541 wxPyEndAllowThreads(__tstate);
21542 if (PyErr_Occurred()) SWIG_fail;
21543 }
21544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21545 {
21546 if (temp6)
21547 delete arg6;
21548 }
21549 return resultobj;
21550 fail:
21551 {
21552 if (temp6)
21553 delete arg6;
21554 }
21555 return NULL;
21556 }
21557
21558
21559 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21560 PyObject *resultobj = 0;
21561 wxTreebook *result = 0 ;
21562
21563 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21564 {
21565 if (!wxPyCheckForApp()) SWIG_fail;
21566 PyThreadState* __tstate = wxPyBeginAllowThreads();
21567 result = (wxTreebook *)new wxTreebook();
21568 wxPyEndAllowThreads(__tstate);
21569 if (PyErr_Occurred()) SWIG_fail;
21570 }
21571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21572 return resultobj;
21573 fail:
21574 return NULL;
21575 }
21576
21577
21578 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21579 PyObject *resultobj = 0;
21580 wxTreebook *arg1 = (wxTreebook *) 0 ;
21581 wxWindow *arg2 = (wxWindow *) 0 ;
21582 int arg3 ;
21583 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21584 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21585 wxSize const &arg5_defvalue = wxDefaultSize ;
21586 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21587 long arg6 = (long) wxBK_DEFAULT ;
21588 wxString const &arg7_defvalue = wxPyEmptyString ;
21589 wxString *arg7 = (wxString *) &arg7_defvalue ;
21590 bool result;
21591 void *argp1 = 0 ;
21592 int res1 = 0 ;
21593 void *argp2 = 0 ;
21594 int res2 = 0 ;
21595 int val3 ;
21596 int ecode3 = 0 ;
21597 wxPoint temp4 ;
21598 wxSize temp5 ;
21599 long val6 ;
21600 int ecode6 = 0 ;
21601 bool temp7 = false ;
21602 PyObject * obj0 = 0 ;
21603 PyObject * obj1 = 0 ;
21604 PyObject * obj2 = 0 ;
21605 PyObject * obj3 = 0 ;
21606 PyObject * obj4 = 0 ;
21607 PyObject * obj5 = 0 ;
21608 PyObject * obj6 = 0 ;
21609 char * kwnames[] = {
21610 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21611 };
21612
21613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21615 if (!SWIG_IsOK(res1)) {
21616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21617 }
21618 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21619 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21620 if (!SWIG_IsOK(res2)) {
21621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21622 }
21623 arg2 = reinterpret_cast< wxWindow * >(argp2);
21624 ecode3 = SWIG_AsVal_int(obj2, &val3);
21625 if (!SWIG_IsOK(ecode3)) {
21626 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21627 }
21628 arg3 = static_cast< int >(val3);
21629 if (obj3) {
21630 {
21631 arg4 = &temp4;
21632 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21633 }
21634 }
21635 if (obj4) {
21636 {
21637 arg5 = &temp5;
21638 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21639 }
21640 }
21641 if (obj5) {
21642 ecode6 = SWIG_AsVal_long(obj5, &val6);
21643 if (!SWIG_IsOK(ecode6)) {
21644 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21645 }
21646 arg6 = static_cast< long >(val6);
21647 }
21648 if (obj6) {
21649 {
21650 arg7 = wxString_in_helper(obj6);
21651 if (arg7 == NULL) SWIG_fail;
21652 temp7 = true;
21653 }
21654 }
21655 {
21656 PyThreadState* __tstate = wxPyBeginAllowThreads();
21657 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21658 wxPyEndAllowThreads(__tstate);
21659 if (PyErr_Occurred()) SWIG_fail;
21660 }
21661 {
21662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21663 }
21664 {
21665 if (temp7)
21666 delete arg7;
21667 }
21668 return resultobj;
21669 fail:
21670 {
21671 if (temp7)
21672 delete arg7;
21673 }
21674 return NULL;
21675 }
21676
21677
21678 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21679 PyObject *resultobj = 0;
21680 wxTreebook *arg1 = (wxTreebook *) 0 ;
21681 size_t arg2 ;
21682 wxWindow *arg3 = (wxWindow *) 0 ;
21683 wxString *arg4 = 0 ;
21684 bool arg5 = (bool) false ;
21685 int arg6 = (int) wxNOT_FOUND ;
21686 bool result;
21687 void *argp1 = 0 ;
21688 int res1 = 0 ;
21689 size_t val2 ;
21690 int ecode2 = 0 ;
21691 void *argp3 = 0 ;
21692 int res3 = 0 ;
21693 bool temp4 = false ;
21694 bool val5 ;
21695 int ecode5 = 0 ;
21696 int val6 ;
21697 int ecode6 = 0 ;
21698 PyObject * obj0 = 0 ;
21699 PyObject * obj1 = 0 ;
21700 PyObject * obj2 = 0 ;
21701 PyObject * obj3 = 0 ;
21702 PyObject * obj4 = 0 ;
21703 PyObject * obj5 = 0 ;
21704 char * kwnames[] = {
21705 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21706 };
21707
21708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21710 if (!SWIG_IsOK(res1)) {
21711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21712 }
21713 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21714 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21715 if (!SWIG_IsOK(ecode2)) {
21716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21717 }
21718 arg2 = static_cast< size_t >(val2);
21719 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21720 if (!SWIG_IsOK(res3)) {
21721 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21722 }
21723 arg3 = reinterpret_cast< wxWindow * >(argp3);
21724 {
21725 arg4 = wxString_in_helper(obj3);
21726 if (arg4 == NULL) SWIG_fail;
21727 temp4 = true;
21728 }
21729 if (obj4) {
21730 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21731 if (!SWIG_IsOK(ecode5)) {
21732 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21733 }
21734 arg5 = static_cast< bool >(val5);
21735 }
21736 if (obj5) {
21737 ecode6 = SWIG_AsVal_int(obj5, &val6);
21738 if (!SWIG_IsOK(ecode6)) {
21739 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21740 }
21741 arg6 = static_cast< int >(val6);
21742 }
21743 {
21744 PyThreadState* __tstate = wxPyBeginAllowThreads();
21745 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21746 wxPyEndAllowThreads(__tstate);
21747 if (PyErr_Occurred()) SWIG_fail;
21748 }
21749 {
21750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21751 }
21752 {
21753 if (temp4)
21754 delete arg4;
21755 }
21756 return resultobj;
21757 fail:
21758 {
21759 if (temp4)
21760 delete arg4;
21761 }
21762 return NULL;
21763 }
21764
21765
21766 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21767 PyObject *resultobj = 0;
21768 wxTreebook *arg1 = (wxTreebook *) 0 ;
21769 wxWindow *arg2 = (wxWindow *) 0 ;
21770 wxString *arg3 = 0 ;
21771 bool arg4 = (bool) false ;
21772 int arg5 = (int) wxNOT_FOUND ;
21773 bool result;
21774 void *argp1 = 0 ;
21775 int res1 = 0 ;
21776 void *argp2 = 0 ;
21777 int res2 = 0 ;
21778 bool temp3 = false ;
21779 bool val4 ;
21780 int ecode4 = 0 ;
21781 int val5 ;
21782 int ecode5 = 0 ;
21783 PyObject * obj0 = 0 ;
21784 PyObject * obj1 = 0 ;
21785 PyObject * obj2 = 0 ;
21786 PyObject * obj3 = 0 ;
21787 PyObject * obj4 = 0 ;
21788 char * kwnames[] = {
21789 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21790 };
21791
21792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21794 if (!SWIG_IsOK(res1)) {
21795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21796 }
21797 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21798 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21799 if (!SWIG_IsOK(res2)) {
21800 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21801 }
21802 arg2 = reinterpret_cast< wxWindow * >(argp2);
21803 {
21804 arg3 = wxString_in_helper(obj2);
21805 if (arg3 == NULL) SWIG_fail;
21806 temp3 = true;
21807 }
21808 if (obj3) {
21809 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21810 if (!SWIG_IsOK(ecode4)) {
21811 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21812 }
21813 arg4 = static_cast< bool >(val4);
21814 }
21815 if (obj4) {
21816 ecode5 = SWIG_AsVal_int(obj4, &val5);
21817 if (!SWIG_IsOK(ecode5)) {
21818 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21819 }
21820 arg5 = static_cast< int >(val5);
21821 }
21822 {
21823 PyThreadState* __tstate = wxPyBeginAllowThreads();
21824 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21825 wxPyEndAllowThreads(__tstate);
21826 if (PyErr_Occurred()) SWIG_fail;
21827 }
21828 {
21829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21830 }
21831 {
21832 if (temp3)
21833 delete arg3;
21834 }
21835 return resultobj;
21836 fail:
21837 {
21838 if (temp3)
21839 delete arg3;
21840 }
21841 return NULL;
21842 }
21843
21844
21845 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21846 PyObject *resultobj = 0;
21847 wxTreebook *arg1 = (wxTreebook *) 0 ;
21848 size_t arg2 ;
21849 bool result;
21850 void *argp1 = 0 ;
21851 int res1 = 0 ;
21852 size_t val2 ;
21853 int ecode2 = 0 ;
21854 PyObject * obj0 = 0 ;
21855 PyObject * obj1 = 0 ;
21856 char * kwnames[] = {
21857 (char *) "self",(char *) "pos", NULL
21858 };
21859
21860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21862 if (!SWIG_IsOK(res1)) {
21863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21864 }
21865 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21866 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21867 if (!SWIG_IsOK(ecode2)) {
21868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21869 }
21870 arg2 = static_cast< size_t >(val2);
21871 {
21872 PyThreadState* __tstate = wxPyBeginAllowThreads();
21873 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21874 wxPyEndAllowThreads(__tstate);
21875 if (PyErr_Occurred()) SWIG_fail;
21876 }
21877 {
21878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21879 }
21880 return resultobj;
21881 fail:
21882 return NULL;
21883 }
21884
21885
21886 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21887 PyObject *resultobj = 0;
21888 wxTreebook *arg1 = (wxTreebook *) 0 ;
21889 size_t arg2 ;
21890 bool arg3 = (bool) true ;
21891 bool result;
21892 void *argp1 = 0 ;
21893 int res1 = 0 ;
21894 size_t val2 ;
21895 int ecode2 = 0 ;
21896 bool val3 ;
21897 int ecode3 = 0 ;
21898 PyObject * obj0 = 0 ;
21899 PyObject * obj1 = 0 ;
21900 PyObject * obj2 = 0 ;
21901 char * kwnames[] = {
21902 (char *) "self",(char *) "pos",(char *) "expand", NULL
21903 };
21904
21905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21907 if (!SWIG_IsOK(res1)) {
21908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21909 }
21910 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21911 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21912 if (!SWIG_IsOK(ecode2)) {
21913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21914 }
21915 arg2 = static_cast< size_t >(val2);
21916 if (obj2) {
21917 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21918 if (!SWIG_IsOK(ecode3)) {
21919 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21920 }
21921 arg3 = static_cast< bool >(val3);
21922 }
21923 {
21924 PyThreadState* __tstate = wxPyBeginAllowThreads();
21925 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21926 wxPyEndAllowThreads(__tstate);
21927 if (PyErr_Occurred()) SWIG_fail;
21928 }
21929 {
21930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21931 }
21932 return resultobj;
21933 fail:
21934 return NULL;
21935 }
21936
21937
21938 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21939 PyObject *resultobj = 0;
21940 wxTreebook *arg1 = (wxTreebook *) 0 ;
21941 size_t arg2 ;
21942 bool result;
21943 void *argp1 = 0 ;
21944 int res1 = 0 ;
21945 size_t val2 ;
21946 int ecode2 = 0 ;
21947 PyObject * obj0 = 0 ;
21948 PyObject * obj1 = 0 ;
21949 char * kwnames[] = {
21950 (char *) "self",(char *) "pos", NULL
21951 };
21952
21953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21955 if (!SWIG_IsOK(res1)) {
21956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21957 }
21958 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21959 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21960 if (!SWIG_IsOK(ecode2)) {
21961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21962 }
21963 arg2 = static_cast< size_t >(val2);
21964 {
21965 PyThreadState* __tstate = wxPyBeginAllowThreads();
21966 result = (bool)(arg1)->CollapseNode(arg2);
21967 wxPyEndAllowThreads(__tstate);
21968 if (PyErr_Occurred()) SWIG_fail;
21969 }
21970 {
21971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21972 }
21973 return resultobj;
21974 fail:
21975 return NULL;
21976 }
21977
21978
21979 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21980 PyObject *resultobj = 0;
21981 wxTreebook *arg1 = (wxTreebook *) 0 ;
21982 size_t arg2 ;
21983 int result;
21984 void *argp1 = 0 ;
21985 int res1 = 0 ;
21986 size_t val2 ;
21987 int ecode2 = 0 ;
21988 PyObject * obj0 = 0 ;
21989 PyObject * obj1 = 0 ;
21990 char * kwnames[] = {
21991 (char *) "self",(char *) "pos", NULL
21992 };
21993
21994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
21995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21996 if (!SWIG_IsOK(res1)) {
21997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21998 }
21999 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22000 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22001 if (!SWIG_IsOK(ecode2)) {
22002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22003 }
22004 arg2 = static_cast< size_t >(val2);
22005 {
22006 PyThreadState* __tstate = wxPyBeginAllowThreads();
22007 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22008 wxPyEndAllowThreads(__tstate);
22009 if (PyErr_Occurred()) SWIG_fail;
22010 }
22011 resultobj = SWIG_From_int(static_cast< int >(result));
22012 return resultobj;
22013 fail:
22014 return NULL;
22015 }
22016
22017
22018 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22019 PyObject *resultobj = 0;
22020 wxTreebook *arg1 = (wxTreebook *) 0 ;
22021 wxTreeCtrl *result = 0 ;
22022 void *argp1 = 0 ;
22023 int res1 = 0 ;
22024 PyObject *swig_obj[1] ;
22025
22026 if (!args) SWIG_fail;
22027 swig_obj[0] = args;
22028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22029 if (!SWIG_IsOK(res1)) {
22030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22031 }
22032 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22033 {
22034 PyThreadState* __tstate = wxPyBeginAllowThreads();
22035 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22036 wxPyEndAllowThreads(__tstate);
22037 if (PyErr_Occurred()) SWIG_fail;
22038 }
22039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
22040 return resultobj;
22041 fail:
22042 return NULL;
22043 }
22044
22045
22046 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22047 PyObject *obj;
22048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22049 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22050 return SWIG_Py_Void();
22051 }
22052
22053 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22054 return SWIG_Python_InitShadowInstance(args);
22055 }
22056
22057 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22058 PyObject *resultobj = 0;
22059 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22060 int arg2 = (int) 0 ;
22061 int arg3 = (int) wxNOT_FOUND ;
22062 int arg4 = (int) wxNOT_FOUND ;
22063 wxTreebookEvent *result = 0 ;
22064 int val1 ;
22065 int ecode1 = 0 ;
22066 int val2 ;
22067 int ecode2 = 0 ;
22068 int val3 ;
22069 int ecode3 = 0 ;
22070 int val4 ;
22071 int ecode4 = 0 ;
22072 PyObject * obj0 = 0 ;
22073 PyObject * obj1 = 0 ;
22074 PyObject * obj2 = 0 ;
22075 PyObject * obj3 = 0 ;
22076 char * kwnames[] = {
22077 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22078 };
22079
22080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22081 if (obj0) {
22082 ecode1 = SWIG_AsVal_int(obj0, &val1);
22083 if (!SWIG_IsOK(ecode1)) {
22084 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22085 }
22086 arg1 = static_cast< wxEventType >(val1);
22087 }
22088 if (obj1) {
22089 ecode2 = SWIG_AsVal_int(obj1, &val2);
22090 if (!SWIG_IsOK(ecode2)) {
22091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22092 }
22093 arg2 = static_cast< int >(val2);
22094 }
22095 if (obj2) {
22096 ecode3 = SWIG_AsVal_int(obj2, &val3);
22097 if (!SWIG_IsOK(ecode3)) {
22098 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22099 }
22100 arg3 = static_cast< int >(val3);
22101 }
22102 if (obj3) {
22103 ecode4 = SWIG_AsVal_int(obj3, &val4);
22104 if (!SWIG_IsOK(ecode4)) {
22105 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22106 }
22107 arg4 = static_cast< int >(val4);
22108 }
22109 {
22110 PyThreadState* __tstate = wxPyBeginAllowThreads();
22111 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22112 wxPyEndAllowThreads(__tstate);
22113 if (PyErr_Occurred()) SWIG_fail;
22114 }
22115 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22116 return resultobj;
22117 fail:
22118 return NULL;
22119 }
22120
22121
22122 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22123 PyObject *obj;
22124 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22125 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22126 return SWIG_Py_Void();
22127 }
22128
22129 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22130 return SWIG_Python_InitShadowInstance(args);
22131 }
22132
22133 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22134 PyObject *resultobj = 0;
22135 wxWindow *arg1 = (wxWindow *) 0 ;
22136 int arg2 ;
22137 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22138 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22139 wxSize const &arg4_defvalue = wxDefaultSize ;
22140 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22141 long arg5 = (long) wxBK_DEFAULT ;
22142 wxString const &arg6_defvalue = wxPyEmptyString ;
22143 wxString *arg6 = (wxString *) &arg6_defvalue ;
22144 wxToolbook *result = 0 ;
22145 void *argp1 = 0 ;
22146 int res1 = 0 ;
22147 int val2 ;
22148 int ecode2 = 0 ;
22149 wxPoint temp3 ;
22150 wxSize temp4 ;
22151 long val5 ;
22152 int ecode5 = 0 ;
22153 bool temp6 = false ;
22154 PyObject * obj0 = 0 ;
22155 PyObject * obj1 = 0 ;
22156 PyObject * obj2 = 0 ;
22157 PyObject * obj3 = 0 ;
22158 PyObject * obj4 = 0 ;
22159 PyObject * obj5 = 0 ;
22160 char * kwnames[] = {
22161 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22162 };
22163
22164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22166 if (!SWIG_IsOK(res1)) {
22167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22168 }
22169 arg1 = reinterpret_cast< wxWindow * >(argp1);
22170 ecode2 = SWIG_AsVal_int(obj1, &val2);
22171 if (!SWIG_IsOK(ecode2)) {
22172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22173 }
22174 arg2 = static_cast< int >(val2);
22175 if (obj2) {
22176 {
22177 arg3 = &temp3;
22178 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22179 }
22180 }
22181 if (obj3) {
22182 {
22183 arg4 = &temp4;
22184 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22185 }
22186 }
22187 if (obj4) {
22188 ecode5 = SWIG_AsVal_long(obj4, &val5);
22189 if (!SWIG_IsOK(ecode5)) {
22190 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22191 }
22192 arg5 = static_cast< long >(val5);
22193 }
22194 if (obj5) {
22195 {
22196 arg6 = wxString_in_helper(obj5);
22197 if (arg6 == NULL) SWIG_fail;
22198 temp6 = true;
22199 }
22200 }
22201 {
22202 PyThreadState* __tstate = wxPyBeginAllowThreads();
22203 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22204 wxPyEndAllowThreads(__tstate);
22205 if (PyErr_Occurred()) SWIG_fail;
22206 }
22207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22208 {
22209 if (temp6)
22210 delete arg6;
22211 }
22212 return resultobj;
22213 fail:
22214 {
22215 if (temp6)
22216 delete arg6;
22217 }
22218 return NULL;
22219 }
22220
22221
22222 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22223 PyObject *resultobj = 0;
22224 wxToolbook *result = 0 ;
22225
22226 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22227 {
22228 PyThreadState* __tstate = wxPyBeginAllowThreads();
22229 result = (wxToolbook *)new wxToolbook();
22230 wxPyEndAllowThreads(__tstate);
22231 if (PyErr_Occurred()) SWIG_fail;
22232 }
22233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22234 return resultobj;
22235 fail:
22236 return NULL;
22237 }
22238
22239
22240 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22241 PyObject *resultobj = 0;
22242 wxToolbook *arg1 = (wxToolbook *) 0 ;
22243 wxWindow *arg2 = (wxWindow *) 0 ;
22244 int arg3 ;
22245 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22246 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22247 wxSize const &arg5_defvalue = wxDefaultSize ;
22248 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22249 long arg6 = (long) 0 ;
22250 wxString const &arg7_defvalue = wxEmptyString ;
22251 wxString *arg7 = (wxString *) &arg7_defvalue ;
22252 bool result;
22253 void *argp1 = 0 ;
22254 int res1 = 0 ;
22255 void *argp2 = 0 ;
22256 int res2 = 0 ;
22257 int val3 ;
22258 int ecode3 = 0 ;
22259 wxPoint temp4 ;
22260 wxSize temp5 ;
22261 long val6 ;
22262 int ecode6 = 0 ;
22263 bool temp7 = false ;
22264 PyObject * obj0 = 0 ;
22265 PyObject * obj1 = 0 ;
22266 PyObject * obj2 = 0 ;
22267 PyObject * obj3 = 0 ;
22268 PyObject * obj4 = 0 ;
22269 PyObject * obj5 = 0 ;
22270 PyObject * obj6 = 0 ;
22271 char * kwnames[] = {
22272 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22273 };
22274
22275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22277 if (!SWIG_IsOK(res1)) {
22278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22279 }
22280 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22281 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22282 if (!SWIG_IsOK(res2)) {
22283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22284 }
22285 arg2 = reinterpret_cast< wxWindow * >(argp2);
22286 ecode3 = SWIG_AsVal_int(obj2, &val3);
22287 if (!SWIG_IsOK(ecode3)) {
22288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22289 }
22290 arg3 = static_cast< int >(val3);
22291 if (obj3) {
22292 {
22293 arg4 = &temp4;
22294 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22295 }
22296 }
22297 if (obj4) {
22298 {
22299 arg5 = &temp5;
22300 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22301 }
22302 }
22303 if (obj5) {
22304 ecode6 = SWIG_AsVal_long(obj5, &val6);
22305 if (!SWIG_IsOK(ecode6)) {
22306 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22307 }
22308 arg6 = static_cast< long >(val6);
22309 }
22310 if (obj6) {
22311 {
22312 arg7 = wxString_in_helper(obj6);
22313 if (arg7 == NULL) SWIG_fail;
22314 temp7 = true;
22315 }
22316 }
22317 {
22318 PyThreadState* __tstate = wxPyBeginAllowThreads();
22319 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22320 wxPyEndAllowThreads(__tstate);
22321 if (PyErr_Occurred()) SWIG_fail;
22322 }
22323 {
22324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22325 }
22326 {
22327 if (temp7)
22328 delete arg7;
22329 }
22330 return resultobj;
22331 fail:
22332 {
22333 if (temp7)
22334 delete arg7;
22335 }
22336 return NULL;
22337 }
22338
22339
22340 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22341 PyObject *resultobj = 0;
22342 wxToolbook *arg1 = (wxToolbook *) 0 ;
22343 wxToolBarBase *result = 0 ;
22344 void *argp1 = 0 ;
22345 int res1 = 0 ;
22346 PyObject *swig_obj[1] ;
22347
22348 if (!args) SWIG_fail;
22349 swig_obj[0] = args;
22350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22351 if (!SWIG_IsOK(res1)) {
22352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22353 }
22354 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22355 {
22356 PyThreadState* __tstate = wxPyBeginAllowThreads();
22357 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22358 wxPyEndAllowThreads(__tstate);
22359 if (PyErr_Occurred()) SWIG_fail;
22360 }
22361 {
22362 resultobj = wxPyMake_wxObject(result, (bool)0);
22363 }
22364 return resultobj;
22365 fail:
22366 return NULL;
22367 }
22368
22369
22370 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22371 PyObject *resultobj = 0;
22372 wxToolbook *arg1 = (wxToolbook *) 0 ;
22373 void *argp1 = 0 ;
22374 int res1 = 0 ;
22375 PyObject *swig_obj[1] ;
22376
22377 if (!args) SWIG_fail;
22378 swig_obj[0] = args;
22379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22380 if (!SWIG_IsOK(res1)) {
22381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22382 }
22383 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22384 {
22385 PyThreadState* __tstate = wxPyBeginAllowThreads();
22386 (arg1)->Realize();
22387 wxPyEndAllowThreads(__tstate);
22388 if (PyErr_Occurred()) SWIG_fail;
22389 }
22390 resultobj = SWIG_Py_Void();
22391 return resultobj;
22392 fail:
22393 return NULL;
22394 }
22395
22396
22397 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22398 PyObject *obj;
22399 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22400 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22401 return SWIG_Py_Void();
22402 }
22403
22404 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22405 return SWIG_Python_InitShadowInstance(args);
22406 }
22407
22408 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22409 PyObject *resultobj = 0;
22410 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22411 int arg2 = (int) 0 ;
22412 int arg3 = (int) wxNOT_FOUND ;
22413 int arg4 = (int) wxNOT_FOUND ;
22414 wxToolbookEvent *result = 0 ;
22415 int val1 ;
22416 int ecode1 = 0 ;
22417 int val2 ;
22418 int ecode2 = 0 ;
22419 int val3 ;
22420 int ecode3 = 0 ;
22421 int val4 ;
22422 int ecode4 = 0 ;
22423 PyObject * obj0 = 0 ;
22424 PyObject * obj1 = 0 ;
22425 PyObject * obj2 = 0 ;
22426 PyObject * obj3 = 0 ;
22427 char * kwnames[] = {
22428 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22429 };
22430
22431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22432 if (obj0) {
22433 ecode1 = SWIG_AsVal_int(obj0, &val1);
22434 if (!SWIG_IsOK(ecode1)) {
22435 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22436 }
22437 arg1 = static_cast< wxEventType >(val1);
22438 }
22439 if (obj1) {
22440 ecode2 = SWIG_AsVal_int(obj1, &val2);
22441 if (!SWIG_IsOK(ecode2)) {
22442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22443 }
22444 arg2 = static_cast< int >(val2);
22445 }
22446 if (obj2) {
22447 ecode3 = SWIG_AsVal_int(obj2, &val3);
22448 if (!SWIG_IsOK(ecode3)) {
22449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22450 }
22451 arg3 = static_cast< int >(val3);
22452 }
22453 if (obj3) {
22454 ecode4 = SWIG_AsVal_int(obj3, &val4);
22455 if (!SWIG_IsOK(ecode4)) {
22456 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22457 }
22458 arg4 = static_cast< int >(val4);
22459 }
22460 {
22461 PyThreadState* __tstate = wxPyBeginAllowThreads();
22462 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22463 wxPyEndAllowThreads(__tstate);
22464 if (PyErr_Occurred()) SWIG_fail;
22465 }
22466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22467 return resultobj;
22468 fail:
22469 return NULL;
22470 }
22471
22472
22473 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22474 PyObject *obj;
22475 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22476 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22477 return SWIG_Py_Void();
22478 }
22479
22480 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22481 return SWIG_Python_InitShadowInstance(args);
22482 }
22483
22484 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22485 PyObject *resultobj = 0;
22486 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22487 int result;
22488 void *argp1 = 0 ;
22489 int res1 = 0 ;
22490 PyObject *swig_obj[1] ;
22491
22492 if (!args) SWIG_fail;
22493 swig_obj[0] = args;
22494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22495 if (!SWIG_IsOK(res1)) {
22496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22497 }
22498 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22499 {
22500 PyThreadState* __tstate = wxPyBeginAllowThreads();
22501 result = (int)(arg1)->GetId();
22502 wxPyEndAllowThreads(__tstate);
22503 if (PyErr_Occurred()) SWIG_fail;
22504 }
22505 resultobj = SWIG_From_int(static_cast< int >(result));
22506 return resultobj;
22507 fail:
22508 return NULL;
22509 }
22510
22511
22512 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22513 PyObject *resultobj = 0;
22514 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22515 wxControl *result = 0 ;
22516 void *argp1 = 0 ;
22517 int res1 = 0 ;
22518 PyObject *swig_obj[1] ;
22519
22520 if (!args) SWIG_fail;
22521 swig_obj[0] = args;
22522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22523 if (!SWIG_IsOK(res1)) {
22524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22525 }
22526 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22527 {
22528 PyThreadState* __tstate = wxPyBeginAllowThreads();
22529 result = (wxControl *)(arg1)->GetControl();
22530 wxPyEndAllowThreads(__tstate);
22531 if (PyErr_Occurred()) SWIG_fail;
22532 }
22533 {
22534 resultobj = wxPyMake_wxObject(result, 0);
22535 }
22536 return resultobj;
22537 fail:
22538 return NULL;
22539 }
22540
22541
22542 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22543 PyObject *resultobj = 0;
22544 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22545 wxToolBarBase *result = 0 ;
22546 void *argp1 = 0 ;
22547 int res1 = 0 ;
22548 PyObject *swig_obj[1] ;
22549
22550 if (!args) SWIG_fail;
22551 swig_obj[0] = args;
22552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22553 if (!SWIG_IsOK(res1)) {
22554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22555 }
22556 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22557 {
22558 PyThreadState* __tstate = wxPyBeginAllowThreads();
22559 result = (wxToolBarBase *)(arg1)->GetToolBar();
22560 wxPyEndAllowThreads(__tstate);
22561 if (PyErr_Occurred()) SWIG_fail;
22562 }
22563 {
22564 resultobj = wxPyMake_wxObject(result, (bool)0);
22565 }
22566 return resultobj;
22567 fail:
22568 return NULL;
22569 }
22570
22571
22572 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22573 PyObject *resultobj = 0;
22574 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22575 int result;
22576 void *argp1 = 0 ;
22577 int res1 = 0 ;
22578 PyObject *swig_obj[1] ;
22579
22580 if (!args) SWIG_fail;
22581 swig_obj[0] = args;
22582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22583 if (!SWIG_IsOK(res1)) {
22584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22585 }
22586 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22587 {
22588 PyThreadState* __tstate = wxPyBeginAllowThreads();
22589 result = (int)(arg1)->IsButton();
22590 wxPyEndAllowThreads(__tstate);
22591 if (PyErr_Occurred()) SWIG_fail;
22592 }
22593 resultobj = SWIG_From_int(static_cast< int >(result));
22594 return resultobj;
22595 fail:
22596 return NULL;
22597 }
22598
22599
22600 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22601 PyObject *resultobj = 0;
22602 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22603 int result;
22604 void *argp1 = 0 ;
22605 int res1 = 0 ;
22606 PyObject *swig_obj[1] ;
22607
22608 if (!args) SWIG_fail;
22609 swig_obj[0] = args;
22610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22611 if (!SWIG_IsOK(res1)) {
22612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22613 }
22614 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22615 {
22616 PyThreadState* __tstate = wxPyBeginAllowThreads();
22617 result = (int)(arg1)->IsControl();
22618 wxPyEndAllowThreads(__tstate);
22619 if (PyErr_Occurred()) SWIG_fail;
22620 }
22621 resultobj = SWIG_From_int(static_cast< int >(result));
22622 return resultobj;
22623 fail:
22624 return NULL;
22625 }
22626
22627
22628 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22629 PyObject *resultobj = 0;
22630 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22631 int result;
22632 void *argp1 = 0 ;
22633 int res1 = 0 ;
22634 PyObject *swig_obj[1] ;
22635
22636 if (!args) SWIG_fail;
22637 swig_obj[0] = args;
22638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22639 if (!SWIG_IsOK(res1)) {
22640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22641 }
22642 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22643 {
22644 PyThreadState* __tstate = wxPyBeginAllowThreads();
22645 result = (int)(arg1)->IsSeparator();
22646 wxPyEndAllowThreads(__tstate);
22647 if (PyErr_Occurred()) SWIG_fail;
22648 }
22649 resultobj = SWIG_From_int(static_cast< int >(result));
22650 return resultobj;
22651 fail:
22652 return NULL;
22653 }
22654
22655
22656 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22657 PyObject *resultobj = 0;
22658 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22659 int result;
22660 void *argp1 = 0 ;
22661 int res1 = 0 ;
22662 PyObject *swig_obj[1] ;
22663
22664 if (!args) SWIG_fail;
22665 swig_obj[0] = args;
22666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22667 if (!SWIG_IsOK(res1)) {
22668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22669 }
22670 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22671 {
22672 PyThreadState* __tstate = wxPyBeginAllowThreads();
22673 result = (int)(arg1)->GetStyle();
22674 wxPyEndAllowThreads(__tstate);
22675 if (PyErr_Occurred()) SWIG_fail;
22676 }
22677 resultobj = SWIG_From_int(static_cast< int >(result));
22678 return resultobj;
22679 fail:
22680 return NULL;
22681 }
22682
22683
22684 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22685 PyObject *resultobj = 0;
22686 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22687 wxItemKind result;
22688 void *argp1 = 0 ;
22689 int res1 = 0 ;
22690 PyObject *swig_obj[1] ;
22691
22692 if (!args) SWIG_fail;
22693 swig_obj[0] = args;
22694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22695 if (!SWIG_IsOK(res1)) {
22696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22697 }
22698 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22699 {
22700 PyThreadState* __tstate = wxPyBeginAllowThreads();
22701 result = (wxItemKind)(arg1)->GetKind();
22702 wxPyEndAllowThreads(__tstate);
22703 if (PyErr_Occurred()) SWIG_fail;
22704 }
22705 resultobj = SWIG_From_int(static_cast< int >(result));
22706 return resultobj;
22707 fail:
22708 return NULL;
22709 }
22710
22711
22712 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22713 PyObject *resultobj = 0;
22714 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22715 bool result;
22716 void *argp1 = 0 ;
22717 int res1 = 0 ;
22718 PyObject *swig_obj[1] ;
22719
22720 if (!args) SWIG_fail;
22721 swig_obj[0] = args;
22722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22723 if (!SWIG_IsOK(res1)) {
22724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22725 }
22726 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22727 {
22728 PyThreadState* __tstate = wxPyBeginAllowThreads();
22729 result = (bool)(arg1)->IsEnabled();
22730 wxPyEndAllowThreads(__tstate);
22731 if (PyErr_Occurred()) SWIG_fail;
22732 }
22733 {
22734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22735 }
22736 return resultobj;
22737 fail:
22738 return NULL;
22739 }
22740
22741
22742 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22743 PyObject *resultobj = 0;
22744 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22745 bool result;
22746 void *argp1 = 0 ;
22747 int res1 = 0 ;
22748 PyObject *swig_obj[1] ;
22749
22750 if (!args) SWIG_fail;
22751 swig_obj[0] = args;
22752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22753 if (!SWIG_IsOK(res1)) {
22754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22755 }
22756 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22757 {
22758 PyThreadState* __tstate = wxPyBeginAllowThreads();
22759 result = (bool)(arg1)->IsToggled();
22760 wxPyEndAllowThreads(__tstate);
22761 if (PyErr_Occurred()) SWIG_fail;
22762 }
22763 {
22764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22765 }
22766 return resultobj;
22767 fail:
22768 return NULL;
22769 }
22770
22771
22772 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22773 PyObject *resultobj = 0;
22774 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22775 bool result;
22776 void *argp1 = 0 ;
22777 int res1 = 0 ;
22778 PyObject *swig_obj[1] ;
22779
22780 if (!args) SWIG_fail;
22781 swig_obj[0] = args;
22782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22783 if (!SWIG_IsOK(res1)) {
22784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22785 }
22786 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22787 {
22788 PyThreadState* __tstate = wxPyBeginAllowThreads();
22789 result = (bool)(arg1)->CanBeToggled();
22790 wxPyEndAllowThreads(__tstate);
22791 if (PyErr_Occurred()) SWIG_fail;
22792 }
22793 {
22794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22795 }
22796 return resultobj;
22797 fail:
22798 return NULL;
22799 }
22800
22801
22802 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22803 PyObject *resultobj = 0;
22804 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22805 wxBitmap *result = 0 ;
22806 void *argp1 = 0 ;
22807 int res1 = 0 ;
22808 PyObject *swig_obj[1] ;
22809
22810 if (!args) SWIG_fail;
22811 swig_obj[0] = args;
22812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22813 if (!SWIG_IsOK(res1)) {
22814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22815 }
22816 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22817 {
22818 PyThreadState* __tstate = wxPyBeginAllowThreads();
22819 {
22820 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22821 result = (wxBitmap *) &_result_ref;
22822 }
22823 wxPyEndAllowThreads(__tstate);
22824 if (PyErr_Occurred()) SWIG_fail;
22825 }
22826 {
22827 wxBitmap* resultptr = new wxBitmap(*result);
22828 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22829 }
22830 return resultobj;
22831 fail:
22832 return NULL;
22833 }
22834
22835
22836 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22837 PyObject *resultobj = 0;
22838 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22839 wxBitmap *result = 0 ;
22840 void *argp1 = 0 ;
22841 int res1 = 0 ;
22842 PyObject *swig_obj[1] ;
22843
22844 if (!args) SWIG_fail;
22845 swig_obj[0] = args;
22846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22847 if (!SWIG_IsOK(res1)) {
22848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22849 }
22850 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22851 {
22852 PyThreadState* __tstate = wxPyBeginAllowThreads();
22853 {
22854 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22855 result = (wxBitmap *) &_result_ref;
22856 }
22857 wxPyEndAllowThreads(__tstate);
22858 if (PyErr_Occurred()) SWIG_fail;
22859 }
22860 {
22861 wxBitmap* resultptr = new wxBitmap(*result);
22862 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22863 }
22864 return resultobj;
22865 fail:
22866 return NULL;
22867 }
22868
22869
22870 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22871 PyObject *resultobj = 0;
22872 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22873 wxBitmap result;
22874 void *argp1 = 0 ;
22875 int res1 = 0 ;
22876 PyObject *swig_obj[1] ;
22877
22878 if (!args) SWIG_fail;
22879 swig_obj[0] = args;
22880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22881 if (!SWIG_IsOK(res1)) {
22882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22883 }
22884 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22885 {
22886 PyThreadState* __tstate = wxPyBeginAllowThreads();
22887 result = (arg1)->GetBitmap();
22888 wxPyEndAllowThreads(__tstate);
22889 if (PyErr_Occurred()) SWIG_fail;
22890 }
22891 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22892 return resultobj;
22893 fail:
22894 return NULL;
22895 }
22896
22897
22898 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22899 PyObject *resultobj = 0;
22900 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22901 wxString result;
22902 void *argp1 = 0 ;
22903 int res1 = 0 ;
22904 PyObject *swig_obj[1] ;
22905
22906 if (!args) SWIG_fail;
22907 swig_obj[0] = args;
22908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22909 if (!SWIG_IsOK(res1)) {
22910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22911 }
22912 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22913 {
22914 PyThreadState* __tstate = wxPyBeginAllowThreads();
22915 result = (arg1)->GetLabel();
22916 wxPyEndAllowThreads(__tstate);
22917 if (PyErr_Occurred()) SWIG_fail;
22918 }
22919 {
22920 #if wxUSE_UNICODE
22921 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22922 #else
22923 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22924 #endif
22925 }
22926 return resultobj;
22927 fail:
22928 return NULL;
22929 }
22930
22931
22932 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22933 PyObject *resultobj = 0;
22934 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22935 wxString result;
22936 void *argp1 = 0 ;
22937 int res1 = 0 ;
22938 PyObject *swig_obj[1] ;
22939
22940 if (!args) SWIG_fail;
22941 swig_obj[0] = args;
22942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22943 if (!SWIG_IsOK(res1)) {
22944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22945 }
22946 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22947 {
22948 PyThreadState* __tstate = wxPyBeginAllowThreads();
22949 result = (arg1)->GetShortHelp();
22950 wxPyEndAllowThreads(__tstate);
22951 if (PyErr_Occurred()) SWIG_fail;
22952 }
22953 {
22954 #if wxUSE_UNICODE
22955 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22956 #else
22957 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22958 #endif
22959 }
22960 return resultobj;
22961 fail:
22962 return NULL;
22963 }
22964
22965
22966 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22967 PyObject *resultobj = 0;
22968 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22969 wxString result;
22970 void *argp1 = 0 ;
22971 int res1 = 0 ;
22972 PyObject *swig_obj[1] ;
22973
22974 if (!args) SWIG_fail;
22975 swig_obj[0] = args;
22976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22977 if (!SWIG_IsOK(res1)) {
22978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22979 }
22980 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22981 {
22982 PyThreadState* __tstate = wxPyBeginAllowThreads();
22983 result = (arg1)->GetLongHelp();
22984 wxPyEndAllowThreads(__tstate);
22985 if (PyErr_Occurred()) SWIG_fail;
22986 }
22987 {
22988 #if wxUSE_UNICODE
22989 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22990 #else
22991 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22992 #endif
22993 }
22994 return resultobj;
22995 fail:
22996 return NULL;
22997 }
22998
22999
23000 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23001 PyObject *resultobj = 0;
23002 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23003 bool arg2 ;
23004 bool result;
23005 void *argp1 = 0 ;
23006 int res1 = 0 ;
23007 bool val2 ;
23008 int ecode2 = 0 ;
23009 PyObject * obj0 = 0 ;
23010 PyObject * obj1 = 0 ;
23011 char * kwnames[] = {
23012 (char *) "self",(char *) "enable", NULL
23013 };
23014
23015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23017 if (!SWIG_IsOK(res1)) {
23018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23019 }
23020 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23021 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23022 if (!SWIG_IsOK(ecode2)) {
23023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23024 }
23025 arg2 = static_cast< bool >(val2);
23026 {
23027 PyThreadState* __tstate = wxPyBeginAllowThreads();
23028 result = (bool)(arg1)->Enable(arg2);
23029 wxPyEndAllowThreads(__tstate);
23030 if (PyErr_Occurred()) SWIG_fail;
23031 }
23032 {
23033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23034 }
23035 return resultobj;
23036 fail:
23037 return NULL;
23038 }
23039
23040
23041 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23042 PyObject *resultobj = 0;
23043 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23044 void *argp1 = 0 ;
23045 int res1 = 0 ;
23046 PyObject *swig_obj[1] ;
23047
23048 if (!args) SWIG_fail;
23049 swig_obj[0] = args;
23050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23051 if (!SWIG_IsOK(res1)) {
23052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23053 }
23054 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23055 {
23056 PyThreadState* __tstate = wxPyBeginAllowThreads();
23057 (arg1)->Toggle();
23058 wxPyEndAllowThreads(__tstate);
23059 if (PyErr_Occurred()) SWIG_fail;
23060 }
23061 resultobj = SWIG_Py_Void();
23062 return resultobj;
23063 fail:
23064 return NULL;
23065 }
23066
23067
23068 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23069 PyObject *resultobj = 0;
23070 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23071 bool arg2 ;
23072 bool result;
23073 void *argp1 = 0 ;
23074 int res1 = 0 ;
23075 bool val2 ;
23076 int ecode2 = 0 ;
23077 PyObject * obj0 = 0 ;
23078 PyObject * obj1 = 0 ;
23079 char * kwnames[] = {
23080 (char *) "self",(char *) "toggle", NULL
23081 };
23082
23083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23085 if (!SWIG_IsOK(res1)) {
23086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23087 }
23088 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23089 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23090 if (!SWIG_IsOK(ecode2)) {
23091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23092 }
23093 arg2 = static_cast< bool >(val2);
23094 {
23095 PyThreadState* __tstate = wxPyBeginAllowThreads();
23096 result = (bool)(arg1)->SetToggle(arg2);
23097 wxPyEndAllowThreads(__tstate);
23098 if (PyErr_Occurred()) SWIG_fail;
23099 }
23100 {
23101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23102 }
23103 return resultobj;
23104 fail:
23105 return NULL;
23106 }
23107
23108
23109 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23110 PyObject *resultobj = 0;
23111 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23112 wxString *arg2 = 0 ;
23113 bool result;
23114 void *argp1 = 0 ;
23115 int res1 = 0 ;
23116 bool temp2 = false ;
23117 PyObject * obj0 = 0 ;
23118 PyObject * obj1 = 0 ;
23119 char * kwnames[] = {
23120 (char *) "self",(char *) "help", NULL
23121 };
23122
23123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23125 if (!SWIG_IsOK(res1)) {
23126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23127 }
23128 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23129 {
23130 arg2 = wxString_in_helper(obj1);
23131 if (arg2 == NULL) SWIG_fail;
23132 temp2 = true;
23133 }
23134 {
23135 PyThreadState* __tstate = wxPyBeginAllowThreads();
23136 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23137 wxPyEndAllowThreads(__tstate);
23138 if (PyErr_Occurred()) SWIG_fail;
23139 }
23140 {
23141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23142 }
23143 {
23144 if (temp2)
23145 delete arg2;
23146 }
23147 return resultobj;
23148 fail:
23149 {
23150 if (temp2)
23151 delete arg2;
23152 }
23153 return NULL;
23154 }
23155
23156
23157 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23158 PyObject *resultobj = 0;
23159 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23160 wxString *arg2 = 0 ;
23161 bool result;
23162 void *argp1 = 0 ;
23163 int res1 = 0 ;
23164 bool temp2 = false ;
23165 PyObject * obj0 = 0 ;
23166 PyObject * obj1 = 0 ;
23167 char * kwnames[] = {
23168 (char *) "self",(char *) "help", NULL
23169 };
23170
23171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23173 if (!SWIG_IsOK(res1)) {
23174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23175 }
23176 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23177 {
23178 arg2 = wxString_in_helper(obj1);
23179 if (arg2 == NULL) SWIG_fail;
23180 temp2 = true;
23181 }
23182 {
23183 PyThreadState* __tstate = wxPyBeginAllowThreads();
23184 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23185 wxPyEndAllowThreads(__tstate);
23186 if (PyErr_Occurred()) SWIG_fail;
23187 }
23188 {
23189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23190 }
23191 {
23192 if (temp2)
23193 delete arg2;
23194 }
23195 return resultobj;
23196 fail:
23197 {
23198 if (temp2)
23199 delete arg2;
23200 }
23201 return NULL;
23202 }
23203
23204
23205 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23206 PyObject *resultobj = 0;
23207 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23208 wxBitmap *arg2 = 0 ;
23209 void *argp1 = 0 ;
23210 int res1 = 0 ;
23211 void *argp2 = 0 ;
23212 int res2 = 0 ;
23213 PyObject * obj0 = 0 ;
23214 PyObject * obj1 = 0 ;
23215 char * kwnames[] = {
23216 (char *) "self",(char *) "bmp", NULL
23217 };
23218
23219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23221 if (!SWIG_IsOK(res1)) {
23222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23223 }
23224 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23225 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23226 if (!SWIG_IsOK(res2)) {
23227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23228 }
23229 if (!argp2) {
23230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23231 }
23232 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23233 {
23234 PyThreadState* __tstate = wxPyBeginAllowThreads();
23235 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23236 wxPyEndAllowThreads(__tstate);
23237 if (PyErr_Occurred()) SWIG_fail;
23238 }
23239 resultobj = SWIG_Py_Void();
23240 return resultobj;
23241 fail:
23242 return NULL;
23243 }
23244
23245
23246 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23247 PyObject *resultobj = 0;
23248 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23249 wxBitmap *arg2 = 0 ;
23250 void *argp1 = 0 ;
23251 int res1 = 0 ;
23252 void *argp2 = 0 ;
23253 int res2 = 0 ;
23254 PyObject * obj0 = 0 ;
23255 PyObject * obj1 = 0 ;
23256 char * kwnames[] = {
23257 (char *) "self",(char *) "bmp", NULL
23258 };
23259
23260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23262 if (!SWIG_IsOK(res1)) {
23263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23264 }
23265 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23266 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23267 if (!SWIG_IsOK(res2)) {
23268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23269 }
23270 if (!argp2) {
23271 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23272 }
23273 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23274 {
23275 PyThreadState* __tstate = wxPyBeginAllowThreads();
23276 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23277 wxPyEndAllowThreads(__tstate);
23278 if (PyErr_Occurred()) SWIG_fail;
23279 }
23280 resultobj = SWIG_Py_Void();
23281 return resultobj;
23282 fail:
23283 return NULL;
23284 }
23285
23286
23287 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23288 PyObject *resultobj = 0;
23289 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23290 wxString *arg2 = 0 ;
23291 void *argp1 = 0 ;
23292 int res1 = 0 ;
23293 bool temp2 = false ;
23294 PyObject * obj0 = 0 ;
23295 PyObject * obj1 = 0 ;
23296 char * kwnames[] = {
23297 (char *) "self",(char *) "label", NULL
23298 };
23299
23300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23302 if (!SWIG_IsOK(res1)) {
23303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23304 }
23305 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23306 {
23307 arg2 = wxString_in_helper(obj1);
23308 if (arg2 == NULL) SWIG_fail;
23309 temp2 = true;
23310 }
23311 {
23312 PyThreadState* __tstate = wxPyBeginAllowThreads();
23313 (arg1)->SetLabel((wxString const &)*arg2);
23314 wxPyEndAllowThreads(__tstate);
23315 if (PyErr_Occurred()) SWIG_fail;
23316 }
23317 resultobj = SWIG_Py_Void();
23318 {
23319 if (temp2)
23320 delete arg2;
23321 }
23322 return resultobj;
23323 fail:
23324 {
23325 if (temp2)
23326 delete arg2;
23327 }
23328 return NULL;
23329 }
23330
23331
23332 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23333 PyObject *resultobj = 0;
23334 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23335 void *argp1 = 0 ;
23336 int res1 = 0 ;
23337 PyObject *swig_obj[1] ;
23338
23339 if (!args) SWIG_fail;
23340 swig_obj[0] = args;
23341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23342 if (!SWIG_IsOK(res1)) {
23343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23344 }
23345 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23346 {
23347 PyThreadState* __tstate = wxPyBeginAllowThreads();
23348 (arg1)->Detach();
23349 wxPyEndAllowThreads(__tstate);
23350 if (PyErr_Occurred()) SWIG_fail;
23351 }
23352 resultobj = SWIG_Py_Void();
23353 return resultobj;
23354 fail:
23355 return NULL;
23356 }
23357
23358
23359 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23360 PyObject *resultobj = 0;
23361 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23362 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23363 void *argp1 = 0 ;
23364 int res1 = 0 ;
23365 void *argp2 = 0 ;
23366 int res2 = 0 ;
23367 PyObject * obj0 = 0 ;
23368 PyObject * obj1 = 0 ;
23369 char * kwnames[] = {
23370 (char *) "self",(char *) "tbar", NULL
23371 };
23372
23373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23375 if (!SWIG_IsOK(res1)) {
23376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23377 }
23378 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23379 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23380 if (!SWIG_IsOK(res2)) {
23381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23382 }
23383 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23384 {
23385 PyThreadState* __tstate = wxPyBeginAllowThreads();
23386 (arg1)->Attach(arg2);
23387 wxPyEndAllowThreads(__tstate);
23388 if (PyErr_Occurred()) SWIG_fail;
23389 }
23390 resultobj = SWIG_Py_Void();
23391 return resultobj;
23392 fail:
23393 return NULL;
23394 }
23395
23396
23397 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23398 PyObject *resultobj = 0;
23399 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23400 PyObject *result = 0 ;
23401 void *argp1 = 0 ;
23402 int res1 = 0 ;
23403 PyObject *swig_obj[1] ;
23404
23405 if (!args) SWIG_fail;
23406 swig_obj[0] = args;
23407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23408 if (!SWIG_IsOK(res1)) {
23409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23410 }
23411 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23412 {
23413 PyThreadState* __tstate = wxPyBeginAllowThreads();
23414 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23415 wxPyEndAllowThreads(__tstate);
23416 if (PyErr_Occurred()) SWIG_fail;
23417 }
23418 resultobj = result;
23419 return resultobj;
23420 fail:
23421 return NULL;
23422 }
23423
23424
23425 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23426 PyObject *resultobj = 0;
23427 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23428 PyObject *arg2 = (PyObject *) 0 ;
23429 void *argp1 = 0 ;
23430 int res1 = 0 ;
23431 PyObject * obj0 = 0 ;
23432 PyObject * obj1 = 0 ;
23433 char * kwnames[] = {
23434 (char *) "self",(char *) "clientData", NULL
23435 };
23436
23437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23439 if (!SWIG_IsOK(res1)) {
23440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23441 }
23442 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23443 arg2 = obj1;
23444 {
23445 PyThreadState* __tstate = wxPyBeginAllowThreads();
23446 wxToolBarToolBase_SetClientData(arg1,arg2);
23447 wxPyEndAllowThreads(__tstate);
23448 if (PyErr_Occurred()) SWIG_fail;
23449 }
23450 resultobj = SWIG_Py_Void();
23451 return resultobj;
23452 fail:
23453 return NULL;
23454 }
23455
23456
23457 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23458 PyObject *obj;
23459 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23460 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23461 return SWIG_Py_Void();
23462 }
23463
23464 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23465 PyObject *resultobj = 0;
23466 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23467 int arg2 ;
23468 wxString *arg3 = 0 ;
23469 wxBitmap *arg4 = 0 ;
23470 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23471 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23472 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23473 wxString const &arg7_defvalue = wxPyEmptyString ;
23474 wxString *arg7 = (wxString *) &arg7_defvalue ;
23475 wxString const &arg8_defvalue = wxPyEmptyString ;
23476 wxString *arg8 = (wxString *) &arg8_defvalue ;
23477 PyObject *arg9 = (PyObject *) NULL ;
23478 wxToolBarToolBase *result = 0 ;
23479 void *argp1 = 0 ;
23480 int res1 = 0 ;
23481 int val2 ;
23482 int ecode2 = 0 ;
23483 bool temp3 = false ;
23484 void *argp4 = 0 ;
23485 int res4 = 0 ;
23486 void *argp5 = 0 ;
23487 int res5 = 0 ;
23488 int val6 ;
23489 int ecode6 = 0 ;
23490 bool temp7 = false ;
23491 bool temp8 = false ;
23492 PyObject * obj0 = 0 ;
23493 PyObject * obj1 = 0 ;
23494 PyObject * obj2 = 0 ;
23495 PyObject * obj3 = 0 ;
23496 PyObject * obj4 = 0 ;
23497 PyObject * obj5 = 0 ;
23498 PyObject * obj6 = 0 ;
23499 PyObject * obj7 = 0 ;
23500 PyObject * obj8 = 0 ;
23501 char * kwnames[] = {
23502 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23503 };
23504
23505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23507 if (!SWIG_IsOK(res1)) {
23508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23509 }
23510 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23511 ecode2 = SWIG_AsVal_int(obj1, &val2);
23512 if (!SWIG_IsOK(ecode2)) {
23513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23514 }
23515 arg2 = static_cast< int >(val2);
23516 {
23517 arg3 = wxString_in_helper(obj2);
23518 if (arg3 == NULL) SWIG_fail;
23519 temp3 = true;
23520 }
23521 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23522 if (!SWIG_IsOK(res4)) {
23523 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23524 }
23525 if (!argp4) {
23526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23527 }
23528 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23529 if (obj4) {
23530 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23531 if (!SWIG_IsOK(res5)) {
23532 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23533 }
23534 if (!argp5) {
23535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23536 }
23537 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23538 }
23539 if (obj5) {
23540 ecode6 = SWIG_AsVal_int(obj5, &val6);
23541 if (!SWIG_IsOK(ecode6)) {
23542 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23543 }
23544 arg6 = static_cast< wxItemKind >(val6);
23545 }
23546 if (obj6) {
23547 {
23548 arg7 = wxString_in_helper(obj6);
23549 if (arg7 == NULL) SWIG_fail;
23550 temp7 = true;
23551 }
23552 }
23553 if (obj7) {
23554 {
23555 arg8 = wxString_in_helper(obj7);
23556 if (arg8 == NULL) SWIG_fail;
23557 temp8 = true;
23558 }
23559 }
23560 if (obj8) {
23561 arg9 = obj8;
23562 }
23563 {
23564 PyThreadState* __tstate = wxPyBeginAllowThreads();
23565 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23566 wxPyEndAllowThreads(__tstate);
23567 if (PyErr_Occurred()) SWIG_fail;
23568 }
23569 {
23570 resultobj = wxPyMake_wxObject(result, (bool)0);
23571 }
23572 {
23573 if (temp3)
23574 delete arg3;
23575 }
23576 {
23577 if (temp7)
23578 delete arg7;
23579 }
23580 {
23581 if (temp8)
23582 delete arg8;
23583 }
23584 return resultobj;
23585 fail:
23586 {
23587 if (temp3)
23588 delete arg3;
23589 }
23590 {
23591 if (temp7)
23592 delete arg7;
23593 }
23594 {
23595 if (temp8)
23596 delete arg8;
23597 }
23598 return NULL;
23599 }
23600
23601
23602 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23603 PyObject *resultobj = 0;
23604 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23605 size_t arg2 ;
23606 int arg3 ;
23607 wxString *arg4 = 0 ;
23608 wxBitmap *arg5 = 0 ;
23609 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23610 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23611 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23612 wxString const &arg8_defvalue = wxPyEmptyString ;
23613 wxString *arg8 = (wxString *) &arg8_defvalue ;
23614 wxString const &arg9_defvalue = wxPyEmptyString ;
23615 wxString *arg9 = (wxString *) &arg9_defvalue ;
23616 PyObject *arg10 = (PyObject *) NULL ;
23617 wxToolBarToolBase *result = 0 ;
23618 void *argp1 = 0 ;
23619 int res1 = 0 ;
23620 size_t val2 ;
23621 int ecode2 = 0 ;
23622 int val3 ;
23623 int ecode3 = 0 ;
23624 bool temp4 = false ;
23625 void *argp5 = 0 ;
23626 int res5 = 0 ;
23627 void *argp6 = 0 ;
23628 int res6 = 0 ;
23629 int val7 ;
23630 int ecode7 = 0 ;
23631 bool temp8 = false ;
23632 bool temp9 = false ;
23633 PyObject * obj0 = 0 ;
23634 PyObject * obj1 = 0 ;
23635 PyObject * obj2 = 0 ;
23636 PyObject * obj3 = 0 ;
23637 PyObject * obj4 = 0 ;
23638 PyObject * obj5 = 0 ;
23639 PyObject * obj6 = 0 ;
23640 PyObject * obj7 = 0 ;
23641 PyObject * obj8 = 0 ;
23642 PyObject * obj9 = 0 ;
23643 char * kwnames[] = {
23644 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23645 };
23646
23647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23649 if (!SWIG_IsOK(res1)) {
23650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23651 }
23652 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23653 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23654 if (!SWIG_IsOK(ecode2)) {
23655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23656 }
23657 arg2 = static_cast< size_t >(val2);
23658 ecode3 = SWIG_AsVal_int(obj2, &val3);
23659 if (!SWIG_IsOK(ecode3)) {
23660 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23661 }
23662 arg3 = static_cast< int >(val3);
23663 {
23664 arg4 = wxString_in_helper(obj3);
23665 if (arg4 == NULL) SWIG_fail;
23666 temp4 = true;
23667 }
23668 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23669 if (!SWIG_IsOK(res5)) {
23670 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23671 }
23672 if (!argp5) {
23673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23674 }
23675 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23676 if (obj5) {
23677 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23678 if (!SWIG_IsOK(res6)) {
23679 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23680 }
23681 if (!argp6) {
23682 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23683 }
23684 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23685 }
23686 if (obj6) {
23687 ecode7 = SWIG_AsVal_int(obj6, &val7);
23688 if (!SWIG_IsOK(ecode7)) {
23689 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23690 }
23691 arg7 = static_cast< wxItemKind >(val7);
23692 }
23693 if (obj7) {
23694 {
23695 arg8 = wxString_in_helper(obj7);
23696 if (arg8 == NULL) SWIG_fail;
23697 temp8 = true;
23698 }
23699 }
23700 if (obj8) {
23701 {
23702 arg9 = wxString_in_helper(obj8);
23703 if (arg9 == NULL) SWIG_fail;
23704 temp9 = true;
23705 }
23706 }
23707 if (obj9) {
23708 arg10 = obj9;
23709 }
23710 {
23711 PyThreadState* __tstate = wxPyBeginAllowThreads();
23712 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23713 wxPyEndAllowThreads(__tstate);
23714 if (PyErr_Occurred()) SWIG_fail;
23715 }
23716 {
23717 resultobj = wxPyMake_wxObject(result, (bool)0);
23718 }
23719 {
23720 if (temp4)
23721 delete arg4;
23722 }
23723 {
23724 if (temp8)
23725 delete arg8;
23726 }
23727 {
23728 if (temp9)
23729 delete arg9;
23730 }
23731 return resultobj;
23732 fail:
23733 {
23734 if (temp4)
23735 delete arg4;
23736 }
23737 {
23738 if (temp8)
23739 delete arg8;
23740 }
23741 {
23742 if (temp9)
23743 delete arg9;
23744 }
23745 return NULL;
23746 }
23747
23748
23749 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23750 PyObject *resultobj = 0;
23751 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23752 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23753 wxToolBarToolBase *result = 0 ;
23754 void *argp1 = 0 ;
23755 int res1 = 0 ;
23756 void *argp2 = 0 ;
23757 int res2 = 0 ;
23758 PyObject * obj0 = 0 ;
23759 PyObject * obj1 = 0 ;
23760 char * kwnames[] = {
23761 (char *) "self",(char *) "tool", NULL
23762 };
23763
23764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23766 if (!SWIG_IsOK(res1)) {
23767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23768 }
23769 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23770 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23771 if (!SWIG_IsOK(res2)) {
23772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23773 }
23774 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23775 {
23776 PyThreadState* __tstate = wxPyBeginAllowThreads();
23777 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23778 wxPyEndAllowThreads(__tstate);
23779 if (PyErr_Occurred()) SWIG_fail;
23780 }
23781 {
23782 resultobj = wxPyMake_wxObject(result, (bool)0);
23783 }
23784 return resultobj;
23785 fail:
23786 return NULL;
23787 }
23788
23789
23790 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23791 PyObject *resultobj = 0;
23792 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23793 size_t arg2 ;
23794 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23795 wxToolBarToolBase *result = 0 ;
23796 void *argp1 = 0 ;
23797 int res1 = 0 ;
23798 size_t val2 ;
23799 int ecode2 = 0 ;
23800 void *argp3 = 0 ;
23801 int res3 = 0 ;
23802 PyObject * obj0 = 0 ;
23803 PyObject * obj1 = 0 ;
23804 PyObject * obj2 = 0 ;
23805 char * kwnames[] = {
23806 (char *) "self",(char *) "pos",(char *) "tool", NULL
23807 };
23808
23809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23811 if (!SWIG_IsOK(res1)) {
23812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23813 }
23814 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23815 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23816 if (!SWIG_IsOK(ecode2)) {
23817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23818 }
23819 arg2 = static_cast< size_t >(val2);
23820 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23821 if (!SWIG_IsOK(res3)) {
23822 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23823 }
23824 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23825 {
23826 PyThreadState* __tstate = wxPyBeginAllowThreads();
23827 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23828 wxPyEndAllowThreads(__tstate);
23829 if (PyErr_Occurred()) SWIG_fail;
23830 }
23831 {
23832 resultobj = wxPyMake_wxObject(result, (bool)0);
23833 }
23834 return resultobj;
23835 fail:
23836 return NULL;
23837 }
23838
23839
23840 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23841 PyObject *resultobj = 0;
23842 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23843 wxControl *arg2 = (wxControl *) 0 ;
23844 wxToolBarToolBase *result = 0 ;
23845 void *argp1 = 0 ;
23846 int res1 = 0 ;
23847 void *argp2 = 0 ;
23848 int res2 = 0 ;
23849 PyObject * obj0 = 0 ;
23850 PyObject * obj1 = 0 ;
23851 char * kwnames[] = {
23852 (char *) "self",(char *) "control", NULL
23853 };
23854
23855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23857 if (!SWIG_IsOK(res1)) {
23858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23859 }
23860 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23861 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23862 if (!SWIG_IsOK(res2)) {
23863 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23864 }
23865 arg2 = reinterpret_cast< wxControl * >(argp2);
23866 {
23867 PyThreadState* __tstate = wxPyBeginAllowThreads();
23868 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23869 wxPyEndAllowThreads(__tstate);
23870 if (PyErr_Occurred()) SWIG_fail;
23871 }
23872 {
23873 resultobj = wxPyMake_wxObject(result, (bool)0);
23874 }
23875 return resultobj;
23876 fail:
23877 return NULL;
23878 }
23879
23880
23881 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23882 PyObject *resultobj = 0;
23883 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23884 size_t arg2 ;
23885 wxControl *arg3 = (wxControl *) 0 ;
23886 wxToolBarToolBase *result = 0 ;
23887 void *argp1 = 0 ;
23888 int res1 = 0 ;
23889 size_t val2 ;
23890 int ecode2 = 0 ;
23891 void *argp3 = 0 ;
23892 int res3 = 0 ;
23893 PyObject * obj0 = 0 ;
23894 PyObject * obj1 = 0 ;
23895 PyObject * obj2 = 0 ;
23896 char * kwnames[] = {
23897 (char *) "self",(char *) "pos",(char *) "control", NULL
23898 };
23899
23900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23902 if (!SWIG_IsOK(res1)) {
23903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23904 }
23905 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23906 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23907 if (!SWIG_IsOK(ecode2)) {
23908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23909 }
23910 arg2 = static_cast< size_t >(val2);
23911 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23912 if (!SWIG_IsOK(res3)) {
23913 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23914 }
23915 arg3 = reinterpret_cast< wxControl * >(argp3);
23916 {
23917 PyThreadState* __tstate = wxPyBeginAllowThreads();
23918 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23919 wxPyEndAllowThreads(__tstate);
23920 if (PyErr_Occurred()) SWIG_fail;
23921 }
23922 {
23923 resultobj = wxPyMake_wxObject(result, (bool)0);
23924 }
23925 return resultobj;
23926 fail:
23927 return NULL;
23928 }
23929
23930
23931 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23932 PyObject *resultobj = 0;
23933 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23934 int arg2 ;
23935 wxControl *result = 0 ;
23936 void *argp1 = 0 ;
23937 int res1 = 0 ;
23938 int val2 ;
23939 int ecode2 = 0 ;
23940 PyObject * obj0 = 0 ;
23941 PyObject * obj1 = 0 ;
23942 char * kwnames[] = {
23943 (char *) "self",(char *) "id", NULL
23944 };
23945
23946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23948 if (!SWIG_IsOK(res1)) {
23949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23950 }
23951 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23952 ecode2 = SWIG_AsVal_int(obj1, &val2);
23953 if (!SWIG_IsOK(ecode2)) {
23954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23955 }
23956 arg2 = static_cast< int >(val2);
23957 {
23958 PyThreadState* __tstate = wxPyBeginAllowThreads();
23959 result = (wxControl *)(arg1)->FindControl(arg2);
23960 wxPyEndAllowThreads(__tstate);
23961 if (PyErr_Occurred()) SWIG_fail;
23962 }
23963 {
23964 resultobj = wxPyMake_wxObject(result, 0);
23965 }
23966 return resultobj;
23967 fail:
23968 return NULL;
23969 }
23970
23971
23972 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23973 PyObject *resultobj = 0;
23974 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23975 wxToolBarToolBase *result = 0 ;
23976 void *argp1 = 0 ;
23977 int res1 = 0 ;
23978 PyObject *swig_obj[1] ;
23979
23980 if (!args) SWIG_fail;
23981 swig_obj[0] = args;
23982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23983 if (!SWIG_IsOK(res1)) {
23984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23985 }
23986 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23987 {
23988 PyThreadState* __tstate = wxPyBeginAllowThreads();
23989 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
23990 wxPyEndAllowThreads(__tstate);
23991 if (PyErr_Occurred()) SWIG_fail;
23992 }
23993 {
23994 resultobj = wxPyMake_wxObject(result, (bool)0);
23995 }
23996 return resultobj;
23997 fail:
23998 return NULL;
23999 }
24000
24001
24002 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24003 PyObject *resultobj = 0;
24004 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24005 size_t arg2 ;
24006 wxToolBarToolBase *result = 0 ;
24007 void *argp1 = 0 ;
24008 int res1 = 0 ;
24009 size_t val2 ;
24010 int ecode2 = 0 ;
24011 PyObject * obj0 = 0 ;
24012 PyObject * obj1 = 0 ;
24013 char * kwnames[] = {
24014 (char *) "self",(char *) "pos", NULL
24015 };
24016
24017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24019 if (!SWIG_IsOK(res1)) {
24020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24021 }
24022 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24023 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24024 if (!SWIG_IsOK(ecode2)) {
24025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24026 }
24027 arg2 = static_cast< size_t >(val2);
24028 {
24029 PyThreadState* __tstate = wxPyBeginAllowThreads();
24030 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24031 wxPyEndAllowThreads(__tstate);
24032 if (PyErr_Occurred()) SWIG_fail;
24033 }
24034 {
24035 resultobj = wxPyMake_wxObject(result, (bool)0);
24036 }
24037 return resultobj;
24038 fail:
24039 return NULL;
24040 }
24041
24042
24043 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24044 PyObject *resultobj = 0;
24045 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24046 int arg2 ;
24047 wxToolBarToolBase *result = 0 ;
24048 void *argp1 = 0 ;
24049 int res1 = 0 ;
24050 int val2 ;
24051 int ecode2 = 0 ;
24052 PyObject * obj0 = 0 ;
24053 PyObject * obj1 = 0 ;
24054 char * kwnames[] = {
24055 (char *) "self",(char *) "id", NULL
24056 };
24057
24058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24060 if (!SWIG_IsOK(res1)) {
24061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24062 }
24063 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24064 ecode2 = SWIG_AsVal_int(obj1, &val2);
24065 if (!SWIG_IsOK(ecode2)) {
24066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24067 }
24068 arg2 = static_cast< int >(val2);
24069 {
24070 PyThreadState* __tstate = wxPyBeginAllowThreads();
24071 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24072 wxPyEndAllowThreads(__tstate);
24073 if (PyErr_Occurred()) SWIG_fail;
24074 }
24075 {
24076 resultobj = wxPyMake_wxObject(result, (bool)0);
24077 }
24078 return resultobj;
24079 fail:
24080 return NULL;
24081 }
24082
24083
24084 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24085 PyObject *resultobj = 0;
24086 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24087 size_t arg2 ;
24088 bool result;
24089 void *argp1 = 0 ;
24090 int res1 = 0 ;
24091 size_t val2 ;
24092 int ecode2 = 0 ;
24093 PyObject * obj0 = 0 ;
24094 PyObject * obj1 = 0 ;
24095 char * kwnames[] = {
24096 (char *) "self",(char *) "pos", NULL
24097 };
24098
24099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24101 if (!SWIG_IsOK(res1)) {
24102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24103 }
24104 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24105 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24106 if (!SWIG_IsOK(ecode2)) {
24107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24108 }
24109 arg2 = static_cast< size_t >(val2);
24110 {
24111 PyThreadState* __tstate = wxPyBeginAllowThreads();
24112 result = (bool)(arg1)->DeleteToolByPos(arg2);
24113 wxPyEndAllowThreads(__tstate);
24114 if (PyErr_Occurred()) SWIG_fail;
24115 }
24116 {
24117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24118 }
24119 return resultobj;
24120 fail:
24121 return NULL;
24122 }
24123
24124
24125 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24126 PyObject *resultobj = 0;
24127 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24128 int arg2 ;
24129 bool result;
24130 void *argp1 = 0 ;
24131 int res1 = 0 ;
24132 int val2 ;
24133 int ecode2 = 0 ;
24134 PyObject * obj0 = 0 ;
24135 PyObject * obj1 = 0 ;
24136 char * kwnames[] = {
24137 (char *) "self",(char *) "id", NULL
24138 };
24139
24140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24142 if (!SWIG_IsOK(res1)) {
24143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24144 }
24145 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24146 ecode2 = SWIG_AsVal_int(obj1, &val2);
24147 if (!SWIG_IsOK(ecode2)) {
24148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24149 }
24150 arg2 = static_cast< int >(val2);
24151 {
24152 PyThreadState* __tstate = wxPyBeginAllowThreads();
24153 result = (bool)(arg1)->DeleteTool(arg2);
24154 wxPyEndAllowThreads(__tstate);
24155 if (PyErr_Occurred()) SWIG_fail;
24156 }
24157 {
24158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24159 }
24160 return resultobj;
24161 fail:
24162 return NULL;
24163 }
24164
24165
24166 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24167 PyObject *resultobj = 0;
24168 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24169 void *argp1 = 0 ;
24170 int res1 = 0 ;
24171 PyObject *swig_obj[1] ;
24172
24173 if (!args) SWIG_fail;
24174 swig_obj[0] = args;
24175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24176 if (!SWIG_IsOK(res1)) {
24177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24178 }
24179 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24180 {
24181 PyThreadState* __tstate = wxPyBeginAllowThreads();
24182 (arg1)->ClearTools();
24183 wxPyEndAllowThreads(__tstate);
24184 if (PyErr_Occurred()) SWIG_fail;
24185 }
24186 resultobj = SWIG_Py_Void();
24187 return resultobj;
24188 fail:
24189 return NULL;
24190 }
24191
24192
24193 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24194 PyObject *resultobj = 0;
24195 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24196 bool result;
24197 void *argp1 = 0 ;
24198 int res1 = 0 ;
24199 PyObject *swig_obj[1] ;
24200
24201 if (!args) SWIG_fail;
24202 swig_obj[0] = args;
24203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24204 if (!SWIG_IsOK(res1)) {
24205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24206 }
24207 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24208 {
24209 PyThreadState* __tstate = wxPyBeginAllowThreads();
24210 result = (bool)(arg1)->Realize();
24211 wxPyEndAllowThreads(__tstate);
24212 if (PyErr_Occurred()) SWIG_fail;
24213 }
24214 {
24215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24216 }
24217 return resultobj;
24218 fail:
24219 return NULL;
24220 }
24221
24222
24223 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24224 PyObject *resultobj = 0;
24225 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24226 int arg2 ;
24227 bool arg3 ;
24228 void *argp1 = 0 ;
24229 int res1 = 0 ;
24230 int val2 ;
24231 int ecode2 = 0 ;
24232 bool val3 ;
24233 int ecode3 = 0 ;
24234 PyObject * obj0 = 0 ;
24235 PyObject * obj1 = 0 ;
24236 PyObject * obj2 = 0 ;
24237 char * kwnames[] = {
24238 (char *) "self",(char *) "id",(char *) "enable", NULL
24239 };
24240
24241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24243 if (!SWIG_IsOK(res1)) {
24244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24245 }
24246 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24247 ecode2 = SWIG_AsVal_int(obj1, &val2);
24248 if (!SWIG_IsOK(ecode2)) {
24249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24250 }
24251 arg2 = static_cast< int >(val2);
24252 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24253 if (!SWIG_IsOK(ecode3)) {
24254 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24255 }
24256 arg3 = static_cast< bool >(val3);
24257 {
24258 PyThreadState* __tstate = wxPyBeginAllowThreads();
24259 (arg1)->EnableTool(arg2,arg3);
24260 wxPyEndAllowThreads(__tstate);
24261 if (PyErr_Occurred()) SWIG_fail;
24262 }
24263 resultobj = SWIG_Py_Void();
24264 return resultobj;
24265 fail:
24266 return NULL;
24267 }
24268
24269
24270 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24271 PyObject *resultobj = 0;
24272 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24273 int arg2 ;
24274 bool arg3 ;
24275 void *argp1 = 0 ;
24276 int res1 = 0 ;
24277 int val2 ;
24278 int ecode2 = 0 ;
24279 bool val3 ;
24280 int ecode3 = 0 ;
24281 PyObject * obj0 = 0 ;
24282 PyObject * obj1 = 0 ;
24283 PyObject * obj2 = 0 ;
24284 char * kwnames[] = {
24285 (char *) "self",(char *) "id",(char *) "toggle", NULL
24286 };
24287
24288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24290 if (!SWIG_IsOK(res1)) {
24291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24292 }
24293 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24294 ecode2 = SWIG_AsVal_int(obj1, &val2);
24295 if (!SWIG_IsOK(ecode2)) {
24296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24297 }
24298 arg2 = static_cast< int >(val2);
24299 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24300 if (!SWIG_IsOK(ecode3)) {
24301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24302 }
24303 arg3 = static_cast< bool >(val3);
24304 {
24305 PyThreadState* __tstate = wxPyBeginAllowThreads();
24306 (arg1)->ToggleTool(arg2,arg3);
24307 wxPyEndAllowThreads(__tstate);
24308 if (PyErr_Occurred()) SWIG_fail;
24309 }
24310 resultobj = SWIG_Py_Void();
24311 return resultobj;
24312 fail:
24313 return NULL;
24314 }
24315
24316
24317 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24318 PyObject *resultobj = 0;
24319 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24320 int arg2 ;
24321 bool arg3 ;
24322 void *argp1 = 0 ;
24323 int res1 = 0 ;
24324 int val2 ;
24325 int ecode2 = 0 ;
24326 bool val3 ;
24327 int ecode3 = 0 ;
24328 PyObject * obj0 = 0 ;
24329 PyObject * obj1 = 0 ;
24330 PyObject * obj2 = 0 ;
24331 char * kwnames[] = {
24332 (char *) "self",(char *) "id",(char *) "toggle", NULL
24333 };
24334
24335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24337 if (!SWIG_IsOK(res1)) {
24338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24339 }
24340 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24341 ecode2 = SWIG_AsVal_int(obj1, &val2);
24342 if (!SWIG_IsOK(ecode2)) {
24343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24344 }
24345 arg2 = static_cast< int >(val2);
24346 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24347 if (!SWIG_IsOK(ecode3)) {
24348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24349 }
24350 arg3 = static_cast< bool >(val3);
24351 {
24352 PyThreadState* __tstate = wxPyBeginAllowThreads();
24353 (arg1)->SetToggle(arg2,arg3);
24354 wxPyEndAllowThreads(__tstate);
24355 if (PyErr_Occurred()) SWIG_fail;
24356 }
24357 resultobj = SWIG_Py_Void();
24358 return resultobj;
24359 fail:
24360 return NULL;
24361 }
24362
24363
24364 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24365 PyObject *resultobj = 0;
24366 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24367 int arg2 ;
24368 PyObject *result = 0 ;
24369 void *argp1 = 0 ;
24370 int res1 = 0 ;
24371 int val2 ;
24372 int ecode2 = 0 ;
24373 PyObject * obj0 = 0 ;
24374 PyObject * obj1 = 0 ;
24375 char * kwnames[] = {
24376 (char *) "self",(char *) "id", NULL
24377 };
24378
24379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24381 if (!SWIG_IsOK(res1)) {
24382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24383 }
24384 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24385 ecode2 = SWIG_AsVal_int(obj1, &val2);
24386 if (!SWIG_IsOK(ecode2)) {
24387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24388 }
24389 arg2 = static_cast< int >(val2);
24390 {
24391 PyThreadState* __tstate = wxPyBeginAllowThreads();
24392 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24393 wxPyEndAllowThreads(__tstate);
24394 if (PyErr_Occurred()) SWIG_fail;
24395 }
24396 resultobj = result;
24397 return resultobj;
24398 fail:
24399 return NULL;
24400 }
24401
24402
24403 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24404 PyObject *resultobj = 0;
24405 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24406 int arg2 ;
24407 PyObject *arg3 = (PyObject *) 0 ;
24408 void *argp1 = 0 ;
24409 int res1 = 0 ;
24410 int val2 ;
24411 int ecode2 = 0 ;
24412 PyObject * obj0 = 0 ;
24413 PyObject * obj1 = 0 ;
24414 PyObject * obj2 = 0 ;
24415 char * kwnames[] = {
24416 (char *) "self",(char *) "id",(char *) "clientData", NULL
24417 };
24418
24419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24421 if (!SWIG_IsOK(res1)) {
24422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24423 }
24424 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24425 ecode2 = SWIG_AsVal_int(obj1, &val2);
24426 if (!SWIG_IsOK(ecode2)) {
24427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24428 }
24429 arg2 = static_cast< int >(val2);
24430 arg3 = obj2;
24431 {
24432 PyThreadState* __tstate = wxPyBeginAllowThreads();
24433 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24434 wxPyEndAllowThreads(__tstate);
24435 if (PyErr_Occurred()) SWIG_fail;
24436 }
24437 resultobj = SWIG_Py_Void();
24438 return resultobj;
24439 fail:
24440 return NULL;
24441 }
24442
24443
24444 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24445 PyObject *resultobj = 0;
24446 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24447 int arg2 ;
24448 int result;
24449 void *argp1 = 0 ;
24450 int res1 = 0 ;
24451 int val2 ;
24452 int ecode2 = 0 ;
24453 PyObject * obj0 = 0 ;
24454 PyObject * obj1 = 0 ;
24455 char * kwnames[] = {
24456 (char *) "self",(char *) "id", NULL
24457 };
24458
24459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24461 if (!SWIG_IsOK(res1)) {
24462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24463 }
24464 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24465 ecode2 = SWIG_AsVal_int(obj1, &val2);
24466 if (!SWIG_IsOK(ecode2)) {
24467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24468 }
24469 arg2 = static_cast< int >(val2);
24470 {
24471 PyThreadState* __tstate = wxPyBeginAllowThreads();
24472 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24473 wxPyEndAllowThreads(__tstate);
24474 if (PyErr_Occurred()) SWIG_fail;
24475 }
24476 resultobj = SWIG_From_int(static_cast< int >(result));
24477 return resultobj;
24478 fail:
24479 return NULL;
24480 }
24481
24482
24483 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24484 PyObject *resultobj = 0;
24485 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24486 int arg2 ;
24487 bool result;
24488 void *argp1 = 0 ;
24489 int res1 = 0 ;
24490 int val2 ;
24491 int ecode2 = 0 ;
24492 PyObject * obj0 = 0 ;
24493 PyObject * obj1 = 0 ;
24494 char * kwnames[] = {
24495 (char *) "self",(char *) "id", NULL
24496 };
24497
24498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24500 if (!SWIG_IsOK(res1)) {
24501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24502 }
24503 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24504 ecode2 = SWIG_AsVal_int(obj1, &val2);
24505 if (!SWIG_IsOK(ecode2)) {
24506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24507 }
24508 arg2 = static_cast< int >(val2);
24509 {
24510 PyThreadState* __tstate = wxPyBeginAllowThreads();
24511 result = (bool)(arg1)->GetToolState(arg2);
24512 wxPyEndAllowThreads(__tstate);
24513 if (PyErr_Occurred()) SWIG_fail;
24514 }
24515 {
24516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24517 }
24518 return resultobj;
24519 fail:
24520 return NULL;
24521 }
24522
24523
24524 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24525 PyObject *resultobj = 0;
24526 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24527 int arg2 ;
24528 bool result;
24529 void *argp1 = 0 ;
24530 int res1 = 0 ;
24531 int val2 ;
24532 int ecode2 = 0 ;
24533 PyObject * obj0 = 0 ;
24534 PyObject * obj1 = 0 ;
24535 char * kwnames[] = {
24536 (char *) "self",(char *) "id", NULL
24537 };
24538
24539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24541 if (!SWIG_IsOK(res1)) {
24542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24543 }
24544 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24545 ecode2 = SWIG_AsVal_int(obj1, &val2);
24546 if (!SWIG_IsOK(ecode2)) {
24547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24548 }
24549 arg2 = static_cast< int >(val2);
24550 {
24551 PyThreadState* __tstate = wxPyBeginAllowThreads();
24552 result = (bool)(arg1)->GetToolEnabled(arg2);
24553 wxPyEndAllowThreads(__tstate);
24554 if (PyErr_Occurred()) SWIG_fail;
24555 }
24556 {
24557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24558 }
24559 return resultobj;
24560 fail:
24561 return NULL;
24562 }
24563
24564
24565 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24566 PyObject *resultobj = 0;
24567 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24568 int arg2 ;
24569 wxString *arg3 = 0 ;
24570 void *argp1 = 0 ;
24571 int res1 = 0 ;
24572 int val2 ;
24573 int ecode2 = 0 ;
24574 bool temp3 = false ;
24575 PyObject * obj0 = 0 ;
24576 PyObject * obj1 = 0 ;
24577 PyObject * obj2 = 0 ;
24578 char * kwnames[] = {
24579 (char *) "self",(char *) "id",(char *) "helpString", NULL
24580 };
24581
24582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24584 if (!SWIG_IsOK(res1)) {
24585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24586 }
24587 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24588 ecode2 = SWIG_AsVal_int(obj1, &val2);
24589 if (!SWIG_IsOK(ecode2)) {
24590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24591 }
24592 arg2 = static_cast< int >(val2);
24593 {
24594 arg3 = wxString_in_helper(obj2);
24595 if (arg3 == NULL) SWIG_fail;
24596 temp3 = true;
24597 }
24598 {
24599 PyThreadState* __tstate = wxPyBeginAllowThreads();
24600 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24601 wxPyEndAllowThreads(__tstate);
24602 if (PyErr_Occurred()) SWIG_fail;
24603 }
24604 resultobj = SWIG_Py_Void();
24605 {
24606 if (temp3)
24607 delete arg3;
24608 }
24609 return resultobj;
24610 fail:
24611 {
24612 if (temp3)
24613 delete arg3;
24614 }
24615 return NULL;
24616 }
24617
24618
24619 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24620 PyObject *resultobj = 0;
24621 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24622 int arg2 ;
24623 wxString 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_GetToolShortHelp",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_GetToolShortHelp" "', 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_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24643 }
24644 arg2 = static_cast< int >(val2);
24645 {
24646 PyThreadState* __tstate = wxPyBeginAllowThreads();
24647 result = (arg1)->GetToolShortHelp(arg2);
24648 wxPyEndAllowThreads(__tstate);
24649 if (PyErr_Occurred()) SWIG_fail;
24650 }
24651 {
24652 #if wxUSE_UNICODE
24653 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24654 #else
24655 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24656 #endif
24657 }
24658 return resultobj;
24659 fail:
24660 return NULL;
24661 }
24662
24663
24664 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24665 PyObject *resultobj = 0;
24666 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24667 int arg2 ;
24668 wxString *arg3 = 0 ;
24669 void *argp1 = 0 ;
24670 int res1 = 0 ;
24671 int val2 ;
24672 int ecode2 = 0 ;
24673 bool temp3 = false ;
24674 PyObject * obj0 = 0 ;
24675 PyObject * obj1 = 0 ;
24676 PyObject * obj2 = 0 ;
24677 char * kwnames[] = {
24678 (char *) "self",(char *) "id",(char *) "helpString", NULL
24679 };
24680
24681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24683 if (!SWIG_IsOK(res1)) {
24684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24685 }
24686 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24687 ecode2 = SWIG_AsVal_int(obj1, &val2);
24688 if (!SWIG_IsOK(ecode2)) {
24689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24690 }
24691 arg2 = static_cast< int >(val2);
24692 {
24693 arg3 = wxString_in_helper(obj2);
24694 if (arg3 == NULL) SWIG_fail;
24695 temp3 = true;
24696 }
24697 {
24698 PyThreadState* __tstate = wxPyBeginAllowThreads();
24699 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24700 wxPyEndAllowThreads(__tstate);
24701 if (PyErr_Occurred()) SWIG_fail;
24702 }
24703 resultobj = SWIG_Py_Void();
24704 {
24705 if (temp3)
24706 delete arg3;
24707 }
24708 return resultobj;
24709 fail:
24710 {
24711 if (temp3)
24712 delete arg3;
24713 }
24714 return NULL;
24715 }
24716
24717
24718 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24719 PyObject *resultobj = 0;
24720 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24721 int arg2 ;
24722 wxString result;
24723 void *argp1 = 0 ;
24724 int res1 = 0 ;
24725 int val2 ;
24726 int ecode2 = 0 ;
24727 PyObject * obj0 = 0 ;
24728 PyObject * obj1 = 0 ;
24729 char * kwnames[] = {
24730 (char *) "self",(char *) "id", NULL
24731 };
24732
24733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24735 if (!SWIG_IsOK(res1)) {
24736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24737 }
24738 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24739 ecode2 = SWIG_AsVal_int(obj1, &val2);
24740 if (!SWIG_IsOK(ecode2)) {
24741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24742 }
24743 arg2 = static_cast< int >(val2);
24744 {
24745 PyThreadState* __tstate = wxPyBeginAllowThreads();
24746 result = (arg1)->GetToolLongHelp(arg2);
24747 wxPyEndAllowThreads(__tstate);
24748 if (PyErr_Occurred()) SWIG_fail;
24749 }
24750 {
24751 #if wxUSE_UNICODE
24752 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24753 #else
24754 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24755 #endif
24756 }
24757 return resultobj;
24758 fail:
24759 return NULL;
24760 }
24761
24762
24763 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24764 PyObject *resultobj = 0;
24765 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24766 int arg2 ;
24767 int arg3 ;
24768 void *argp1 = 0 ;
24769 int res1 = 0 ;
24770 int val2 ;
24771 int ecode2 = 0 ;
24772 int val3 ;
24773 int ecode3 = 0 ;
24774 PyObject * obj0 = 0 ;
24775 PyObject * obj1 = 0 ;
24776 PyObject * obj2 = 0 ;
24777 char * kwnames[] = {
24778 (char *) "self",(char *) "x",(char *) "y", NULL
24779 };
24780
24781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24783 if (!SWIG_IsOK(res1)) {
24784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24785 }
24786 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24787 ecode2 = SWIG_AsVal_int(obj1, &val2);
24788 if (!SWIG_IsOK(ecode2)) {
24789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24790 }
24791 arg2 = static_cast< int >(val2);
24792 ecode3 = SWIG_AsVal_int(obj2, &val3);
24793 if (!SWIG_IsOK(ecode3)) {
24794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24795 }
24796 arg3 = static_cast< int >(val3);
24797 {
24798 PyThreadState* __tstate = wxPyBeginAllowThreads();
24799 (arg1)->SetMargins(arg2,arg3);
24800 wxPyEndAllowThreads(__tstate);
24801 if (PyErr_Occurred()) SWIG_fail;
24802 }
24803 resultobj = SWIG_Py_Void();
24804 return resultobj;
24805 fail:
24806 return NULL;
24807 }
24808
24809
24810 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24811 PyObject *resultobj = 0;
24812 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24813 wxSize *arg2 = 0 ;
24814 void *argp1 = 0 ;
24815 int res1 = 0 ;
24816 wxSize temp2 ;
24817 PyObject * obj0 = 0 ;
24818 PyObject * obj1 = 0 ;
24819 char * kwnames[] = {
24820 (char *) "self",(char *) "size", NULL
24821 };
24822
24823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24825 if (!SWIG_IsOK(res1)) {
24826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24827 }
24828 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24829 {
24830 arg2 = &temp2;
24831 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24832 }
24833 {
24834 PyThreadState* __tstate = wxPyBeginAllowThreads();
24835 (arg1)->SetMargins((wxSize const &)*arg2);
24836 wxPyEndAllowThreads(__tstate);
24837 if (PyErr_Occurred()) SWIG_fail;
24838 }
24839 resultobj = SWIG_Py_Void();
24840 return resultobj;
24841 fail:
24842 return NULL;
24843 }
24844
24845
24846 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24847 PyObject *resultobj = 0;
24848 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24849 int arg2 ;
24850 void *argp1 = 0 ;
24851 int res1 = 0 ;
24852 int val2 ;
24853 int ecode2 = 0 ;
24854 PyObject * obj0 = 0 ;
24855 PyObject * obj1 = 0 ;
24856 char * kwnames[] = {
24857 (char *) "self",(char *) "packing", NULL
24858 };
24859
24860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24862 if (!SWIG_IsOK(res1)) {
24863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24864 }
24865 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24866 ecode2 = SWIG_AsVal_int(obj1, &val2);
24867 if (!SWIG_IsOK(ecode2)) {
24868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24869 }
24870 arg2 = static_cast< int >(val2);
24871 {
24872 PyThreadState* __tstate = wxPyBeginAllowThreads();
24873 (arg1)->SetToolPacking(arg2);
24874 wxPyEndAllowThreads(__tstate);
24875 if (PyErr_Occurred()) SWIG_fail;
24876 }
24877 resultobj = SWIG_Py_Void();
24878 return resultobj;
24879 fail:
24880 return NULL;
24881 }
24882
24883
24884 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24885 PyObject *resultobj = 0;
24886 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24887 int arg2 ;
24888 void *argp1 = 0 ;
24889 int res1 = 0 ;
24890 int val2 ;
24891 int ecode2 = 0 ;
24892 PyObject * obj0 = 0 ;
24893 PyObject * obj1 = 0 ;
24894 char * kwnames[] = {
24895 (char *) "self",(char *) "separation", NULL
24896 };
24897
24898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24900 if (!SWIG_IsOK(res1)) {
24901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24902 }
24903 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24904 ecode2 = SWIG_AsVal_int(obj1, &val2);
24905 if (!SWIG_IsOK(ecode2)) {
24906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24907 }
24908 arg2 = static_cast< int >(val2);
24909 {
24910 PyThreadState* __tstate = wxPyBeginAllowThreads();
24911 (arg1)->SetToolSeparation(arg2);
24912 wxPyEndAllowThreads(__tstate);
24913 if (PyErr_Occurred()) SWIG_fail;
24914 }
24915 resultobj = SWIG_Py_Void();
24916 return resultobj;
24917 fail:
24918 return NULL;
24919 }
24920
24921
24922 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24923 PyObject *resultobj = 0;
24924 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24925 wxSize result;
24926 void *argp1 = 0 ;
24927 int res1 = 0 ;
24928 PyObject *swig_obj[1] ;
24929
24930 if (!args) SWIG_fail;
24931 swig_obj[0] = args;
24932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24933 if (!SWIG_IsOK(res1)) {
24934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24935 }
24936 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24937 {
24938 PyThreadState* __tstate = wxPyBeginAllowThreads();
24939 result = (arg1)->GetToolMargins();
24940 wxPyEndAllowThreads(__tstate);
24941 if (PyErr_Occurred()) SWIG_fail;
24942 }
24943 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24944 return resultobj;
24945 fail:
24946 return NULL;
24947 }
24948
24949
24950 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24951 PyObject *resultobj = 0;
24952 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24953 wxSize result;
24954 void *argp1 = 0 ;
24955 int res1 = 0 ;
24956 PyObject *swig_obj[1] ;
24957
24958 if (!args) SWIG_fail;
24959 swig_obj[0] = args;
24960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24961 if (!SWIG_IsOK(res1)) {
24962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24963 }
24964 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24965 {
24966 PyThreadState* __tstate = wxPyBeginAllowThreads();
24967 result = (arg1)->GetMargins();
24968 wxPyEndAllowThreads(__tstate);
24969 if (PyErr_Occurred()) SWIG_fail;
24970 }
24971 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24972 return resultobj;
24973 fail:
24974 return NULL;
24975 }
24976
24977
24978 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24979 PyObject *resultobj = 0;
24980 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24981 int result;
24982 void *argp1 = 0 ;
24983 int res1 = 0 ;
24984 PyObject *swig_obj[1] ;
24985
24986 if (!args) SWIG_fail;
24987 swig_obj[0] = args;
24988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24989 if (!SWIG_IsOK(res1)) {
24990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24991 }
24992 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24993 {
24994 PyThreadState* __tstate = wxPyBeginAllowThreads();
24995 result = (int)(arg1)->GetToolPacking();
24996 wxPyEndAllowThreads(__tstate);
24997 if (PyErr_Occurred()) SWIG_fail;
24998 }
24999 resultobj = SWIG_From_int(static_cast< int >(result));
25000 return resultobj;
25001 fail:
25002 return NULL;
25003 }
25004
25005
25006 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25007 PyObject *resultobj = 0;
25008 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25009 int result;
25010 void *argp1 = 0 ;
25011 int res1 = 0 ;
25012 PyObject *swig_obj[1] ;
25013
25014 if (!args) SWIG_fail;
25015 swig_obj[0] = args;
25016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25017 if (!SWIG_IsOK(res1)) {
25018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25019 }
25020 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25021 {
25022 PyThreadState* __tstate = wxPyBeginAllowThreads();
25023 result = (int)(arg1)->GetToolSeparation();
25024 wxPyEndAllowThreads(__tstate);
25025 if (PyErr_Occurred()) SWIG_fail;
25026 }
25027 resultobj = SWIG_From_int(static_cast< int >(result));
25028 return resultobj;
25029 fail:
25030 return NULL;
25031 }
25032
25033
25034 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25035 PyObject *resultobj = 0;
25036 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25037 int arg2 ;
25038 void *argp1 = 0 ;
25039 int res1 = 0 ;
25040 int val2 ;
25041 int ecode2 = 0 ;
25042 PyObject * obj0 = 0 ;
25043 PyObject * obj1 = 0 ;
25044 char * kwnames[] = {
25045 (char *) "self",(char *) "nRows", NULL
25046 };
25047
25048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25050 if (!SWIG_IsOK(res1)) {
25051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25052 }
25053 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25054 ecode2 = SWIG_AsVal_int(obj1, &val2);
25055 if (!SWIG_IsOK(ecode2)) {
25056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25057 }
25058 arg2 = static_cast< int >(val2);
25059 {
25060 PyThreadState* __tstate = wxPyBeginAllowThreads();
25061 (arg1)->SetRows(arg2);
25062 wxPyEndAllowThreads(__tstate);
25063 if (PyErr_Occurred()) SWIG_fail;
25064 }
25065 resultobj = SWIG_Py_Void();
25066 return resultobj;
25067 fail:
25068 return NULL;
25069 }
25070
25071
25072 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25073 PyObject *resultobj = 0;
25074 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25075 int arg2 ;
25076 int arg3 ;
25077 void *argp1 = 0 ;
25078 int res1 = 0 ;
25079 int val2 ;
25080 int ecode2 = 0 ;
25081 int val3 ;
25082 int ecode3 = 0 ;
25083 PyObject * obj0 = 0 ;
25084 PyObject * obj1 = 0 ;
25085 PyObject * obj2 = 0 ;
25086 char * kwnames[] = {
25087 (char *) "self",(char *) "rows",(char *) "cols", NULL
25088 };
25089
25090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25092 if (!SWIG_IsOK(res1)) {
25093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25094 }
25095 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25096 ecode2 = SWIG_AsVal_int(obj1, &val2);
25097 if (!SWIG_IsOK(ecode2)) {
25098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25099 }
25100 arg2 = static_cast< int >(val2);
25101 ecode3 = SWIG_AsVal_int(obj2, &val3);
25102 if (!SWIG_IsOK(ecode3)) {
25103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25104 }
25105 arg3 = static_cast< int >(val3);
25106 {
25107 PyThreadState* __tstate = wxPyBeginAllowThreads();
25108 (arg1)->SetMaxRowsCols(arg2,arg3);
25109 wxPyEndAllowThreads(__tstate);
25110 if (PyErr_Occurred()) SWIG_fail;
25111 }
25112 resultobj = SWIG_Py_Void();
25113 return resultobj;
25114 fail:
25115 return NULL;
25116 }
25117
25118
25119 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25120 PyObject *resultobj = 0;
25121 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25122 int result;
25123 void *argp1 = 0 ;
25124 int res1 = 0 ;
25125 PyObject *swig_obj[1] ;
25126
25127 if (!args) SWIG_fail;
25128 swig_obj[0] = args;
25129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25130 if (!SWIG_IsOK(res1)) {
25131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25132 }
25133 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25134 {
25135 PyThreadState* __tstate = wxPyBeginAllowThreads();
25136 result = (int)(arg1)->GetMaxRows();
25137 wxPyEndAllowThreads(__tstate);
25138 if (PyErr_Occurred()) SWIG_fail;
25139 }
25140 resultobj = SWIG_From_int(static_cast< int >(result));
25141 return resultobj;
25142 fail:
25143 return NULL;
25144 }
25145
25146
25147 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25148 PyObject *resultobj = 0;
25149 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25150 int result;
25151 void *argp1 = 0 ;
25152 int res1 = 0 ;
25153 PyObject *swig_obj[1] ;
25154
25155 if (!args) SWIG_fail;
25156 swig_obj[0] = args;
25157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25158 if (!SWIG_IsOK(res1)) {
25159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25160 }
25161 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25162 {
25163 PyThreadState* __tstate = wxPyBeginAllowThreads();
25164 result = (int)(arg1)->GetMaxCols();
25165 wxPyEndAllowThreads(__tstate);
25166 if (PyErr_Occurred()) SWIG_fail;
25167 }
25168 resultobj = SWIG_From_int(static_cast< int >(result));
25169 return resultobj;
25170 fail:
25171 return NULL;
25172 }
25173
25174
25175 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25176 PyObject *resultobj = 0;
25177 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25178 wxSize *arg2 = 0 ;
25179 void *argp1 = 0 ;
25180 int res1 = 0 ;
25181 wxSize temp2 ;
25182 PyObject * obj0 = 0 ;
25183 PyObject * obj1 = 0 ;
25184 char * kwnames[] = {
25185 (char *) "self",(char *) "size", NULL
25186 };
25187
25188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25190 if (!SWIG_IsOK(res1)) {
25191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25192 }
25193 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25194 {
25195 arg2 = &temp2;
25196 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25197 }
25198 {
25199 PyThreadState* __tstate = wxPyBeginAllowThreads();
25200 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25201 wxPyEndAllowThreads(__tstate);
25202 if (PyErr_Occurred()) SWIG_fail;
25203 }
25204 resultobj = SWIG_Py_Void();
25205 return resultobj;
25206 fail:
25207 return NULL;
25208 }
25209
25210
25211 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25212 PyObject *resultobj = 0;
25213 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25214 wxSize result;
25215 void *argp1 = 0 ;
25216 int res1 = 0 ;
25217 PyObject *swig_obj[1] ;
25218
25219 if (!args) SWIG_fail;
25220 swig_obj[0] = args;
25221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25222 if (!SWIG_IsOK(res1)) {
25223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25224 }
25225 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25226 {
25227 PyThreadState* __tstate = wxPyBeginAllowThreads();
25228 result = (arg1)->GetToolBitmapSize();
25229 wxPyEndAllowThreads(__tstate);
25230 if (PyErr_Occurred()) SWIG_fail;
25231 }
25232 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25233 return resultobj;
25234 fail:
25235 return NULL;
25236 }
25237
25238
25239 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25240 PyObject *resultobj = 0;
25241 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25242 wxSize result;
25243 void *argp1 = 0 ;
25244 int res1 = 0 ;
25245 PyObject *swig_obj[1] ;
25246
25247 if (!args) SWIG_fail;
25248 swig_obj[0] = args;
25249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25250 if (!SWIG_IsOK(res1)) {
25251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25252 }
25253 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25254 {
25255 PyThreadState* __tstate = wxPyBeginAllowThreads();
25256 result = (arg1)->GetToolSize();
25257 wxPyEndAllowThreads(__tstate);
25258 if (PyErr_Occurred()) SWIG_fail;
25259 }
25260 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25261 return resultobj;
25262 fail:
25263 return NULL;
25264 }
25265
25266
25267 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25268 PyObject *resultobj = 0;
25269 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25270 int arg2 ;
25271 int arg3 ;
25272 wxToolBarToolBase *result = 0 ;
25273 void *argp1 = 0 ;
25274 int res1 = 0 ;
25275 int val2 ;
25276 int ecode2 = 0 ;
25277 int val3 ;
25278 int ecode3 = 0 ;
25279 PyObject * obj0 = 0 ;
25280 PyObject * obj1 = 0 ;
25281 PyObject * obj2 = 0 ;
25282 char * kwnames[] = {
25283 (char *) "self",(char *) "x",(char *) "y", NULL
25284 };
25285
25286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25288 if (!SWIG_IsOK(res1)) {
25289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25290 }
25291 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25292 ecode2 = SWIG_AsVal_int(obj1, &val2);
25293 if (!SWIG_IsOK(ecode2)) {
25294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25295 }
25296 arg2 = static_cast< int >(val2);
25297 ecode3 = SWIG_AsVal_int(obj2, &val3);
25298 if (!SWIG_IsOK(ecode3)) {
25299 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25300 }
25301 arg3 = static_cast< int >(val3);
25302 {
25303 PyThreadState* __tstate = wxPyBeginAllowThreads();
25304 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25305 wxPyEndAllowThreads(__tstate);
25306 if (PyErr_Occurred()) SWIG_fail;
25307 }
25308 {
25309 resultobj = wxPyMake_wxObject(result, (bool)0);
25310 }
25311 return resultobj;
25312 fail:
25313 return NULL;
25314 }
25315
25316
25317 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25318 PyObject *resultobj = 0;
25319 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25320 int arg2 ;
25321 wxToolBarToolBase *result = 0 ;
25322 void *argp1 = 0 ;
25323 int res1 = 0 ;
25324 int val2 ;
25325 int ecode2 = 0 ;
25326 PyObject * obj0 = 0 ;
25327 PyObject * obj1 = 0 ;
25328 char * kwnames[] = {
25329 (char *) "self",(char *) "toolid", NULL
25330 };
25331
25332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25334 if (!SWIG_IsOK(res1)) {
25335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25336 }
25337 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25338 ecode2 = SWIG_AsVal_int(obj1, &val2);
25339 if (!SWIG_IsOK(ecode2)) {
25340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25341 }
25342 arg2 = static_cast< int >(val2);
25343 {
25344 PyThreadState* __tstate = wxPyBeginAllowThreads();
25345 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25346 wxPyEndAllowThreads(__tstate);
25347 if (PyErr_Occurred()) SWIG_fail;
25348 }
25349 {
25350 resultobj = wxPyMake_wxObject(result, (bool)0);
25351 }
25352 return resultobj;
25353 fail:
25354 return NULL;
25355 }
25356
25357
25358 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25359 PyObject *resultobj = 0;
25360 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25361 bool result;
25362 void *argp1 = 0 ;
25363 int res1 = 0 ;
25364 PyObject *swig_obj[1] ;
25365
25366 if (!args) SWIG_fail;
25367 swig_obj[0] = args;
25368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25369 if (!SWIG_IsOK(res1)) {
25370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25371 }
25372 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25373 {
25374 PyThreadState* __tstate = wxPyBeginAllowThreads();
25375 result = (bool)(arg1)->IsVertical();
25376 wxPyEndAllowThreads(__tstate);
25377 if (PyErr_Occurred()) SWIG_fail;
25378 }
25379 {
25380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25381 }
25382 return resultobj;
25383 fail:
25384 return NULL;
25385 }
25386
25387
25388 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25389 PyObject *resultobj = 0;
25390 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25391 size_t result;
25392 void *argp1 = 0 ;
25393 int res1 = 0 ;
25394 PyObject *swig_obj[1] ;
25395
25396 if (!args) SWIG_fail;
25397 swig_obj[0] = args;
25398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25399 if (!SWIG_IsOK(res1)) {
25400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25401 }
25402 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25403 {
25404 PyThreadState* __tstate = wxPyBeginAllowThreads();
25405 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25406 wxPyEndAllowThreads(__tstate);
25407 if (PyErr_Occurred()) SWIG_fail;
25408 }
25409 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25410 return resultobj;
25411 fail:
25412 return NULL;
25413 }
25414
25415
25416 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25417 PyObject *obj;
25418 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25419 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25420 return SWIG_Py_Void();
25421 }
25422
25423 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25424 PyObject *resultobj = 0;
25425 wxWindow *arg1 = (wxWindow *) 0 ;
25426 int arg2 = (int) -1 ;
25427 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25428 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25429 wxSize const &arg4_defvalue = wxDefaultSize ;
25430 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25431 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25432 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25433 wxString *arg6 = (wxString *) &arg6_defvalue ;
25434 wxToolBar *result = 0 ;
25435 void *argp1 = 0 ;
25436 int res1 = 0 ;
25437 int val2 ;
25438 int ecode2 = 0 ;
25439 wxPoint temp3 ;
25440 wxSize temp4 ;
25441 long val5 ;
25442 int ecode5 = 0 ;
25443 bool temp6 = false ;
25444 PyObject * obj0 = 0 ;
25445 PyObject * obj1 = 0 ;
25446 PyObject * obj2 = 0 ;
25447 PyObject * obj3 = 0 ;
25448 PyObject * obj4 = 0 ;
25449 PyObject * obj5 = 0 ;
25450 char * kwnames[] = {
25451 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25452 };
25453
25454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25456 if (!SWIG_IsOK(res1)) {
25457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25458 }
25459 arg1 = reinterpret_cast< wxWindow * >(argp1);
25460 if (obj1) {
25461 ecode2 = SWIG_AsVal_int(obj1, &val2);
25462 if (!SWIG_IsOK(ecode2)) {
25463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25464 }
25465 arg2 = static_cast< int >(val2);
25466 }
25467 if (obj2) {
25468 {
25469 arg3 = &temp3;
25470 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25471 }
25472 }
25473 if (obj3) {
25474 {
25475 arg4 = &temp4;
25476 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25477 }
25478 }
25479 if (obj4) {
25480 ecode5 = SWIG_AsVal_long(obj4, &val5);
25481 if (!SWIG_IsOK(ecode5)) {
25482 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25483 }
25484 arg5 = static_cast< long >(val5);
25485 }
25486 if (obj5) {
25487 {
25488 arg6 = wxString_in_helper(obj5);
25489 if (arg6 == NULL) SWIG_fail;
25490 temp6 = true;
25491 }
25492 }
25493 {
25494 if (!wxPyCheckForApp()) SWIG_fail;
25495 PyThreadState* __tstate = wxPyBeginAllowThreads();
25496 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25497 wxPyEndAllowThreads(__tstate);
25498 if (PyErr_Occurred()) SWIG_fail;
25499 }
25500 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25501 {
25502 if (temp6)
25503 delete arg6;
25504 }
25505 return resultobj;
25506 fail:
25507 {
25508 if (temp6)
25509 delete arg6;
25510 }
25511 return NULL;
25512 }
25513
25514
25515 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25516 PyObject *resultobj = 0;
25517 wxToolBar *result = 0 ;
25518
25519 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25520 {
25521 if (!wxPyCheckForApp()) SWIG_fail;
25522 PyThreadState* __tstate = wxPyBeginAllowThreads();
25523 result = (wxToolBar *)new wxToolBar();
25524 wxPyEndAllowThreads(__tstate);
25525 if (PyErr_Occurred()) SWIG_fail;
25526 }
25527 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25528 return resultobj;
25529 fail:
25530 return NULL;
25531 }
25532
25533
25534 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25535 PyObject *resultobj = 0;
25536 wxToolBar *arg1 = (wxToolBar *) 0 ;
25537 wxWindow *arg2 = (wxWindow *) 0 ;
25538 int arg3 = (int) -1 ;
25539 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25540 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25541 wxSize const &arg5_defvalue = wxDefaultSize ;
25542 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25543 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25544 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25545 wxString *arg7 = (wxString *) &arg7_defvalue ;
25546 bool result;
25547 void *argp1 = 0 ;
25548 int res1 = 0 ;
25549 void *argp2 = 0 ;
25550 int res2 = 0 ;
25551 int val3 ;
25552 int ecode3 = 0 ;
25553 wxPoint temp4 ;
25554 wxSize temp5 ;
25555 long val6 ;
25556 int ecode6 = 0 ;
25557 bool temp7 = false ;
25558 PyObject * obj0 = 0 ;
25559 PyObject * obj1 = 0 ;
25560 PyObject * obj2 = 0 ;
25561 PyObject * obj3 = 0 ;
25562 PyObject * obj4 = 0 ;
25563 PyObject * obj5 = 0 ;
25564 PyObject * obj6 = 0 ;
25565 char * kwnames[] = {
25566 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25567 };
25568
25569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25571 if (!SWIG_IsOK(res1)) {
25572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25573 }
25574 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25575 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25576 if (!SWIG_IsOK(res2)) {
25577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25578 }
25579 arg2 = reinterpret_cast< wxWindow * >(argp2);
25580 if (obj2) {
25581 ecode3 = SWIG_AsVal_int(obj2, &val3);
25582 if (!SWIG_IsOK(ecode3)) {
25583 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25584 }
25585 arg3 = static_cast< int >(val3);
25586 }
25587 if (obj3) {
25588 {
25589 arg4 = &temp4;
25590 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25591 }
25592 }
25593 if (obj4) {
25594 {
25595 arg5 = &temp5;
25596 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25597 }
25598 }
25599 if (obj5) {
25600 ecode6 = SWIG_AsVal_long(obj5, &val6);
25601 if (!SWIG_IsOK(ecode6)) {
25602 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25603 }
25604 arg6 = static_cast< long >(val6);
25605 }
25606 if (obj6) {
25607 {
25608 arg7 = wxString_in_helper(obj6);
25609 if (arg7 == NULL) SWIG_fail;
25610 temp7 = true;
25611 }
25612 }
25613 {
25614 PyThreadState* __tstate = wxPyBeginAllowThreads();
25615 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25616 wxPyEndAllowThreads(__tstate);
25617 if (PyErr_Occurred()) SWIG_fail;
25618 }
25619 {
25620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25621 }
25622 {
25623 if (temp7)
25624 delete arg7;
25625 }
25626 return resultobj;
25627 fail:
25628 {
25629 if (temp7)
25630 delete arg7;
25631 }
25632 return NULL;
25633 }
25634
25635
25636 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25637 PyObject *resultobj = 0;
25638 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25639 SwigValueWrapper<wxVisualAttributes > result;
25640 int val1 ;
25641 int ecode1 = 0 ;
25642 PyObject * obj0 = 0 ;
25643 char * kwnames[] = {
25644 (char *) "variant", NULL
25645 };
25646
25647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25648 if (obj0) {
25649 ecode1 = SWIG_AsVal_int(obj0, &val1);
25650 if (!SWIG_IsOK(ecode1)) {
25651 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25652 }
25653 arg1 = static_cast< wxWindowVariant >(val1);
25654 }
25655 {
25656 if (!wxPyCheckForApp()) SWIG_fail;
25657 PyThreadState* __tstate = wxPyBeginAllowThreads();
25658 result = wxToolBar::GetClassDefaultAttributes(arg1);
25659 wxPyEndAllowThreads(__tstate);
25660 if (PyErr_Occurred()) SWIG_fail;
25661 }
25662 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25663 return resultobj;
25664 fail:
25665 return NULL;
25666 }
25667
25668
25669 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25670 PyObject *obj;
25671 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25672 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25673 return SWIG_Py_Void();
25674 }
25675
25676 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25677 return SWIG_Python_InitShadowInstance(args);
25678 }
25679
25680 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25681 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25682 return 1;
25683 }
25684
25685
25686 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25687 PyObject *pyobj = 0;
25688
25689 {
25690 #if wxUSE_UNICODE
25691 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25692 #else
25693 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25694 #endif
25695 }
25696 return pyobj;
25697 }
25698
25699
25700 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25701 PyObject *resultobj = 0;
25702 wxColour const &arg1_defvalue = wxNullColour ;
25703 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25704 wxColour const &arg2_defvalue = wxNullColour ;
25705 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25706 wxFont const &arg3_defvalue = wxNullFont ;
25707 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25708 wxListItemAttr *result = 0 ;
25709 wxColour temp1 ;
25710 wxColour temp2 ;
25711 void *argp3 = 0 ;
25712 int res3 = 0 ;
25713 PyObject * obj0 = 0 ;
25714 PyObject * obj1 = 0 ;
25715 PyObject * obj2 = 0 ;
25716 char * kwnames[] = {
25717 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25718 };
25719
25720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25721 if (obj0) {
25722 {
25723 arg1 = &temp1;
25724 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25725 }
25726 }
25727 if (obj1) {
25728 {
25729 arg2 = &temp2;
25730 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25731 }
25732 }
25733 if (obj2) {
25734 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25735 if (!SWIG_IsOK(res3)) {
25736 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25737 }
25738 if (!argp3) {
25739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25740 }
25741 arg3 = reinterpret_cast< wxFont * >(argp3);
25742 }
25743 {
25744 PyThreadState* __tstate = wxPyBeginAllowThreads();
25745 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25746 wxPyEndAllowThreads(__tstate);
25747 if (PyErr_Occurred()) SWIG_fail;
25748 }
25749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25750 return resultobj;
25751 fail:
25752 return NULL;
25753 }
25754
25755
25756 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25757 PyObject *resultobj = 0;
25758 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25759 void *argp1 = 0 ;
25760 int res1 = 0 ;
25761 PyObject *swig_obj[1] ;
25762
25763 if (!args) SWIG_fail;
25764 swig_obj[0] = args;
25765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25766 if (!SWIG_IsOK(res1)) {
25767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25768 }
25769 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25770 {
25771 PyThreadState* __tstate = wxPyBeginAllowThreads();
25772 delete arg1;
25773
25774 wxPyEndAllowThreads(__tstate);
25775 if (PyErr_Occurred()) SWIG_fail;
25776 }
25777 resultobj = SWIG_Py_Void();
25778 return resultobj;
25779 fail:
25780 return NULL;
25781 }
25782
25783
25784 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25785 PyObject *resultobj = 0;
25786 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25787 wxColour *arg2 = 0 ;
25788 void *argp1 = 0 ;
25789 int res1 = 0 ;
25790 wxColour temp2 ;
25791 PyObject * obj0 = 0 ;
25792 PyObject * obj1 = 0 ;
25793 char * kwnames[] = {
25794 (char *) "self",(char *) "colText", NULL
25795 };
25796
25797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25799 if (!SWIG_IsOK(res1)) {
25800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25801 }
25802 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25803 {
25804 arg2 = &temp2;
25805 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25806 }
25807 {
25808 PyThreadState* __tstate = wxPyBeginAllowThreads();
25809 (arg1)->SetTextColour((wxColour const &)*arg2);
25810 wxPyEndAllowThreads(__tstate);
25811 if (PyErr_Occurred()) SWIG_fail;
25812 }
25813 resultobj = SWIG_Py_Void();
25814 return resultobj;
25815 fail:
25816 return NULL;
25817 }
25818
25819
25820 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25821 PyObject *resultobj = 0;
25822 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25823 wxColour *arg2 = 0 ;
25824 void *argp1 = 0 ;
25825 int res1 = 0 ;
25826 wxColour temp2 ;
25827 PyObject * obj0 = 0 ;
25828 PyObject * obj1 = 0 ;
25829 char * kwnames[] = {
25830 (char *) "self",(char *) "colBack", NULL
25831 };
25832
25833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25835 if (!SWIG_IsOK(res1)) {
25836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25837 }
25838 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25839 {
25840 arg2 = &temp2;
25841 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25842 }
25843 {
25844 PyThreadState* __tstate = wxPyBeginAllowThreads();
25845 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25846 wxPyEndAllowThreads(__tstate);
25847 if (PyErr_Occurred()) SWIG_fail;
25848 }
25849 resultobj = SWIG_Py_Void();
25850 return resultobj;
25851 fail:
25852 return NULL;
25853 }
25854
25855
25856 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25857 PyObject *resultobj = 0;
25858 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25859 wxFont *arg2 = 0 ;
25860 void *argp1 = 0 ;
25861 int res1 = 0 ;
25862 void *argp2 = 0 ;
25863 int res2 = 0 ;
25864 PyObject * obj0 = 0 ;
25865 PyObject * obj1 = 0 ;
25866 char * kwnames[] = {
25867 (char *) "self",(char *) "font", NULL
25868 };
25869
25870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25872 if (!SWIG_IsOK(res1)) {
25873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25874 }
25875 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25876 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25877 if (!SWIG_IsOK(res2)) {
25878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25879 }
25880 if (!argp2) {
25881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25882 }
25883 arg2 = reinterpret_cast< wxFont * >(argp2);
25884 {
25885 PyThreadState* __tstate = wxPyBeginAllowThreads();
25886 (arg1)->SetFont((wxFont const &)*arg2);
25887 wxPyEndAllowThreads(__tstate);
25888 if (PyErr_Occurred()) SWIG_fail;
25889 }
25890 resultobj = SWIG_Py_Void();
25891 return resultobj;
25892 fail:
25893 return NULL;
25894 }
25895
25896
25897 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25898 PyObject *resultobj = 0;
25899 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25900 bool result;
25901 void *argp1 = 0 ;
25902 int res1 = 0 ;
25903 PyObject *swig_obj[1] ;
25904
25905 if (!args) SWIG_fail;
25906 swig_obj[0] = args;
25907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25908 if (!SWIG_IsOK(res1)) {
25909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25910 }
25911 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25912 {
25913 PyThreadState* __tstate = wxPyBeginAllowThreads();
25914 result = (bool)(arg1)->HasTextColour();
25915 wxPyEndAllowThreads(__tstate);
25916 if (PyErr_Occurred()) SWIG_fail;
25917 }
25918 {
25919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25920 }
25921 return resultobj;
25922 fail:
25923 return NULL;
25924 }
25925
25926
25927 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25928 PyObject *resultobj = 0;
25929 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25930 bool result;
25931 void *argp1 = 0 ;
25932 int res1 = 0 ;
25933 PyObject *swig_obj[1] ;
25934
25935 if (!args) SWIG_fail;
25936 swig_obj[0] = args;
25937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25938 if (!SWIG_IsOK(res1)) {
25939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25940 }
25941 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25942 {
25943 PyThreadState* __tstate = wxPyBeginAllowThreads();
25944 result = (bool)(arg1)->HasBackgroundColour();
25945 wxPyEndAllowThreads(__tstate);
25946 if (PyErr_Occurred()) SWIG_fail;
25947 }
25948 {
25949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25950 }
25951 return resultobj;
25952 fail:
25953 return NULL;
25954 }
25955
25956
25957 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25958 PyObject *resultobj = 0;
25959 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25960 bool result;
25961 void *argp1 = 0 ;
25962 int res1 = 0 ;
25963 PyObject *swig_obj[1] ;
25964
25965 if (!args) SWIG_fail;
25966 swig_obj[0] = args;
25967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25968 if (!SWIG_IsOK(res1)) {
25969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25970 }
25971 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25972 {
25973 PyThreadState* __tstate = wxPyBeginAllowThreads();
25974 result = (bool)(arg1)->HasFont();
25975 wxPyEndAllowThreads(__tstate);
25976 if (PyErr_Occurred()) SWIG_fail;
25977 }
25978 {
25979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25980 }
25981 return resultobj;
25982 fail:
25983 return NULL;
25984 }
25985
25986
25987 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25988 PyObject *resultobj = 0;
25989 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25990 wxColour result;
25991 void *argp1 = 0 ;
25992 int res1 = 0 ;
25993 PyObject *swig_obj[1] ;
25994
25995 if (!args) SWIG_fail;
25996 swig_obj[0] = args;
25997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25998 if (!SWIG_IsOK(res1)) {
25999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26000 }
26001 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26002 {
26003 PyThreadState* __tstate = wxPyBeginAllowThreads();
26004 result = (arg1)->GetTextColour();
26005 wxPyEndAllowThreads(__tstate);
26006 if (PyErr_Occurred()) SWIG_fail;
26007 }
26008 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26009 return resultobj;
26010 fail:
26011 return NULL;
26012 }
26013
26014
26015 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26016 PyObject *resultobj = 0;
26017 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26018 wxColour result;
26019 void *argp1 = 0 ;
26020 int res1 = 0 ;
26021 PyObject *swig_obj[1] ;
26022
26023 if (!args) SWIG_fail;
26024 swig_obj[0] = args;
26025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26026 if (!SWIG_IsOK(res1)) {
26027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26028 }
26029 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26030 {
26031 PyThreadState* __tstate = wxPyBeginAllowThreads();
26032 result = (arg1)->GetBackgroundColour();
26033 wxPyEndAllowThreads(__tstate);
26034 if (PyErr_Occurred()) SWIG_fail;
26035 }
26036 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26037 return resultobj;
26038 fail:
26039 return NULL;
26040 }
26041
26042
26043 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26044 PyObject *resultobj = 0;
26045 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26046 wxFont result;
26047 void *argp1 = 0 ;
26048 int res1 = 0 ;
26049 PyObject *swig_obj[1] ;
26050
26051 if (!args) SWIG_fail;
26052 swig_obj[0] = args;
26053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26054 if (!SWIG_IsOK(res1)) {
26055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26056 }
26057 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26058 {
26059 PyThreadState* __tstate = wxPyBeginAllowThreads();
26060 result = (arg1)->GetFont();
26061 wxPyEndAllowThreads(__tstate);
26062 if (PyErr_Occurred()) SWIG_fail;
26063 }
26064 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26065 return resultobj;
26066 fail:
26067 return NULL;
26068 }
26069
26070
26071 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26072 PyObject *resultobj = 0;
26073 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26074 wxListItemAttr *arg2 = 0 ;
26075 void *argp1 = 0 ;
26076 int res1 = 0 ;
26077 void *argp2 = 0 ;
26078 int res2 = 0 ;
26079 PyObject * obj0 = 0 ;
26080 PyObject * obj1 = 0 ;
26081 char * kwnames[] = {
26082 (char *) "self",(char *) "source", NULL
26083 };
26084
26085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26087 if (!SWIG_IsOK(res1)) {
26088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26089 }
26090 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26091 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26092 if (!SWIG_IsOK(res2)) {
26093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26094 }
26095 if (!argp2) {
26096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26097 }
26098 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26099 {
26100 PyThreadState* __tstate = wxPyBeginAllowThreads();
26101 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26102 wxPyEndAllowThreads(__tstate);
26103 if (PyErr_Occurred()) SWIG_fail;
26104 }
26105 resultobj = SWIG_Py_Void();
26106 return resultobj;
26107 fail:
26108 return NULL;
26109 }
26110
26111
26112 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26113 PyObject *resultobj = 0;
26114 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26115 void *argp1 = 0 ;
26116 int res1 = 0 ;
26117 PyObject *swig_obj[1] ;
26118
26119 if (!args) SWIG_fail;
26120 swig_obj[0] = args;
26121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26122 if (!SWIG_IsOK(res1)) {
26123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26124 }
26125 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26126 {
26127 PyThreadState* __tstate = wxPyBeginAllowThreads();
26128 wxListItemAttr_Destroy(arg1);
26129 wxPyEndAllowThreads(__tstate);
26130 if (PyErr_Occurred()) SWIG_fail;
26131 }
26132 resultobj = SWIG_Py_Void();
26133 return resultobj;
26134 fail:
26135 return NULL;
26136 }
26137
26138
26139 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26140 PyObject *obj;
26141 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26142 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26143 return SWIG_Py_Void();
26144 }
26145
26146 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26147 return SWIG_Python_InitShadowInstance(args);
26148 }
26149
26150 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26151 PyObject *resultobj = 0;
26152 wxListItem *result = 0 ;
26153
26154 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26155 {
26156 PyThreadState* __tstate = wxPyBeginAllowThreads();
26157 result = (wxListItem *)new wxListItem();
26158 wxPyEndAllowThreads(__tstate);
26159 if (PyErr_Occurred()) SWIG_fail;
26160 }
26161 {
26162 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26163 }
26164 return resultobj;
26165 fail:
26166 return NULL;
26167 }
26168
26169
26170 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26171 PyObject *resultobj = 0;
26172 wxListItem *arg1 = (wxListItem *) 0 ;
26173 void *argp1 = 0 ;
26174 int res1 = 0 ;
26175 PyObject *swig_obj[1] ;
26176
26177 if (!args) SWIG_fail;
26178 swig_obj[0] = args;
26179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26180 if (!SWIG_IsOK(res1)) {
26181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26182 }
26183 arg1 = reinterpret_cast< wxListItem * >(argp1);
26184 {
26185 PyThreadState* __tstate = wxPyBeginAllowThreads();
26186 delete arg1;
26187
26188 wxPyEndAllowThreads(__tstate);
26189 if (PyErr_Occurred()) SWIG_fail;
26190 }
26191 resultobj = SWIG_Py_Void();
26192 return resultobj;
26193 fail:
26194 return NULL;
26195 }
26196
26197
26198 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26199 PyObject *resultobj = 0;
26200 wxListItem *arg1 = (wxListItem *) 0 ;
26201 void *argp1 = 0 ;
26202 int res1 = 0 ;
26203 PyObject *swig_obj[1] ;
26204
26205 if (!args) SWIG_fail;
26206 swig_obj[0] = args;
26207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26208 if (!SWIG_IsOK(res1)) {
26209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26210 }
26211 arg1 = reinterpret_cast< wxListItem * >(argp1);
26212 {
26213 PyThreadState* __tstate = wxPyBeginAllowThreads();
26214 (arg1)->Clear();
26215 wxPyEndAllowThreads(__tstate);
26216 if (PyErr_Occurred()) SWIG_fail;
26217 }
26218 resultobj = SWIG_Py_Void();
26219 return resultobj;
26220 fail:
26221 return NULL;
26222 }
26223
26224
26225 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26226 PyObject *resultobj = 0;
26227 wxListItem *arg1 = (wxListItem *) 0 ;
26228 void *argp1 = 0 ;
26229 int res1 = 0 ;
26230 PyObject *swig_obj[1] ;
26231
26232 if (!args) SWIG_fail;
26233 swig_obj[0] = args;
26234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26235 if (!SWIG_IsOK(res1)) {
26236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26237 }
26238 arg1 = reinterpret_cast< wxListItem * >(argp1);
26239 {
26240 PyThreadState* __tstate = wxPyBeginAllowThreads();
26241 (arg1)->ClearAttributes();
26242 wxPyEndAllowThreads(__tstate);
26243 if (PyErr_Occurred()) SWIG_fail;
26244 }
26245 resultobj = SWIG_Py_Void();
26246 return resultobj;
26247 fail:
26248 return NULL;
26249 }
26250
26251
26252 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26253 PyObject *resultobj = 0;
26254 wxListItem *arg1 = (wxListItem *) 0 ;
26255 long arg2 ;
26256 void *argp1 = 0 ;
26257 int res1 = 0 ;
26258 long val2 ;
26259 int ecode2 = 0 ;
26260 PyObject * obj0 = 0 ;
26261 PyObject * obj1 = 0 ;
26262 char * kwnames[] = {
26263 (char *) "self",(char *) "mask", NULL
26264 };
26265
26266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26268 if (!SWIG_IsOK(res1)) {
26269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26270 }
26271 arg1 = reinterpret_cast< wxListItem * >(argp1);
26272 ecode2 = SWIG_AsVal_long(obj1, &val2);
26273 if (!SWIG_IsOK(ecode2)) {
26274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26275 }
26276 arg2 = static_cast< long >(val2);
26277 {
26278 PyThreadState* __tstate = wxPyBeginAllowThreads();
26279 (arg1)->SetMask(arg2);
26280 wxPyEndAllowThreads(__tstate);
26281 if (PyErr_Occurred()) SWIG_fail;
26282 }
26283 resultobj = SWIG_Py_Void();
26284 return resultobj;
26285 fail:
26286 return NULL;
26287 }
26288
26289
26290 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26291 PyObject *resultobj = 0;
26292 wxListItem *arg1 = (wxListItem *) 0 ;
26293 long arg2 ;
26294 void *argp1 = 0 ;
26295 int res1 = 0 ;
26296 long val2 ;
26297 int ecode2 = 0 ;
26298 PyObject * obj0 = 0 ;
26299 PyObject * obj1 = 0 ;
26300 char * kwnames[] = {
26301 (char *) "self",(char *) "id", NULL
26302 };
26303
26304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26306 if (!SWIG_IsOK(res1)) {
26307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26308 }
26309 arg1 = reinterpret_cast< wxListItem * >(argp1);
26310 ecode2 = SWIG_AsVal_long(obj1, &val2);
26311 if (!SWIG_IsOK(ecode2)) {
26312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26313 }
26314 arg2 = static_cast< long >(val2);
26315 {
26316 PyThreadState* __tstate = wxPyBeginAllowThreads();
26317 (arg1)->SetId(arg2);
26318 wxPyEndAllowThreads(__tstate);
26319 if (PyErr_Occurred()) SWIG_fail;
26320 }
26321 resultobj = SWIG_Py_Void();
26322 return resultobj;
26323 fail:
26324 return NULL;
26325 }
26326
26327
26328 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26329 PyObject *resultobj = 0;
26330 wxListItem *arg1 = (wxListItem *) 0 ;
26331 int arg2 ;
26332 void *argp1 = 0 ;
26333 int res1 = 0 ;
26334 int val2 ;
26335 int ecode2 = 0 ;
26336 PyObject * obj0 = 0 ;
26337 PyObject * obj1 = 0 ;
26338 char * kwnames[] = {
26339 (char *) "self",(char *) "col", NULL
26340 };
26341
26342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26344 if (!SWIG_IsOK(res1)) {
26345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26346 }
26347 arg1 = reinterpret_cast< wxListItem * >(argp1);
26348 ecode2 = SWIG_AsVal_int(obj1, &val2);
26349 if (!SWIG_IsOK(ecode2)) {
26350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26351 }
26352 arg2 = static_cast< int >(val2);
26353 {
26354 PyThreadState* __tstate = wxPyBeginAllowThreads();
26355 (arg1)->SetColumn(arg2);
26356 wxPyEndAllowThreads(__tstate);
26357 if (PyErr_Occurred()) SWIG_fail;
26358 }
26359 resultobj = SWIG_Py_Void();
26360 return resultobj;
26361 fail:
26362 return NULL;
26363 }
26364
26365
26366 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26367 PyObject *resultobj = 0;
26368 wxListItem *arg1 = (wxListItem *) 0 ;
26369 long arg2 ;
26370 void *argp1 = 0 ;
26371 int res1 = 0 ;
26372 long val2 ;
26373 int ecode2 = 0 ;
26374 PyObject * obj0 = 0 ;
26375 PyObject * obj1 = 0 ;
26376 char * kwnames[] = {
26377 (char *) "self",(char *) "state", NULL
26378 };
26379
26380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26382 if (!SWIG_IsOK(res1)) {
26383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26384 }
26385 arg1 = reinterpret_cast< wxListItem * >(argp1);
26386 ecode2 = SWIG_AsVal_long(obj1, &val2);
26387 if (!SWIG_IsOK(ecode2)) {
26388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26389 }
26390 arg2 = static_cast< long >(val2);
26391 {
26392 PyThreadState* __tstate = wxPyBeginAllowThreads();
26393 (arg1)->SetState(arg2);
26394 wxPyEndAllowThreads(__tstate);
26395 if (PyErr_Occurred()) SWIG_fail;
26396 }
26397 resultobj = SWIG_Py_Void();
26398 return resultobj;
26399 fail:
26400 return NULL;
26401 }
26402
26403
26404 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26405 PyObject *resultobj = 0;
26406 wxListItem *arg1 = (wxListItem *) 0 ;
26407 long arg2 ;
26408 void *argp1 = 0 ;
26409 int res1 = 0 ;
26410 long val2 ;
26411 int ecode2 = 0 ;
26412 PyObject * obj0 = 0 ;
26413 PyObject * obj1 = 0 ;
26414 char * kwnames[] = {
26415 (char *) "self",(char *) "stateMask", NULL
26416 };
26417
26418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26420 if (!SWIG_IsOK(res1)) {
26421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26422 }
26423 arg1 = reinterpret_cast< wxListItem * >(argp1);
26424 ecode2 = SWIG_AsVal_long(obj1, &val2);
26425 if (!SWIG_IsOK(ecode2)) {
26426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26427 }
26428 arg2 = static_cast< long >(val2);
26429 {
26430 PyThreadState* __tstate = wxPyBeginAllowThreads();
26431 (arg1)->SetStateMask(arg2);
26432 wxPyEndAllowThreads(__tstate);
26433 if (PyErr_Occurred()) SWIG_fail;
26434 }
26435 resultobj = SWIG_Py_Void();
26436 return resultobj;
26437 fail:
26438 return NULL;
26439 }
26440
26441
26442 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26443 PyObject *resultobj = 0;
26444 wxListItem *arg1 = (wxListItem *) 0 ;
26445 wxString *arg2 = 0 ;
26446 void *argp1 = 0 ;
26447 int res1 = 0 ;
26448 bool temp2 = false ;
26449 PyObject * obj0 = 0 ;
26450 PyObject * obj1 = 0 ;
26451 char * kwnames[] = {
26452 (char *) "self",(char *) "text", NULL
26453 };
26454
26455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26457 if (!SWIG_IsOK(res1)) {
26458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26459 }
26460 arg1 = reinterpret_cast< wxListItem * >(argp1);
26461 {
26462 arg2 = wxString_in_helper(obj1);
26463 if (arg2 == NULL) SWIG_fail;
26464 temp2 = true;
26465 }
26466 {
26467 PyThreadState* __tstate = wxPyBeginAllowThreads();
26468 (arg1)->SetText((wxString const &)*arg2);
26469 wxPyEndAllowThreads(__tstate);
26470 if (PyErr_Occurred()) SWIG_fail;
26471 }
26472 resultobj = SWIG_Py_Void();
26473 {
26474 if (temp2)
26475 delete arg2;
26476 }
26477 return resultobj;
26478 fail:
26479 {
26480 if (temp2)
26481 delete arg2;
26482 }
26483 return NULL;
26484 }
26485
26486
26487 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26488 PyObject *resultobj = 0;
26489 wxListItem *arg1 = (wxListItem *) 0 ;
26490 int arg2 ;
26491 void *argp1 = 0 ;
26492 int res1 = 0 ;
26493 int val2 ;
26494 int ecode2 = 0 ;
26495 PyObject * obj0 = 0 ;
26496 PyObject * obj1 = 0 ;
26497 char * kwnames[] = {
26498 (char *) "self",(char *) "image", NULL
26499 };
26500
26501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26503 if (!SWIG_IsOK(res1)) {
26504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26505 }
26506 arg1 = reinterpret_cast< wxListItem * >(argp1);
26507 ecode2 = SWIG_AsVal_int(obj1, &val2);
26508 if (!SWIG_IsOK(ecode2)) {
26509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26510 }
26511 arg2 = static_cast< int >(val2);
26512 {
26513 PyThreadState* __tstate = wxPyBeginAllowThreads();
26514 (arg1)->SetImage(arg2);
26515 wxPyEndAllowThreads(__tstate);
26516 if (PyErr_Occurred()) SWIG_fail;
26517 }
26518 resultobj = SWIG_Py_Void();
26519 return resultobj;
26520 fail:
26521 return NULL;
26522 }
26523
26524
26525 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26526 PyObject *resultobj = 0;
26527 wxListItem *arg1 = (wxListItem *) 0 ;
26528 long arg2 ;
26529 void *argp1 = 0 ;
26530 int res1 = 0 ;
26531 long val2 ;
26532 int ecode2 = 0 ;
26533 PyObject * obj0 = 0 ;
26534 PyObject * obj1 = 0 ;
26535 char * kwnames[] = {
26536 (char *) "self",(char *) "data", NULL
26537 };
26538
26539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26541 if (!SWIG_IsOK(res1)) {
26542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26543 }
26544 arg1 = reinterpret_cast< wxListItem * >(argp1);
26545 ecode2 = SWIG_AsVal_long(obj1, &val2);
26546 if (!SWIG_IsOK(ecode2)) {
26547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26548 }
26549 arg2 = static_cast< long >(val2);
26550 {
26551 PyThreadState* __tstate = wxPyBeginAllowThreads();
26552 (arg1)->SetData(arg2);
26553 wxPyEndAllowThreads(__tstate);
26554 if (PyErr_Occurred()) SWIG_fail;
26555 }
26556 resultobj = SWIG_Py_Void();
26557 return resultobj;
26558 fail:
26559 return NULL;
26560 }
26561
26562
26563 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26564 PyObject *resultobj = 0;
26565 wxListItem *arg1 = (wxListItem *) 0 ;
26566 int arg2 ;
26567 void *argp1 = 0 ;
26568 int res1 = 0 ;
26569 int val2 ;
26570 int ecode2 = 0 ;
26571 PyObject * obj0 = 0 ;
26572 PyObject * obj1 = 0 ;
26573 char * kwnames[] = {
26574 (char *) "self",(char *) "width", NULL
26575 };
26576
26577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26579 if (!SWIG_IsOK(res1)) {
26580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26581 }
26582 arg1 = reinterpret_cast< wxListItem * >(argp1);
26583 ecode2 = SWIG_AsVal_int(obj1, &val2);
26584 if (!SWIG_IsOK(ecode2)) {
26585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26586 }
26587 arg2 = static_cast< int >(val2);
26588 {
26589 PyThreadState* __tstate = wxPyBeginAllowThreads();
26590 (arg1)->SetWidth(arg2);
26591 wxPyEndAllowThreads(__tstate);
26592 if (PyErr_Occurred()) SWIG_fail;
26593 }
26594 resultobj = SWIG_Py_Void();
26595 return resultobj;
26596 fail:
26597 return NULL;
26598 }
26599
26600
26601 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26602 PyObject *resultobj = 0;
26603 wxListItem *arg1 = (wxListItem *) 0 ;
26604 wxListColumnFormat arg2 ;
26605 void *argp1 = 0 ;
26606 int res1 = 0 ;
26607 int val2 ;
26608 int ecode2 = 0 ;
26609 PyObject * obj0 = 0 ;
26610 PyObject * obj1 = 0 ;
26611 char * kwnames[] = {
26612 (char *) "self",(char *) "align", NULL
26613 };
26614
26615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26617 if (!SWIG_IsOK(res1)) {
26618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26619 }
26620 arg1 = reinterpret_cast< wxListItem * >(argp1);
26621 ecode2 = SWIG_AsVal_int(obj1, &val2);
26622 if (!SWIG_IsOK(ecode2)) {
26623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26624 }
26625 arg2 = static_cast< wxListColumnFormat >(val2);
26626 {
26627 PyThreadState* __tstate = wxPyBeginAllowThreads();
26628 (arg1)->SetAlign(arg2);
26629 wxPyEndAllowThreads(__tstate);
26630 if (PyErr_Occurred()) SWIG_fail;
26631 }
26632 resultobj = SWIG_Py_Void();
26633 return resultobj;
26634 fail:
26635 return NULL;
26636 }
26637
26638
26639 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26640 PyObject *resultobj = 0;
26641 wxListItem *arg1 = (wxListItem *) 0 ;
26642 wxColour *arg2 = 0 ;
26643 void *argp1 = 0 ;
26644 int res1 = 0 ;
26645 wxColour temp2 ;
26646 PyObject * obj0 = 0 ;
26647 PyObject * obj1 = 0 ;
26648 char * kwnames[] = {
26649 (char *) "self",(char *) "colText", NULL
26650 };
26651
26652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26654 if (!SWIG_IsOK(res1)) {
26655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26656 }
26657 arg1 = reinterpret_cast< wxListItem * >(argp1);
26658 {
26659 arg2 = &temp2;
26660 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26661 }
26662 {
26663 PyThreadState* __tstate = wxPyBeginAllowThreads();
26664 (arg1)->SetTextColour((wxColour const &)*arg2);
26665 wxPyEndAllowThreads(__tstate);
26666 if (PyErr_Occurred()) SWIG_fail;
26667 }
26668 resultobj = SWIG_Py_Void();
26669 return resultobj;
26670 fail:
26671 return NULL;
26672 }
26673
26674
26675 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26676 PyObject *resultobj = 0;
26677 wxListItem *arg1 = (wxListItem *) 0 ;
26678 wxColour *arg2 = 0 ;
26679 void *argp1 = 0 ;
26680 int res1 = 0 ;
26681 wxColour temp2 ;
26682 PyObject * obj0 = 0 ;
26683 PyObject * obj1 = 0 ;
26684 char * kwnames[] = {
26685 (char *) "self",(char *) "colBack", NULL
26686 };
26687
26688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26690 if (!SWIG_IsOK(res1)) {
26691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26692 }
26693 arg1 = reinterpret_cast< wxListItem * >(argp1);
26694 {
26695 arg2 = &temp2;
26696 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26697 }
26698 {
26699 PyThreadState* __tstate = wxPyBeginAllowThreads();
26700 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26701 wxPyEndAllowThreads(__tstate);
26702 if (PyErr_Occurred()) SWIG_fail;
26703 }
26704 resultobj = SWIG_Py_Void();
26705 return resultobj;
26706 fail:
26707 return NULL;
26708 }
26709
26710
26711 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26712 PyObject *resultobj = 0;
26713 wxListItem *arg1 = (wxListItem *) 0 ;
26714 wxFont *arg2 = 0 ;
26715 void *argp1 = 0 ;
26716 int res1 = 0 ;
26717 void *argp2 = 0 ;
26718 int res2 = 0 ;
26719 PyObject * obj0 = 0 ;
26720 PyObject * obj1 = 0 ;
26721 char * kwnames[] = {
26722 (char *) "self",(char *) "font", NULL
26723 };
26724
26725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26727 if (!SWIG_IsOK(res1)) {
26728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26729 }
26730 arg1 = reinterpret_cast< wxListItem * >(argp1);
26731 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26732 if (!SWIG_IsOK(res2)) {
26733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26734 }
26735 if (!argp2) {
26736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26737 }
26738 arg2 = reinterpret_cast< wxFont * >(argp2);
26739 {
26740 PyThreadState* __tstate = wxPyBeginAllowThreads();
26741 (arg1)->SetFont((wxFont const &)*arg2);
26742 wxPyEndAllowThreads(__tstate);
26743 if (PyErr_Occurred()) SWIG_fail;
26744 }
26745 resultobj = SWIG_Py_Void();
26746 return resultobj;
26747 fail:
26748 return NULL;
26749 }
26750
26751
26752 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26753 PyObject *resultobj = 0;
26754 wxListItem *arg1 = (wxListItem *) 0 ;
26755 long result;
26756 void *argp1 = 0 ;
26757 int res1 = 0 ;
26758 PyObject *swig_obj[1] ;
26759
26760 if (!args) SWIG_fail;
26761 swig_obj[0] = args;
26762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26763 if (!SWIG_IsOK(res1)) {
26764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26765 }
26766 arg1 = reinterpret_cast< wxListItem * >(argp1);
26767 {
26768 PyThreadState* __tstate = wxPyBeginAllowThreads();
26769 result = (long)(arg1)->GetMask();
26770 wxPyEndAllowThreads(__tstate);
26771 if (PyErr_Occurred()) SWIG_fail;
26772 }
26773 resultobj = SWIG_From_long(static_cast< long >(result));
26774 return resultobj;
26775 fail:
26776 return NULL;
26777 }
26778
26779
26780 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26781 PyObject *resultobj = 0;
26782 wxListItem *arg1 = (wxListItem *) 0 ;
26783 long result;
26784 void *argp1 = 0 ;
26785 int res1 = 0 ;
26786 PyObject *swig_obj[1] ;
26787
26788 if (!args) SWIG_fail;
26789 swig_obj[0] = args;
26790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26791 if (!SWIG_IsOK(res1)) {
26792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26793 }
26794 arg1 = reinterpret_cast< wxListItem * >(argp1);
26795 {
26796 PyThreadState* __tstate = wxPyBeginAllowThreads();
26797 result = (long)(arg1)->GetId();
26798 wxPyEndAllowThreads(__tstate);
26799 if (PyErr_Occurred()) SWIG_fail;
26800 }
26801 resultobj = SWIG_From_long(static_cast< long >(result));
26802 return resultobj;
26803 fail:
26804 return NULL;
26805 }
26806
26807
26808 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26809 PyObject *resultobj = 0;
26810 wxListItem *arg1 = (wxListItem *) 0 ;
26811 int result;
26812 void *argp1 = 0 ;
26813 int res1 = 0 ;
26814 PyObject *swig_obj[1] ;
26815
26816 if (!args) SWIG_fail;
26817 swig_obj[0] = args;
26818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26819 if (!SWIG_IsOK(res1)) {
26820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26821 }
26822 arg1 = reinterpret_cast< wxListItem * >(argp1);
26823 {
26824 PyThreadState* __tstate = wxPyBeginAllowThreads();
26825 result = (int)(arg1)->GetColumn();
26826 wxPyEndAllowThreads(__tstate);
26827 if (PyErr_Occurred()) SWIG_fail;
26828 }
26829 resultobj = SWIG_From_int(static_cast< int >(result));
26830 return resultobj;
26831 fail:
26832 return NULL;
26833 }
26834
26835
26836 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26837 PyObject *resultobj = 0;
26838 wxListItem *arg1 = (wxListItem *) 0 ;
26839 long result;
26840 void *argp1 = 0 ;
26841 int res1 = 0 ;
26842 PyObject *swig_obj[1] ;
26843
26844 if (!args) SWIG_fail;
26845 swig_obj[0] = args;
26846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26847 if (!SWIG_IsOK(res1)) {
26848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26849 }
26850 arg1 = reinterpret_cast< wxListItem * >(argp1);
26851 {
26852 PyThreadState* __tstate = wxPyBeginAllowThreads();
26853 result = (long)(arg1)->GetState();
26854 wxPyEndAllowThreads(__tstate);
26855 if (PyErr_Occurred()) SWIG_fail;
26856 }
26857 resultobj = SWIG_From_long(static_cast< long >(result));
26858 return resultobj;
26859 fail:
26860 return NULL;
26861 }
26862
26863
26864 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26865 PyObject *resultobj = 0;
26866 wxListItem *arg1 = (wxListItem *) 0 ;
26867 wxString *result = 0 ;
26868 void *argp1 = 0 ;
26869 int res1 = 0 ;
26870 PyObject *swig_obj[1] ;
26871
26872 if (!args) SWIG_fail;
26873 swig_obj[0] = args;
26874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26875 if (!SWIG_IsOK(res1)) {
26876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26877 }
26878 arg1 = reinterpret_cast< wxListItem * >(argp1);
26879 {
26880 PyThreadState* __tstate = wxPyBeginAllowThreads();
26881 {
26882 wxString const &_result_ref = (arg1)->GetText();
26883 result = (wxString *) &_result_ref;
26884 }
26885 wxPyEndAllowThreads(__tstate);
26886 if (PyErr_Occurred()) SWIG_fail;
26887 }
26888 {
26889 #if wxUSE_UNICODE
26890 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26891 #else
26892 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26893 #endif
26894 }
26895 return resultobj;
26896 fail:
26897 return NULL;
26898 }
26899
26900
26901 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26902 PyObject *resultobj = 0;
26903 wxListItem *arg1 = (wxListItem *) 0 ;
26904 int result;
26905 void *argp1 = 0 ;
26906 int res1 = 0 ;
26907 PyObject *swig_obj[1] ;
26908
26909 if (!args) SWIG_fail;
26910 swig_obj[0] = args;
26911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26912 if (!SWIG_IsOK(res1)) {
26913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26914 }
26915 arg1 = reinterpret_cast< wxListItem * >(argp1);
26916 {
26917 PyThreadState* __tstate = wxPyBeginAllowThreads();
26918 result = (int)(arg1)->GetImage();
26919 wxPyEndAllowThreads(__tstate);
26920 if (PyErr_Occurred()) SWIG_fail;
26921 }
26922 resultobj = SWIG_From_int(static_cast< int >(result));
26923 return resultobj;
26924 fail:
26925 return NULL;
26926 }
26927
26928
26929 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26930 PyObject *resultobj = 0;
26931 wxListItem *arg1 = (wxListItem *) 0 ;
26932 long result;
26933 void *argp1 = 0 ;
26934 int res1 = 0 ;
26935 PyObject *swig_obj[1] ;
26936
26937 if (!args) SWIG_fail;
26938 swig_obj[0] = args;
26939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26940 if (!SWIG_IsOK(res1)) {
26941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26942 }
26943 arg1 = reinterpret_cast< wxListItem * >(argp1);
26944 {
26945 PyThreadState* __tstate = wxPyBeginAllowThreads();
26946 result = (long)(arg1)->GetData();
26947 wxPyEndAllowThreads(__tstate);
26948 if (PyErr_Occurred()) SWIG_fail;
26949 }
26950 resultobj = SWIG_From_long(static_cast< long >(result));
26951 return resultobj;
26952 fail:
26953 return NULL;
26954 }
26955
26956
26957 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26958 PyObject *resultobj = 0;
26959 wxListItem *arg1 = (wxListItem *) 0 ;
26960 int result;
26961 void *argp1 = 0 ;
26962 int res1 = 0 ;
26963 PyObject *swig_obj[1] ;
26964
26965 if (!args) SWIG_fail;
26966 swig_obj[0] = args;
26967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26968 if (!SWIG_IsOK(res1)) {
26969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26970 }
26971 arg1 = reinterpret_cast< wxListItem * >(argp1);
26972 {
26973 PyThreadState* __tstate = wxPyBeginAllowThreads();
26974 result = (int)(arg1)->GetWidth();
26975 wxPyEndAllowThreads(__tstate);
26976 if (PyErr_Occurred()) SWIG_fail;
26977 }
26978 resultobj = SWIG_From_int(static_cast< int >(result));
26979 return resultobj;
26980 fail:
26981 return NULL;
26982 }
26983
26984
26985 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26986 PyObject *resultobj = 0;
26987 wxListItem *arg1 = (wxListItem *) 0 ;
26988 wxListColumnFormat result;
26989 void *argp1 = 0 ;
26990 int res1 = 0 ;
26991 PyObject *swig_obj[1] ;
26992
26993 if (!args) SWIG_fail;
26994 swig_obj[0] = args;
26995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26996 if (!SWIG_IsOK(res1)) {
26997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26998 }
26999 arg1 = reinterpret_cast< wxListItem * >(argp1);
27000 {
27001 PyThreadState* __tstate = wxPyBeginAllowThreads();
27002 result = (wxListColumnFormat)(arg1)->GetAlign();
27003 wxPyEndAllowThreads(__tstate);
27004 if (PyErr_Occurred()) SWIG_fail;
27005 }
27006 resultobj = SWIG_From_int(static_cast< int >(result));
27007 return resultobj;
27008 fail:
27009 return NULL;
27010 }
27011
27012
27013 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27014 PyObject *resultobj = 0;
27015 wxListItem *arg1 = (wxListItem *) 0 ;
27016 wxListItemAttr *result = 0 ;
27017 void *argp1 = 0 ;
27018 int res1 = 0 ;
27019 PyObject *swig_obj[1] ;
27020
27021 if (!args) SWIG_fail;
27022 swig_obj[0] = args;
27023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27024 if (!SWIG_IsOK(res1)) {
27025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27026 }
27027 arg1 = reinterpret_cast< wxListItem * >(argp1);
27028 {
27029 PyThreadState* __tstate = wxPyBeginAllowThreads();
27030 result = (wxListItemAttr *)(arg1)->GetAttributes();
27031 wxPyEndAllowThreads(__tstate);
27032 if (PyErr_Occurred()) SWIG_fail;
27033 }
27034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27035 return resultobj;
27036 fail:
27037 return NULL;
27038 }
27039
27040
27041 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27042 PyObject *resultobj = 0;
27043 wxListItem *arg1 = (wxListItem *) 0 ;
27044 bool result;
27045 void *argp1 = 0 ;
27046 int res1 = 0 ;
27047 PyObject *swig_obj[1] ;
27048
27049 if (!args) SWIG_fail;
27050 swig_obj[0] = args;
27051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27052 if (!SWIG_IsOK(res1)) {
27053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27054 }
27055 arg1 = reinterpret_cast< wxListItem * >(argp1);
27056 {
27057 PyThreadState* __tstate = wxPyBeginAllowThreads();
27058 result = (bool)(arg1)->HasAttributes();
27059 wxPyEndAllowThreads(__tstate);
27060 if (PyErr_Occurred()) SWIG_fail;
27061 }
27062 {
27063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27064 }
27065 return resultobj;
27066 fail:
27067 return NULL;
27068 }
27069
27070
27071 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27072 PyObject *resultobj = 0;
27073 wxListItem *arg1 = (wxListItem *) 0 ;
27074 wxColour result;
27075 void *argp1 = 0 ;
27076 int res1 = 0 ;
27077 PyObject *swig_obj[1] ;
27078
27079 if (!args) SWIG_fail;
27080 swig_obj[0] = args;
27081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27082 if (!SWIG_IsOK(res1)) {
27083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27084 }
27085 arg1 = reinterpret_cast< wxListItem * >(argp1);
27086 {
27087 PyThreadState* __tstate = wxPyBeginAllowThreads();
27088 result = ((wxListItem const *)arg1)->GetTextColour();
27089 wxPyEndAllowThreads(__tstate);
27090 if (PyErr_Occurred()) SWIG_fail;
27091 }
27092 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27093 return resultobj;
27094 fail:
27095 return NULL;
27096 }
27097
27098
27099 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27100 PyObject *resultobj = 0;
27101 wxListItem *arg1 = (wxListItem *) 0 ;
27102 wxColour result;
27103 void *argp1 = 0 ;
27104 int res1 = 0 ;
27105 PyObject *swig_obj[1] ;
27106
27107 if (!args) SWIG_fail;
27108 swig_obj[0] = args;
27109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27110 if (!SWIG_IsOK(res1)) {
27111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27112 }
27113 arg1 = reinterpret_cast< wxListItem * >(argp1);
27114 {
27115 PyThreadState* __tstate = wxPyBeginAllowThreads();
27116 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27117 wxPyEndAllowThreads(__tstate);
27118 if (PyErr_Occurred()) SWIG_fail;
27119 }
27120 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27121 return resultobj;
27122 fail:
27123 return NULL;
27124 }
27125
27126
27127 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27128 PyObject *resultobj = 0;
27129 wxListItem *arg1 = (wxListItem *) 0 ;
27130 wxFont result;
27131 void *argp1 = 0 ;
27132 int res1 = 0 ;
27133 PyObject *swig_obj[1] ;
27134
27135 if (!args) SWIG_fail;
27136 swig_obj[0] = args;
27137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27138 if (!SWIG_IsOK(res1)) {
27139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27140 }
27141 arg1 = reinterpret_cast< wxListItem * >(argp1);
27142 {
27143 PyThreadState* __tstate = wxPyBeginAllowThreads();
27144 result = ((wxListItem const *)arg1)->GetFont();
27145 wxPyEndAllowThreads(__tstate);
27146 if (PyErr_Occurred()) SWIG_fail;
27147 }
27148 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27149 return resultobj;
27150 fail:
27151 return NULL;
27152 }
27153
27154
27155 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27156 PyObject *resultobj = 0;
27157 wxListItem *arg1 = (wxListItem *) 0 ;
27158 long arg2 ;
27159 void *argp1 = 0 ;
27160 int res1 = 0 ;
27161 long val2 ;
27162 int ecode2 = 0 ;
27163 PyObject *swig_obj[2] ;
27164
27165 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27167 if (!SWIG_IsOK(res1)) {
27168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27169 }
27170 arg1 = reinterpret_cast< wxListItem * >(argp1);
27171 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27172 if (!SWIG_IsOK(ecode2)) {
27173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27174 }
27175 arg2 = static_cast< long >(val2);
27176 if (arg1) (arg1)->m_mask = arg2;
27177
27178 resultobj = SWIG_Py_Void();
27179 return resultobj;
27180 fail:
27181 return NULL;
27182 }
27183
27184
27185 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27186 PyObject *resultobj = 0;
27187 wxListItem *arg1 = (wxListItem *) 0 ;
27188 long result;
27189 void *argp1 = 0 ;
27190 int res1 = 0 ;
27191 PyObject *swig_obj[1] ;
27192
27193 if (!args) SWIG_fail;
27194 swig_obj[0] = args;
27195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27196 if (!SWIG_IsOK(res1)) {
27197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27198 }
27199 arg1 = reinterpret_cast< wxListItem * >(argp1);
27200 result = (long) ((arg1)->m_mask);
27201 resultobj = SWIG_From_long(static_cast< long >(result));
27202 return resultobj;
27203 fail:
27204 return NULL;
27205 }
27206
27207
27208 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27209 PyObject *resultobj = 0;
27210 wxListItem *arg1 = (wxListItem *) 0 ;
27211 long arg2 ;
27212 void *argp1 = 0 ;
27213 int res1 = 0 ;
27214 long val2 ;
27215 int ecode2 = 0 ;
27216 PyObject *swig_obj[2] ;
27217
27218 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27220 if (!SWIG_IsOK(res1)) {
27221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27222 }
27223 arg1 = reinterpret_cast< wxListItem * >(argp1);
27224 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27225 if (!SWIG_IsOK(ecode2)) {
27226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27227 }
27228 arg2 = static_cast< long >(val2);
27229 if (arg1) (arg1)->m_itemId = arg2;
27230
27231 resultobj = SWIG_Py_Void();
27232 return resultobj;
27233 fail:
27234 return NULL;
27235 }
27236
27237
27238 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27239 PyObject *resultobj = 0;
27240 wxListItem *arg1 = (wxListItem *) 0 ;
27241 long result;
27242 void *argp1 = 0 ;
27243 int res1 = 0 ;
27244 PyObject *swig_obj[1] ;
27245
27246 if (!args) SWIG_fail;
27247 swig_obj[0] = args;
27248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27249 if (!SWIG_IsOK(res1)) {
27250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27251 }
27252 arg1 = reinterpret_cast< wxListItem * >(argp1);
27253 result = (long) ((arg1)->m_itemId);
27254 resultobj = SWIG_From_long(static_cast< long >(result));
27255 return resultobj;
27256 fail:
27257 return NULL;
27258 }
27259
27260
27261 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27262 PyObject *resultobj = 0;
27263 wxListItem *arg1 = (wxListItem *) 0 ;
27264 int arg2 ;
27265 void *argp1 = 0 ;
27266 int res1 = 0 ;
27267 int val2 ;
27268 int ecode2 = 0 ;
27269 PyObject *swig_obj[2] ;
27270
27271 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27273 if (!SWIG_IsOK(res1)) {
27274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27275 }
27276 arg1 = reinterpret_cast< wxListItem * >(argp1);
27277 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27278 if (!SWIG_IsOK(ecode2)) {
27279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27280 }
27281 arg2 = static_cast< int >(val2);
27282 if (arg1) (arg1)->m_col = arg2;
27283
27284 resultobj = SWIG_Py_Void();
27285 return resultobj;
27286 fail:
27287 return NULL;
27288 }
27289
27290
27291 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27292 PyObject *resultobj = 0;
27293 wxListItem *arg1 = (wxListItem *) 0 ;
27294 int result;
27295 void *argp1 = 0 ;
27296 int res1 = 0 ;
27297 PyObject *swig_obj[1] ;
27298
27299 if (!args) SWIG_fail;
27300 swig_obj[0] = args;
27301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27302 if (!SWIG_IsOK(res1)) {
27303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27304 }
27305 arg1 = reinterpret_cast< wxListItem * >(argp1);
27306 result = (int) ((arg1)->m_col);
27307 resultobj = SWIG_From_int(static_cast< int >(result));
27308 return resultobj;
27309 fail:
27310 return NULL;
27311 }
27312
27313
27314 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27315 PyObject *resultobj = 0;
27316 wxListItem *arg1 = (wxListItem *) 0 ;
27317 long arg2 ;
27318 void *argp1 = 0 ;
27319 int res1 = 0 ;
27320 long val2 ;
27321 int ecode2 = 0 ;
27322 PyObject *swig_obj[2] ;
27323
27324 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27326 if (!SWIG_IsOK(res1)) {
27327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27328 }
27329 arg1 = reinterpret_cast< wxListItem * >(argp1);
27330 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27331 if (!SWIG_IsOK(ecode2)) {
27332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27333 }
27334 arg2 = static_cast< long >(val2);
27335 if (arg1) (arg1)->m_state = arg2;
27336
27337 resultobj = SWIG_Py_Void();
27338 return resultobj;
27339 fail:
27340 return NULL;
27341 }
27342
27343
27344 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27345 PyObject *resultobj = 0;
27346 wxListItem *arg1 = (wxListItem *) 0 ;
27347 long result;
27348 void *argp1 = 0 ;
27349 int res1 = 0 ;
27350 PyObject *swig_obj[1] ;
27351
27352 if (!args) SWIG_fail;
27353 swig_obj[0] = args;
27354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27355 if (!SWIG_IsOK(res1)) {
27356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27357 }
27358 arg1 = reinterpret_cast< wxListItem * >(argp1);
27359 result = (long) ((arg1)->m_state);
27360 resultobj = SWIG_From_long(static_cast< long >(result));
27361 return resultobj;
27362 fail:
27363 return NULL;
27364 }
27365
27366
27367 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27368 PyObject *resultobj = 0;
27369 wxListItem *arg1 = (wxListItem *) 0 ;
27370 long arg2 ;
27371 void *argp1 = 0 ;
27372 int res1 = 0 ;
27373 long val2 ;
27374 int ecode2 = 0 ;
27375 PyObject *swig_obj[2] ;
27376
27377 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27379 if (!SWIG_IsOK(res1)) {
27380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27381 }
27382 arg1 = reinterpret_cast< wxListItem * >(argp1);
27383 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27384 if (!SWIG_IsOK(ecode2)) {
27385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27386 }
27387 arg2 = static_cast< long >(val2);
27388 if (arg1) (arg1)->m_stateMask = arg2;
27389
27390 resultobj = SWIG_Py_Void();
27391 return resultobj;
27392 fail:
27393 return NULL;
27394 }
27395
27396
27397 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27398 PyObject *resultobj = 0;
27399 wxListItem *arg1 = (wxListItem *) 0 ;
27400 long result;
27401 void *argp1 = 0 ;
27402 int res1 = 0 ;
27403 PyObject *swig_obj[1] ;
27404
27405 if (!args) SWIG_fail;
27406 swig_obj[0] = args;
27407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27408 if (!SWIG_IsOK(res1)) {
27409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27410 }
27411 arg1 = reinterpret_cast< wxListItem * >(argp1);
27412 result = (long) ((arg1)->m_stateMask);
27413 resultobj = SWIG_From_long(static_cast< long >(result));
27414 return resultobj;
27415 fail:
27416 return NULL;
27417 }
27418
27419
27420 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27421 PyObject *resultobj = 0;
27422 wxListItem *arg1 = (wxListItem *) 0 ;
27423 wxString *arg2 = (wxString *) 0 ;
27424 void *argp1 = 0 ;
27425 int res1 = 0 ;
27426 bool temp2 = false ;
27427 PyObject *swig_obj[2] ;
27428
27429 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27431 if (!SWIG_IsOK(res1)) {
27432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27433 }
27434 arg1 = reinterpret_cast< wxListItem * >(argp1);
27435 {
27436 arg2 = wxString_in_helper(swig_obj[1]);
27437 if (arg2 == NULL) SWIG_fail;
27438 temp2 = true;
27439 }
27440 if (arg1) (arg1)->m_text = *arg2;
27441
27442 resultobj = SWIG_Py_Void();
27443 {
27444 if (temp2)
27445 delete arg2;
27446 }
27447 return resultobj;
27448 fail:
27449 {
27450 if (temp2)
27451 delete arg2;
27452 }
27453 return NULL;
27454 }
27455
27456
27457 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27458 PyObject *resultobj = 0;
27459 wxListItem *arg1 = (wxListItem *) 0 ;
27460 wxString *result = 0 ;
27461 void *argp1 = 0 ;
27462 int res1 = 0 ;
27463 PyObject *swig_obj[1] ;
27464
27465 if (!args) SWIG_fail;
27466 swig_obj[0] = args;
27467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27468 if (!SWIG_IsOK(res1)) {
27469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27470 }
27471 arg1 = reinterpret_cast< wxListItem * >(argp1);
27472 result = (wxString *)& ((arg1)->m_text);
27473 {
27474 #if wxUSE_UNICODE
27475 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27476 #else
27477 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27478 #endif
27479 }
27480 return resultobj;
27481 fail:
27482 return NULL;
27483 }
27484
27485
27486 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27487 PyObject *resultobj = 0;
27488 wxListItem *arg1 = (wxListItem *) 0 ;
27489 int arg2 ;
27490 void *argp1 = 0 ;
27491 int res1 = 0 ;
27492 int val2 ;
27493 int ecode2 = 0 ;
27494 PyObject *swig_obj[2] ;
27495
27496 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27498 if (!SWIG_IsOK(res1)) {
27499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27500 }
27501 arg1 = reinterpret_cast< wxListItem * >(argp1);
27502 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27503 if (!SWIG_IsOK(ecode2)) {
27504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27505 }
27506 arg2 = static_cast< int >(val2);
27507 if (arg1) (arg1)->m_image = arg2;
27508
27509 resultobj = SWIG_Py_Void();
27510 return resultobj;
27511 fail:
27512 return NULL;
27513 }
27514
27515
27516 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27517 PyObject *resultobj = 0;
27518 wxListItem *arg1 = (wxListItem *) 0 ;
27519 int result;
27520 void *argp1 = 0 ;
27521 int res1 = 0 ;
27522 PyObject *swig_obj[1] ;
27523
27524 if (!args) SWIG_fail;
27525 swig_obj[0] = args;
27526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27527 if (!SWIG_IsOK(res1)) {
27528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27529 }
27530 arg1 = reinterpret_cast< wxListItem * >(argp1);
27531 result = (int) ((arg1)->m_image);
27532 resultobj = SWIG_From_int(static_cast< int >(result));
27533 return resultobj;
27534 fail:
27535 return NULL;
27536 }
27537
27538
27539 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27540 PyObject *resultobj = 0;
27541 wxListItem *arg1 = (wxListItem *) 0 ;
27542 long arg2 ;
27543 void *argp1 = 0 ;
27544 int res1 = 0 ;
27545 long val2 ;
27546 int ecode2 = 0 ;
27547 PyObject *swig_obj[2] ;
27548
27549 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27551 if (!SWIG_IsOK(res1)) {
27552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27553 }
27554 arg1 = reinterpret_cast< wxListItem * >(argp1);
27555 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27556 if (!SWIG_IsOK(ecode2)) {
27557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27558 }
27559 arg2 = static_cast< long >(val2);
27560 if (arg1) (arg1)->m_data = arg2;
27561
27562 resultobj = SWIG_Py_Void();
27563 return resultobj;
27564 fail:
27565 return NULL;
27566 }
27567
27568
27569 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27570 PyObject *resultobj = 0;
27571 wxListItem *arg1 = (wxListItem *) 0 ;
27572 long result;
27573 void *argp1 = 0 ;
27574 int res1 = 0 ;
27575 PyObject *swig_obj[1] ;
27576
27577 if (!args) SWIG_fail;
27578 swig_obj[0] = args;
27579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27580 if (!SWIG_IsOK(res1)) {
27581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27582 }
27583 arg1 = reinterpret_cast< wxListItem * >(argp1);
27584 result = (long) ((arg1)->m_data);
27585 resultobj = SWIG_From_long(static_cast< long >(result));
27586 return resultobj;
27587 fail:
27588 return NULL;
27589 }
27590
27591
27592 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27593 PyObject *resultobj = 0;
27594 wxListItem *arg1 = (wxListItem *) 0 ;
27595 int arg2 ;
27596 void *argp1 = 0 ;
27597 int res1 = 0 ;
27598 int val2 ;
27599 int ecode2 = 0 ;
27600 PyObject *swig_obj[2] ;
27601
27602 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27604 if (!SWIG_IsOK(res1)) {
27605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27606 }
27607 arg1 = reinterpret_cast< wxListItem * >(argp1);
27608 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27609 if (!SWIG_IsOK(ecode2)) {
27610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27611 }
27612 arg2 = static_cast< int >(val2);
27613 if (arg1) (arg1)->m_format = arg2;
27614
27615 resultobj = SWIG_Py_Void();
27616 return resultobj;
27617 fail:
27618 return NULL;
27619 }
27620
27621
27622 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27623 PyObject *resultobj = 0;
27624 wxListItem *arg1 = (wxListItem *) 0 ;
27625 int result;
27626 void *argp1 = 0 ;
27627 int res1 = 0 ;
27628 PyObject *swig_obj[1] ;
27629
27630 if (!args) SWIG_fail;
27631 swig_obj[0] = args;
27632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27633 if (!SWIG_IsOK(res1)) {
27634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27635 }
27636 arg1 = reinterpret_cast< wxListItem * >(argp1);
27637 result = (int) ((arg1)->m_format);
27638 resultobj = SWIG_From_int(static_cast< int >(result));
27639 return resultobj;
27640 fail:
27641 return NULL;
27642 }
27643
27644
27645 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27646 PyObject *resultobj = 0;
27647 wxListItem *arg1 = (wxListItem *) 0 ;
27648 int arg2 ;
27649 void *argp1 = 0 ;
27650 int res1 = 0 ;
27651 int val2 ;
27652 int ecode2 = 0 ;
27653 PyObject *swig_obj[2] ;
27654
27655 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27657 if (!SWIG_IsOK(res1)) {
27658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27659 }
27660 arg1 = reinterpret_cast< wxListItem * >(argp1);
27661 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27662 if (!SWIG_IsOK(ecode2)) {
27663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27664 }
27665 arg2 = static_cast< int >(val2);
27666 if (arg1) (arg1)->m_width = arg2;
27667
27668 resultobj = SWIG_Py_Void();
27669 return resultobj;
27670 fail:
27671 return NULL;
27672 }
27673
27674
27675 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27676 PyObject *resultobj = 0;
27677 wxListItem *arg1 = (wxListItem *) 0 ;
27678 int result;
27679 void *argp1 = 0 ;
27680 int res1 = 0 ;
27681 PyObject *swig_obj[1] ;
27682
27683 if (!args) SWIG_fail;
27684 swig_obj[0] = args;
27685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27686 if (!SWIG_IsOK(res1)) {
27687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27688 }
27689 arg1 = reinterpret_cast< wxListItem * >(argp1);
27690 result = (int) ((arg1)->m_width);
27691 resultobj = SWIG_From_int(static_cast< int >(result));
27692 return resultobj;
27693 fail:
27694 return NULL;
27695 }
27696
27697
27698 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27699 PyObject *obj;
27700 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27701 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27702 return SWIG_Py_Void();
27703 }
27704
27705 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27706 return SWIG_Python_InitShadowInstance(args);
27707 }
27708
27709 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27710 PyObject *resultobj = 0;
27711 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27712 int arg2 = (int) 0 ;
27713 wxListEvent *result = 0 ;
27714 int val1 ;
27715 int ecode1 = 0 ;
27716 int val2 ;
27717 int ecode2 = 0 ;
27718 PyObject * obj0 = 0 ;
27719 PyObject * obj1 = 0 ;
27720 char * kwnames[] = {
27721 (char *) "commandType",(char *) "id", NULL
27722 };
27723
27724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27725 if (obj0) {
27726 ecode1 = SWIG_AsVal_int(obj0, &val1);
27727 if (!SWIG_IsOK(ecode1)) {
27728 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27729 }
27730 arg1 = static_cast< wxEventType >(val1);
27731 }
27732 if (obj1) {
27733 ecode2 = SWIG_AsVal_int(obj1, &val2);
27734 if (!SWIG_IsOK(ecode2)) {
27735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27736 }
27737 arg2 = static_cast< int >(val2);
27738 }
27739 {
27740 PyThreadState* __tstate = wxPyBeginAllowThreads();
27741 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27742 wxPyEndAllowThreads(__tstate);
27743 if (PyErr_Occurred()) SWIG_fail;
27744 }
27745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27746 return resultobj;
27747 fail:
27748 return NULL;
27749 }
27750
27751
27752 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27753 PyObject *resultobj = 0;
27754 wxListEvent *arg1 = (wxListEvent *) 0 ;
27755 int arg2 ;
27756 void *argp1 = 0 ;
27757 int res1 = 0 ;
27758 int val2 ;
27759 int ecode2 = 0 ;
27760 PyObject *swig_obj[2] ;
27761
27762 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27764 if (!SWIG_IsOK(res1)) {
27765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27766 }
27767 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27768 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27769 if (!SWIG_IsOK(ecode2)) {
27770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27771 }
27772 arg2 = static_cast< int >(val2);
27773 if (arg1) (arg1)->m_code = arg2;
27774
27775 resultobj = SWIG_Py_Void();
27776 return resultobj;
27777 fail:
27778 return NULL;
27779 }
27780
27781
27782 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27783 PyObject *resultobj = 0;
27784 wxListEvent *arg1 = (wxListEvent *) 0 ;
27785 int result;
27786 void *argp1 = 0 ;
27787 int res1 = 0 ;
27788 PyObject *swig_obj[1] ;
27789
27790 if (!args) SWIG_fail;
27791 swig_obj[0] = args;
27792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27793 if (!SWIG_IsOK(res1)) {
27794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27795 }
27796 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27797 result = (int) ((arg1)->m_code);
27798 resultobj = SWIG_From_int(static_cast< int >(result));
27799 return resultobj;
27800 fail:
27801 return NULL;
27802 }
27803
27804
27805 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27806 PyObject *resultobj = 0;
27807 wxListEvent *arg1 = (wxListEvent *) 0 ;
27808 long arg2 ;
27809 void *argp1 = 0 ;
27810 int res1 = 0 ;
27811 long val2 ;
27812 int ecode2 = 0 ;
27813 PyObject *swig_obj[2] ;
27814
27815 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27817 if (!SWIG_IsOK(res1)) {
27818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27819 }
27820 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27821 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27822 if (!SWIG_IsOK(ecode2)) {
27823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27824 }
27825 arg2 = static_cast< long >(val2);
27826 if (arg1) (arg1)->m_oldItemIndex = arg2;
27827
27828 resultobj = SWIG_Py_Void();
27829 return resultobj;
27830 fail:
27831 return NULL;
27832 }
27833
27834
27835 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27836 PyObject *resultobj = 0;
27837 wxListEvent *arg1 = (wxListEvent *) 0 ;
27838 long result;
27839 void *argp1 = 0 ;
27840 int res1 = 0 ;
27841 PyObject *swig_obj[1] ;
27842
27843 if (!args) SWIG_fail;
27844 swig_obj[0] = args;
27845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27846 if (!SWIG_IsOK(res1)) {
27847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27848 }
27849 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27850 result = (long) ((arg1)->m_oldItemIndex);
27851 resultobj = SWIG_From_long(static_cast< long >(result));
27852 return resultobj;
27853 fail:
27854 return NULL;
27855 }
27856
27857
27858 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27859 PyObject *resultobj = 0;
27860 wxListEvent *arg1 = (wxListEvent *) 0 ;
27861 long arg2 ;
27862 void *argp1 = 0 ;
27863 int res1 = 0 ;
27864 long val2 ;
27865 int ecode2 = 0 ;
27866 PyObject *swig_obj[2] ;
27867
27868 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27870 if (!SWIG_IsOK(res1)) {
27871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27872 }
27873 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27874 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27875 if (!SWIG_IsOK(ecode2)) {
27876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27877 }
27878 arg2 = static_cast< long >(val2);
27879 if (arg1) (arg1)->m_itemIndex = arg2;
27880
27881 resultobj = SWIG_Py_Void();
27882 return resultobj;
27883 fail:
27884 return NULL;
27885 }
27886
27887
27888 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27889 PyObject *resultobj = 0;
27890 wxListEvent *arg1 = (wxListEvent *) 0 ;
27891 long result;
27892 void *argp1 = 0 ;
27893 int res1 = 0 ;
27894 PyObject *swig_obj[1] ;
27895
27896 if (!args) SWIG_fail;
27897 swig_obj[0] = args;
27898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27899 if (!SWIG_IsOK(res1)) {
27900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27901 }
27902 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27903 result = (long) ((arg1)->m_itemIndex);
27904 resultobj = SWIG_From_long(static_cast< long >(result));
27905 return resultobj;
27906 fail:
27907 return NULL;
27908 }
27909
27910
27911 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27912 PyObject *resultobj = 0;
27913 wxListEvent *arg1 = (wxListEvent *) 0 ;
27914 int arg2 ;
27915 void *argp1 = 0 ;
27916 int res1 = 0 ;
27917 int val2 ;
27918 int ecode2 = 0 ;
27919 PyObject *swig_obj[2] ;
27920
27921 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27923 if (!SWIG_IsOK(res1)) {
27924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27925 }
27926 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27927 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27928 if (!SWIG_IsOK(ecode2)) {
27929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27930 }
27931 arg2 = static_cast< int >(val2);
27932 if (arg1) (arg1)->m_col = arg2;
27933
27934 resultobj = SWIG_Py_Void();
27935 return resultobj;
27936 fail:
27937 return NULL;
27938 }
27939
27940
27941 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27942 PyObject *resultobj = 0;
27943 wxListEvent *arg1 = (wxListEvent *) 0 ;
27944 int result;
27945 void *argp1 = 0 ;
27946 int res1 = 0 ;
27947 PyObject *swig_obj[1] ;
27948
27949 if (!args) SWIG_fail;
27950 swig_obj[0] = args;
27951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27952 if (!SWIG_IsOK(res1)) {
27953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27954 }
27955 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27956 result = (int) ((arg1)->m_col);
27957 resultobj = SWIG_From_int(static_cast< int >(result));
27958 return resultobj;
27959 fail:
27960 return NULL;
27961 }
27962
27963
27964 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27965 PyObject *resultobj = 0;
27966 wxListEvent *arg1 = (wxListEvent *) 0 ;
27967 wxPoint *arg2 = (wxPoint *) 0 ;
27968 void *argp1 = 0 ;
27969 int res1 = 0 ;
27970 void *argp2 = 0 ;
27971 int res2 = 0 ;
27972 PyObject *swig_obj[2] ;
27973
27974 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27976 if (!SWIG_IsOK(res1)) {
27977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27978 }
27979 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27980 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27981 if (!SWIG_IsOK(res2)) {
27982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27983 }
27984 arg2 = reinterpret_cast< wxPoint * >(argp2);
27985 if (arg1) (arg1)->m_pointDrag = *arg2;
27986
27987 resultobj = SWIG_Py_Void();
27988 return resultobj;
27989 fail:
27990 return NULL;
27991 }
27992
27993
27994 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27995 PyObject *resultobj = 0;
27996 wxListEvent *arg1 = (wxListEvent *) 0 ;
27997 wxPoint *result = 0 ;
27998 void *argp1 = 0 ;
27999 int res1 = 0 ;
28000 PyObject *swig_obj[1] ;
28001
28002 if (!args) SWIG_fail;
28003 swig_obj[0] = args;
28004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28005 if (!SWIG_IsOK(res1)) {
28006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28007 }
28008 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28009 result = (wxPoint *)& ((arg1)->m_pointDrag);
28010 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28011 return resultobj;
28012 fail:
28013 return NULL;
28014 }
28015
28016
28017 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28018 PyObject *resultobj = 0;
28019 wxListEvent *arg1 = (wxListEvent *) 0 ;
28020 wxListItem *result = 0 ;
28021 void *argp1 = 0 ;
28022 int res1 = 0 ;
28023 PyObject *swig_obj[1] ;
28024
28025 if (!args) SWIG_fail;
28026 swig_obj[0] = args;
28027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28028 if (!SWIG_IsOK(res1)) {
28029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28030 }
28031 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28032 result = (wxListItem *)& ((arg1)->m_item);
28033 {
28034 resultobj = wxPyMake_wxObject(result, (bool)0);
28035 }
28036 return resultobj;
28037 fail:
28038 return NULL;
28039 }
28040
28041
28042 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28043 PyObject *resultobj = 0;
28044 wxListEvent *arg1 = (wxListEvent *) 0 ;
28045 int result;
28046 void *argp1 = 0 ;
28047 int res1 = 0 ;
28048 PyObject *swig_obj[1] ;
28049
28050 if (!args) SWIG_fail;
28051 swig_obj[0] = args;
28052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28053 if (!SWIG_IsOK(res1)) {
28054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28055 }
28056 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28057 {
28058 PyThreadState* __tstate = wxPyBeginAllowThreads();
28059 result = (int)(arg1)->GetKeyCode();
28060 wxPyEndAllowThreads(__tstate);
28061 if (PyErr_Occurred()) SWIG_fail;
28062 }
28063 resultobj = SWIG_From_int(static_cast< int >(result));
28064 return resultobj;
28065 fail:
28066 return NULL;
28067 }
28068
28069
28070 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28071 PyObject *resultobj = 0;
28072 wxListEvent *arg1 = (wxListEvent *) 0 ;
28073 long result;
28074 void *argp1 = 0 ;
28075 int res1 = 0 ;
28076 PyObject *swig_obj[1] ;
28077
28078 if (!args) SWIG_fail;
28079 swig_obj[0] = args;
28080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28081 if (!SWIG_IsOK(res1)) {
28082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28083 }
28084 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28085 {
28086 PyThreadState* __tstate = wxPyBeginAllowThreads();
28087 result = (long)(arg1)->GetIndex();
28088 wxPyEndAllowThreads(__tstate);
28089 if (PyErr_Occurred()) SWIG_fail;
28090 }
28091 resultobj = SWIG_From_long(static_cast< long >(result));
28092 return resultobj;
28093 fail:
28094 return NULL;
28095 }
28096
28097
28098 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28099 PyObject *resultobj = 0;
28100 wxListEvent *arg1 = (wxListEvent *) 0 ;
28101 int result;
28102 void *argp1 = 0 ;
28103 int res1 = 0 ;
28104 PyObject *swig_obj[1] ;
28105
28106 if (!args) SWIG_fail;
28107 swig_obj[0] = args;
28108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28109 if (!SWIG_IsOK(res1)) {
28110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28111 }
28112 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28113 {
28114 PyThreadState* __tstate = wxPyBeginAllowThreads();
28115 result = (int)(arg1)->GetColumn();
28116 wxPyEndAllowThreads(__tstate);
28117 if (PyErr_Occurred()) SWIG_fail;
28118 }
28119 resultobj = SWIG_From_int(static_cast< int >(result));
28120 return resultobj;
28121 fail:
28122 return NULL;
28123 }
28124
28125
28126 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28127 PyObject *resultobj = 0;
28128 wxListEvent *arg1 = (wxListEvent *) 0 ;
28129 wxPoint result;
28130 void *argp1 = 0 ;
28131 int res1 = 0 ;
28132 PyObject *swig_obj[1] ;
28133
28134 if (!args) SWIG_fail;
28135 swig_obj[0] = args;
28136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28137 if (!SWIG_IsOK(res1)) {
28138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28139 }
28140 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28141 {
28142 PyThreadState* __tstate = wxPyBeginAllowThreads();
28143 result = (arg1)->GetPoint();
28144 wxPyEndAllowThreads(__tstate);
28145 if (PyErr_Occurred()) SWIG_fail;
28146 }
28147 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28148 return resultobj;
28149 fail:
28150 return NULL;
28151 }
28152
28153
28154 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28155 PyObject *resultobj = 0;
28156 wxListEvent *arg1 = (wxListEvent *) 0 ;
28157 wxString *result = 0 ;
28158 void *argp1 = 0 ;
28159 int res1 = 0 ;
28160 PyObject *swig_obj[1] ;
28161
28162 if (!args) SWIG_fail;
28163 swig_obj[0] = args;
28164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28165 if (!SWIG_IsOK(res1)) {
28166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28167 }
28168 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28169 {
28170 PyThreadState* __tstate = wxPyBeginAllowThreads();
28171 {
28172 wxString const &_result_ref = (arg1)->GetLabel();
28173 result = (wxString *) &_result_ref;
28174 }
28175 wxPyEndAllowThreads(__tstate);
28176 if (PyErr_Occurred()) SWIG_fail;
28177 }
28178 {
28179 #if wxUSE_UNICODE
28180 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28181 #else
28182 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28183 #endif
28184 }
28185 return resultobj;
28186 fail:
28187 return NULL;
28188 }
28189
28190
28191 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28192 PyObject *resultobj = 0;
28193 wxListEvent *arg1 = (wxListEvent *) 0 ;
28194 wxString *result = 0 ;
28195 void *argp1 = 0 ;
28196 int res1 = 0 ;
28197 PyObject *swig_obj[1] ;
28198
28199 if (!args) SWIG_fail;
28200 swig_obj[0] = args;
28201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28202 if (!SWIG_IsOK(res1)) {
28203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28204 }
28205 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28206 {
28207 PyThreadState* __tstate = wxPyBeginAllowThreads();
28208 {
28209 wxString const &_result_ref = (arg1)->GetText();
28210 result = (wxString *) &_result_ref;
28211 }
28212 wxPyEndAllowThreads(__tstate);
28213 if (PyErr_Occurred()) SWIG_fail;
28214 }
28215 {
28216 #if wxUSE_UNICODE
28217 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28218 #else
28219 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28220 #endif
28221 }
28222 return resultobj;
28223 fail:
28224 return NULL;
28225 }
28226
28227
28228 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28229 PyObject *resultobj = 0;
28230 wxListEvent *arg1 = (wxListEvent *) 0 ;
28231 int result;
28232 void *argp1 = 0 ;
28233 int res1 = 0 ;
28234 PyObject *swig_obj[1] ;
28235
28236 if (!args) SWIG_fail;
28237 swig_obj[0] = args;
28238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28239 if (!SWIG_IsOK(res1)) {
28240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28241 }
28242 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28243 {
28244 PyThreadState* __tstate = wxPyBeginAllowThreads();
28245 result = (int)(arg1)->GetImage();
28246 wxPyEndAllowThreads(__tstate);
28247 if (PyErr_Occurred()) SWIG_fail;
28248 }
28249 resultobj = SWIG_From_int(static_cast< int >(result));
28250 return resultobj;
28251 fail:
28252 return NULL;
28253 }
28254
28255
28256 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28257 PyObject *resultobj = 0;
28258 wxListEvent *arg1 = (wxListEvent *) 0 ;
28259 long result;
28260 void *argp1 = 0 ;
28261 int res1 = 0 ;
28262 PyObject *swig_obj[1] ;
28263
28264 if (!args) SWIG_fail;
28265 swig_obj[0] = args;
28266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28267 if (!SWIG_IsOK(res1)) {
28268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28269 }
28270 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28271 {
28272 PyThreadState* __tstate = wxPyBeginAllowThreads();
28273 result = (long)(arg1)->GetData();
28274 wxPyEndAllowThreads(__tstate);
28275 if (PyErr_Occurred()) SWIG_fail;
28276 }
28277 resultobj = SWIG_From_long(static_cast< long >(result));
28278 return resultobj;
28279 fail:
28280 return NULL;
28281 }
28282
28283
28284 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28285 PyObject *resultobj = 0;
28286 wxListEvent *arg1 = (wxListEvent *) 0 ;
28287 long result;
28288 void *argp1 = 0 ;
28289 int res1 = 0 ;
28290 PyObject *swig_obj[1] ;
28291
28292 if (!args) SWIG_fail;
28293 swig_obj[0] = args;
28294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28295 if (!SWIG_IsOK(res1)) {
28296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28297 }
28298 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28299 {
28300 PyThreadState* __tstate = wxPyBeginAllowThreads();
28301 result = (long)(arg1)->GetMask();
28302 wxPyEndAllowThreads(__tstate);
28303 if (PyErr_Occurred()) SWIG_fail;
28304 }
28305 resultobj = SWIG_From_long(static_cast< long >(result));
28306 return resultobj;
28307 fail:
28308 return NULL;
28309 }
28310
28311
28312 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28313 PyObject *resultobj = 0;
28314 wxListEvent *arg1 = (wxListEvent *) 0 ;
28315 wxListItem *result = 0 ;
28316 void *argp1 = 0 ;
28317 int res1 = 0 ;
28318 PyObject *swig_obj[1] ;
28319
28320 if (!args) SWIG_fail;
28321 swig_obj[0] = args;
28322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28323 if (!SWIG_IsOK(res1)) {
28324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28325 }
28326 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28327 {
28328 PyThreadState* __tstate = wxPyBeginAllowThreads();
28329 {
28330 wxListItem const &_result_ref = (arg1)->GetItem();
28331 result = (wxListItem *) &_result_ref;
28332 }
28333 wxPyEndAllowThreads(__tstate);
28334 if (PyErr_Occurred()) SWIG_fail;
28335 }
28336 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28337 return resultobj;
28338 fail:
28339 return NULL;
28340 }
28341
28342
28343 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28344 PyObject *resultobj = 0;
28345 wxListEvent *arg1 = (wxListEvent *) 0 ;
28346 long result;
28347 void *argp1 = 0 ;
28348 int res1 = 0 ;
28349 PyObject *swig_obj[1] ;
28350
28351 if (!args) SWIG_fail;
28352 swig_obj[0] = args;
28353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28354 if (!SWIG_IsOK(res1)) {
28355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28356 }
28357 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28358 {
28359 PyThreadState* __tstate = wxPyBeginAllowThreads();
28360 result = (long)(arg1)->GetCacheFrom();
28361 wxPyEndAllowThreads(__tstate);
28362 if (PyErr_Occurred()) SWIG_fail;
28363 }
28364 resultobj = SWIG_From_long(static_cast< long >(result));
28365 return resultobj;
28366 fail:
28367 return NULL;
28368 }
28369
28370
28371 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28372 PyObject *resultobj = 0;
28373 wxListEvent *arg1 = (wxListEvent *) 0 ;
28374 long result;
28375 void *argp1 = 0 ;
28376 int res1 = 0 ;
28377 PyObject *swig_obj[1] ;
28378
28379 if (!args) SWIG_fail;
28380 swig_obj[0] = args;
28381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28382 if (!SWIG_IsOK(res1)) {
28383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28384 }
28385 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28386 {
28387 PyThreadState* __tstate = wxPyBeginAllowThreads();
28388 result = (long)(arg1)->GetCacheTo();
28389 wxPyEndAllowThreads(__tstate);
28390 if (PyErr_Occurred()) SWIG_fail;
28391 }
28392 resultobj = SWIG_From_long(static_cast< long >(result));
28393 return resultobj;
28394 fail:
28395 return NULL;
28396 }
28397
28398
28399 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28400 PyObject *resultobj = 0;
28401 wxListEvent *arg1 = (wxListEvent *) 0 ;
28402 bool result;
28403 void *argp1 = 0 ;
28404 int res1 = 0 ;
28405 PyObject *swig_obj[1] ;
28406
28407 if (!args) SWIG_fail;
28408 swig_obj[0] = args;
28409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28410 if (!SWIG_IsOK(res1)) {
28411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28412 }
28413 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28414 {
28415 PyThreadState* __tstate = wxPyBeginAllowThreads();
28416 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28417 wxPyEndAllowThreads(__tstate);
28418 if (PyErr_Occurred()) SWIG_fail;
28419 }
28420 {
28421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28422 }
28423 return resultobj;
28424 fail:
28425 return NULL;
28426 }
28427
28428
28429 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28430 PyObject *resultobj = 0;
28431 wxListEvent *arg1 = (wxListEvent *) 0 ;
28432 bool arg2 ;
28433 void *argp1 = 0 ;
28434 int res1 = 0 ;
28435 bool val2 ;
28436 int ecode2 = 0 ;
28437 PyObject * obj0 = 0 ;
28438 PyObject * obj1 = 0 ;
28439 char * kwnames[] = {
28440 (char *) "self",(char *) "editCancelled", NULL
28441 };
28442
28443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28445 if (!SWIG_IsOK(res1)) {
28446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28447 }
28448 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28449 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28450 if (!SWIG_IsOK(ecode2)) {
28451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28452 }
28453 arg2 = static_cast< bool >(val2);
28454 {
28455 PyThreadState* __tstate = wxPyBeginAllowThreads();
28456 (arg1)->SetEditCanceled(arg2);
28457 wxPyEndAllowThreads(__tstate);
28458 if (PyErr_Occurred()) SWIG_fail;
28459 }
28460 resultobj = SWIG_Py_Void();
28461 return resultobj;
28462 fail:
28463 return NULL;
28464 }
28465
28466
28467 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28468 PyObject *obj;
28469 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28470 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28471 return SWIG_Py_Void();
28472 }
28473
28474 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28475 return SWIG_Python_InitShadowInstance(args);
28476 }
28477
28478 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28479 PyObject *resultobj = 0;
28480 wxWindow *arg1 = (wxWindow *) 0 ;
28481 int arg2 = (int) -1 ;
28482 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28483 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28484 wxSize const &arg4_defvalue = wxDefaultSize ;
28485 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28486 long arg5 = (long) wxLC_ICON ;
28487 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28488 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28489 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28490 wxString *arg7 = (wxString *) &arg7_defvalue ;
28491 wxPyListCtrl *result = 0 ;
28492 void *argp1 = 0 ;
28493 int res1 = 0 ;
28494 int val2 ;
28495 int ecode2 = 0 ;
28496 wxPoint temp3 ;
28497 wxSize temp4 ;
28498 long val5 ;
28499 int ecode5 = 0 ;
28500 void *argp6 = 0 ;
28501 int res6 = 0 ;
28502 bool temp7 = false ;
28503 PyObject * obj0 = 0 ;
28504 PyObject * obj1 = 0 ;
28505 PyObject * obj2 = 0 ;
28506 PyObject * obj3 = 0 ;
28507 PyObject * obj4 = 0 ;
28508 PyObject * obj5 = 0 ;
28509 PyObject * obj6 = 0 ;
28510 char * kwnames[] = {
28511 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28512 };
28513
28514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28516 if (!SWIG_IsOK(res1)) {
28517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28518 }
28519 arg1 = reinterpret_cast< wxWindow * >(argp1);
28520 if (obj1) {
28521 ecode2 = SWIG_AsVal_int(obj1, &val2);
28522 if (!SWIG_IsOK(ecode2)) {
28523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28524 }
28525 arg2 = static_cast< int >(val2);
28526 }
28527 if (obj2) {
28528 {
28529 arg3 = &temp3;
28530 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28531 }
28532 }
28533 if (obj3) {
28534 {
28535 arg4 = &temp4;
28536 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28537 }
28538 }
28539 if (obj4) {
28540 ecode5 = SWIG_AsVal_long(obj4, &val5);
28541 if (!SWIG_IsOK(ecode5)) {
28542 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28543 }
28544 arg5 = static_cast< long >(val5);
28545 }
28546 if (obj5) {
28547 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28548 if (!SWIG_IsOK(res6)) {
28549 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28550 }
28551 if (!argp6) {
28552 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28553 }
28554 arg6 = reinterpret_cast< wxValidator * >(argp6);
28555 }
28556 if (obj6) {
28557 {
28558 arg7 = wxString_in_helper(obj6);
28559 if (arg7 == NULL) SWIG_fail;
28560 temp7 = true;
28561 }
28562 }
28563 {
28564 if (!wxPyCheckForApp()) SWIG_fail;
28565 PyThreadState* __tstate = wxPyBeginAllowThreads();
28566 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28567 wxPyEndAllowThreads(__tstate);
28568 if (PyErr_Occurred()) SWIG_fail;
28569 }
28570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28571 {
28572 if (temp7)
28573 delete arg7;
28574 }
28575 return resultobj;
28576 fail:
28577 {
28578 if (temp7)
28579 delete arg7;
28580 }
28581 return NULL;
28582 }
28583
28584
28585 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28586 PyObject *resultobj = 0;
28587 wxPyListCtrl *result = 0 ;
28588
28589 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28590 {
28591 if (!wxPyCheckForApp()) SWIG_fail;
28592 PyThreadState* __tstate = wxPyBeginAllowThreads();
28593 result = (wxPyListCtrl *)new wxPyListCtrl();
28594 wxPyEndAllowThreads(__tstate);
28595 if (PyErr_Occurred()) SWIG_fail;
28596 }
28597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28598 return resultobj;
28599 fail:
28600 return NULL;
28601 }
28602
28603
28604 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28605 PyObject *resultobj = 0;
28606 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28607 wxWindow *arg2 = (wxWindow *) 0 ;
28608 int arg3 = (int) -1 ;
28609 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28610 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28611 wxSize const &arg5_defvalue = wxDefaultSize ;
28612 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28613 long arg6 = (long) wxLC_ICON ;
28614 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28615 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28616 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28617 wxString *arg8 = (wxString *) &arg8_defvalue ;
28618 bool result;
28619 void *argp1 = 0 ;
28620 int res1 = 0 ;
28621 void *argp2 = 0 ;
28622 int res2 = 0 ;
28623 int val3 ;
28624 int ecode3 = 0 ;
28625 wxPoint temp4 ;
28626 wxSize temp5 ;
28627 long val6 ;
28628 int ecode6 = 0 ;
28629 void *argp7 = 0 ;
28630 int res7 = 0 ;
28631 bool temp8 = false ;
28632 PyObject * obj0 = 0 ;
28633 PyObject * obj1 = 0 ;
28634 PyObject * obj2 = 0 ;
28635 PyObject * obj3 = 0 ;
28636 PyObject * obj4 = 0 ;
28637 PyObject * obj5 = 0 ;
28638 PyObject * obj6 = 0 ;
28639 PyObject * obj7 = 0 ;
28640 char * kwnames[] = {
28641 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28642 };
28643
28644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28646 if (!SWIG_IsOK(res1)) {
28647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28648 }
28649 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28650 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28651 if (!SWIG_IsOK(res2)) {
28652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28653 }
28654 arg2 = reinterpret_cast< wxWindow * >(argp2);
28655 if (obj2) {
28656 ecode3 = SWIG_AsVal_int(obj2, &val3);
28657 if (!SWIG_IsOK(ecode3)) {
28658 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28659 }
28660 arg3 = static_cast< int >(val3);
28661 }
28662 if (obj3) {
28663 {
28664 arg4 = &temp4;
28665 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28666 }
28667 }
28668 if (obj4) {
28669 {
28670 arg5 = &temp5;
28671 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28672 }
28673 }
28674 if (obj5) {
28675 ecode6 = SWIG_AsVal_long(obj5, &val6);
28676 if (!SWIG_IsOK(ecode6)) {
28677 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28678 }
28679 arg6 = static_cast< long >(val6);
28680 }
28681 if (obj6) {
28682 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28683 if (!SWIG_IsOK(res7)) {
28684 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28685 }
28686 if (!argp7) {
28687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28688 }
28689 arg7 = reinterpret_cast< wxValidator * >(argp7);
28690 }
28691 if (obj7) {
28692 {
28693 arg8 = wxString_in_helper(obj7);
28694 if (arg8 == NULL) SWIG_fail;
28695 temp8 = true;
28696 }
28697 }
28698 {
28699 PyThreadState* __tstate = wxPyBeginAllowThreads();
28700 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28701 wxPyEndAllowThreads(__tstate);
28702 if (PyErr_Occurred()) SWIG_fail;
28703 }
28704 {
28705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28706 }
28707 {
28708 if (temp8)
28709 delete arg8;
28710 }
28711 return resultobj;
28712 fail:
28713 {
28714 if (temp8)
28715 delete arg8;
28716 }
28717 return NULL;
28718 }
28719
28720
28721 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28722 PyObject *resultobj = 0;
28723 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28724 PyObject *arg2 = (PyObject *) 0 ;
28725 PyObject *arg3 = (PyObject *) 0 ;
28726 void *argp1 = 0 ;
28727 int res1 = 0 ;
28728 PyObject * obj0 = 0 ;
28729 PyObject * obj1 = 0 ;
28730 PyObject * obj2 = 0 ;
28731 char * kwnames[] = {
28732 (char *) "self",(char *) "self",(char *) "_class", NULL
28733 };
28734
28735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28737 if (!SWIG_IsOK(res1)) {
28738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28739 }
28740 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28741 arg2 = obj1;
28742 arg3 = obj2;
28743 {
28744 PyThreadState* __tstate = wxPyBeginAllowThreads();
28745 (arg1)->_setCallbackInfo(arg2,arg3);
28746 wxPyEndAllowThreads(__tstate);
28747 if (PyErr_Occurred()) SWIG_fail;
28748 }
28749 resultobj = SWIG_Py_Void();
28750 return resultobj;
28751 fail:
28752 return NULL;
28753 }
28754
28755
28756 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28757 PyObject *resultobj = 0;
28758 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28759 int arg2 ;
28760 wxListItem *result = 0 ;
28761 void *argp1 = 0 ;
28762 int res1 = 0 ;
28763 int val2 ;
28764 int ecode2 = 0 ;
28765 PyObject * obj0 = 0 ;
28766 PyObject * obj1 = 0 ;
28767 char * kwnames[] = {
28768 (char *) "self",(char *) "col", NULL
28769 };
28770
28771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28773 if (!SWIG_IsOK(res1)) {
28774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28775 }
28776 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28777 ecode2 = SWIG_AsVal_int(obj1, &val2);
28778 if (!SWIG_IsOK(ecode2)) {
28779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28780 }
28781 arg2 = static_cast< int >(val2);
28782 {
28783 PyThreadState* __tstate = wxPyBeginAllowThreads();
28784 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28785 wxPyEndAllowThreads(__tstate);
28786 if (PyErr_Occurred()) SWIG_fail;
28787 }
28788 {
28789 resultobj = wxPyMake_wxObject(result, (bool)0);
28790 }
28791 return resultobj;
28792 fail:
28793 return NULL;
28794 }
28795
28796
28797 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28798 PyObject *resultobj = 0;
28799 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28800 int arg2 ;
28801 wxListItem *arg3 = 0 ;
28802 bool result;
28803 void *argp1 = 0 ;
28804 int res1 = 0 ;
28805 int val2 ;
28806 int ecode2 = 0 ;
28807 void *argp3 = 0 ;
28808 int res3 = 0 ;
28809 PyObject * obj0 = 0 ;
28810 PyObject * obj1 = 0 ;
28811 PyObject * obj2 = 0 ;
28812 char * kwnames[] = {
28813 (char *) "self",(char *) "col",(char *) "item", NULL
28814 };
28815
28816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28818 if (!SWIG_IsOK(res1)) {
28819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28820 }
28821 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28822 ecode2 = SWIG_AsVal_int(obj1, &val2);
28823 if (!SWIG_IsOK(ecode2)) {
28824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28825 }
28826 arg2 = static_cast< int >(val2);
28827 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28828 if (!SWIG_IsOK(res3)) {
28829 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28830 }
28831 if (!argp3) {
28832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28833 }
28834 arg3 = reinterpret_cast< wxListItem * >(argp3);
28835 {
28836 PyThreadState* __tstate = wxPyBeginAllowThreads();
28837 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28838 wxPyEndAllowThreads(__tstate);
28839 if (PyErr_Occurred()) SWIG_fail;
28840 }
28841 {
28842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28843 }
28844 return resultobj;
28845 fail:
28846 return NULL;
28847 }
28848
28849
28850 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28851 PyObject *resultobj = 0;
28852 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28853 int arg2 ;
28854 int result;
28855 void *argp1 = 0 ;
28856 int res1 = 0 ;
28857 int val2 ;
28858 int ecode2 = 0 ;
28859 PyObject * obj0 = 0 ;
28860 PyObject * obj1 = 0 ;
28861 char * kwnames[] = {
28862 (char *) "self",(char *) "col", NULL
28863 };
28864
28865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28867 if (!SWIG_IsOK(res1)) {
28868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28869 }
28870 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28871 ecode2 = SWIG_AsVal_int(obj1, &val2);
28872 if (!SWIG_IsOK(ecode2)) {
28873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28874 }
28875 arg2 = static_cast< int >(val2);
28876 {
28877 PyThreadState* __tstate = wxPyBeginAllowThreads();
28878 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28879 wxPyEndAllowThreads(__tstate);
28880 if (PyErr_Occurred()) SWIG_fail;
28881 }
28882 resultobj = SWIG_From_int(static_cast< int >(result));
28883 return resultobj;
28884 fail:
28885 return NULL;
28886 }
28887
28888
28889 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28890 PyObject *resultobj = 0;
28891 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28892 int arg2 ;
28893 int arg3 ;
28894 bool result;
28895 void *argp1 = 0 ;
28896 int res1 = 0 ;
28897 int val2 ;
28898 int ecode2 = 0 ;
28899 int val3 ;
28900 int ecode3 = 0 ;
28901 PyObject * obj0 = 0 ;
28902 PyObject * obj1 = 0 ;
28903 PyObject * obj2 = 0 ;
28904 char * kwnames[] = {
28905 (char *) "self",(char *) "col",(char *) "width", NULL
28906 };
28907
28908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28910 if (!SWIG_IsOK(res1)) {
28911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28912 }
28913 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28914 ecode2 = SWIG_AsVal_int(obj1, &val2);
28915 if (!SWIG_IsOK(ecode2)) {
28916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28917 }
28918 arg2 = static_cast< int >(val2);
28919 ecode3 = SWIG_AsVal_int(obj2, &val3);
28920 if (!SWIG_IsOK(ecode3)) {
28921 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28922 }
28923 arg3 = static_cast< int >(val3);
28924 {
28925 PyThreadState* __tstate = wxPyBeginAllowThreads();
28926 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28927 wxPyEndAllowThreads(__tstate);
28928 if (PyErr_Occurred()) SWIG_fail;
28929 }
28930 {
28931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28932 }
28933 return resultobj;
28934 fail:
28935 return NULL;
28936 }
28937
28938
28939 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28940 PyObject *resultobj = 0;
28941 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28942 int result;
28943 void *argp1 = 0 ;
28944 int res1 = 0 ;
28945 PyObject *swig_obj[1] ;
28946
28947 if (!args) SWIG_fail;
28948 swig_obj[0] = args;
28949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28950 if (!SWIG_IsOK(res1)) {
28951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28952 }
28953 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28954 {
28955 PyThreadState* __tstate = wxPyBeginAllowThreads();
28956 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28957 wxPyEndAllowThreads(__tstate);
28958 if (PyErr_Occurred()) SWIG_fail;
28959 }
28960 resultobj = SWIG_From_int(static_cast< int >(result));
28961 return resultobj;
28962 fail:
28963 return NULL;
28964 }
28965
28966
28967 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28968 PyObject *resultobj = 0;
28969 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28970 wxRect result;
28971 void *argp1 = 0 ;
28972 int res1 = 0 ;
28973 PyObject *swig_obj[1] ;
28974
28975 if (!args) SWIG_fail;
28976 swig_obj[0] = args;
28977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28978 if (!SWIG_IsOK(res1)) {
28979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28980 }
28981 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28982 {
28983 PyThreadState* __tstate = wxPyBeginAllowThreads();
28984 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28985 wxPyEndAllowThreads(__tstate);
28986 if (PyErr_Occurred()) SWIG_fail;
28987 }
28988 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28989 return resultobj;
28990 fail:
28991 return NULL;
28992 }
28993
28994
28995 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28996 PyObject *resultobj = 0;
28997 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28998 wxTextCtrl *result = 0 ;
28999 void *argp1 = 0 ;
29000 int res1 = 0 ;
29001 PyObject *swig_obj[1] ;
29002
29003 if (!args) SWIG_fail;
29004 swig_obj[0] = args;
29005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29006 if (!SWIG_IsOK(res1)) {
29007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29008 }
29009 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29010 {
29011 PyThreadState* __tstate = wxPyBeginAllowThreads();
29012 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29013 wxPyEndAllowThreads(__tstate);
29014 if (PyErr_Occurred()) SWIG_fail;
29015 }
29016 {
29017 resultobj = wxPyMake_wxObject(result, 0);
29018 }
29019 return resultobj;
29020 fail:
29021 return NULL;
29022 }
29023
29024
29025 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29026 PyObject *resultobj = 0;
29027 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29028 long arg2 ;
29029 int arg3 = (int) 0 ;
29030 wxListItem *result = 0 ;
29031 void *argp1 = 0 ;
29032 int res1 = 0 ;
29033 long val2 ;
29034 int ecode2 = 0 ;
29035 int val3 ;
29036 int ecode3 = 0 ;
29037 PyObject * obj0 = 0 ;
29038 PyObject * obj1 = 0 ;
29039 PyObject * obj2 = 0 ;
29040 char * kwnames[] = {
29041 (char *) "self",(char *) "itemId",(char *) "col", NULL
29042 };
29043
29044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29046 if (!SWIG_IsOK(res1)) {
29047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29048 }
29049 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29050 ecode2 = SWIG_AsVal_long(obj1, &val2);
29051 if (!SWIG_IsOK(ecode2)) {
29052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29053 }
29054 arg2 = static_cast< long >(val2);
29055 if (obj2) {
29056 ecode3 = SWIG_AsVal_int(obj2, &val3);
29057 if (!SWIG_IsOK(ecode3)) {
29058 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29059 }
29060 arg3 = static_cast< int >(val3);
29061 }
29062 {
29063 PyThreadState* __tstate = wxPyBeginAllowThreads();
29064 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29065 wxPyEndAllowThreads(__tstate);
29066 if (PyErr_Occurred()) SWIG_fail;
29067 }
29068 {
29069 resultobj = wxPyMake_wxObject(result, (bool)0);
29070 }
29071 return resultobj;
29072 fail:
29073 return NULL;
29074 }
29075
29076
29077 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29078 PyObject *resultobj = 0;
29079 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29080 wxListItem *arg2 = 0 ;
29081 bool result;
29082 void *argp1 = 0 ;
29083 int res1 = 0 ;
29084 void *argp2 = 0 ;
29085 int res2 = 0 ;
29086 PyObject * obj0 = 0 ;
29087 PyObject * obj1 = 0 ;
29088 char * kwnames[] = {
29089 (char *) "self",(char *) "info", NULL
29090 };
29091
29092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29094 if (!SWIG_IsOK(res1)) {
29095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29096 }
29097 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29098 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29099 if (!SWIG_IsOK(res2)) {
29100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29101 }
29102 if (!argp2) {
29103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29104 }
29105 arg2 = reinterpret_cast< wxListItem * >(argp2);
29106 {
29107 PyThreadState* __tstate = wxPyBeginAllowThreads();
29108 result = (bool)(arg1)->SetItem(*arg2);
29109 wxPyEndAllowThreads(__tstate);
29110 if (PyErr_Occurred()) SWIG_fail;
29111 }
29112 {
29113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29114 }
29115 return resultobj;
29116 fail:
29117 return NULL;
29118 }
29119
29120
29121 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29122 PyObject *resultobj = 0;
29123 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29124 long arg2 ;
29125 int arg3 ;
29126 wxString *arg4 = 0 ;
29127 int arg5 = (int) -1 ;
29128 long result;
29129 void *argp1 = 0 ;
29130 int res1 = 0 ;
29131 long val2 ;
29132 int ecode2 = 0 ;
29133 int val3 ;
29134 int ecode3 = 0 ;
29135 bool temp4 = false ;
29136 int val5 ;
29137 int ecode5 = 0 ;
29138 PyObject * obj0 = 0 ;
29139 PyObject * obj1 = 0 ;
29140 PyObject * obj2 = 0 ;
29141 PyObject * obj3 = 0 ;
29142 PyObject * obj4 = 0 ;
29143 char * kwnames[] = {
29144 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29145 };
29146
29147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29149 if (!SWIG_IsOK(res1)) {
29150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29151 }
29152 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29153 ecode2 = SWIG_AsVal_long(obj1, &val2);
29154 if (!SWIG_IsOK(ecode2)) {
29155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29156 }
29157 arg2 = static_cast< long >(val2);
29158 ecode3 = SWIG_AsVal_int(obj2, &val3);
29159 if (!SWIG_IsOK(ecode3)) {
29160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29161 }
29162 arg3 = static_cast< int >(val3);
29163 {
29164 arg4 = wxString_in_helper(obj3);
29165 if (arg4 == NULL) SWIG_fail;
29166 temp4 = true;
29167 }
29168 if (obj4) {
29169 ecode5 = SWIG_AsVal_int(obj4, &val5);
29170 if (!SWIG_IsOK(ecode5)) {
29171 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29172 }
29173 arg5 = static_cast< int >(val5);
29174 }
29175 {
29176 PyThreadState* __tstate = wxPyBeginAllowThreads();
29177 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29178 wxPyEndAllowThreads(__tstate);
29179 if (PyErr_Occurred()) SWIG_fail;
29180 }
29181 resultobj = SWIG_From_long(static_cast< long >(result));
29182 {
29183 if (temp4)
29184 delete arg4;
29185 }
29186 return resultobj;
29187 fail:
29188 {
29189 if (temp4)
29190 delete arg4;
29191 }
29192 return NULL;
29193 }
29194
29195
29196 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29197 PyObject *resultobj = 0;
29198 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29199 long arg2 ;
29200 long arg3 ;
29201 int result;
29202 void *argp1 = 0 ;
29203 int res1 = 0 ;
29204 long val2 ;
29205 int ecode2 = 0 ;
29206 long val3 ;
29207 int ecode3 = 0 ;
29208 PyObject * obj0 = 0 ;
29209 PyObject * obj1 = 0 ;
29210 PyObject * obj2 = 0 ;
29211 char * kwnames[] = {
29212 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29213 };
29214
29215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29217 if (!SWIG_IsOK(res1)) {
29218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29219 }
29220 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29221 ecode2 = SWIG_AsVal_long(obj1, &val2);
29222 if (!SWIG_IsOK(ecode2)) {
29223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29224 }
29225 arg2 = static_cast< long >(val2);
29226 ecode3 = SWIG_AsVal_long(obj2, &val3);
29227 if (!SWIG_IsOK(ecode3)) {
29228 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29229 }
29230 arg3 = static_cast< long >(val3);
29231 {
29232 PyThreadState* __tstate = wxPyBeginAllowThreads();
29233 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29234 wxPyEndAllowThreads(__tstate);
29235 if (PyErr_Occurred()) SWIG_fail;
29236 }
29237 resultobj = SWIG_From_int(static_cast< int >(result));
29238 return resultobj;
29239 fail:
29240 return NULL;
29241 }
29242
29243
29244 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29245 PyObject *resultobj = 0;
29246 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29247 long arg2 ;
29248 long arg3 ;
29249 long arg4 ;
29250 bool result;
29251 void *argp1 = 0 ;
29252 int res1 = 0 ;
29253 long val2 ;
29254 int ecode2 = 0 ;
29255 long val3 ;
29256 int ecode3 = 0 ;
29257 long val4 ;
29258 int ecode4 = 0 ;
29259 PyObject * obj0 = 0 ;
29260 PyObject * obj1 = 0 ;
29261 PyObject * obj2 = 0 ;
29262 PyObject * obj3 = 0 ;
29263 char * kwnames[] = {
29264 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29265 };
29266
29267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29269 if (!SWIG_IsOK(res1)) {
29270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29271 }
29272 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29273 ecode2 = SWIG_AsVal_long(obj1, &val2);
29274 if (!SWIG_IsOK(ecode2)) {
29275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29276 }
29277 arg2 = static_cast< long >(val2);
29278 ecode3 = SWIG_AsVal_long(obj2, &val3);
29279 if (!SWIG_IsOK(ecode3)) {
29280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29281 }
29282 arg3 = static_cast< long >(val3);
29283 ecode4 = SWIG_AsVal_long(obj3, &val4);
29284 if (!SWIG_IsOK(ecode4)) {
29285 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29286 }
29287 arg4 = static_cast< long >(val4);
29288 {
29289 PyThreadState* __tstate = wxPyBeginAllowThreads();
29290 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29291 wxPyEndAllowThreads(__tstate);
29292 if (PyErr_Occurred()) SWIG_fail;
29293 }
29294 {
29295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29296 }
29297 return resultobj;
29298 fail:
29299 return NULL;
29300 }
29301
29302
29303 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29304 PyObject *resultobj = 0;
29305 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29306 long arg2 ;
29307 int arg3 ;
29308 int arg4 = (int) -1 ;
29309 bool result;
29310 void *argp1 = 0 ;
29311 int res1 = 0 ;
29312 long val2 ;
29313 int ecode2 = 0 ;
29314 int val3 ;
29315 int ecode3 = 0 ;
29316 int val4 ;
29317 int ecode4 = 0 ;
29318 PyObject * obj0 = 0 ;
29319 PyObject * obj1 = 0 ;
29320 PyObject * obj2 = 0 ;
29321 PyObject * obj3 = 0 ;
29322 char * kwnames[] = {
29323 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29324 };
29325
29326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29328 if (!SWIG_IsOK(res1)) {
29329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29330 }
29331 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29332 ecode2 = SWIG_AsVal_long(obj1, &val2);
29333 if (!SWIG_IsOK(ecode2)) {
29334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29335 }
29336 arg2 = static_cast< long >(val2);
29337 ecode3 = SWIG_AsVal_int(obj2, &val3);
29338 if (!SWIG_IsOK(ecode3)) {
29339 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29340 }
29341 arg3 = static_cast< int >(val3);
29342 if (obj3) {
29343 ecode4 = SWIG_AsVal_int(obj3, &val4);
29344 if (!SWIG_IsOK(ecode4)) {
29345 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29346 }
29347 arg4 = static_cast< int >(val4);
29348 }
29349 {
29350 PyThreadState* __tstate = wxPyBeginAllowThreads();
29351 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29352 wxPyEndAllowThreads(__tstate);
29353 if (PyErr_Occurred()) SWIG_fail;
29354 }
29355 {
29356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29357 }
29358 return resultobj;
29359 fail:
29360 return NULL;
29361 }
29362
29363
29364 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29365 PyObject *resultobj = 0;
29366 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29367 long arg2 ;
29368 long arg3 ;
29369 int arg4 ;
29370 bool result;
29371 void *argp1 = 0 ;
29372 int res1 = 0 ;
29373 long val2 ;
29374 int ecode2 = 0 ;
29375 long val3 ;
29376 int ecode3 = 0 ;
29377 int val4 ;
29378 int ecode4 = 0 ;
29379 PyObject * obj0 = 0 ;
29380 PyObject * obj1 = 0 ;
29381 PyObject * obj2 = 0 ;
29382 PyObject * obj3 = 0 ;
29383 char * kwnames[] = {
29384 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29385 };
29386
29387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29389 if (!SWIG_IsOK(res1)) {
29390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29391 }
29392 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29393 ecode2 = SWIG_AsVal_long(obj1, &val2);
29394 if (!SWIG_IsOK(ecode2)) {
29395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29396 }
29397 arg2 = static_cast< long >(val2);
29398 ecode3 = SWIG_AsVal_long(obj2, &val3);
29399 if (!SWIG_IsOK(ecode3)) {
29400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29401 }
29402 arg3 = static_cast< long >(val3);
29403 ecode4 = SWIG_AsVal_int(obj3, &val4);
29404 if (!SWIG_IsOK(ecode4)) {
29405 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29406 }
29407 arg4 = static_cast< int >(val4);
29408 {
29409 PyThreadState* __tstate = wxPyBeginAllowThreads();
29410 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29411 wxPyEndAllowThreads(__tstate);
29412 if (PyErr_Occurred()) SWIG_fail;
29413 }
29414 {
29415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29416 }
29417 return resultobj;
29418 fail:
29419 return NULL;
29420 }
29421
29422
29423 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29424 PyObject *resultobj = 0;
29425 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29426 long arg2 ;
29427 wxString result;
29428 void *argp1 = 0 ;
29429 int res1 = 0 ;
29430 long val2 ;
29431 int ecode2 = 0 ;
29432 PyObject * obj0 = 0 ;
29433 PyObject * obj1 = 0 ;
29434 char * kwnames[] = {
29435 (char *) "self",(char *) "item", NULL
29436 };
29437
29438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29440 if (!SWIG_IsOK(res1)) {
29441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29442 }
29443 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29444 ecode2 = SWIG_AsVal_long(obj1, &val2);
29445 if (!SWIG_IsOK(ecode2)) {
29446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29447 }
29448 arg2 = static_cast< long >(val2);
29449 {
29450 PyThreadState* __tstate = wxPyBeginAllowThreads();
29451 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29452 wxPyEndAllowThreads(__tstate);
29453 if (PyErr_Occurred()) SWIG_fail;
29454 }
29455 {
29456 #if wxUSE_UNICODE
29457 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29458 #else
29459 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29460 #endif
29461 }
29462 return resultobj;
29463 fail:
29464 return NULL;
29465 }
29466
29467
29468 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29469 PyObject *resultobj = 0;
29470 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29471 long arg2 ;
29472 wxString *arg3 = 0 ;
29473 void *argp1 = 0 ;
29474 int res1 = 0 ;
29475 long val2 ;
29476 int ecode2 = 0 ;
29477 bool temp3 = false ;
29478 PyObject * obj0 = 0 ;
29479 PyObject * obj1 = 0 ;
29480 PyObject * obj2 = 0 ;
29481 char * kwnames[] = {
29482 (char *) "self",(char *) "item",(char *) "str", NULL
29483 };
29484
29485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29487 if (!SWIG_IsOK(res1)) {
29488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29489 }
29490 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29491 ecode2 = SWIG_AsVal_long(obj1, &val2);
29492 if (!SWIG_IsOK(ecode2)) {
29493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29494 }
29495 arg2 = static_cast< long >(val2);
29496 {
29497 arg3 = wxString_in_helper(obj2);
29498 if (arg3 == NULL) SWIG_fail;
29499 temp3 = true;
29500 }
29501 {
29502 PyThreadState* __tstate = wxPyBeginAllowThreads();
29503 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29504 wxPyEndAllowThreads(__tstate);
29505 if (PyErr_Occurred()) SWIG_fail;
29506 }
29507 resultobj = SWIG_Py_Void();
29508 {
29509 if (temp3)
29510 delete arg3;
29511 }
29512 return resultobj;
29513 fail:
29514 {
29515 if (temp3)
29516 delete arg3;
29517 }
29518 return NULL;
29519 }
29520
29521
29522 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29523 PyObject *resultobj = 0;
29524 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29525 long arg2 ;
29526 long result;
29527 void *argp1 = 0 ;
29528 int res1 = 0 ;
29529 long val2 ;
29530 int ecode2 = 0 ;
29531 PyObject * obj0 = 0 ;
29532 PyObject * obj1 = 0 ;
29533 char * kwnames[] = {
29534 (char *) "self",(char *) "item", NULL
29535 };
29536
29537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29539 if (!SWIG_IsOK(res1)) {
29540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29541 }
29542 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29543 ecode2 = SWIG_AsVal_long(obj1, &val2);
29544 if (!SWIG_IsOK(ecode2)) {
29545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29546 }
29547 arg2 = static_cast< long >(val2);
29548 {
29549 PyThreadState* __tstate = wxPyBeginAllowThreads();
29550 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29551 wxPyEndAllowThreads(__tstate);
29552 if (PyErr_Occurred()) SWIG_fail;
29553 }
29554 resultobj = SWIG_From_long(static_cast< long >(result));
29555 return resultobj;
29556 fail:
29557 return NULL;
29558 }
29559
29560
29561 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29562 PyObject *resultobj = 0;
29563 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29564 long arg2 ;
29565 long arg3 ;
29566 bool result;
29567 void *argp1 = 0 ;
29568 int res1 = 0 ;
29569 long val2 ;
29570 int ecode2 = 0 ;
29571 long val3 ;
29572 int ecode3 = 0 ;
29573 PyObject * obj0 = 0 ;
29574 PyObject * obj1 = 0 ;
29575 PyObject * obj2 = 0 ;
29576 char * kwnames[] = {
29577 (char *) "self",(char *) "item",(char *) "data", NULL
29578 };
29579
29580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29582 if (!SWIG_IsOK(res1)) {
29583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29584 }
29585 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29586 ecode2 = SWIG_AsVal_long(obj1, &val2);
29587 if (!SWIG_IsOK(ecode2)) {
29588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29589 }
29590 arg2 = static_cast< long >(val2);
29591 ecode3 = SWIG_AsVal_long(obj2, &val3);
29592 if (!SWIG_IsOK(ecode3)) {
29593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29594 }
29595 arg3 = static_cast< long >(val3);
29596 {
29597 PyThreadState* __tstate = wxPyBeginAllowThreads();
29598 result = (bool)(arg1)->SetItemData(arg2,arg3);
29599 wxPyEndAllowThreads(__tstate);
29600 if (PyErr_Occurred()) SWIG_fail;
29601 }
29602 {
29603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29604 }
29605 return resultobj;
29606 fail:
29607 return NULL;
29608 }
29609
29610
29611 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29612 PyObject *resultobj = 0;
29613 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29614 long arg2 ;
29615 wxPoint result;
29616 void *argp1 = 0 ;
29617 int res1 = 0 ;
29618 long val2 ;
29619 int ecode2 = 0 ;
29620 PyObject * obj0 = 0 ;
29621 PyObject * obj1 = 0 ;
29622 char * kwnames[] = {
29623 (char *) "self",(char *) "item", NULL
29624 };
29625
29626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29628 if (!SWIG_IsOK(res1)) {
29629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29630 }
29631 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29632 ecode2 = SWIG_AsVal_long(obj1, &val2);
29633 if (!SWIG_IsOK(ecode2)) {
29634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29635 }
29636 arg2 = static_cast< long >(val2);
29637 {
29638 PyThreadState* __tstate = wxPyBeginAllowThreads();
29639 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29640 wxPyEndAllowThreads(__tstate);
29641 if (PyErr_Occurred()) SWIG_fail;
29642 }
29643 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29644 return resultobj;
29645 fail:
29646 return NULL;
29647 }
29648
29649
29650 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29651 PyObject *resultobj = 0;
29652 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29653 long arg2 ;
29654 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29655 wxRect result;
29656 void *argp1 = 0 ;
29657 int res1 = 0 ;
29658 long val2 ;
29659 int ecode2 = 0 ;
29660 int val3 ;
29661 int ecode3 = 0 ;
29662 PyObject * obj0 = 0 ;
29663 PyObject * obj1 = 0 ;
29664 PyObject * obj2 = 0 ;
29665 char * kwnames[] = {
29666 (char *) "self",(char *) "item",(char *) "code", NULL
29667 };
29668
29669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29671 if (!SWIG_IsOK(res1)) {
29672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29673 }
29674 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29675 ecode2 = SWIG_AsVal_long(obj1, &val2);
29676 if (!SWIG_IsOK(ecode2)) {
29677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29678 }
29679 arg2 = static_cast< long >(val2);
29680 if (obj2) {
29681 ecode3 = SWIG_AsVal_int(obj2, &val3);
29682 if (!SWIG_IsOK(ecode3)) {
29683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29684 }
29685 arg3 = static_cast< int >(val3);
29686 }
29687 {
29688 PyThreadState* __tstate = wxPyBeginAllowThreads();
29689 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29690 wxPyEndAllowThreads(__tstate);
29691 if (PyErr_Occurred()) SWIG_fail;
29692 }
29693 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29694 return resultobj;
29695 fail:
29696 return NULL;
29697 }
29698
29699
29700 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29701 PyObject *resultobj = 0;
29702 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29703 long arg2 ;
29704 wxPoint *arg3 = 0 ;
29705 bool result;
29706 void *argp1 = 0 ;
29707 int res1 = 0 ;
29708 long val2 ;
29709 int ecode2 = 0 ;
29710 wxPoint temp3 ;
29711 PyObject * obj0 = 0 ;
29712 PyObject * obj1 = 0 ;
29713 PyObject * obj2 = 0 ;
29714 char * kwnames[] = {
29715 (char *) "self",(char *) "item",(char *) "pos", NULL
29716 };
29717
29718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29720 if (!SWIG_IsOK(res1)) {
29721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29722 }
29723 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29724 ecode2 = SWIG_AsVal_long(obj1, &val2);
29725 if (!SWIG_IsOK(ecode2)) {
29726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29727 }
29728 arg2 = static_cast< long >(val2);
29729 {
29730 arg3 = &temp3;
29731 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29732 }
29733 {
29734 PyThreadState* __tstate = wxPyBeginAllowThreads();
29735 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29736 wxPyEndAllowThreads(__tstate);
29737 if (PyErr_Occurred()) SWIG_fail;
29738 }
29739 {
29740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29741 }
29742 return resultobj;
29743 fail:
29744 return NULL;
29745 }
29746
29747
29748 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29749 PyObject *resultobj = 0;
29750 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29751 int result;
29752 void *argp1 = 0 ;
29753 int res1 = 0 ;
29754 PyObject *swig_obj[1] ;
29755
29756 if (!args) SWIG_fail;
29757 swig_obj[0] = args;
29758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29759 if (!SWIG_IsOK(res1)) {
29760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29761 }
29762 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29763 {
29764 PyThreadState* __tstate = wxPyBeginAllowThreads();
29765 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29766 wxPyEndAllowThreads(__tstate);
29767 if (PyErr_Occurred()) SWIG_fail;
29768 }
29769 resultobj = SWIG_From_int(static_cast< int >(result));
29770 return resultobj;
29771 fail:
29772 return NULL;
29773 }
29774
29775
29776 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29777 PyObject *resultobj = 0;
29778 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29779 int result;
29780 void *argp1 = 0 ;
29781 int res1 = 0 ;
29782 PyObject *swig_obj[1] ;
29783
29784 if (!args) SWIG_fail;
29785 swig_obj[0] = args;
29786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29787 if (!SWIG_IsOK(res1)) {
29788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29789 }
29790 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29791 {
29792 PyThreadState* __tstate = wxPyBeginAllowThreads();
29793 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29794 wxPyEndAllowThreads(__tstate);
29795 if (PyErr_Occurred()) SWIG_fail;
29796 }
29797 resultobj = SWIG_From_int(static_cast< int >(result));
29798 return resultobj;
29799 fail:
29800 return NULL;
29801 }
29802
29803
29804 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29805 PyObject *resultobj = 0;
29806 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29807 wxSize result;
29808 void *argp1 = 0 ;
29809 int res1 = 0 ;
29810 PyObject *swig_obj[1] ;
29811
29812 if (!args) SWIG_fail;
29813 swig_obj[0] = args;
29814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29815 if (!SWIG_IsOK(res1)) {
29816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29817 }
29818 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29819 {
29820 PyThreadState* __tstate = wxPyBeginAllowThreads();
29821 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29822 wxPyEndAllowThreads(__tstate);
29823 if (PyErr_Occurred()) SWIG_fail;
29824 }
29825 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29826 return resultobj;
29827 fail:
29828 return NULL;
29829 }
29830
29831
29832 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29833 PyObject *resultobj = 0;
29834 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29835 int result;
29836 void *argp1 = 0 ;
29837 int res1 = 0 ;
29838 PyObject *swig_obj[1] ;
29839
29840 if (!args) SWIG_fail;
29841 swig_obj[0] = args;
29842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29843 if (!SWIG_IsOK(res1)) {
29844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29845 }
29846 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29847 {
29848 PyThreadState* __tstate = wxPyBeginAllowThreads();
29849 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29850 wxPyEndAllowThreads(__tstate);
29851 if (PyErr_Occurred()) SWIG_fail;
29852 }
29853 resultobj = SWIG_From_int(static_cast< int >(result));
29854 return resultobj;
29855 fail:
29856 return NULL;
29857 }
29858
29859
29860 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29861 PyObject *resultobj = 0;
29862 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29863 wxColour result;
29864 void *argp1 = 0 ;
29865 int res1 = 0 ;
29866 PyObject *swig_obj[1] ;
29867
29868 if (!args) SWIG_fail;
29869 swig_obj[0] = args;
29870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29871 if (!SWIG_IsOK(res1)) {
29872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29873 }
29874 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29875 {
29876 PyThreadState* __tstate = wxPyBeginAllowThreads();
29877 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29878 wxPyEndAllowThreads(__tstate);
29879 if (PyErr_Occurred()) SWIG_fail;
29880 }
29881 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29882 return resultobj;
29883 fail:
29884 return NULL;
29885 }
29886
29887
29888 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29889 PyObject *resultobj = 0;
29890 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29891 wxColour *arg2 = 0 ;
29892 void *argp1 = 0 ;
29893 int res1 = 0 ;
29894 wxColour temp2 ;
29895 PyObject * obj0 = 0 ;
29896 PyObject * obj1 = 0 ;
29897 char * kwnames[] = {
29898 (char *) "self",(char *) "col", NULL
29899 };
29900
29901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29903 if (!SWIG_IsOK(res1)) {
29904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29905 }
29906 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29907 {
29908 arg2 = &temp2;
29909 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29910 }
29911 {
29912 PyThreadState* __tstate = wxPyBeginAllowThreads();
29913 (arg1)->SetTextColour((wxColour const &)*arg2);
29914 wxPyEndAllowThreads(__tstate);
29915 if (PyErr_Occurred()) SWIG_fail;
29916 }
29917 resultobj = SWIG_Py_Void();
29918 return resultobj;
29919 fail:
29920 return NULL;
29921 }
29922
29923
29924 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29925 PyObject *resultobj = 0;
29926 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29927 long result;
29928 void *argp1 = 0 ;
29929 int res1 = 0 ;
29930 PyObject *swig_obj[1] ;
29931
29932 if (!args) SWIG_fail;
29933 swig_obj[0] = args;
29934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29935 if (!SWIG_IsOK(res1)) {
29936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29937 }
29938 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29939 {
29940 PyThreadState* __tstate = wxPyBeginAllowThreads();
29941 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
29942 wxPyEndAllowThreads(__tstate);
29943 if (PyErr_Occurred()) SWIG_fail;
29944 }
29945 resultobj = SWIG_From_long(static_cast< long >(result));
29946 return resultobj;
29947 fail:
29948 return NULL;
29949 }
29950
29951
29952 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29953 PyObject *resultobj = 0;
29954 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29955 long arg2 ;
29956 bool arg3 = (bool) true ;
29957 void *argp1 = 0 ;
29958 int res1 = 0 ;
29959 long val2 ;
29960 int ecode2 = 0 ;
29961 bool val3 ;
29962 int ecode3 = 0 ;
29963 PyObject * obj0 = 0 ;
29964 PyObject * obj1 = 0 ;
29965 PyObject * obj2 = 0 ;
29966 char * kwnames[] = {
29967 (char *) "self",(char *) "style",(char *) "add", NULL
29968 };
29969
29970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29972 if (!SWIG_IsOK(res1)) {
29973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29974 }
29975 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29976 ecode2 = SWIG_AsVal_long(obj1, &val2);
29977 if (!SWIG_IsOK(ecode2)) {
29978 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
29979 }
29980 arg2 = static_cast< long >(val2);
29981 if (obj2) {
29982 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29983 if (!SWIG_IsOK(ecode3)) {
29984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
29985 }
29986 arg3 = static_cast< bool >(val3);
29987 }
29988 {
29989 PyThreadState* __tstate = wxPyBeginAllowThreads();
29990 (arg1)->SetSingleStyle(arg2,arg3);
29991 wxPyEndAllowThreads(__tstate);
29992 if (PyErr_Occurred()) SWIG_fail;
29993 }
29994 resultobj = SWIG_Py_Void();
29995 return resultobj;
29996 fail:
29997 return NULL;
29998 }
29999
30000
30001 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30002 PyObject *resultobj = 0;
30003 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30004 long arg2 ;
30005 int arg3 = (int) wxLIST_NEXT_ALL ;
30006 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30007 long result;
30008 void *argp1 = 0 ;
30009 int res1 = 0 ;
30010 long val2 ;
30011 int ecode2 = 0 ;
30012 int val3 ;
30013 int ecode3 = 0 ;
30014 int val4 ;
30015 int ecode4 = 0 ;
30016 PyObject * obj0 = 0 ;
30017 PyObject * obj1 = 0 ;
30018 PyObject * obj2 = 0 ;
30019 PyObject * obj3 = 0 ;
30020 char * kwnames[] = {
30021 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30022 };
30023
30024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30026 if (!SWIG_IsOK(res1)) {
30027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30028 }
30029 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30030 ecode2 = SWIG_AsVal_long(obj1, &val2);
30031 if (!SWIG_IsOK(ecode2)) {
30032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30033 }
30034 arg2 = static_cast< long >(val2);
30035 if (obj2) {
30036 ecode3 = SWIG_AsVal_int(obj2, &val3);
30037 if (!SWIG_IsOK(ecode3)) {
30038 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30039 }
30040 arg3 = static_cast< int >(val3);
30041 }
30042 if (obj3) {
30043 ecode4 = SWIG_AsVal_int(obj3, &val4);
30044 if (!SWIG_IsOK(ecode4)) {
30045 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30046 }
30047 arg4 = static_cast< int >(val4);
30048 }
30049 {
30050 PyThreadState* __tstate = wxPyBeginAllowThreads();
30051 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30052 wxPyEndAllowThreads(__tstate);
30053 if (PyErr_Occurred()) SWIG_fail;
30054 }
30055 resultobj = SWIG_From_long(static_cast< long >(result));
30056 return resultobj;
30057 fail:
30058 return NULL;
30059 }
30060
30061
30062 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30063 PyObject *resultobj = 0;
30064 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30065 int arg2 ;
30066 wxImageList *result = 0 ;
30067 void *argp1 = 0 ;
30068 int res1 = 0 ;
30069 int val2 ;
30070 int ecode2 = 0 ;
30071 PyObject * obj0 = 0 ;
30072 PyObject * obj1 = 0 ;
30073 char * kwnames[] = {
30074 (char *) "self",(char *) "which", NULL
30075 };
30076
30077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30079 if (!SWIG_IsOK(res1)) {
30080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30081 }
30082 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30083 ecode2 = SWIG_AsVal_int(obj1, &val2);
30084 if (!SWIG_IsOK(ecode2)) {
30085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30086 }
30087 arg2 = static_cast< int >(val2);
30088 {
30089 PyThreadState* __tstate = wxPyBeginAllowThreads();
30090 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30091 wxPyEndAllowThreads(__tstate);
30092 if (PyErr_Occurred()) SWIG_fail;
30093 }
30094 {
30095 resultobj = wxPyMake_wxObject(result, (bool)0);
30096 }
30097 return resultobj;
30098 fail:
30099 return NULL;
30100 }
30101
30102
30103 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30104 PyObject *resultobj = 0;
30105 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30106 wxImageList *arg2 = (wxImageList *) 0 ;
30107 int arg3 ;
30108 void *argp1 = 0 ;
30109 int res1 = 0 ;
30110 void *argp2 = 0 ;
30111 int res2 = 0 ;
30112 int val3 ;
30113 int ecode3 = 0 ;
30114 PyObject * obj0 = 0 ;
30115 PyObject * obj1 = 0 ;
30116 PyObject * obj2 = 0 ;
30117 char * kwnames[] = {
30118 (char *) "self",(char *) "imageList",(char *) "which", NULL
30119 };
30120
30121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30123 if (!SWIG_IsOK(res1)) {
30124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30125 }
30126 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30127 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30128 if (!SWIG_IsOK(res2)) {
30129 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30130 }
30131 arg2 = reinterpret_cast< wxImageList * >(argp2);
30132 ecode3 = SWIG_AsVal_int(obj2, &val3);
30133 if (!SWIG_IsOK(ecode3)) {
30134 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30135 }
30136 arg3 = static_cast< int >(val3);
30137 {
30138 PyThreadState* __tstate = wxPyBeginAllowThreads();
30139 (arg1)->SetImageList(arg2,arg3);
30140 wxPyEndAllowThreads(__tstate);
30141 if (PyErr_Occurred()) SWIG_fail;
30142 }
30143 resultobj = SWIG_Py_Void();
30144 return resultobj;
30145 fail:
30146 return NULL;
30147 }
30148
30149
30150 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30151 PyObject *resultobj = 0;
30152 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30153 wxImageList *arg2 = (wxImageList *) 0 ;
30154 int arg3 ;
30155 void *argp1 = 0 ;
30156 int res1 = 0 ;
30157 int res2 = 0 ;
30158 int val3 ;
30159 int ecode3 = 0 ;
30160 PyObject * obj0 = 0 ;
30161 PyObject * obj1 = 0 ;
30162 PyObject * obj2 = 0 ;
30163 char * kwnames[] = {
30164 (char *) "self",(char *) "imageList",(char *) "which", NULL
30165 };
30166
30167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30169 if (!SWIG_IsOK(res1)) {
30170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30171 }
30172 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30173 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30174 if (!SWIG_IsOK(res2)) {
30175 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30176 }
30177 ecode3 = SWIG_AsVal_int(obj2, &val3);
30178 if (!SWIG_IsOK(ecode3)) {
30179 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30180 }
30181 arg3 = static_cast< int >(val3);
30182 {
30183 PyThreadState* __tstate = wxPyBeginAllowThreads();
30184 (arg1)->AssignImageList(arg2,arg3);
30185 wxPyEndAllowThreads(__tstate);
30186 if (PyErr_Occurred()) SWIG_fail;
30187 }
30188 resultobj = SWIG_Py_Void();
30189 return resultobj;
30190 fail:
30191 return NULL;
30192 }
30193
30194
30195 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30196 PyObject *resultobj = 0;
30197 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30198 bool result;
30199 void *argp1 = 0 ;
30200 int res1 = 0 ;
30201 PyObject *swig_obj[1] ;
30202
30203 if (!args) SWIG_fail;
30204 swig_obj[0] = args;
30205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30206 if (!SWIG_IsOK(res1)) {
30207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30208 }
30209 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30210 {
30211 PyThreadState* __tstate = wxPyBeginAllowThreads();
30212 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30213 wxPyEndAllowThreads(__tstate);
30214 if (PyErr_Occurred()) SWIG_fail;
30215 }
30216 {
30217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30218 }
30219 return resultobj;
30220 fail:
30221 return NULL;
30222 }
30223
30224
30225 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30226 PyObject *resultobj = 0;
30227 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30228 bool result;
30229 void *argp1 = 0 ;
30230 int res1 = 0 ;
30231 PyObject *swig_obj[1] ;
30232
30233 if (!args) SWIG_fail;
30234 swig_obj[0] = args;
30235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30236 if (!SWIG_IsOK(res1)) {
30237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30238 }
30239 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30240 {
30241 PyThreadState* __tstate = wxPyBeginAllowThreads();
30242 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30243 wxPyEndAllowThreads(__tstate);
30244 if (PyErr_Occurred()) SWIG_fail;
30245 }
30246 {
30247 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30248 }
30249 return resultobj;
30250 fail:
30251 return NULL;
30252 }
30253
30254
30255 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30256 PyObject *resultobj = 0;
30257 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30258 long arg2 ;
30259 void *argp1 = 0 ;
30260 int res1 = 0 ;
30261 long val2 ;
30262 int ecode2 = 0 ;
30263 PyObject * obj0 = 0 ;
30264 PyObject * obj1 = 0 ;
30265 char * kwnames[] = {
30266 (char *) "self",(char *) "item", NULL
30267 };
30268
30269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30271 if (!SWIG_IsOK(res1)) {
30272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30273 }
30274 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30275 ecode2 = SWIG_AsVal_long(obj1, &val2);
30276 if (!SWIG_IsOK(ecode2)) {
30277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30278 }
30279 arg2 = static_cast< long >(val2);
30280 {
30281 PyThreadState* __tstate = wxPyBeginAllowThreads();
30282 (arg1)->RefreshItem(arg2);
30283 wxPyEndAllowThreads(__tstate);
30284 if (PyErr_Occurred()) SWIG_fail;
30285 }
30286 resultobj = SWIG_Py_Void();
30287 return resultobj;
30288 fail:
30289 return NULL;
30290 }
30291
30292
30293 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30294 PyObject *resultobj = 0;
30295 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30296 long arg2 ;
30297 long arg3 ;
30298 void *argp1 = 0 ;
30299 int res1 = 0 ;
30300 long val2 ;
30301 int ecode2 = 0 ;
30302 long val3 ;
30303 int ecode3 = 0 ;
30304 PyObject * obj0 = 0 ;
30305 PyObject * obj1 = 0 ;
30306 PyObject * obj2 = 0 ;
30307 char * kwnames[] = {
30308 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30309 };
30310
30311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30313 if (!SWIG_IsOK(res1)) {
30314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30315 }
30316 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30317 ecode2 = SWIG_AsVal_long(obj1, &val2);
30318 if (!SWIG_IsOK(ecode2)) {
30319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30320 }
30321 arg2 = static_cast< long >(val2);
30322 ecode3 = SWIG_AsVal_long(obj2, &val3);
30323 if (!SWIG_IsOK(ecode3)) {
30324 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30325 }
30326 arg3 = static_cast< long >(val3);
30327 {
30328 PyThreadState* __tstate = wxPyBeginAllowThreads();
30329 (arg1)->RefreshItems(arg2,arg3);
30330 wxPyEndAllowThreads(__tstate);
30331 if (PyErr_Occurred()) SWIG_fail;
30332 }
30333 resultobj = SWIG_Py_Void();
30334 return resultobj;
30335 fail:
30336 return NULL;
30337 }
30338
30339
30340 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30341 PyObject *resultobj = 0;
30342 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30343 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30344 bool result;
30345 void *argp1 = 0 ;
30346 int res1 = 0 ;
30347 int val2 ;
30348 int ecode2 = 0 ;
30349 PyObject * obj0 = 0 ;
30350 PyObject * obj1 = 0 ;
30351 char * kwnames[] = {
30352 (char *) "self",(char *) "flag", NULL
30353 };
30354
30355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30357 if (!SWIG_IsOK(res1)) {
30358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30359 }
30360 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30361 if (obj1) {
30362 ecode2 = SWIG_AsVal_int(obj1, &val2);
30363 if (!SWIG_IsOK(ecode2)) {
30364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30365 }
30366 arg2 = static_cast< int >(val2);
30367 }
30368 {
30369 PyThreadState* __tstate = wxPyBeginAllowThreads();
30370 result = (bool)(arg1)->Arrange(arg2);
30371 wxPyEndAllowThreads(__tstate);
30372 if (PyErr_Occurred()) SWIG_fail;
30373 }
30374 {
30375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30376 }
30377 return resultobj;
30378 fail:
30379 return NULL;
30380 }
30381
30382
30383 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30384 PyObject *resultobj = 0;
30385 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30386 long arg2 ;
30387 bool result;
30388 void *argp1 = 0 ;
30389 int res1 = 0 ;
30390 long val2 ;
30391 int ecode2 = 0 ;
30392 PyObject * obj0 = 0 ;
30393 PyObject * obj1 = 0 ;
30394 char * kwnames[] = {
30395 (char *) "self",(char *) "item", NULL
30396 };
30397
30398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30400 if (!SWIG_IsOK(res1)) {
30401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30402 }
30403 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30404 ecode2 = SWIG_AsVal_long(obj1, &val2);
30405 if (!SWIG_IsOK(ecode2)) {
30406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30407 }
30408 arg2 = static_cast< long >(val2);
30409 {
30410 PyThreadState* __tstate = wxPyBeginAllowThreads();
30411 result = (bool)(arg1)->DeleteItem(arg2);
30412 wxPyEndAllowThreads(__tstate);
30413 if (PyErr_Occurred()) SWIG_fail;
30414 }
30415 {
30416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30417 }
30418 return resultobj;
30419 fail:
30420 return NULL;
30421 }
30422
30423
30424 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30425 PyObject *resultobj = 0;
30426 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30427 bool result;
30428 void *argp1 = 0 ;
30429 int res1 = 0 ;
30430 PyObject *swig_obj[1] ;
30431
30432 if (!args) SWIG_fail;
30433 swig_obj[0] = args;
30434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30435 if (!SWIG_IsOK(res1)) {
30436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30437 }
30438 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30439 {
30440 PyThreadState* __tstate = wxPyBeginAllowThreads();
30441 result = (bool)(arg1)->DeleteAllItems();
30442 wxPyEndAllowThreads(__tstate);
30443 if (PyErr_Occurred()) SWIG_fail;
30444 }
30445 {
30446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30447 }
30448 return resultobj;
30449 fail:
30450 return NULL;
30451 }
30452
30453
30454 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30455 PyObject *resultobj = 0;
30456 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30457 int arg2 ;
30458 bool result;
30459 void *argp1 = 0 ;
30460 int res1 = 0 ;
30461 int val2 ;
30462 int ecode2 = 0 ;
30463 PyObject * obj0 = 0 ;
30464 PyObject * obj1 = 0 ;
30465 char * kwnames[] = {
30466 (char *) "self",(char *) "col", NULL
30467 };
30468
30469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30471 if (!SWIG_IsOK(res1)) {
30472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30473 }
30474 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30475 ecode2 = SWIG_AsVal_int(obj1, &val2);
30476 if (!SWIG_IsOK(ecode2)) {
30477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30478 }
30479 arg2 = static_cast< int >(val2);
30480 {
30481 PyThreadState* __tstate = wxPyBeginAllowThreads();
30482 result = (bool)(arg1)->DeleteColumn(arg2);
30483 wxPyEndAllowThreads(__tstate);
30484 if (PyErr_Occurred()) SWIG_fail;
30485 }
30486 {
30487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30488 }
30489 return resultobj;
30490 fail:
30491 return NULL;
30492 }
30493
30494
30495 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30496 PyObject *resultobj = 0;
30497 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30498 bool result;
30499 void *argp1 = 0 ;
30500 int res1 = 0 ;
30501 PyObject *swig_obj[1] ;
30502
30503 if (!args) SWIG_fail;
30504 swig_obj[0] = args;
30505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30506 if (!SWIG_IsOK(res1)) {
30507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30508 }
30509 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30510 {
30511 PyThreadState* __tstate = wxPyBeginAllowThreads();
30512 result = (bool)(arg1)->DeleteAllColumns();
30513 wxPyEndAllowThreads(__tstate);
30514 if (PyErr_Occurred()) SWIG_fail;
30515 }
30516 {
30517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30518 }
30519 return resultobj;
30520 fail:
30521 return NULL;
30522 }
30523
30524
30525 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30526 PyObject *resultobj = 0;
30527 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30528 void *argp1 = 0 ;
30529 int res1 = 0 ;
30530 PyObject *swig_obj[1] ;
30531
30532 if (!args) SWIG_fail;
30533 swig_obj[0] = args;
30534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30535 if (!SWIG_IsOK(res1)) {
30536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30537 }
30538 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30539 {
30540 PyThreadState* __tstate = wxPyBeginAllowThreads();
30541 (arg1)->ClearAll();
30542 wxPyEndAllowThreads(__tstate);
30543 if (PyErr_Occurred()) SWIG_fail;
30544 }
30545 resultobj = SWIG_Py_Void();
30546 return resultobj;
30547 fail:
30548 return NULL;
30549 }
30550
30551
30552 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30553 PyObject *resultobj = 0;
30554 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30555 long arg2 ;
30556 wxTextCtrl *result = 0 ;
30557 void *argp1 = 0 ;
30558 int res1 = 0 ;
30559 long val2 ;
30560 int ecode2 = 0 ;
30561 PyObject * obj0 = 0 ;
30562 PyObject * obj1 = 0 ;
30563 char * kwnames[] = {
30564 (char *) "self",(char *) "item", NULL
30565 };
30566
30567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30569 if (!SWIG_IsOK(res1)) {
30570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30571 }
30572 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30573 ecode2 = SWIG_AsVal_long(obj1, &val2);
30574 if (!SWIG_IsOK(ecode2)) {
30575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30576 }
30577 arg2 = static_cast< long >(val2);
30578 {
30579 PyThreadState* __tstate = wxPyBeginAllowThreads();
30580 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
30581 wxPyEndAllowThreads(__tstate);
30582 if (PyErr_Occurred()) SWIG_fail;
30583 }
30584 {
30585 resultobj = wxPyMake_wxObject(result, 0);
30586 }
30587 return resultobj;
30588 fail:
30589 return NULL;
30590 }
30591
30592
30593 SWIGINTERN PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30594 PyObject *resultobj = 0;
30595 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30596 bool arg2 ;
30597 bool result;
30598 void *argp1 = 0 ;
30599 int res1 = 0 ;
30600 bool val2 ;
30601 int ecode2 = 0 ;
30602 PyObject * obj0 = 0 ;
30603 PyObject * obj1 = 0 ;
30604 char * kwnames[] = {
30605 (char *) "self",(char *) "cancel", NULL
30606 };
30607
30608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30610 if (!SWIG_IsOK(res1)) {
30611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30612 }
30613 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30614 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30615 if (!SWIG_IsOK(ecode2)) {
30616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "2"" of type '" "bool""'");
30617 }
30618 arg2 = static_cast< bool >(val2);
30619 {
30620 PyThreadState* __tstate = wxPyBeginAllowThreads();
30621 result = (bool)(arg1)->EndEditLabel(arg2);
30622 wxPyEndAllowThreads(__tstate);
30623 if (PyErr_Occurred()) SWIG_fail;
30624 }
30625 {
30626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30627 }
30628 return resultobj;
30629 fail:
30630 return NULL;
30631 }
30632
30633
30634 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30635 PyObject *resultobj = 0;
30636 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30637 long arg2 ;
30638 bool result;
30639 void *argp1 = 0 ;
30640 int res1 = 0 ;
30641 long val2 ;
30642 int ecode2 = 0 ;
30643 PyObject * obj0 = 0 ;
30644 PyObject * obj1 = 0 ;
30645 char * kwnames[] = {
30646 (char *) "self",(char *) "item", NULL
30647 };
30648
30649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30651 if (!SWIG_IsOK(res1)) {
30652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30653 }
30654 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30655 ecode2 = SWIG_AsVal_long(obj1, &val2);
30656 if (!SWIG_IsOK(ecode2)) {
30657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30658 }
30659 arg2 = static_cast< long >(val2);
30660 {
30661 PyThreadState* __tstate = wxPyBeginAllowThreads();
30662 result = (bool)(arg1)->EnsureVisible(arg2);
30663 wxPyEndAllowThreads(__tstate);
30664 if (PyErr_Occurred()) SWIG_fail;
30665 }
30666 {
30667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30668 }
30669 return resultobj;
30670 fail:
30671 return NULL;
30672 }
30673
30674
30675 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30676 PyObject *resultobj = 0;
30677 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30678 long arg2 ;
30679 wxString *arg3 = 0 ;
30680 bool arg4 = (bool) false ;
30681 long result;
30682 void *argp1 = 0 ;
30683 int res1 = 0 ;
30684 long val2 ;
30685 int ecode2 = 0 ;
30686 bool temp3 = false ;
30687 bool val4 ;
30688 int ecode4 = 0 ;
30689 PyObject * obj0 = 0 ;
30690 PyObject * obj1 = 0 ;
30691 PyObject * obj2 = 0 ;
30692 PyObject * obj3 = 0 ;
30693 char * kwnames[] = {
30694 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30695 };
30696
30697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30699 if (!SWIG_IsOK(res1)) {
30700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30701 }
30702 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30703 ecode2 = SWIG_AsVal_long(obj1, &val2);
30704 if (!SWIG_IsOK(ecode2)) {
30705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30706 }
30707 arg2 = static_cast< long >(val2);
30708 {
30709 arg3 = wxString_in_helper(obj2);
30710 if (arg3 == NULL) SWIG_fail;
30711 temp3 = true;
30712 }
30713 if (obj3) {
30714 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30715 if (!SWIG_IsOK(ecode4)) {
30716 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30717 }
30718 arg4 = static_cast< bool >(val4);
30719 }
30720 {
30721 PyThreadState* __tstate = wxPyBeginAllowThreads();
30722 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30723 wxPyEndAllowThreads(__tstate);
30724 if (PyErr_Occurred()) SWIG_fail;
30725 }
30726 resultobj = SWIG_From_long(static_cast< long >(result));
30727 {
30728 if (temp3)
30729 delete arg3;
30730 }
30731 return resultobj;
30732 fail:
30733 {
30734 if (temp3)
30735 delete arg3;
30736 }
30737 return NULL;
30738 }
30739
30740
30741 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30742 PyObject *resultobj = 0;
30743 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30744 long arg2 ;
30745 long arg3 ;
30746 long result;
30747 void *argp1 = 0 ;
30748 int res1 = 0 ;
30749 long val2 ;
30750 int ecode2 = 0 ;
30751 long val3 ;
30752 int ecode3 = 0 ;
30753 PyObject * obj0 = 0 ;
30754 PyObject * obj1 = 0 ;
30755 PyObject * obj2 = 0 ;
30756 char * kwnames[] = {
30757 (char *) "self",(char *) "start",(char *) "data", NULL
30758 };
30759
30760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30762 if (!SWIG_IsOK(res1)) {
30763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30764 }
30765 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30766 ecode2 = SWIG_AsVal_long(obj1, &val2);
30767 if (!SWIG_IsOK(ecode2)) {
30768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30769 }
30770 arg2 = static_cast< long >(val2);
30771 ecode3 = SWIG_AsVal_long(obj2, &val3);
30772 if (!SWIG_IsOK(ecode3)) {
30773 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30774 }
30775 arg3 = static_cast< long >(val3);
30776 {
30777 PyThreadState* __tstate = wxPyBeginAllowThreads();
30778 result = (long)(arg1)->FindItem(arg2,arg3);
30779 wxPyEndAllowThreads(__tstate);
30780 if (PyErr_Occurred()) SWIG_fail;
30781 }
30782 resultobj = SWIG_From_long(static_cast< long >(result));
30783 return resultobj;
30784 fail:
30785 return NULL;
30786 }
30787
30788
30789 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30790 PyObject *resultobj = 0;
30791 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30792 long arg2 ;
30793 wxPoint *arg3 = 0 ;
30794 int arg4 ;
30795 long result;
30796 void *argp1 = 0 ;
30797 int res1 = 0 ;
30798 long val2 ;
30799 int ecode2 = 0 ;
30800 wxPoint temp3 ;
30801 int val4 ;
30802 int ecode4 = 0 ;
30803 PyObject * obj0 = 0 ;
30804 PyObject * obj1 = 0 ;
30805 PyObject * obj2 = 0 ;
30806 PyObject * obj3 = 0 ;
30807 char * kwnames[] = {
30808 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30809 };
30810
30811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30813 if (!SWIG_IsOK(res1)) {
30814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30815 }
30816 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30817 ecode2 = SWIG_AsVal_long(obj1, &val2);
30818 if (!SWIG_IsOK(ecode2)) {
30819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30820 }
30821 arg2 = static_cast< long >(val2);
30822 {
30823 arg3 = &temp3;
30824 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30825 }
30826 ecode4 = SWIG_AsVal_int(obj3, &val4);
30827 if (!SWIG_IsOK(ecode4)) {
30828 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30829 }
30830 arg4 = static_cast< int >(val4);
30831 {
30832 PyThreadState* __tstate = wxPyBeginAllowThreads();
30833 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30834 wxPyEndAllowThreads(__tstate);
30835 if (PyErr_Occurred()) SWIG_fail;
30836 }
30837 resultobj = SWIG_From_long(static_cast< long >(result));
30838 return resultobj;
30839 fail:
30840 return NULL;
30841 }
30842
30843
30844 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30845 PyObject *resultobj = 0;
30846 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30847 wxPoint *arg2 = 0 ;
30848 int *arg3 = 0 ;
30849 long result;
30850 void *argp1 = 0 ;
30851 int res1 = 0 ;
30852 wxPoint temp2 ;
30853 int temp3 ;
30854 int res3 = SWIG_TMPOBJ ;
30855 PyObject * obj0 = 0 ;
30856 PyObject * obj1 = 0 ;
30857 char * kwnames[] = {
30858 (char *) "self",(char *) "point", NULL
30859 };
30860
30861 arg3 = &temp3;
30862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30864 if (!SWIG_IsOK(res1)) {
30865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30866 }
30867 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30868 {
30869 arg2 = &temp2;
30870 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30871 }
30872 {
30873 PyThreadState* __tstate = wxPyBeginAllowThreads();
30874 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30875 wxPyEndAllowThreads(__tstate);
30876 if (PyErr_Occurred()) SWIG_fail;
30877 }
30878 resultobj = SWIG_From_long(static_cast< long >(result));
30879 if (SWIG_IsTmpObj(res3)) {
30880 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30881 } else {
30882 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30883 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30884 }
30885 return resultobj;
30886 fail:
30887 return NULL;
30888 }
30889
30890
30891 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30892 PyObject *resultobj = 0;
30893 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30894 wxPoint *arg2 = 0 ;
30895 int *arg3 = 0 ;
30896 long *arg4 = (long *) 0 ;
30897 long result;
30898 void *argp1 = 0 ;
30899 int res1 = 0 ;
30900 wxPoint temp2 ;
30901 int temp3 ;
30902 int res3 = SWIG_TMPOBJ ;
30903 long temp4 ;
30904 int res4 = SWIG_TMPOBJ ;
30905 PyObject * obj0 = 0 ;
30906 PyObject * obj1 = 0 ;
30907 char * kwnames[] = {
30908 (char *) "self",(char *) "point", NULL
30909 };
30910
30911 arg3 = &temp3;
30912 arg4 = &temp4;
30913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
30914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30915 if (!SWIG_IsOK(res1)) {
30916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30917 }
30918 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30919 {
30920 arg2 = &temp2;
30921 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30922 }
30923 {
30924 PyThreadState* __tstate = wxPyBeginAllowThreads();
30925 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
30926 wxPyEndAllowThreads(__tstate);
30927 if (PyErr_Occurred()) SWIG_fail;
30928 }
30929 resultobj = SWIG_From_long(static_cast< long >(result));
30930 if (SWIG_IsTmpObj(res3)) {
30931 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30932 } else {
30933 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30934 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30935 }
30936 if (SWIG_IsTmpObj(res4)) {
30937 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
30938 } else {
30939 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30940 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
30941 }
30942 return resultobj;
30943 fail:
30944 return NULL;
30945 }
30946
30947
30948 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30949 PyObject *resultobj = 0;
30950 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30951 wxListItem *arg2 = 0 ;
30952 long result;
30953 void *argp1 = 0 ;
30954 int res1 = 0 ;
30955 void *argp2 = 0 ;
30956 int res2 = 0 ;
30957 PyObject * obj0 = 0 ;
30958 PyObject * obj1 = 0 ;
30959 char * kwnames[] = {
30960 (char *) "self",(char *) "info", NULL
30961 };
30962
30963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30965 if (!SWIG_IsOK(res1)) {
30966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30967 }
30968 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30969 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30970 if (!SWIG_IsOK(res2)) {
30971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30972 }
30973 if (!argp2) {
30974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30975 }
30976 arg2 = reinterpret_cast< wxListItem * >(argp2);
30977 {
30978 PyThreadState* __tstate = wxPyBeginAllowThreads();
30979 result = (long)(arg1)->InsertItem(*arg2);
30980 wxPyEndAllowThreads(__tstate);
30981 if (PyErr_Occurred()) SWIG_fail;
30982 }
30983 resultobj = SWIG_From_long(static_cast< long >(result));
30984 return resultobj;
30985 fail:
30986 return NULL;
30987 }
30988
30989
30990 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30991 PyObject *resultobj = 0;
30992 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30993 long arg2 ;
30994 wxString *arg3 = 0 ;
30995 int arg4 = (int) -1 ;
30996 long result;
30997 void *argp1 = 0 ;
30998 int res1 = 0 ;
30999 long val2 ;
31000 int ecode2 = 0 ;
31001 bool temp3 = false ;
31002 int val4 ;
31003 int ecode4 = 0 ;
31004 PyObject * obj0 = 0 ;
31005 PyObject * obj1 = 0 ;
31006 PyObject * obj2 = 0 ;
31007 PyObject * obj3 = 0 ;
31008 char * kwnames[] = {
31009 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31010 };
31011
31012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31014 if (!SWIG_IsOK(res1)) {
31015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31016 }
31017 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31018 ecode2 = SWIG_AsVal_long(obj1, &val2);
31019 if (!SWIG_IsOK(ecode2)) {
31020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31021 }
31022 arg2 = static_cast< long >(val2);
31023 {
31024 arg3 = wxString_in_helper(obj2);
31025 if (arg3 == NULL) SWIG_fail;
31026 temp3 = true;
31027 }
31028 if (obj3) {
31029 ecode4 = SWIG_AsVal_int(obj3, &val4);
31030 if (!SWIG_IsOK(ecode4)) {
31031 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31032 }
31033 arg4 = static_cast< int >(val4);
31034 }
31035 {
31036 PyThreadState* __tstate = wxPyBeginAllowThreads();
31037 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31038 wxPyEndAllowThreads(__tstate);
31039 if (PyErr_Occurred()) SWIG_fail;
31040 }
31041 resultobj = SWIG_From_long(static_cast< long >(result));
31042 {
31043 if (temp3)
31044 delete arg3;
31045 }
31046 return resultobj;
31047 fail:
31048 {
31049 if (temp3)
31050 delete arg3;
31051 }
31052 return NULL;
31053 }
31054
31055
31056 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31057 PyObject *resultobj = 0;
31058 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31059 long arg2 ;
31060 int arg3 ;
31061 long result;
31062 void *argp1 = 0 ;
31063 int res1 = 0 ;
31064 long val2 ;
31065 int ecode2 = 0 ;
31066 int val3 ;
31067 int ecode3 = 0 ;
31068 PyObject * obj0 = 0 ;
31069 PyObject * obj1 = 0 ;
31070 PyObject * obj2 = 0 ;
31071 char * kwnames[] = {
31072 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31073 };
31074
31075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31077 if (!SWIG_IsOK(res1)) {
31078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31079 }
31080 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31081 ecode2 = SWIG_AsVal_long(obj1, &val2);
31082 if (!SWIG_IsOK(ecode2)) {
31083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31084 }
31085 arg2 = static_cast< long >(val2);
31086 ecode3 = SWIG_AsVal_int(obj2, &val3);
31087 if (!SWIG_IsOK(ecode3)) {
31088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31089 }
31090 arg3 = static_cast< int >(val3);
31091 {
31092 PyThreadState* __tstate = wxPyBeginAllowThreads();
31093 result = (long)(arg1)->InsertItem(arg2,arg3);
31094 wxPyEndAllowThreads(__tstate);
31095 if (PyErr_Occurred()) SWIG_fail;
31096 }
31097 resultobj = SWIG_From_long(static_cast< long >(result));
31098 return resultobj;
31099 fail:
31100 return NULL;
31101 }
31102
31103
31104 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31105 PyObject *resultobj = 0;
31106 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31107 long arg2 ;
31108 wxString *arg3 = 0 ;
31109 int arg4 ;
31110 long result;
31111 void *argp1 = 0 ;
31112 int res1 = 0 ;
31113 long val2 ;
31114 int ecode2 = 0 ;
31115 bool temp3 = false ;
31116 int val4 ;
31117 int ecode4 = 0 ;
31118 PyObject * obj0 = 0 ;
31119 PyObject * obj1 = 0 ;
31120 PyObject * obj2 = 0 ;
31121 PyObject * obj3 = 0 ;
31122 char * kwnames[] = {
31123 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31124 };
31125
31126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31128 if (!SWIG_IsOK(res1)) {
31129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31130 }
31131 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31132 ecode2 = SWIG_AsVal_long(obj1, &val2);
31133 if (!SWIG_IsOK(ecode2)) {
31134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31135 }
31136 arg2 = static_cast< long >(val2);
31137 {
31138 arg3 = wxString_in_helper(obj2);
31139 if (arg3 == NULL) SWIG_fail;
31140 temp3 = true;
31141 }
31142 ecode4 = SWIG_AsVal_int(obj3, &val4);
31143 if (!SWIG_IsOK(ecode4)) {
31144 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31145 }
31146 arg4 = static_cast< int >(val4);
31147 {
31148 PyThreadState* __tstate = wxPyBeginAllowThreads();
31149 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31150 wxPyEndAllowThreads(__tstate);
31151 if (PyErr_Occurred()) SWIG_fail;
31152 }
31153 resultobj = SWIG_From_long(static_cast< long >(result));
31154 {
31155 if (temp3)
31156 delete arg3;
31157 }
31158 return resultobj;
31159 fail:
31160 {
31161 if (temp3)
31162 delete arg3;
31163 }
31164 return NULL;
31165 }
31166
31167
31168 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31169 PyObject *resultobj = 0;
31170 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31171 long arg2 ;
31172 wxListItem *arg3 = 0 ;
31173 long result;
31174 void *argp1 = 0 ;
31175 int res1 = 0 ;
31176 long val2 ;
31177 int ecode2 = 0 ;
31178 void *argp3 = 0 ;
31179 int res3 = 0 ;
31180 PyObject * obj0 = 0 ;
31181 PyObject * obj1 = 0 ;
31182 PyObject * obj2 = 0 ;
31183 char * kwnames[] = {
31184 (char *) "self",(char *) "col",(char *) "info", NULL
31185 };
31186
31187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31189 if (!SWIG_IsOK(res1)) {
31190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31191 }
31192 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31193 ecode2 = SWIG_AsVal_long(obj1, &val2);
31194 if (!SWIG_IsOK(ecode2)) {
31195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31196 }
31197 arg2 = static_cast< long >(val2);
31198 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31199 if (!SWIG_IsOK(res3)) {
31200 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31201 }
31202 if (!argp3) {
31203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31204 }
31205 arg3 = reinterpret_cast< wxListItem * >(argp3);
31206 {
31207 PyThreadState* __tstate = wxPyBeginAllowThreads();
31208 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31209 wxPyEndAllowThreads(__tstate);
31210 if (PyErr_Occurred()) SWIG_fail;
31211 }
31212 resultobj = SWIG_From_long(static_cast< long >(result));
31213 return resultobj;
31214 fail:
31215 return NULL;
31216 }
31217
31218
31219 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31220 PyObject *resultobj = 0;
31221 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31222 long arg2 ;
31223 wxString *arg3 = 0 ;
31224 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31225 int arg5 = (int) -1 ;
31226 long result;
31227 void *argp1 = 0 ;
31228 int res1 = 0 ;
31229 long val2 ;
31230 int ecode2 = 0 ;
31231 bool temp3 = false ;
31232 int val4 ;
31233 int ecode4 = 0 ;
31234 int val5 ;
31235 int ecode5 = 0 ;
31236 PyObject * obj0 = 0 ;
31237 PyObject * obj1 = 0 ;
31238 PyObject * obj2 = 0 ;
31239 PyObject * obj3 = 0 ;
31240 PyObject * obj4 = 0 ;
31241 char * kwnames[] = {
31242 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31243 };
31244
31245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31247 if (!SWIG_IsOK(res1)) {
31248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31249 }
31250 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31251 ecode2 = SWIG_AsVal_long(obj1, &val2);
31252 if (!SWIG_IsOK(ecode2)) {
31253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31254 }
31255 arg2 = static_cast< long >(val2);
31256 {
31257 arg3 = wxString_in_helper(obj2);
31258 if (arg3 == NULL) SWIG_fail;
31259 temp3 = true;
31260 }
31261 if (obj3) {
31262 ecode4 = SWIG_AsVal_int(obj3, &val4);
31263 if (!SWIG_IsOK(ecode4)) {
31264 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31265 }
31266 arg4 = static_cast< int >(val4);
31267 }
31268 if (obj4) {
31269 ecode5 = SWIG_AsVal_int(obj4, &val5);
31270 if (!SWIG_IsOK(ecode5)) {
31271 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31272 }
31273 arg5 = static_cast< int >(val5);
31274 }
31275 {
31276 PyThreadState* __tstate = wxPyBeginAllowThreads();
31277 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31278 wxPyEndAllowThreads(__tstate);
31279 if (PyErr_Occurred()) SWIG_fail;
31280 }
31281 resultobj = SWIG_From_long(static_cast< long >(result));
31282 {
31283 if (temp3)
31284 delete arg3;
31285 }
31286 return resultobj;
31287 fail:
31288 {
31289 if (temp3)
31290 delete arg3;
31291 }
31292 return NULL;
31293 }
31294
31295
31296 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31297 PyObject *resultobj = 0;
31298 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31299 long arg2 ;
31300 void *argp1 = 0 ;
31301 int res1 = 0 ;
31302 long val2 ;
31303 int ecode2 = 0 ;
31304 PyObject * obj0 = 0 ;
31305 PyObject * obj1 = 0 ;
31306 char * kwnames[] = {
31307 (char *) "self",(char *) "count", NULL
31308 };
31309
31310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31312 if (!SWIG_IsOK(res1)) {
31313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31314 }
31315 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31316 ecode2 = SWIG_AsVal_long(obj1, &val2);
31317 if (!SWIG_IsOK(ecode2)) {
31318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31319 }
31320 arg2 = static_cast< long >(val2);
31321 {
31322 PyThreadState* __tstate = wxPyBeginAllowThreads();
31323 (arg1)->SetItemCount(arg2);
31324 wxPyEndAllowThreads(__tstate);
31325 if (PyErr_Occurred()) SWIG_fail;
31326 }
31327 resultobj = SWIG_Py_Void();
31328 return resultobj;
31329 fail:
31330 return NULL;
31331 }
31332
31333
31334 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31335 PyObject *resultobj = 0;
31336 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31337 int arg2 ;
31338 int arg3 ;
31339 bool result;
31340 void *argp1 = 0 ;
31341 int res1 = 0 ;
31342 int val2 ;
31343 int ecode2 = 0 ;
31344 int val3 ;
31345 int ecode3 = 0 ;
31346 PyObject * obj0 = 0 ;
31347 PyObject * obj1 = 0 ;
31348 PyObject * obj2 = 0 ;
31349 char * kwnames[] = {
31350 (char *) "self",(char *) "dx",(char *) "dy", NULL
31351 };
31352
31353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31355 if (!SWIG_IsOK(res1)) {
31356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31357 }
31358 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31359 ecode2 = SWIG_AsVal_int(obj1, &val2);
31360 if (!SWIG_IsOK(ecode2)) {
31361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31362 }
31363 arg2 = static_cast< int >(val2);
31364 ecode3 = SWIG_AsVal_int(obj2, &val3);
31365 if (!SWIG_IsOK(ecode3)) {
31366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31367 }
31368 arg3 = static_cast< int >(val3);
31369 {
31370 PyThreadState* __tstate = wxPyBeginAllowThreads();
31371 result = (bool)(arg1)->ScrollList(arg2,arg3);
31372 wxPyEndAllowThreads(__tstate);
31373 if (PyErr_Occurred()) SWIG_fail;
31374 }
31375 {
31376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31377 }
31378 return resultobj;
31379 fail:
31380 return NULL;
31381 }
31382
31383
31384 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31385 PyObject *resultobj = 0;
31386 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31387 long arg2 ;
31388 wxColour *arg3 = 0 ;
31389 void *argp1 = 0 ;
31390 int res1 = 0 ;
31391 long val2 ;
31392 int ecode2 = 0 ;
31393 wxColour temp3 ;
31394 PyObject * obj0 = 0 ;
31395 PyObject * obj1 = 0 ;
31396 PyObject * obj2 = 0 ;
31397 char * kwnames[] = {
31398 (char *) "self",(char *) "item",(char *) "col", NULL
31399 };
31400
31401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31403 if (!SWIG_IsOK(res1)) {
31404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31405 }
31406 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31407 ecode2 = SWIG_AsVal_long(obj1, &val2);
31408 if (!SWIG_IsOK(ecode2)) {
31409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31410 }
31411 arg2 = static_cast< long >(val2);
31412 {
31413 arg3 = &temp3;
31414 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31415 }
31416 {
31417 PyThreadState* __tstate = wxPyBeginAllowThreads();
31418 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31419 wxPyEndAllowThreads(__tstate);
31420 if (PyErr_Occurred()) SWIG_fail;
31421 }
31422 resultobj = SWIG_Py_Void();
31423 return resultobj;
31424 fail:
31425 return NULL;
31426 }
31427
31428
31429 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31430 PyObject *resultobj = 0;
31431 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31432 long arg2 ;
31433 wxColour result;
31434 void *argp1 = 0 ;
31435 int res1 = 0 ;
31436 long val2 ;
31437 int ecode2 = 0 ;
31438 PyObject * obj0 = 0 ;
31439 PyObject * obj1 = 0 ;
31440 char * kwnames[] = {
31441 (char *) "self",(char *) "item", NULL
31442 };
31443
31444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31446 if (!SWIG_IsOK(res1)) {
31447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31448 }
31449 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31450 ecode2 = SWIG_AsVal_long(obj1, &val2);
31451 if (!SWIG_IsOK(ecode2)) {
31452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31453 }
31454 arg2 = static_cast< long >(val2);
31455 {
31456 PyThreadState* __tstate = wxPyBeginAllowThreads();
31457 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31458 wxPyEndAllowThreads(__tstate);
31459 if (PyErr_Occurred()) SWIG_fail;
31460 }
31461 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31462 return resultobj;
31463 fail:
31464 return NULL;
31465 }
31466
31467
31468 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31469 PyObject *resultobj = 0;
31470 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31471 long arg2 ;
31472 wxColour *arg3 = 0 ;
31473 void *argp1 = 0 ;
31474 int res1 = 0 ;
31475 long val2 ;
31476 int ecode2 = 0 ;
31477 wxColour temp3 ;
31478 PyObject * obj0 = 0 ;
31479 PyObject * obj1 = 0 ;
31480 PyObject * obj2 = 0 ;
31481 char * kwnames[] = {
31482 (char *) "self",(char *) "item",(char *) "col", NULL
31483 };
31484
31485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31487 if (!SWIG_IsOK(res1)) {
31488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31489 }
31490 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31491 ecode2 = SWIG_AsVal_long(obj1, &val2);
31492 if (!SWIG_IsOK(ecode2)) {
31493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31494 }
31495 arg2 = static_cast< long >(val2);
31496 {
31497 arg3 = &temp3;
31498 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31499 }
31500 {
31501 PyThreadState* __tstate = wxPyBeginAllowThreads();
31502 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31503 wxPyEndAllowThreads(__tstate);
31504 if (PyErr_Occurred()) SWIG_fail;
31505 }
31506 resultobj = SWIG_Py_Void();
31507 return resultobj;
31508 fail:
31509 return NULL;
31510 }
31511
31512
31513 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31514 PyObject *resultobj = 0;
31515 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31516 long arg2 ;
31517 wxColour result;
31518 void *argp1 = 0 ;
31519 int res1 = 0 ;
31520 long val2 ;
31521 int ecode2 = 0 ;
31522 PyObject * obj0 = 0 ;
31523 PyObject * obj1 = 0 ;
31524 char * kwnames[] = {
31525 (char *) "self",(char *) "item", NULL
31526 };
31527
31528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31530 if (!SWIG_IsOK(res1)) {
31531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31532 }
31533 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31534 ecode2 = SWIG_AsVal_long(obj1, &val2);
31535 if (!SWIG_IsOK(ecode2)) {
31536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31537 }
31538 arg2 = static_cast< long >(val2);
31539 {
31540 PyThreadState* __tstate = wxPyBeginAllowThreads();
31541 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31542 wxPyEndAllowThreads(__tstate);
31543 if (PyErr_Occurred()) SWIG_fail;
31544 }
31545 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31546 return resultobj;
31547 fail:
31548 return NULL;
31549 }
31550
31551
31552 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31553 PyObject *resultobj = 0;
31554 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31555 long arg2 ;
31556 wxFont *arg3 = 0 ;
31557 void *argp1 = 0 ;
31558 int res1 = 0 ;
31559 long val2 ;
31560 int ecode2 = 0 ;
31561 void *argp3 = 0 ;
31562 int res3 = 0 ;
31563 PyObject * obj0 = 0 ;
31564 PyObject * obj1 = 0 ;
31565 PyObject * obj2 = 0 ;
31566 char * kwnames[] = {
31567 (char *) "self",(char *) "item",(char *) "f", NULL
31568 };
31569
31570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31572 if (!SWIG_IsOK(res1)) {
31573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31574 }
31575 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31576 ecode2 = SWIG_AsVal_long(obj1, &val2);
31577 if (!SWIG_IsOK(ecode2)) {
31578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31579 }
31580 arg2 = static_cast< long >(val2);
31581 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31582 if (!SWIG_IsOK(res3)) {
31583 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31584 }
31585 if (!argp3) {
31586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31587 }
31588 arg3 = reinterpret_cast< wxFont * >(argp3);
31589 {
31590 PyThreadState* __tstate = wxPyBeginAllowThreads();
31591 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31592 wxPyEndAllowThreads(__tstate);
31593 if (PyErr_Occurred()) SWIG_fail;
31594 }
31595 resultobj = SWIG_Py_Void();
31596 return resultobj;
31597 fail:
31598 return NULL;
31599 }
31600
31601
31602 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31603 PyObject *resultobj = 0;
31604 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31605 long arg2 ;
31606 wxFont result;
31607 void *argp1 = 0 ;
31608 int res1 = 0 ;
31609 long val2 ;
31610 int ecode2 = 0 ;
31611 PyObject * obj0 = 0 ;
31612 PyObject * obj1 = 0 ;
31613 char * kwnames[] = {
31614 (char *) "self",(char *) "item", NULL
31615 };
31616
31617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31619 if (!SWIG_IsOK(res1)) {
31620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31621 }
31622 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31623 ecode2 = SWIG_AsVal_long(obj1, &val2);
31624 if (!SWIG_IsOK(ecode2)) {
31625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31626 }
31627 arg2 = static_cast< long >(val2);
31628 {
31629 PyThreadState* __tstate = wxPyBeginAllowThreads();
31630 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31631 wxPyEndAllowThreads(__tstate);
31632 if (PyErr_Occurred()) SWIG_fail;
31633 }
31634 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31635 return resultobj;
31636 fail:
31637 return NULL;
31638 }
31639
31640
31641 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31642 PyObject *resultobj = 0;
31643 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31644 PyObject *arg2 = (PyObject *) 0 ;
31645 bool result;
31646 void *argp1 = 0 ;
31647 int res1 = 0 ;
31648 PyObject * obj0 = 0 ;
31649 PyObject * obj1 = 0 ;
31650 char * kwnames[] = {
31651 (char *) "self",(char *) "func", NULL
31652 };
31653
31654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31656 if (!SWIG_IsOK(res1)) {
31657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31658 }
31659 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31660 arg2 = obj1;
31661 {
31662 PyThreadState* __tstate = wxPyBeginAllowThreads();
31663 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31664 wxPyEndAllowThreads(__tstate);
31665 if (PyErr_Occurred()) SWIG_fail;
31666 }
31667 {
31668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31669 }
31670 return resultobj;
31671 fail:
31672 return NULL;
31673 }
31674
31675
31676 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31677 PyObject *resultobj = 0;
31678 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31679 wxWindow *result = 0 ;
31680 void *argp1 = 0 ;
31681 int res1 = 0 ;
31682 PyObject *swig_obj[1] ;
31683
31684 if (!args) SWIG_fail;
31685 swig_obj[0] = args;
31686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31687 if (!SWIG_IsOK(res1)) {
31688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31689 }
31690 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31691 {
31692 PyThreadState* __tstate = wxPyBeginAllowThreads();
31693 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31694 wxPyEndAllowThreads(__tstate);
31695 if (PyErr_Occurred()) SWIG_fail;
31696 }
31697 {
31698 resultobj = wxPyMake_wxObject(result, 0);
31699 }
31700 return resultobj;
31701 fail:
31702 return NULL;
31703 }
31704
31705
31706 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31707 PyObject *resultobj = 0;
31708 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31709 SwigValueWrapper<wxVisualAttributes > result;
31710 int val1 ;
31711 int ecode1 = 0 ;
31712 PyObject * obj0 = 0 ;
31713 char * kwnames[] = {
31714 (char *) "variant", NULL
31715 };
31716
31717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31718 if (obj0) {
31719 ecode1 = SWIG_AsVal_int(obj0, &val1);
31720 if (!SWIG_IsOK(ecode1)) {
31721 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31722 }
31723 arg1 = static_cast< wxWindowVariant >(val1);
31724 }
31725 {
31726 if (!wxPyCheckForApp()) SWIG_fail;
31727 PyThreadState* __tstate = wxPyBeginAllowThreads();
31728 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31729 wxPyEndAllowThreads(__tstate);
31730 if (PyErr_Occurred()) SWIG_fail;
31731 }
31732 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31733 return resultobj;
31734 fail:
31735 return NULL;
31736 }
31737
31738
31739 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31740 PyObject *obj;
31741 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31742 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31743 return SWIG_Py_Void();
31744 }
31745
31746 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31747 return SWIG_Python_InitShadowInstance(args);
31748 }
31749
31750 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31751 PyObject *resultobj = 0;
31752 wxWindow *arg1 = (wxWindow *) 0 ;
31753 int arg2 = (int) -1 ;
31754 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31755 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31756 wxSize const &arg4_defvalue = wxDefaultSize ;
31757 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31758 long arg5 = (long) wxLC_REPORT ;
31759 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31760 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31761 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31762 wxString *arg7 = (wxString *) &arg7_defvalue ;
31763 wxListView *result = 0 ;
31764 void *argp1 = 0 ;
31765 int res1 = 0 ;
31766 int val2 ;
31767 int ecode2 = 0 ;
31768 wxPoint temp3 ;
31769 wxSize temp4 ;
31770 long val5 ;
31771 int ecode5 = 0 ;
31772 void *argp6 = 0 ;
31773 int res6 = 0 ;
31774 bool temp7 = false ;
31775 PyObject * obj0 = 0 ;
31776 PyObject * obj1 = 0 ;
31777 PyObject * obj2 = 0 ;
31778 PyObject * obj3 = 0 ;
31779 PyObject * obj4 = 0 ;
31780 PyObject * obj5 = 0 ;
31781 PyObject * obj6 = 0 ;
31782 char * kwnames[] = {
31783 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31784 };
31785
31786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31788 if (!SWIG_IsOK(res1)) {
31789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31790 }
31791 arg1 = reinterpret_cast< wxWindow * >(argp1);
31792 if (obj1) {
31793 ecode2 = SWIG_AsVal_int(obj1, &val2);
31794 if (!SWIG_IsOK(ecode2)) {
31795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31796 }
31797 arg2 = static_cast< int >(val2);
31798 }
31799 if (obj2) {
31800 {
31801 arg3 = &temp3;
31802 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31803 }
31804 }
31805 if (obj3) {
31806 {
31807 arg4 = &temp4;
31808 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31809 }
31810 }
31811 if (obj4) {
31812 ecode5 = SWIG_AsVal_long(obj4, &val5);
31813 if (!SWIG_IsOK(ecode5)) {
31814 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31815 }
31816 arg5 = static_cast< long >(val5);
31817 }
31818 if (obj5) {
31819 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31820 if (!SWIG_IsOK(res6)) {
31821 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31822 }
31823 if (!argp6) {
31824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31825 }
31826 arg6 = reinterpret_cast< wxValidator * >(argp6);
31827 }
31828 if (obj6) {
31829 {
31830 arg7 = wxString_in_helper(obj6);
31831 if (arg7 == NULL) SWIG_fail;
31832 temp7 = true;
31833 }
31834 }
31835 {
31836 if (!wxPyCheckForApp()) SWIG_fail;
31837 PyThreadState* __tstate = wxPyBeginAllowThreads();
31838 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31839 wxPyEndAllowThreads(__tstate);
31840 if (PyErr_Occurred()) SWIG_fail;
31841 }
31842 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31843 {
31844 if (temp7)
31845 delete arg7;
31846 }
31847 return resultobj;
31848 fail:
31849 {
31850 if (temp7)
31851 delete arg7;
31852 }
31853 return NULL;
31854 }
31855
31856
31857 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31858 PyObject *resultobj = 0;
31859 wxListView *result = 0 ;
31860
31861 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31862 {
31863 if (!wxPyCheckForApp()) SWIG_fail;
31864 PyThreadState* __tstate = wxPyBeginAllowThreads();
31865 result = (wxListView *)new wxListView();
31866 wxPyEndAllowThreads(__tstate);
31867 if (PyErr_Occurred()) SWIG_fail;
31868 }
31869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31870 return resultobj;
31871 fail:
31872 return NULL;
31873 }
31874
31875
31876 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31877 PyObject *resultobj = 0;
31878 wxListView *arg1 = (wxListView *) 0 ;
31879 wxWindow *arg2 = (wxWindow *) 0 ;
31880 int arg3 = (int) -1 ;
31881 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31882 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31883 wxSize const &arg5_defvalue = wxDefaultSize ;
31884 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31885 long arg6 = (long) wxLC_REPORT ;
31886 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31887 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31888 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31889 wxString *arg8 = (wxString *) &arg8_defvalue ;
31890 bool result;
31891 void *argp1 = 0 ;
31892 int res1 = 0 ;
31893 void *argp2 = 0 ;
31894 int res2 = 0 ;
31895 int val3 ;
31896 int ecode3 = 0 ;
31897 wxPoint temp4 ;
31898 wxSize temp5 ;
31899 long val6 ;
31900 int ecode6 = 0 ;
31901 void *argp7 = 0 ;
31902 int res7 = 0 ;
31903 bool temp8 = false ;
31904 PyObject * obj0 = 0 ;
31905 PyObject * obj1 = 0 ;
31906 PyObject * obj2 = 0 ;
31907 PyObject * obj3 = 0 ;
31908 PyObject * obj4 = 0 ;
31909 PyObject * obj5 = 0 ;
31910 PyObject * obj6 = 0 ;
31911 PyObject * obj7 = 0 ;
31912 char * kwnames[] = {
31913 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31914 };
31915
31916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31918 if (!SWIG_IsOK(res1)) {
31919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31920 }
31921 arg1 = reinterpret_cast< wxListView * >(argp1);
31922 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31923 if (!SWIG_IsOK(res2)) {
31924 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31925 }
31926 arg2 = reinterpret_cast< wxWindow * >(argp2);
31927 if (obj2) {
31928 ecode3 = SWIG_AsVal_int(obj2, &val3);
31929 if (!SWIG_IsOK(ecode3)) {
31930 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31931 }
31932 arg3 = static_cast< int >(val3);
31933 }
31934 if (obj3) {
31935 {
31936 arg4 = &temp4;
31937 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
31938 }
31939 }
31940 if (obj4) {
31941 {
31942 arg5 = &temp5;
31943 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
31944 }
31945 }
31946 if (obj5) {
31947 ecode6 = SWIG_AsVal_long(obj5, &val6);
31948 if (!SWIG_IsOK(ecode6)) {
31949 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31950 }
31951 arg6 = static_cast< long >(val6);
31952 }
31953 if (obj6) {
31954 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31955 if (!SWIG_IsOK(res7)) {
31956 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31957 }
31958 if (!argp7) {
31959 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31960 }
31961 arg7 = reinterpret_cast< wxValidator * >(argp7);
31962 }
31963 if (obj7) {
31964 {
31965 arg8 = wxString_in_helper(obj7);
31966 if (arg8 == NULL) SWIG_fail;
31967 temp8 = true;
31968 }
31969 }
31970 {
31971 PyThreadState* __tstate = wxPyBeginAllowThreads();
31972 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31973 wxPyEndAllowThreads(__tstate);
31974 if (PyErr_Occurred()) SWIG_fail;
31975 }
31976 {
31977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31978 }
31979 {
31980 if (temp8)
31981 delete arg8;
31982 }
31983 return resultobj;
31984 fail:
31985 {
31986 if (temp8)
31987 delete arg8;
31988 }
31989 return NULL;
31990 }
31991
31992
31993 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31994 PyObject *resultobj = 0;
31995 wxListView *arg1 = (wxListView *) 0 ;
31996 long arg2 ;
31997 bool arg3 = (bool) true ;
31998 void *argp1 = 0 ;
31999 int res1 = 0 ;
32000 long val2 ;
32001 int ecode2 = 0 ;
32002 bool val3 ;
32003 int ecode3 = 0 ;
32004 PyObject * obj0 = 0 ;
32005 PyObject * obj1 = 0 ;
32006 PyObject * obj2 = 0 ;
32007 char * kwnames[] = {
32008 (char *) "self",(char *) "n",(char *) "on", NULL
32009 };
32010
32011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32013 if (!SWIG_IsOK(res1)) {
32014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32015 }
32016 arg1 = reinterpret_cast< wxListView * >(argp1);
32017 ecode2 = SWIG_AsVal_long(obj1, &val2);
32018 if (!SWIG_IsOK(ecode2)) {
32019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32020 }
32021 arg2 = static_cast< long >(val2);
32022 if (obj2) {
32023 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32024 if (!SWIG_IsOK(ecode3)) {
32025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32026 }
32027 arg3 = static_cast< bool >(val3);
32028 }
32029 {
32030 PyThreadState* __tstate = wxPyBeginAllowThreads();
32031 (arg1)->Select(arg2,arg3);
32032 wxPyEndAllowThreads(__tstate);
32033 if (PyErr_Occurred()) SWIG_fail;
32034 }
32035 resultobj = SWIG_Py_Void();
32036 return resultobj;
32037 fail:
32038 return NULL;
32039 }
32040
32041
32042 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32043 PyObject *resultobj = 0;
32044 wxListView *arg1 = (wxListView *) 0 ;
32045 long arg2 ;
32046 void *argp1 = 0 ;
32047 int res1 = 0 ;
32048 long val2 ;
32049 int ecode2 = 0 ;
32050 PyObject * obj0 = 0 ;
32051 PyObject * obj1 = 0 ;
32052 char * kwnames[] = {
32053 (char *) "self",(char *) "index", NULL
32054 };
32055
32056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32058 if (!SWIG_IsOK(res1)) {
32059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32060 }
32061 arg1 = reinterpret_cast< wxListView * >(argp1);
32062 ecode2 = SWIG_AsVal_long(obj1, &val2);
32063 if (!SWIG_IsOK(ecode2)) {
32064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32065 }
32066 arg2 = static_cast< long >(val2);
32067 {
32068 PyThreadState* __tstate = wxPyBeginAllowThreads();
32069 (arg1)->Focus(arg2);
32070 wxPyEndAllowThreads(__tstate);
32071 if (PyErr_Occurred()) SWIG_fail;
32072 }
32073 resultobj = SWIG_Py_Void();
32074 return resultobj;
32075 fail:
32076 return NULL;
32077 }
32078
32079
32080 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32081 PyObject *resultobj = 0;
32082 wxListView *arg1 = (wxListView *) 0 ;
32083 long result;
32084 void *argp1 = 0 ;
32085 int res1 = 0 ;
32086 PyObject *swig_obj[1] ;
32087
32088 if (!args) SWIG_fail;
32089 swig_obj[0] = args;
32090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32091 if (!SWIG_IsOK(res1)) {
32092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32093 }
32094 arg1 = reinterpret_cast< wxListView * >(argp1);
32095 {
32096 PyThreadState* __tstate = wxPyBeginAllowThreads();
32097 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32098 wxPyEndAllowThreads(__tstate);
32099 if (PyErr_Occurred()) SWIG_fail;
32100 }
32101 resultobj = SWIG_From_long(static_cast< long >(result));
32102 return resultobj;
32103 fail:
32104 return NULL;
32105 }
32106
32107
32108 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32109 PyObject *resultobj = 0;
32110 wxListView *arg1 = (wxListView *) 0 ;
32111 long arg2 ;
32112 long result;
32113 void *argp1 = 0 ;
32114 int res1 = 0 ;
32115 long val2 ;
32116 int ecode2 = 0 ;
32117 PyObject * obj0 = 0 ;
32118 PyObject * obj1 = 0 ;
32119 char * kwnames[] = {
32120 (char *) "self",(char *) "item", NULL
32121 };
32122
32123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32125 if (!SWIG_IsOK(res1)) {
32126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32127 }
32128 arg1 = reinterpret_cast< wxListView * >(argp1);
32129 ecode2 = SWIG_AsVal_long(obj1, &val2);
32130 if (!SWIG_IsOK(ecode2)) {
32131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32132 }
32133 arg2 = static_cast< long >(val2);
32134 {
32135 PyThreadState* __tstate = wxPyBeginAllowThreads();
32136 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32137 wxPyEndAllowThreads(__tstate);
32138 if (PyErr_Occurred()) SWIG_fail;
32139 }
32140 resultobj = SWIG_From_long(static_cast< long >(result));
32141 return resultobj;
32142 fail:
32143 return NULL;
32144 }
32145
32146
32147 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32148 PyObject *resultobj = 0;
32149 wxListView *arg1 = (wxListView *) 0 ;
32150 long result;
32151 void *argp1 = 0 ;
32152 int res1 = 0 ;
32153 PyObject *swig_obj[1] ;
32154
32155 if (!args) SWIG_fail;
32156 swig_obj[0] = args;
32157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32158 if (!SWIG_IsOK(res1)) {
32159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32160 }
32161 arg1 = reinterpret_cast< wxListView * >(argp1);
32162 {
32163 PyThreadState* __tstate = wxPyBeginAllowThreads();
32164 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32165 wxPyEndAllowThreads(__tstate);
32166 if (PyErr_Occurred()) SWIG_fail;
32167 }
32168 resultobj = SWIG_From_long(static_cast< long >(result));
32169 return resultobj;
32170 fail:
32171 return NULL;
32172 }
32173
32174
32175 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32176 PyObject *resultobj = 0;
32177 wxListView *arg1 = (wxListView *) 0 ;
32178 long arg2 ;
32179 bool result;
32180 void *argp1 = 0 ;
32181 int res1 = 0 ;
32182 long val2 ;
32183 int ecode2 = 0 ;
32184 PyObject * obj0 = 0 ;
32185 PyObject * obj1 = 0 ;
32186 char * kwnames[] = {
32187 (char *) "self",(char *) "index", NULL
32188 };
32189
32190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32192 if (!SWIG_IsOK(res1)) {
32193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32194 }
32195 arg1 = reinterpret_cast< wxListView * >(argp1);
32196 ecode2 = SWIG_AsVal_long(obj1, &val2);
32197 if (!SWIG_IsOK(ecode2)) {
32198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32199 }
32200 arg2 = static_cast< long >(val2);
32201 {
32202 PyThreadState* __tstate = wxPyBeginAllowThreads();
32203 result = (bool)(arg1)->IsSelected(arg2);
32204 wxPyEndAllowThreads(__tstate);
32205 if (PyErr_Occurred()) SWIG_fail;
32206 }
32207 {
32208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32209 }
32210 return resultobj;
32211 fail:
32212 return NULL;
32213 }
32214
32215
32216 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32217 PyObject *resultobj = 0;
32218 wxListView *arg1 = (wxListView *) 0 ;
32219 int arg2 ;
32220 int arg3 ;
32221 void *argp1 = 0 ;
32222 int res1 = 0 ;
32223 int val2 ;
32224 int ecode2 = 0 ;
32225 int val3 ;
32226 int ecode3 = 0 ;
32227 PyObject * obj0 = 0 ;
32228 PyObject * obj1 = 0 ;
32229 PyObject * obj2 = 0 ;
32230 char * kwnames[] = {
32231 (char *) "self",(char *) "col",(char *) "image", NULL
32232 };
32233
32234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32236 if (!SWIG_IsOK(res1)) {
32237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32238 }
32239 arg1 = reinterpret_cast< wxListView * >(argp1);
32240 ecode2 = SWIG_AsVal_int(obj1, &val2);
32241 if (!SWIG_IsOK(ecode2)) {
32242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32243 }
32244 arg2 = static_cast< int >(val2);
32245 ecode3 = SWIG_AsVal_int(obj2, &val3);
32246 if (!SWIG_IsOK(ecode3)) {
32247 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32248 }
32249 arg3 = static_cast< int >(val3);
32250 {
32251 PyThreadState* __tstate = wxPyBeginAllowThreads();
32252 (arg1)->SetColumnImage(arg2,arg3);
32253 wxPyEndAllowThreads(__tstate);
32254 if (PyErr_Occurred()) SWIG_fail;
32255 }
32256 resultobj = SWIG_Py_Void();
32257 return resultobj;
32258 fail:
32259 return NULL;
32260 }
32261
32262
32263 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32264 PyObject *resultobj = 0;
32265 wxListView *arg1 = (wxListView *) 0 ;
32266 int arg2 ;
32267 void *argp1 = 0 ;
32268 int res1 = 0 ;
32269 int val2 ;
32270 int ecode2 = 0 ;
32271 PyObject * obj0 = 0 ;
32272 PyObject * obj1 = 0 ;
32273 char * kwnames[] = {
32274 (char *) "self",(char *) "col", NULL
32275 };
32276
32277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32279 if (!SWIG_IsOK(res1)) {
32280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32281 }
32282 arg1 = reinterpret_cast< wxListView * >(argp1);
32283 ecode2 = SWIG_AsVal_int(obj1, &val2);
32284 if (!SWIG_IsOK(ecode2)) {
32285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32286 }
32287 arg2 = static_cast< int >(val2);
32288 {
32289 PyThreadState* __tstate = wxPyBeginAllowThreads();
32290 (arg1)->ClearColumnImage(arg2);
32291 wxPyEndAllowThreads(__tstate);
32292 if (PyErr_Occurred()) SWIG_fail;
32293 }
32294 resultobj = SWIG_Py_Void();
32295 return resultobj;
32296 fail:
32297 return NULL;
32298 }
32299
32300
32301 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32302 PyObject *obj;
32303 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32304 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32305 return SWIG_Py_Void();
32306 }
32307
32308 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32309 return SWIG_Python_InitShadowInstance(args);
32310 }
32311
32312 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32313 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32314 return 1;
32315 }
32316
32317
32318 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32319 PyObject *pyobj = 0;
32320
32321 {
32322 #if wxUSE_UNICODE
32323 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32324 #else
32325 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32326 #endif
32327 }
32328 return pyobj;
32329 }
32330
32331
32332 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32333 PyObject *resultobj = 0;
32334 wxTreeItemId *result = 0 ;
32335
32336 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32337 {
32338 PyThreadState* __tstate = wxPyBeginAllowThreads();
32339 result = (wxTreeItemId *)new wxTreeItemId();
32340 wxPyEndAllowThreads(__tstate);
32341 if (PyErr_Occurred()) SWIG_fail;
32342 }
32343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32344 return resultobj;
32345 fail:
32346 return NULL;
32347 }
32348
32349
32350 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32351 PyObject *resultobj = 0;
32352 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32353 void *argp1 = 0 ;
32354 int res1 = 0 ;
32355 PyObject *swig_obj[1] ;
32356
32357 if (!args) SWIG_fail;
32358 swig_obj[0] = args;
32359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32360 if (!SWIG_IsOK(res1)) {
32361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32362 }
32363 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32364 {
32365 PyThreadState* __tstate = wxPyBeginAllowThreads();
32366 delete arg1;
32367
32368 wxPyEndAllowThreads(__tstate);
32369 if (PyErr_Occurred()) SWIG_fail;
32370 }
32371 resultobj = SWIG_Py_Void();
32372 return resultobj;
32373 fail:
32374 return NULL;
32375 }
32376
32377
32378 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32379 PyObject *resultobj = 0;
32380 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32381 bool result;
32382 void *argp1 = 0 ;
32383 int res1 = 0 ;
32384 PyObject *swig_obj[1] ;
32385
32386 if (!args) SWIG_fail;
32387 swig_obj[0] = args;
32388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32389 if (!SWIG_IsOK(res1)) {
32390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32391 }
32392 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32393 {
32394 PyThreadState* __tstate = wxPyBeginAllowThreads();
32395 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32396 wxPyEndAllowThreads(__tstate);
32397 if (PyErr_Occurred()) SWIG_fail;
32398 }
32399 {
32400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32401 }
32402 return resultobj;
32403 fail:
32404 return NULL;
32405 }
32406
32407
32408 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32409 PyObject *resultobj = 0;
32410 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32411 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32412 bool result;
32413 void *argp1 = 0 ;
32414 int res1 = 0 ;
32415 void *argp2 = 0 ;
32416 int res2 = 0 ;
32417 PyObject * obj0 = 0 ;
32418 PyObject * obj1 = 0 ;
32419 char * kwnames[] = {
32420 (char *) "self",(char *) "other", NULL
32421 };
32422
32423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32425 if (!SWIG_IsOK(res1)) {
32426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32427 }
32428 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32429 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32430 if (!SWIG_IsOK(res2)) {
32431 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32432 }
32433 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32434 {
32435 PyThreadState* __tstate = wxPyBeginAllowThreads();
32436 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32437 wxPyEndAllowThreads(__tstate);
32438 if (PyErr_Occurred()) SWIG_fail;
32439 }
32440 {
32441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32442 }
32443 return resultobj;
32444 fail:
32445 return NULL;
32446 }
32447
32448
32449 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32450 PyObject *resultobj = 0;
32451 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32452 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32453 bool result;
32454 void *argp1 = 0 ;
32455 int res1 = 0 ;
32456 void *argp2 = 0 ;
32457 int res2 = 0 ;
32458 PyObject * obj0 = 0 ;
32459 PyObject * obj1 = 0 ;
32460 char * kwnames[] = {
32461 (char *) "self",(char *) "other", NULL
32462 };
32463
32464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32466 if (!SWIG_IsOK(res1)) {
32467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32468 }
32469 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32470 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32471 if (!SWIG_IsOK(res2)) {
32472 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32473 }
32474 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32475 {
32476 PyThreadState* __tstate = wxPyBeginAllowThreads();
32477 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32478 wxPyEndAllowThreads(__tstate);
32479 if (PyErr_Occurred()) SWIG_fail;
32480 }
32481 {
32482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32483 }
32484 return resultobj;
32485 fail:
32486 return NULL;
32487 }
32488
32489
32490 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32491 PyObject *resultobj = 0;
32492 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32493 void *arg2 = (void *) 0 ;
32494 void *argp1 = 0 ;
32495 int res1 = 0 ;
32496 int res2 ;
32497 PyObject *swig_obj[2] ;
32498
32499 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32501 if (!SWIG_IsOK(res1)) {
32502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32503 }
32504 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32505 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32506 if (!SWIG_IsOK(res2)) {
32507 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32508 }
32509 if (arg1) (arg1)->m_pItem = arg2;
32510
32511 resultobj = SWIG_Py_Void();
32512 return resultobj;
32513 fail:
32514 return NULL;
32515 }
32516
32517
32518 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32519 PyObject *resultobj = 0;
32520 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32521 void *result = 0 ;
32522 void *argp1 = 0 ;
32523 int res1 = 0 ;
32524 PyObject *swig_obj[1] ;
32525
32526 if (!args) SWIG_fail;
32527 swig_obj[0] = args;
32528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32529 if (!SWIG_IsOK(res1)) {
32530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32531 }
32532 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32533 result = (void *) ((arg1)->m_pItem);
32534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32535 return resultobj;
32536 fail:
32537 return NULL;
32538 }
32539
32540
32541 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32542 PyObject *obj;
32543 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32544 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32545 return SWIG_Py_Void();
32546 }
32547
32548 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32549 return SWIG_Python_InitShadowInstance(args);
32550 }
32551
32552 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32553 PyObject *resultobj = 0;
32554 PyObject *arg1 = (PyObject *) NULL ;
32555 wxPyTreeItemData *result = 0 ;
32556 PyObject * obj0 = 0 ;
32557 char * kwnames[] = {
32558 (char *) "obj", NULL
32559 };
32560
32561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32562 if (obj0) {
32563 arg1 = obj0;
32564 }
32565 {
32566 PyThreadState* __tstate = wxPyBeginAllowThreads();
32567 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32568 wxPyEndAllowThreads(__tstate);
32569 if (PyErr_Occurred()) SWIG_fail;
32570 }
32571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32572 return resultobj;
32573 fail:
32574 return NULL;
32575 }
32576
32577
32578 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32579 PyObject *resultobj = 0;
32580 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32581 void *argp1 = 0 ;
32582 int res1 = 0 ;
32583 PyObject *swig_obj[1] ;
32584
32585 if (!args) SWIG_fail;
32586 swig_obj[0] = args;
32587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32588 if (!SWIG_IsOK(res1)) {
32589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32590 }
32591 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32592 {
32593 PyThreadState* __tstate = wxPyBeginAllowThreads();
32594 delete arg1;
32595
32596 wxPyEndAllowThreads(__tstate);
32597 if (PyErr_Occurred()) SWIG_fail;
32598 }
32599 resultobj = SWIG_Py_Void();
32600 return resultobj;
32601 fail:
32602 return NULL;
32603 }
32604
32605
32606 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32607 PyObject *resultobj = 0;
32608 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32609 PyObject *result = 0 ;
32610 void *argp1 = 0 ;
32611 int res1 = 0 ;
32612 PyObject *swig_obj[1] ;
32613
32614 if (!args) SWIG_fail;
32615 swig_obj[0] = args;
32616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32617 if (!SWIG_IsOK(res1)) {
32618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32619 }
32620 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32621 {
32622 PyThreadState* __tstate = wxPyBeginAllowThreads();
32623 result = (PyObject *)(arg1)->GetData();
32624 wxPyEndAllowThreads(__tstate);
32625 if (PyErr_Occurred()) SWIG_fail;
32626 }
32627 resultobj = result;
32628 return resultobj;
32629 fail:
32630 return NULL;
32631 }
32632
32633
32634 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32635 PyObject *resultobj = 0;
32636 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32637 PyObject *arg2 = (PyObject *) 0 ;
32638 void *argp1 = 0 ;
32639 int res1 = 0 ;
32640 PyObject * obj0 = 0 ;
32641 PyObject * obj1 = 0 ;
32642 char * kwnames[] = {
32643 (char *) "self",(char *) "obj", NULL
32644 };
32645
32646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32648 if (!SWIG_IsOK(res1)) {
32649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32650 }
32651 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32652 arg2 = obj1;
32653 {
32654 PyThreadState* __tstate = wxPyBeginAllowThreads();
32655 (arg1)->SetData(arg2);
32656 wxPyEndAllowThreads(__tstate);
32657 if (PyErr_Occurred()) SWIG_fail;
32658 }
32659 resultobj = SWIG_Py_Void();
32660 return resultobj;
32661 fail:
32662 return NULL;
32663 }
32664
32665
32666 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32667 PyObject *resultobj = 0;
32668 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32669 wxTreeItemId *result = 0 ;
32670 void *argp1 = 0 ;
32671 int res1 = 0 ;
32672 PyObject *swig_obj[1] ;
32673
32674 if (!args) SWIG_fail;
32675 swig_obj[0] = args;
32676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32677 if (!SWIG_IsOK(res1)) {
32678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32679 }
32680 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32681 {
32682 PyThreadState* __tstate = wxPyBeginAllowThreads();
32683 {
32684 wxTreeItemId const &_result_ref = (arg1)->GetId();
32685 result = (wxTreeItemId *) &_result_ref;
32686 }
32687 wxPyEndAllowThreads(__tstate);
32688 if (PyErr_Occurred()) SWIG_fail;
32689 }
32690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32691 return resultobj;
32692 fail:
32693 return NULL;
32694 }
32695
32696
32697 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32698 PyObject *resultobj = 0;
32699 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32700 wxTreeItemId *arg2 = 0 ;
32701 void *argp1 = 0 ;
32702 int res1 = 0 ;
32703 void *argp2 = 0 ;
32704 int res2 = 0 ;
32705 PyObject * obj0 = 0 ;
32706 PyObject * obj1 = 0 ;
32707 char * kwnames[] = {
32708 (char *) "self",(char *) "id", NULL
32709 };
32710
32711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32713 if (!SWIG_IsOK(res1)) {
32714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32715 }
32716 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32717 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32718 if (!SWIG_IsOK(res2)) {
32719 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32720 }
32721 if (!argp2) {
32722 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32723 }
32724 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32725 {
32726 PyThreadState* __tstate = wxPyBeginAllowThreads();
32727 (arg1)->SetId((wxTreeItemId const &)*arg2);
32728 wxPyEndAllowThreads(__tstate);
32729 if (PyErr_Occurred()) SWIG_fail;
32730 }
32731 resultobj = SWIG_Py_Void();
32732 return resultobj;
32733 fail:
32734 return NULL;
32735 }
32736
32737
32738 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32739 PyObject *resultobj = 0;
32740 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32741 void *argp1 = 0 ;
32742 int res1 = 0 ;
32743 PyObject *swig_obj[1] ;
32744
32745 if (!args) SWIG_fail;
32746 swig_obj[0] = args;
32747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32748 if (!SWIG_IsOK(res1)) {
32749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32750 }
32751 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32752 {
32753 PyThreadState* __tstate = wxPyBeginAllowThreads();
32754 wxPyTreeItemData_Destroy(arg1);
32755 wxPyEndAllowThreads(__tstate);
32756 if (PyErr_Occurred()) SWIG_fail;
32757 }
32758 resultobj = SWIG_Py_Void();
32759 return resultobj;
32760 fail:
32761 return NULL;
32762 }
32763
32764
32765 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32766 PyObject *obj;
32767 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32768 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32769 return SWIG_Py_Void();
32770 }
32771
32772 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32773 return SWIG_Python_InitShadowInstance(args);
32774 }
32775
32776 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32777 PyObject *resultobj = 0;
32778 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32779 int arg2 = (int) 0 ;
32780 wxTreeEvent *result = 0 ;
32781 int val1 ;
32782 int ecode1 = 0 ;
32783 int val2 ;
32784 int ecode2 = 0 ;
32785 PyObject * obj0 = 0 ;
32786 PyObject * obj1 = 0 ;
32787 char * kwnames[] = {
32788 (char *) "commandType",(char *) "id", NULL
32789 };
32790
32791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32792 if (obj0) {
32793 ecode1 = SWIG_AsVal_int(obj0, &val1);
32794 if (!SWIG_IsOK(ecode1)) {
32795 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32796 }
32797 arg1 = static_cast< wxEventType >(val1);
32798 }
32799 if (obj1) {
32800 ecode2 = SWIG_AsVal_int(obj1, &val2);
32801 if (!SWIG_IsOK(ecode2)) {
32802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32803 }
32804 arg2 = static_cast< int >(val2);
32805 }
32806 {
32807 PyThreadState* __tstate = wxPyBeginAllowThreads();
32808 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32809 wxPyEndAllowThreads(__tstate);
32810 if (PyErr_Occurred()) SWIG_fail;
32811 }
32812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32813 return resultobj;
32814 fail:
32815 return NULL;
32816 }
32817
32818
32819 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32820 PyObject *resultobj = 0;
32821 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32822 wxTreeItemId result;
32823 void *argp1 = 0 ;
32824 int res1 = 0 ;
32825 PyObject *swig_obj[1] ;
32826
32827 if (!args) SWIG_fail;
32828 swig_obj[0] = args;
32829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32830 if (!SWIG_IsOK(res1)) {
32831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32832 }
32833 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32834 {
32835 PyThreadState* __tstate = wxPyBeginAllowThreads();
32836 result = ((wxTreeEvent const *)arg1)->GetItem();
32837 wxPyEndAllowThreads(__tstate);
32838 if (PyErr_Occurred()) SWIG_fail;
32839 }
32840 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32841 return resultobj;
32842 fail:
32843 return NULL;
32844 }
32845
32846
32847 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32848 PyObject *resultobj = 0;
32849 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32850 wxTreeItemId *arg2 = 0 ;
32851 void *argp1 = 0 ;
32852 int res1 = 0 ;
32853 void *argp2 = 0 ;
32854 int res2 = 0 ;
32855 PyObject * obj0 = 0 ;
32856 PyObject * obj1 = 0 ;
32857 char * kwnames[] = {
32858 (char *) "self",(char *) "item", NULL
32859 };
32860
32861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32863 if (!SWIG_IsOK(res1)) {
32864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32865 }
32866 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32867 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32868 if (!SWIG_IsOK(res2)) {
32869 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32870 }
32871 if (!argp2) {
32872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32873 }
32874 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32875 {
32876 PyThreadState* __tstate = wxPyBeginAllowThreads();
32877 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32878 wxPyEndAllowThreads(__tstate);
32879 if (PyErr_Occurred()) SWIG_fail;
32880 }
32881 resultobj = SWIG_Py_Void();
32882 return resultobj;
32883 fail:
32884 return NULL;
32885 }
32886
32887
32888 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32889 PyObject *resultobj = 0;
32890 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32891 wxTreeItemId result;
32892 void *argp1 = 0 ;
32893 int res1 = 0 ;
32894 PyObject *swig_obj[1] ;
32895
32896 if (!args) SWIG_fail;
32897 swig_obj[0] = args;
32898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32899 if (!SWIG_IsOK(res1)) {
32900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32901 }
32902 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32903 {
32904 PyThreadState* __tstate = wxPyBeginAllowThreads();
32905 result = ((wxTreeEvent const *)arg1)->GetOldItem();
32906 wxPyEndAllowThreads(__tstate);
32907 if (PyErr_Occurred()) SWIG_fail;
32908 }
32909 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32910 return resultobj;
32911 fail:
32912 return NULL;
32913 }
32914
32915
32916 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32917 PyObject *resultobj = 0;
32918 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32919 wxTreeItemId *arg2 = 0 ;
32920 void *argp1 = 0 ;
32921 int res1 = 0 ;
32922 void *argp2 = 0 ;
32923 int res2 = 0 ;
32924 PyObject * obj0 = 0 ;
32925 PyObject * obj1 = 0 ;
32926 char * kwnames[] = {
32927 (char *) "self",(char *) "item", NULL
32928 };
32929
32930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
32931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32932 if (!SWIG_IsOK(res1)) {
32933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32934 }
32935 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32937 if (!SWIG_IsOK(res2)) {
32938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32939 }
32940 if (!argp2) {
32941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32942 }
32943 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32944 {
32945 PyThreadState* __tstate = wxPyBeginAllowThreads();
32946 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
32947 wxPyEndAllowThreads(__tstate);
32948 if (PyErr_Occurred()) SWIG_fail;
32949 }
32950 resultobj = SWIG_Py_Void();
32951 return resultobj;
32952 fail:
32953 return NULL;
32954 }
32955
32956
32957 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32958 PyObject *resultobj = 0;
32959 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32960 wxPoint result;
32961 void *argp1 = 0 ;
32962 int res1 = 0 ;
32963 PyObject *swig_obj[1] ;
32964
32965 if (!args) SWIG_fail;
32966 swig_obj[0] = args;
32967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32968 if (!SWIG_IsOK(res1)) {
32969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32970 }
32971 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32972 {
32973 PyThreadState* __tstate = wxPyBeginAllowThreads();
32974 result = ((wxTreeEvent const *)arg1)->GetPoint();
32975 wxPyEndAllowThreads(__tstate);
32976 if (PyErr_Occurred()) SWIG_fail;
32977 }
32978 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
32979 return resultobj;
32980 fail:
32981 return NULL;
32982 }
32983
32984
32985 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32986 PyObject *resultobj = 0;
32987 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32988 wxPoint *arg2 = 0 ;
32989 void *argp1 = 0 ;
32990 int res1 = 0 ;
32991 wxPoint temp2 ;
32992 PyObject * obj0 = 0 ;
32993 PyObject * obj1 = 0 ;
32994 char * kwnames[] = {
32995 (char *) "self",(char *) "pt", NULL
32996 };
32997
32998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33000 if (!SWIG_IsOK(res1)) {
33001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33002 }
33003 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33004 {
33005 arg2 = &temp2;
33006 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33007 }
33008 {
33009 PyThreadState* __tstate = wxPyBeginAllowThreads();
33010 (arg1)->SetPoint((wxPoint const &)*arg2);
33011 wxPyEndAllowThreads(__tstate);
33012 if (PyErr_Occurred()) SWIG_fail;
33013 }
33014 resultobj = SWIG_Py_Void();
33015 return resultobj;
33016 fail:
33017 return NULL;
33018 }
33019
33020
33021 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33022 PyObject *resultobj = 0;
33023 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33024 wxKeyEvent *result = 0 ;
33025 void *argp1 = 0 ;
33026 int res1 = 0 ;
33027 PyObject *swig_obj[1] ;
33028
33029 if (!args) SWIG_fail;
33030 swig_obj[0] = args;
33031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33032 if (!SWIG_IsOK(res1)) {
33033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33034 }
33035 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33036 {
33037 PyThreadState* __tstate = wxPyBeginAllowThreads();
33038 {
33039 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33040 result = (wxKeyEvent *) &_result_ref;
33041 }
33042 wxPyEndAllowThreads(__tstate);
33043 if (PyErr_Occurred()) SWIG_fail;
33044 }
33045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33046 return resultobj;
33047 fail:
33048 return NULL;
33049 }
33050
33051
33052 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33053 PyObject *resultobj = 0;
33054 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33055 int result;
33056 void *argp1 = 0 ;
33057 int res1 = 0 ;
33058 PyObject *swig_obj[1] ;
33059
33060 if (!args) SWIG_fail;
33061 swig_obj[0] = args;
33062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33063 if (!SWIG_IsOK(res1)) {
33064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33065 }
33066 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33067 {
33068 PyThreadState* __tstate = wxPyBeginAllowThreads();
33069 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33070 wxPyEndAllowThreads(__tstate);
33071 if (PyErr_Occurred()) SWIG_fail;
33072 }
33073 resultobj = SWIG_From_int(static_cast< int >(result));
33074 return resultobj;
33075 fail:
33076 return NULL;
33077 }
33078
33079
33080 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33081 PyObject *resultobj = 0;
33082 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33083 wxKeyEvent *arg2 = 0 ;
33084 void *argp1 = 0 ;
33085 int res1 = 0 ;
33086 void *argp2 = 0 ;
33087 int res2 = 0 ;
33088 PyObject * obj0 = 0 ;
33089 PyObject * obj1 = 0 ;
33090 char * kwnames[] = {
33091 (char *) "self",(char *) "evt", NULL
33092 };
33093
33094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33096 if (!SWIG_IsOK(res1)) {
33097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33098 }
33099 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33100 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33101 if (!SWIG_IsOK(res2)) {
33102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33103 }
33104 if (!argp2) {
33105 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33106 }
33107 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33108 {
33109 PyThreadState* __tstate = wxPyBeginAllowThreads();
33110 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33111 wxPyEndAllowThreads(__tstate);
33112 if (PyErr_Occurred()) SWIG_fail;
33113 }
33114 resultobj = SWIG_Py_Void();
33115 return resultobj;
33116 fail:
33117 return NULL;
33118 }
33119
33120
33121 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33122 PyObject *resultobj = 0;
33123 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33124 wxString *result = 0 ;
33125 void *argp1 = 0 ;
33126 int res1 = 0 ;
33127 PyObject *swig_obj[1] ;
33128
33129 if (!args) SWIG_fail;
33130 swig_obj[0] = args;
33131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33132 if (!SWIG_IsOK(res1)) {
33133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33134 }
33135 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33136 {
33137 PyThreadState* __tstate = wxPyBeginAllowThreads();
33138 {
33139 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33140 result = (wxString *) &_result_ref;
33141 }
33142 wxPyEndAllowThreads(__tstate);
33143 if (PyErr_Occurred()) SWIG_fail;
33144 }
33145 {
33146 #if wxUSE_UNICODE
33147 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33148 #else
33149 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33150 #endif
33151 }
33152 return resultobj;
33153 fail:
33154 return NULL;
33155 }
33156
33157
33158 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33159 PyObject *resultobj = 0;
33160 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33161 wxString *arg2 = 0 ;
33162 void *argp1 = 0 ;
33163 int res1 = 0 ;
33164 bool temp2 = false ;
33165 PyObject * obj0 = 0 ;
33166 PyObject * obj1 = 0 ;
33167 char * kwnames[] = {
33168 (char *) "self",(char *) "label", NULL
33169 };
33170
33171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33173 if (!SWIG_IsOK(res1)) {
33174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33175 }
33176 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33177 {
33178 arg2 = wxString_in_helper(obj1);
33179 if (arg2 == NULL) SWIG_fail;
33180 temp2 = true;
33181 }
33182 {
33183 PyThreadState* __tstate = wxPyBeginAllowThreads();
33184 (arg1)->SetLabel((wxString const &)*arg2);
33185 wxPyEndAllowThreads(__tstate);
33186 if (PyErr_Occurred()) SWIG_fail;
33187 }
33188 resultobj = SWIG_Py_Void();
33189 {
33190 if (temp2)
33191 delete arg2;
33192 }
33193 return resultobj;
33194 fail:
33195 {
33196 if (temp2)
33197 delete arg2;
33198 }
33199 return NULL;
33200 }
33201
33202
33203 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33204 PyObject *resultobj = 0;
33205 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33206 bool result;
33207 void *argp1 = 0 ;
33208 int res1 = 0 ;
33209 PyObject *swig_obj[1] ;
33210
33211 if (!args) SWIG_fail;
33212 swig_obj[0] = args;
33213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33214 if (!SWIG_IsOK(res1)) {
33215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33216 }
33217 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33218 {
33219 PyThreadState* __tstate = wxPyBeginAllowThreads();
33220 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33221 wxPyEndAllowThreads(__tstate);
33222 if (PyErr_Occurred()) SWIG_fail;
33223 }
33224 {
33225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33226 }
33227 return resultobj;
33228 fail:
33229 return NULL;
33230 }
33231
33232
33233 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33234 PyObject *resultobj = 0;
33235 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33236 bool arg2 ;
33237 void *argp1 = 0 ;
33238 int res1 = 0 ;
33239 bool val2 ;
33240 int ecode2 = 0 ;
33241 PyObject * obj0 = 0 ;
33242 PyObject * obj1 = 0 ;
33243 char * kwnames[] = {
33244 (char *) "self",(char *) "editCancelled", NULL
33245 };
33246
33247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33249 if (!SWIG_IsOK(res1)) {
33250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33251 }
33252 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33253 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33254 if (!SWIG_IsOK(ecode2)) {
33255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33256 }
33257 arg2 = static_cast< bool >(val2);
33258 {
33259 PyThreadState* __tstate = wxPyBeginAllowThreads();
33260 (arg1)->SetEditCanceled(arg2);
33261 wxPyEndAllowThreads(__tstate);
33262 if (PyErr_Occurred()) SWIG_fail;
33263 }
33264 resultobj = SWIG_Py_Void();
33265 return resultobj;
33266 fail:
33267 return NULL;
33268 }
33269
33270
33271 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33272 PyObject *resultobj = 0;
33273 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33274 wxString *arg2 = 0 ;
33275 void *argp1 = 0 ;
33276 int res1 = 0 ;
33277 bool temp2 = false ;
33278 PyObject * obj0 = 0 ;
33279 PyObject * obj1 = 0 ;
33280 char * kwnames[] = {
33281 (char *) "self",(char *) "toolTip", NULL
33282 };
33283
33284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33286 if (!SWIG_IsOK(res1)) {
33287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33288 }
33289 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33290 {
33291 arg2 = wxString_in_helper(obj1);
33292 if (arg2 == NULL) SWIG_fail;
33293 temp2 = true;
33294 }
33295 {
33296 PyThreadState* __tstate = wxPyBeginAllowThreads();
33297 (arg1)->SetToolTip((wxString const &)*arg2);
33298 wxPyEndAllowThreads(__tstate);
33299 if (PyErr_Occurred()) SWIG_fail;
33300 }
33301 resultobj = SWIG_Py_Void();
33302 {
33303 if (temp2)
33304 delete arg2;
33305 }
33306 return resultobj;
33307 fail:
33308 {
33309 if (temp2)
33310 delete arg2;
33311 }
33312 return NULL;
33313 }
33314
33315
33316 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33317 PyObject *resultobj = 0;
33318 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33319 wxString result;
33320 void *argp1 = 0 ;
33321 int res1 = 0 ;
33322 PyObject *swig_obj[1] ;
33323
33324 if (!args) SWIG_fail;
33325 swig_obj[0] = args;
33326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33327 if (!SWIG_IsOK(res1)) {
33328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33329 }
33330 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33331 {
33332 PyThreadState* __tstate = wxPyBeginAllowThreads();
33333 result = (arg1)->GetToolTip();
33334 wxPyEndAllowThreads(__tstate);
33335 if (PyErr_Occurred()) SWIG_fail;
33336 }
33337 {
33338 #if wxUSE_UNICODE
33339 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33340 #else
33341 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33342 #endif
33343 }
33344 return resultobj;
33345 fail:
33346 return NULL;
33347 }
33348
33349
33350 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33351 PyObject *obj;
33352 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33353 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33354 return SWIG_Py_Void();
33355 }
33356
33357 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33358 return SWIG_Python_InitShadowInstance(args);
33359 }
33360
33361 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33362 PyObject *resultobj = 0;
33363 wxWindow *arg1 = (wxWindow *) 0 ;
33364 int arg2 = (int) -1 ;
33365 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33366 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33367 wxSize const &arg4_defvalue = wxDefaultSize ;
33368 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33369 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33370 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33371 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33372 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33373 wxString *arg7 = (wxString *) &arg7_defvalue ;
33374 wxPyTreeCtrl *result = 0 ;
33375 void *argp1 = 0 ;
33376 int res1 = 0 ;
33377 int val2 ;
33378 int ecode2 = 0 ;
33379 wxPoint temp3 ;
33380 wxSize temp4 ;
33381 long val5 ;
33382 int ecode5 = 0 ;
33383 void *argp6 = 0 ;
33384 int res6 = 0 ;
33385 bool temp7 = false ;
33386 PyObject * obj0 = 0 ;
33387 PyObject * obj1 = 0 ;
33388 PyObject * obj2 = 0 ;
33389 PyObject * obj3 = 0 ;
33390 PyObject * obj4 = 0 ;
33391 PyObject * obj5 = 0 ;
33392 PyObject * obj6 = 0 ;
33393 char * kwnames[] = {
33394 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33395 };
33396
33397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33399 if (!SWIG_IsOK(res1)) {
33400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33401 }
33402 arg1 = reinterpret_cast< wxWindow * >(argp1);
33403 if (obj1) {
33404 ecode2 = SWIG_AsVal_int(obj1, &val2);
33405 if (!SWIG_IsOK(ecode2)) {
33406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33407 }
33408 arg2 = static_cast< int >(val2);
33409 }
33410 if (obj2) {
33411 {
33412 arg3 = &temp3;
33413 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33414 }
33415 }
33416 if (obj3) {
33417 {
33418 arg4 = &temp4;
33419 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33420 }
33421 }
33422 if (obj4) {
33423 ecode5 = SWIG_AsVal_long(obj4, &val5);
33424 if (!SWIG_IsOK(ecode5)) {
33425 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33426 }
33427 arg5 = static_cast< long >(val5);
33428 }
33429 if (obj5) {
33430 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33431 if (!SWIG_IsOK(res6)) {
33432 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33433 }
33434 if (!argp6) {
33435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33436 }
33437 arg6 = reinterpret_cast< wxValidator * >(argp6);
33438 }
33439 if (obj6) {
33440 {
33441 arg7 = wxString_in_helper(obj6);
33442 if (arg7 == NULL) SWIG_fail;
33443 temp7 = true;
33444 }
33445 }
33446 {
33447 if (!wxPyCheckForApp()) SWIG_fail;
33448 PyThreadState* __tstate = wxPyBeginAllowThreads();
33449 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33450 wxPyEndAllowThreads(__tstate);
33451 if (PyErr_Occurred()) SWIG_fail;
33452 }
33453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33454 {
33455 if (temp7)
33456 delete arg7;
33457 }
33458 return resultobj;
33459 fail:
33460 {
33461 if (temp7)
33462 delete arg7;
33463 }
33464 return NULL;
33465 }
33466
33467
33468 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33469 PyObject *resultobj = 0;
33470 wxPyTreeCtrl *result = 0 ;
33471
33472 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33473 {
33474 if (!wxPyCheckForApp()) SWIG_fail;
33475 PyThreadState* __tstate = wxPyBeginAllowThreads();
33476 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33477 wxPyEndAllowThreads(__tstate);
33478 if (PyErr_Occurred()) SWIG_fail;
33479 }
33480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33481 return resultobj;
33482 fail:
33483 return NULL;
33484 }
33485
33486
33487 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33488 PyObject *resultobj = 0;
33489 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33490 wxWindow *arg2 = (wxWindow *) 0 ;
33491 int arg3 = (int) -1 ;
33492 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33493 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33494 wxSize const &arg5_defvalue = wxDefaultSize ;
33495 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33496 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33497 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33498 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33499 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33500 wxString *arg8 = (wxString *) &arg8_defvalue ;
33501 bool result;
33502 void *argp1 = 0 ;
33503 int res1 = 0 ;
33504 void *argp2 = 0 ;
33505 int res2 = 0 ;
33506 int val3 ;
33507 int ecode3 = 0 ;
33508 wxPoint temp4 ;
33509 wxSize temp5 ;
33510 long val6 ;
33511 int ecode6 = 0 ;
33512 void *argp7 = 0 ;
33513 int res7 = 0 ;
33514 bool temp8 = false ;
33515 PyObject * obj0 = 0 ;
33516 PyObject * obj1 = 0 ;
33517 PyObject * obj2 = 0 ;
33518 PyObject * obj3 = 0 ;
33519 PyObject * obj4 = 0 ;
33520 PyObject * obj5 = 0 ;
33521 PyObject * obj6 = 0 ;
33522 PyObject * obj7 = 0 ;
33523 char * kwnames[] = {
33524 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33525 };
33526
33527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33529 if (!SWIG_IsOK(res1)) {
33530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33531 }
33532 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33533 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33534 if (!SWIG_IsOK(res2)) {
33535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33536 }
33537 arg2 = reinterpret_cast< wxWindow * >(argp2);
33538 if (obj2) {
33539 ecode3 = SWIG_AsVal_int(obj2, &val3);
33540 if (!SWIG_IsOK(ecode3)) {
33541 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33542 }
33543 arg3 = static_cast< int >(val3);
33544 }
33545 if (obj3) {
33546 {
33547 arg4 = &temp4;
33548 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33549 }
33550 }
33551 if (obj4) {
33552 {
33553 arg5 = &temp5;
33554 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33555 }
33556 }
33557 if (obj5) {
33558 ecode6 = SWIG_AsVal_long(obj5, &val6);
33559 if (!SWIG_IsOK(ecode6)) {
33560 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33561 }
33562 arg6 = static_cast< long >(val6);
33563 }
33564 if (obj6) {
33565 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33566 if (!SWIG_IsOK(res7)) {
33567 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33568 }
33569 if (!argp7) {
33570 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33571 }
33572 arg7 = reinterpret_cast< wxValidator * >(argp7);
33573 }
33574 if (obj7) {
33575 {
33576 arg8 = wxString_in_helper(obj7);
33577 if (arg8 == NULL) SWIG_fail;
33578 temp8 = true;
33579 }
33580 }
33581 {
33582 PyThreadState* __tstate = wxPyBeginAllowThreads();
33583 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33584 wxPyEndAllowThreads(__tstate);
33585 if (PyErr_Occurred()) SWIG_fail;
33586 }
33587 {
33588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33589 }
33590 {
33591 if (temp8)
33592 delete arg8;
33593 }
33594 return resultobj;
33595 fail:
33596 {
33597 if (temp8)
33598 delete arg8;
33599 }
33600 return NULL;
33601 }
33602
33603
33604 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33605 PyObject *resultobj = 0;
33606 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33607 PyObject *arg2 = (PyObject *) 0 ;
33608 PyObject *arg3 = (PyObject *) 0 ;
33609 void *argp1 = 0 ;
33610 int res1 = 0 ;
33611 PyObject * obj0 = 0 ;
33612 PyObject * obj1 = 0 ;
33613 PyObject * obj2 = 0 ;
33614 char * kwnames[] = {
33615 (char *) "self",(char *) "self",(char *) "_class", NULL
33616 };
33617
33618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33620 if (!SWIG_IsOK(res1)) {
33621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33622 }
33623 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33624 arg2 = obj1;
33625 arg3 = obj2;
33626 {
33627 PyThreadState* __tstate = wxPyBeginAllowThreads();
33628 (arg1)->_setCallbackInfo(arg2,arg3);
33629 wxPyEndAllowThreads(__tstate);
33630 if (PyErr_Occurred()) SWIG_fail;
33631 }
33632 resultobj = SWIG_Py_Void();
33633 return resultobj;
33634 fail:
33635 return NULL;
33636 }
33637
33638
33639 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33640 PyObject *resultobj = 0;
33641 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33642 unsigned int result;
33643 void *argp1 = 0 ;
33644 int res1 = 0 ;
33645 PyObject *swig_obj[1] ;
33646
33647 if (!args) SWIG_fail;
33648 swig_obj[0] = args;
33649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33650 if (!SWIG_IsOK(res1)) {
33651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33652 }
33653 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33654 {
33655 PyThreadState* __tstate = wxPyBeginAllowThreads();
33656 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
33657 wxPyEndAllowThreads(__tstate);
33658 if (PyErr_Occurred()) SWIG_fail;
33659 }
33660 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33661 return resultobj;
33662 fail:
33663 return NULL;
33664 }
33665
33666
33667 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33668 PyObject *resultobj = 0;
33669 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33670 unsigned int result;
33671 void *argp1 = 0 ;
33672 int res1 = 0 ;
33673 PyObject *swig_obj[1] ;
33674
33675 if (!args) SWIG_fail;
33676 swig_obj[0] = args;
33677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33678 if (!SWIG_IsOK(res1)) {
33679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33680 }
33681 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33682 {
33683 PyThreadState* __tstate = wxPyBeginAllowThreads();
33684 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33685 wxPyEndAllowThreads(__tstate);
33686 if (PyErr_Occurred()) SWIG_fail;
33687 }
33688 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33689 return resultobj;
33690 fail:
33691 return NULL;
33692 }
33693
33694
33695 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33696 PyObject *resultobj = 0;
33697 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33698 unsigned int arg2 ;
33699 void *argp1 = 0 ;
33700 int res1 = 0 ;
33701 unsigned int val2 ;
33702 int ecode2 = 0 ;
33703 PyObject * obj0 = 0 ;
33704 PyObject * obj1 = 0 ;
33705 char * kwnames[] = {
33706 (char *) "self",(char *) "indent", NULL
33707 };
33708
33709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33711 if (!SWIG_IsOK(res1)) {
33712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33713 }
33714 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33715 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33716 if (!SWIG_IsOK(ecode2)) {
33717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33718 }
33719 arg2 = static_cast< unsigned int >(val2);
33720 {
33721 PyThreadState* __tstate = wxPyBeginAllowThreads();
33722 (arg1)->SetIndent(arg2);
33723 wxPyEndAllowThreads(__tstate);
33724 if (PyErr_Occurred()) SWIG_fail;
33725 }
33726 resultobj = SWIG_Py_Void();
33727 return resultobj;
33728 fail:
33729 return NULL;
33730 }
33731
33732
33733 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33734 PyObject *resultobj = 0;
33735 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33736 unsigned int result;
33737 void *argp1 = 0 ;
33738 int res1 = 0 ;
33739 PyObject *swig_obj[1] ;
33740
33741 if (!args) SWIG_fail;
33742 swig_obj[0] = args;
33743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33744 if (!SWIG_IsOK(res1)) {
33745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33746 }
33747 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33748 {
33749 PyThreadState* __tstate = wxPyBeginAllowThreads();
33750 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33751 wxPyEndAllowThreads(__tstate);
33752 if (PyErr_Occurred()) SWIG_fail;
33753 }
33754 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33755 return resultobj;
33756 fail:
33757 return NULL;
33758 }
33759
33760
33761 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33762 PyObject *resultobj = 0;
33763 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33764 unsigned int arg2 ;
33765 void *argp1 = 0 ;
33766 int res1 = 0 ;
33767 unsigned int val2 ;
33768 int ecode2 = 0 ;
33769 PyObject * obj0 = 0 ;
33770 PyObject * obj1 = 0 ;
33771 char * kwnames[] = {
33772 (char *) "self",(char *) "spacing", NULL
33773 };
33774
33775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33777 if (!SWIG_IsOK(res1)) {
33778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33779 }
33780 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33781 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33782 if (!SWIG_IsOK(ecode2)) {
33783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33784 }
33785 arg2 = static_cast< unsigned int >(val2);
33786 {
33787 PyThreadState* __tstate = wxPyBeginAllowThreads();
33788 (arg1)->SetSpacing(arg2);
33789 wxPyEndAllowThreads(__tstate);
33790 if (PyErr_Occurred()) SWIG_fail;
33791 }
33792 resultobj = SWIG_Py_Void();
33793 return resultobj;
33794 fail:
33795 return NULL;
33796 }
33797
33798
33799 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33800 PyObject *resultobj = 0;
33801 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33802 wxImageList *result = 0 ;
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_wxPyTreeCtrl, 0 | 0 );
33810 if (!SWIG_IsOK(res1)) {
33811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33812 }
33813 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33814 {
33815 PyThreadState* __tstate = wxPyBeginAllowThreads();
33816 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33817 wxPyEndAllowThreads(__tstate);
33818 if (PyErr_Occurred()) SWIG_fail;
33819 }
33820 {
33821 resultobj = wxPyMake_wxObject(result, (bool)0);
33822 }
33823 return resultobj;
33824 fail:
33825 return NULL;
33826 }
33827
33828
33829 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33830 PyObject *resultobj = 0;
33831 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33832 wxImageList *result = 0 ;
33833 void *argp1 = 0 ;
33834 int res1 = 0 ;
33835 PyObject *swig_obj[1] ;
33836
33837 if (!args) SWIG_fail;
33838 swig_obj[0] = args;
33839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33840 if (!SWIG_IsOK(res1)) {
33841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33842 }
33843 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33844 {
33845 PyThreadState* __tstate = wxPyBeginAllowThreads();
33846 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33847 wxPyEndAllowThreads(__tstate);
33848 if (PyErr_Occurred()) SWIG_fail;
33849 }
33850 {
33851 resultobj = wxPyMake_wxObject(result, (bool)0);
33852 }
33853 return resultobj;
33854 fail:
33855 return NULL;
33856 }
33857
33858
33859 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33860 PyObject *resultobj = 0;
33861 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33862 wxImageList *arg2 = (wxImageList *) 0 ;
33863 void *argp1 = 0 ;
33864 int res1 = 0 ;
33865 void *argp2 = 0 ;
33866 int res2 = 0 ;
33867 PyObject * obj0 = 0 ;
33868 PyObject * obj1 = 0 ;
33869 char * kwnames[] = {
33870 (char *) "self",(char *) "imageList", NULL
33871 };
33872
33873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33875 if (!SWIG_IsOK(res1)) {
33876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33877 }
33878 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33879 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33880 if (!SWIG_IsOK(res2)) {
33881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33882 }
33883 arg2 = reinterpret_cast< wxImageList * >(argp2);
33884 {
33885 PyThreadState* __tstate = wxPyBeginAllowThreads();
33886 (arg1)->SetImageList(arg2);
33887 wxPyEndAllowThreads(__tstate);
33888 if (PyErr_Occurred()) SWIG_fail;
33889 }
33890 resultobj = SWIG_Py_Void();
33891 return resultobj;
33892 fail:
33893 return NULL;
33894 }
33895
33896
33897 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33898 PyObject *resultobj = 0;
33899 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33900 wxImageList *arg2 = (wxImageList *) 0 ;
33901 void *argp1 = 0 ;
33902 int res1 = 0 ;
33903 void *argp2 = 0 ;
33904 int res2 = 0 ;
33905 PyObject * obj0 = 0 ;
33906 PyObject * obj1 = 0 ;
33907 char * kwnames[] = {
33908 (char *) "self",(char *) "imageList", NULL
33909 };
33910
33911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33913 if (!SWIG_IsOK(res1)) {
33914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33915 }
33916 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33917 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33918 if (!SWIG_IsOK(res2)) {
33919 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33920 }
33921 arg2 = reinterpret_cast< wxImageList * >(argp2);
33922 {
33923 PyThreadState* __tstate = wxPyBeginAllowThreads();
33924 (arg1)->SetStateImageList(arg2);
33925 wxPyEndAllowThreads(__tstate);
33926 if (PyErr_Occurred()) SWIG_fail;
33927 }
33928 resultobj = SWIG_Py_Void();
33929 return resultobj;
33930 fail:
33931 return NULL;
33932 }
33933
33934
33935 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33936 PyObject *resultobj = 0;
33937 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33938 wxImageList *arg2 = (wxImageList *) 0 ;
33939 void *argp1 = 0 ;
33940 int res1 = 0 ;
33941 int res2 = 0 ;
33942 PyObject * obj0 = 0 ;
33943 PyObject * obj1 = 0 ;
33944 char * kwnames[] = {
33945 (char *) "self",(char *) "imageList", NULL
33946 };
33947
33948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33950 if (!SWIG_IsOK(res1)) {
33951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33952 }
33953 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33954 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33955 if (!SWIG_IsOK(res2)) {
33956 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33957 }
33958 {
33959 PyThreadState* __tstate = wxPyBeginAllowThreads();
33960 (arg1)->AssignImageList(arg2);
33961 wxPyEndAllowThreads(__tstate);
33962 if (PyErr_Occurred()) SWIG_fail;
33963 }
33964 resultobj = SWIG_Py_Void();
33965 return resultobj;
33966 fail:
33967 return NULL;
33968 }
33969
33970
33971 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33972 PyObject *resultobj = 0;
33973 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33974 wxImageList *arg2 = (wxImageList *) 0 ;
33975 void *argp1 = 0 ;
33976 int res1 = 0 ;
33977 int res2 = 0 ;
33978 PyObject * obj0 = 0 ;
33979 PyObject * obj1 = 0 ;
33980 char * kwnames[] = {
33981 (char *) "self",(char *) "imageList", NULL
33982 };
33983
33984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33986 if (!SWIG_IsOK(res1)) {
33987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33988 }
33989 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33990 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33991 if (!SWIG_IsOK(res2)) {
33992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33993 }
33994 {
33995 PyThreadState* __tstate = wxPyBeginAllowThreads();
33996 (arg1)->AssignStateImageList(arg2);
33997 wxPyEndAllowThreads(__tstate);
33998 if (PyErr_Occurred()) SWIG_fail;
33999 }
34000 resultobj = SWIG_Py_Void();
34001 return resultobj;
34002 fail:
34003 return NULL;
34004 }
34005
34006
34007 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34008 PyObject *resultobj = 0;
34009 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34010 wxTreeItemId *arg2 = 0 ;
34011 wxString result;
34012 void *argp1 = 0 ;
34013 int res1 = 0 ;
34014 void *argp2 = 0 ;
34015 int res2 = 0 ;
34016 PyObject * obj0 = 0 ;
34017 PyObject * obj1 = 0 ;
34018 char * kwnames[] = {
34019 (char *) "self",(char *) "item", NULL
34020 };
34021
34022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34024 if (!SWIG_IsOK(res1)) {
34025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34026 }
34027 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34028 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34029 if (!SWIG_IsOK(res2)) {
34030 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34031 }
34032 if (!argp2) {
34033 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34034 }
34035 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34036 {
34037 PyThreadState* __tstate = wxPyBeginAllowThreads();
34038 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34039 wxPyEndAllowThreads(__tstate);
34040 if (PyErr_Occurred()) SWIG_fail;
34041 }
34042 {
34043 #if wxUSE_UNICODE
34044 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34045 #else
34046 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34047 #endif
34048 }
34049 return resultobj;
34050 fail:
34051 return NULL;
34052 }
34053
34054
34055 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34056 PyObject *resultobj = 0;
34057 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34058 wxTreeItemId *arg2 = 0 ;
34059 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34060 int result;
34061 void *argp1 = 0 ;
34062 int res1 = 0 ;
34063 void *argp2 = 0 ;
34064 int res2 = 0 ;
34065 int val3 ;
34066 int ecode3 = 0 ;
34067 PyObject * obj0 = 0 ;
34068 PyObject * obj1 = 0 ;
34069 PyObject * obj2 = 0 ;
34070 char * kwnames[] = {
34071 (char *) "self",(char *) "item",(char *) "which", NULL
34072 };
34073
34074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34076 if (!SWIG_IsOK(res1)) {
34077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34078 }
34079 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34080 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34081 if (!SWIG_IsOK(res2)) {
34082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34083 }
34084 if (!argp2) {
34085 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34086 }
34087 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34088 if (obj2) {
34089 ecode3 = SWIG_AsVal_int(obj2, &val3);
34090 if (!SWIG_IsOK(ecode3)) {
34091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34092 }
34093 arg3 = static_cast< wxTreeItemIcon >(val3);
34094 }
34095 {
34096 PyThreadState* __tstate = wxPyBeginAllowThreads();
34097 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34098 wxPyEndAllowThreads(__tstate);
34099 if (PyErr_Occurred()) SWIG_fail;
34100 }
34101 resultobj = SWIG_From_int(static_cast< int >(result));
34102 return resultobj;
34103 fail:
34104 return NULL;
34105 }
34106
34107
34108 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34109 PyObject *resultobj = 0;
34110 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34111 wxTreeItemId *arg2 = 0 ;
34112 wxPyTreeItemData *result = 0 ;
34113 void *argp1 = 0 ;
34114 int res1 = 0 ;
34115 void *argp2 = 0 ;
34116 int res2 = 0 ;
34117 PyObject * obj0 = 0 ;
34118 PyObject * obj1 = 0 ;
34119 char * kwnames[] = {
34120 (char *) "self",(char *) "item", NULL
34121 };
34122
34123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) 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_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34127 }
34128 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34129 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34130 if (!SWIG_IsOK(res2)) {
34131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34132 }
34133 if (!argp2) {
34134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34135 }
34136 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34137 {
34138 PyThreadState* __tstate = wxPyBeginAllowThreads();
34139 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34140 wxPyEndAllowThreads(__tstate);
34141 if (PyErr_Occurred()) SWIG_fail;
34142 }
34143 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34144 return resultobj;
34145 fail:
34146 return NULL;
34147 }
34148
34149
34150 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34151 PyObject *resultobj = 0;
34152 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34153 wxTreeItemId *arg2 = 0 ;
34154 PyObject *result = 0 ;
34155 void *argp1 = 0 ;
34156 int res1 = 0 ;
34157 void *argp2 = 0 ;
34158 int res2 = 0 ;
34159 PyObject * obj0 = 0 ;
34160 PyObject * obj1 = 0 ;
34161 char * kwnames[] = {
34162 (char *) "self",(char *) "item", NULL
34163 };
34164
34165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34167 if (!SWIG_IsOK(res1)) {
34168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34169 }
34170 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34171 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34172 if (!SWIG_IsOK(res2)) {
34173 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34174 }
34175 if (!argp2) {
34176 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34177 }
34178 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34179 {
34180 PyThreadState* __tstate = wxPyBeginAllowThreads();
34181 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34182 wxPyEndAllowThreads(__tstate);
34183 if (PyErr_Occurred()) SWIG_fail;
34184 }
34185 resultobj = result;
34186 return resultobj;
34187 fail:
34188 return NULL;
34189 }
34190
34191
34192 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34193 PyObject *resultobj = 0;
34194 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34195 wxTreeItemId *arg2 = 0 ;
34196 wxColour result;
34197 void *argp1 = 0 ;
34198 int res1 = 0 ;
34199 void *argp2 = 0 ;
34200 int res2 = 0 ;
34201 PyObject * obj0 = 0 ;
34202 PyObject * obj1 = 0 ;
34203 char * kwnames[] = {
34204 (char *) "self",(char *) "item", NULL
34205 };
34206
34207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34209 if (!SWIG_IsOK(res1)) {
34210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34211 }
34212 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34213 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34214 if (!SWIG_IsOK(res2)) {
34215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34216 }
34217 if (!argp2) {
34218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34219 }
34220 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34221 {
34222 PyThreadState* __tstate = wxPyBeginAllowThreads();
34223 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34224 wxPyEndAllowThreads(__tstate);
34225 if (PyErr_Occurred()) SWIG_fail;
34226 }
34227 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34228 return resultobj;
34229 fail:
34230 return NULL;
34231 }
34232
34233
34234 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34235 PyObject *resultobj = 0;
34236 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34237 wxTreeItemId *arg2 = 0 ;
34238 wxColour result;
34239 void *argp1 = 0 ;
34240 int res1 = 0 ;
34241 void *argp2 = 0 ;
34242 int res2 = 0 ;
34243 PyObject * obj0 = 0 ;
34244 PyObject * obj1 = 0 ;
34245 char * kwnames[] = {
34246 (char *) "self",(char *) "item", NULL
34247 };
34248
34249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34251 if (!SWIG_IsOK(res1)) {
34252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34253 }
34254 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34256 if (!SWIG_IsOK(res2)) {
34257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34258 }
34259 if (!argp2) {
34260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34261 }
34262 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34263 {
34264 PyThreadState* __tstate = wxPyBeginAllowThreads();
34265 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34266 wxPyEndAllowThreads(__tstate);
34267 if (PyErr_Occurred()) SWIG_fail;
34268 }
34269 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34270 return resultobj;
34271 fail:
34272 return NULL;
34273 }
34274
34275
34276 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34277 PyObject *resultobj = 0;
34278 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34279 wxTreeItemId *arg2 = 0 ;
34280 wxFont result;
34281 void *argp1 = 0 ;
34282 int res1 = 0 ;
34283 void *argp2 = 0 ;
34284 int res2 = 0 ;
34285 PyObject * obj0 = 0 ;
34286 PyObject * obj1 = 0 ;
34287 char * kwnames[] = {
34288 (char *) "self",(char *) "item", NULL
34289 };
34290
34291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34293 if (!SWIG_IsOK(res1)) {
34294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34295 }
34296 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34297 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34298 if (!SWIG_IsOK(res2)) {
34299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34300 }
34301 if (!argp2) {
34302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34303 }
34304 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34305 {
34306 PyThreadState* __tstate = wxPyBeginAllowThreads();
34307 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34308 wxPyEndAllowThreads(__tstate);
34309 if (PyErr_Occurred()) SWIG_fail;
34310 }
34311 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34312 return resultobj;
34313 fail:
34314 return NULL;
34315 }
34316
34317
34318 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34319 PyObject *resultobj = 0;
34320 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34321 wxTreeItemId *arg2 = 0 ;
34322 wxString *arg3 = 0 ;
34323 void *argp1 = 0 ;
34324 int res1 = 0 ;
34325 void *argp2 = 0 ;
34326 int res2 = 0 ;
34327 bool temp3 = false ;
34328 PyObject * obj0 = 0 ;
34329 PyObject * obj1 = 0 ;
34330 PyObject * obj2 = 0 ;
34331 char * kwnames[] = {
34332 (char *) "self",(char *) "item",(char *) "text", NULL
34333 };
34334
34335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34337 if (!SWIG_IsOK(res1)) {
34338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34339 }
34340 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34341 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34342 if (!SWIG_IsOK(res2)) {
34343 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34344 }
34345 if (!argp2) {
34346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34347 }
34348 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34349 {
34350 arg3 = wxString_in_helper(obj2);
34351 if (arg3 == NULL) SWIG_fail;
34352 temp3 = true;
34353 }
34354 {
34355 PyThreadState* __tstate = wxPyBeginAllowThreads();
34356 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34357 wxPyEndAllowThreads(__tstate);
34358 if (PyErr_Occurred()) SWIG_fail;
34359 }
34360 resultobj = SWIG_Py_Void();
34361 {
34362 if (temp3)
34363 delete arg3;
34364 }
34365 return resultobj;
34366 fail:
34367 {
34368 if (temp3)
34369 delete arg3;
34370 }
34371 return NULL;
34372 }
34373
34374
34375 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34376 PyObject *resultobj = 0;
34377 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34378 wxTreeItemId *arg2 = 0 ;
34379 int arg3 ;
34380 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34381 void *argp1 = 0 ;
34382 int res1 = 0 ;
34383 void *argp2 = 0 ;
34384 int res2 = 0 ;
34385 int val3 ;
34386 int ecode3 = 0 ;
34387 int val4 ;
34388 int ecode4 = 0 ;
34389 PyObject * obj0 = 0 ;
34390 PyObject * obj1 = 0 ;
34391 PyObject * obj2 = 0 ;
34392 PyObject * obj3 = 0 ;
34393 char * kwnames[] = {
34394 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34395 };
34396
34397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34399 if (!SWIG_IsOK(res1)) {
34400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34401 }
34402 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34403 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34404 if (!SWIG_IsOK(res2)) {
34405 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34406 }
34407 if (!argp2) {
34408 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34409 }
34410 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34411 ecode3 = SWIG_AsVal_int(obj2, &val3);
34412 if (!SWIG_IsOK(ecode3)) {
34413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34414 }
34415 arg3 = static_cast< int >(val3);
34416 if (obj3) {
34417 ecode4 = SWIG_AsVal_int(obj3, &val4);
34418 if (!SWIG_IsOK(ecode4)) {
34419 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34420 }
34421 arg4 = static_cast< wxTreeItemIcon >(val4);
34422 }
34423 {
34424 PyThreadState* __tstate = wxPyBeginAllowThreads();
34425 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34426 wxPyEndAllowThreads(__tstate);
34427 if (PyErr_Occurred()) SWIG_fail;
34428 }
34429 resultobj = SWIG_Py_Void();
34430 return resultobj;
34431 fail:
34432 return NULL;
34433 }
34434
34435
34436 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34437 PyObject *resultobj = 0;
34438 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34439 wxTreeItemId *arg2 = 0 ;
34440 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34441 void *argp1 = 0 ;
34442 int res1 = 0 ;
34443 void *argp2 = 0 ;
34444 int res2 = 0 ;
34445 int res3 = 0 ;
34446 PyObject * obj0 = 0 ;
34447 PyObject * obj1 = 0 ;
34448 PyObject * obj2 = 0 ;
34449 char * kwnames[] = {
34450 (char *) "self",(char *) "item",(char *) "data", NULL
34451 };
34452
34453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34455 if (!SWIG_IsOK(res1)) {
34456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34457 }
34458 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34459 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34460 if (!SWIG_IsOK(res2)) {
34461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34462 }
34463 if (!argp2) {
34464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34465 }
34466 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34467 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34468 if (!SWIG_IsOK(res3)) {
34469 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34470 }
34471 {
34472 PyThreadState* __tstate = wxPyBeginAllowThreads();
34473 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34474 wxPyEndAllowThreads(__tstate);
34475 if (PyErr_Occurred()) SWIG_fail;
34476 }
34477 resultobj = SWIG_Py_Void();
34478 return resultobj;
34479 fail:
34480 return NULL;
34481 }
34482
34483
34484 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34485 PyObject *resultobj = 0;
34486 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34487 wxTreeItemId *arg2 = 0 ;
34488 PyObject *arg3 = (PyObject *) 0 ;
34489 void *argp1 = 0 ;
34490 int res1 = 0 ;
34491 void *argp2 = 0 ;
34492 int res2 = 0 ;
34493 PyObject * obj0 = 0 ;
34494 PyObject * obj1 = 0 ;
34495 PyObject * obj2 = 0 ;
34496 char * kwnames[] = {
34497 (char *) "self",(char *) "item",(char *) "obj", NULL
34498 };
34499
34500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34502 if (!SWIG_IsOK(res1)) {
34503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34504 }
34505 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34506 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34507 if (!SWIG_IsOK(res2)) {
34508 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34509 }
34510 if (!argp2) {
34511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34512 }
34513 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34514 arg3 = obj2;
34515 {
34516 PyThreadState* __tstate = wxPyBeginAllowThreads();
34517 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34518 wxPyEndAllowThreads(__tstate);
34519 if (PyErr_Occurred()) SWIG_fail;
34520 }
34521 resultobj = SWIG_Py_Void();
34522 return resultobj;
34523 fail:
34524 return NULL;
34525 }
34526
34527
34528 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34529 PyObject *resultobj = 0;
34530 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34531 wxTreeItemId *arg2 = 0 ;
34532 bool arg3 = (bool) true ;
34533 void *argp1 = 0 ;
34534 int res1 = 0 ;
34535 void *argp2 = 0 ;
34536 int res2 = 0 ;
34537 bool val3 ;
34538 int ecode3 = 0 ;
34539 PyObject * obj0 = 0 ;
34540 PyObject * obj1 = 0 ;
34541 PyObject * obj2 = 0 ;
34542 char * kwnames[] = {
34543 (char *) "self",(char *) "item",(char *) "has", NULL
34544 };
34545
34546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34548 if (!SWIG_IsOK(res1)) {
34549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34550 }
34551 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34552 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34553 if (!SWIG_IsOK(res2)) {
34554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34555 }
34556 if (!argp2) {
34557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34558 }
34559 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34560 if (obj2) {
34561 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34562 if (!SWIG_IsOK(ecode3)) {
34563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34564 }
34565 arg3 = static_cast< bool >(val3);
34566 }
34567 {
34568 PyThreadState* __tstate = wxPyBeginAllowThreads();
34569 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34570 wxPyEndAllowThreads(__tstate);
34571 if (PyErr_Occurred()) SWIG_fail;
34572 }
34573 resultobj = SWIG_Py_Void();
34574 return resultobj;
34575 fail:
34576 return NULL;
34577 }
34578
34579
34580 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34581 PyObject *resultobj = 0;
34582 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34583 wxTreeItemId *arg2 = 0 ;
34584 bool arg3 = (bool) true ;
34585 void *argp1 = 0 ;
34586 int res1 = 0 ;
34587 void *argp2 = 0 ;
34588 int res2 = 0 ;
34589 bool val3 ;
34590 int ecode3 = 0 ;
34591 PyObject * obj0 = 0 ;
34592 PyObject * obj1 = 0 ;
34593 PyObject * obj2 = 0 ;
34594 char * kwnames[] = {
34595 (char *) "self",(char *) "item",(char *) "bold", NULL
34596 };
34597
34598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34600 if (!SWIG_IsOK(res1)) {
34601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34602 }
34603 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34604 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34605 if (!SWIG_IsOK(res2)) {
34606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34607 }
34608 if (!argp2) {
34609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34610 }
34611 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34612 if (obj2) {
34613 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34614 if (!SWIG_IsOK(ecode3)) {
34615 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34616 }
34617 arg3 = static_cast< bool >(val3);
34618 }
34619 {
34620 PyThreadState* __tstate = wxPyBeginAllowThreads();
34621 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34622 wxPyEndAllowThreads(__tstate);
34623 if (PyErr_Occurred()) SWIG_fail;
34624 }
34625 resultobj = SWIG_Py_Void();
34626 return resultobj;
34627 fail:
34628 return NULL;
34629 }
34630
34631
34632 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34633 PyObject *resultobj = 0;
34634 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34635 wxTreeItemId *arg2 = 0 ;
34636 bool arg3 = (bool) true ;
34637 void *argp1 = 0 ;
34638 int res1 = 0 ;
34639 void *argp2 = 0 ;
34640 int res2 = 0 ;
34641 bool val3 ;
34642 int ecode3 = 0 ;
34643 PyObject * obj0 = 0 ;
34644 PyObject * obj1 = 0 ;
34645 PyObject * obj2 = 0 ;
34646 char * kwnames[] = {
34647 (char *) "self",(char *) "item",(char *) "highlight", NULL
34648 };
34649
34650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34652 if (!SWIG_IsOK(res1)) {
34653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34654 }
34655 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34656 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34657 if (!SWIG_IsOK(res2)) {
34658 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34659 }
34660 if (!argp2) {
34661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34662 }
34663 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34664 if (obj2) {
34665 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34666 if (!SWIG_IsOK(ecode3)) {
34667 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34668 }
34669 arg3 = static_cast< bool >(val3);
34670 }
34671 {
34672 PyThreadState* __tstate = wxPyBeginAllowThreads();
34673 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34674 wxPyEndAllowThreads(__tstate);
34675 if (PyErr_Occurred()) SWIG_fail;
34676 }
34677 resultobj = SWIG_Py_Void();
34678 return resultobj;
34679 fail:
34680 return NULL;
34681 }
34682
34683
34684 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34685 PyObject *resultobj = 0;
34686 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34687 wxTreeItemId *arg2 = 0 ;
34688 wxColour *arg3 = 0 ;
34689 void *argp1 = 0 ;
34690 int res1 = 0 ;
34691 void *argp2 = 0 ;
34692 int res2 = 0 ;
34693 wxColour temp3 ;
34694 PyObject * obj0 = 0 ;
34695 PyObject * obj1 = 0 ;
34696 PyObject * obj2 = 0 ;
34697 char * kwnames[] = {
34698 (char *) "self",(char *) "item",(char *) "col", NULL
34699 };
34700
34701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34703 if (!SWIG_IsOK(res1)) {
34704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34705 }
34706 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34707 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34708 if (!SWIG_IsOK(res2)) {
34709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34710 }
34711 if (!argp2) {
34712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34713 }
34714 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34715 {
34716 arg3 = &temp3;
34717 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34718 }
34719 {
34720 PyThreadState* __tstate = wxPyBeginAllowThreads();
34721 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34722 wxPyEndAllowThreads(__tstate);
34723 if (PyErr_Occurred()) SWIG_fail;
34724 }
34725 resultobj = SWIG_Py_Void();
34726 return resultobj;
34727 fail:
34728 return NULL;
34729 }
34730
34731
34732 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34733 PyObject *resultobj = 0;
34734 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34735 wxTreeItemId *arg2 = 0 ;
34736 wxColour *arg3 = 0 ;
34737 void *argp1 = 0 ;
34738 int res1 = 0 ;
34739 void *argp2 = 0 ;
34740 int res2 = 0 ;
34741 wxColour temp3 ;
34742 PyObject * obj0 = 0 ;
34743 PyObject * obj1 = 0 ;
34744 PyObject * obj2 = 0 ;
34745 char * kwnames[] = {
34746 (char *) "self",(char *) "item",(char *) "col", NULL
34747 };
34748
34749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34751 if (!SWIG_IsOK(res1)) {
34752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34753 }
34754 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34755 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34756 if (!SWIG_IsOK(res2)) {
34757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34758 }
34759 if (!argp2) {
34760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34761 }
34762 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34763 {
34764 arg3 = &temp3;
34765 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34766 }
34767 {
34768 PyThreadState* __tstate = wxPyBeginAllowThreads();
34769 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34770 wxPyEndAllowThreads(__tstate);
34771 if (PyErr_Occurred()) SWIG_fail;
34772 }
34773 resultobj = SWIG_Py_Void();
34774 return resultobj;
34775 fail:
34776 return NULL;
34777 }
34778
34779
34780 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34781 PyObject *resultobj = 0;
34782 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34783 wxTreeItemId *arg2 = 0 ;
34784 wxFont *arg3 = 0 ;
34785 void *argp1 = 0 ;
34786 int res1 = 0 ;
34787 void *argp2 = 0 ;
34788 int res2 = 0 ;
34789 void *argp3 = 0 ;
34790 int res3 = 0 ;
34791 PyObject * obj0 = 0 ;
34792 PyObject * obj1 = 0 ;
34793 PyObject * obj2 = 0 ;
34794 char * kwnames[] = {
34795 (char *) "self",(char *) "item",(char *) "font", NULL
34796 };
34797
34798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34800 if (!SWIG_IsOK(res1)) {
34801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34802 }
34803 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34804 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34805 if (!SWIG_IsOK(res2)) {
34806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34807 }
34808 if (!argp2) {
34809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34810 }
34811 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34812 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34813 if (!SWIG_IsOK(res3)) {
34814 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34815 }
34816 if (!argp3) {
34817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34818 }
34819 arg3 = reinterpret_cast< wxFont * >(argp3);
34820 {
34821 PyThreadState* __tstate = wxPyBeginAllowThreads();
34822 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34823 wxPyEndAllowThreads(__tstate);
34824 if (PyErr_Occurred()) SWIG_fail;
34825 }
34826 resultobj = SWIG_Py_Void();
34827 return resultobj;
34828 fail:
34829 return NULL;
34830 }
34831
34832
34833 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34834 PyObject *resultobj = 0;
34835 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34836 wxTreeItemId *arg2 = 0 ;
34837 bool result;
34838 void *argp1 = 0 ;
34839 int res1 = 0 ;
34840 void *argp2 = 0 ;
34841 int res2 = 0 ;
34842 PyObject * obj0 = 0 ;
34843 PyObject * obj1 = 0 ;
34844 char * kwnames[] = {
34845 (char *) "self",(char *) "item", NULL
34846 };
34847
34848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34850 if (!SWIG_IsOK(res1)) {
34851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34852 }
34853 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34854 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34855 if (!SWIG_IsOK(res2)) {
34856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34857 }
34858 if (!argp2) {
34859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34860 }
34861 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34862 {
34863 PyThreadState* __tstate = wxPyBeginAllowThreads();
34864 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34865 wxPyEndAllowThreads(__tstate);
34866 if (PyErr_Occurred()) SWIG_fail;
34867 }
34868 {
34869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34870 }
34871 return resultobj;
34872 fail:
34873 return NULL;
34874 }
34875
34876
34877 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34878 PyObject *resultobj = 0;
34879 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34880 wxTreeItemId *arg2 = 0 ;
34881 bool result;
34882 void *argp1 = 0 ;
34883 int res1 = 0 ;
34884 void *argp2 = 0 ;
34885 int res2 = 0 ;
34886 PyObject * obj0 = 0 ;
34887 PyObject * obj1 = 0 ;
34888 char * kwnames[] = {
34889 (char *) "self",(char *) "item", NULL
34890 };
34891
34892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
34893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34894 if (!SWIG_IsOK(res1)) {
34895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34896 }
34897 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34898 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34899 if (!SWIG_IsOK(res2)) {
34900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34901 }
34902 if (!argp2) {
34903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34904 }
34905 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34906 {
34907 PyThreadState* __tstate = wxPyBeginAllowThreads();
34908 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
34909 wxPyEndAllowThreads(__tstate);
34910 if (PyErr_Occurred()) SWIG_fail;
34911 }
34912 {
34913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34914 }
34915 return resultobj;
34916 fail:
34917 return NULL;
34918 }
34919
34920
34921 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34922 PyObject *resultobj = 0;
34923 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34924 wxTreeItemId *arg2 = 0 ;
34925 bool result;
34926 void *argp1 = 0 ;
34927 int res1 = 0 ;
34928 void *argp2 = 0 ;
34929 int res2 = 0 ;
34930 PyObject * obj0 = 0 ;
34931 PyObject * obj1 = 0 ;
34932 char * kwnames[] = {
34933 (char *) "self",(char *) "item", NULL
34934 };
34935
34936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
34937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34938 if (!SWIG_IsOK(res1)) {
34939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34940 }
34941 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34942 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34943 if (!SWIG_IsOK(res2)) {
34944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34945 }
34946 if (!argp2) {
34947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34948 }
34949 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34950 {
34951 PyThreadState* __tstate = wxPyBeginAllowThreads();
34952 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
34953 wxPyEndAllowThreads(__tstate);
34954 if (PyErr_Occurred()) SWIG_fail;
34955 }
34956 {
34957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34958 }
34959 return resultobj;
34960 fail:
34961 return NULL;
34962 }
34963
34964
34965 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34966 PyObject *resultobj = 0;
34967 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34968 wxTreeItemId *arg2 = 0 ;
34969 bool result;
34970 void *argp1 = 0 ;
34971 int res1 = 0 ;
34972 void *argp2 = 0 ;
34973 int res2 = 0 ;
34974 PyObject * obj0 = 0 ;
34975 PyObject * obj1 = 0 ;
34976 char * kwnames[] = {
34977 (char *) "self",(char *) "item", NULL
34978 };
34979
34980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
34981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34982 if (!SWIG_IsOK(res1)) {
34983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34984 }
34985 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34986 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34987 if (!SWIG_IsOK(res2)) {
34988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34989 }
34990 if (!argp2) {
34991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34992 }
34993 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34994 {
34995 PyThreadState* __tstate = wxPyBeginAllowThreads();
34996 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
34997 wxPyEndAllowThreads(__tstate);
34998 if (PyErr_Occurred()) SWIG_fail;
34999 }
35000 {
35001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35002 }
35003 return resultobj;
35004 fail:
35005 return NULL;
35006 }
35007
35008
35009 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35010 PyObject *resultobj = 0;
35011 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35012 wxTreeItemId *arg2 = 0 ;
35013 bool result;
35014 void *argp1 = 0 ;
35015 int res1 = 0 ;
35016 void *argp2 = 0 ;
35017 int res2 = 0 ;
35018 PyObject * obj0 = 0 ;
35019 PyObject * obj1 = 0 ;
35020 char * kwnames[] = {
35021 (char *) "self",(char *) "item", NULL
35022 };
35023
35024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35026 if (!SWIG_IsOK(res1)) {
35027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35028 }
35029 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35030 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35031 if (!SWIG_IsOK(res2)) {
35032 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35033 }
35034 if (!argp2) {
35035 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35036 }
35037 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35038 {
35039 PyThreadState* __tstate = wxPyBeginAllowThreads();
35040 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35041 wxPyEndAllowThreads(__tstate);
35042 if (PyErr_Occurred()) SWIG_fail;
35043 }
35044 {
35045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35046 }
35047 return resultobj;
35048 fail:
35049 return NULL;
35050 }
35051
35052
35053 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35054 PyObject *resultobj = 0;
35055 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35056 wxTreeItemId *arg2 = 0 ;
35057 bool arg3 = (bool) true ;
35058 size_t result;
35059 void *argp1 = 0 ;
35060 int res1 = 0 ;
35061 void *argp2 = 0 ;
35062 int res2 = 0 ;
35063 bool val3 ;
35064 int ecode3 = 0 ;
35065 PyObject * obj0 = 0 ;
35066 PyObject * obj1 = 0 ;
35067 PyObject * obj2 = 0 ;
35068 char * kwnames[] = {
35069 (char *) "self",(char *) "item",(char *) "recursively", NULL
35070 };
35071
35072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35074 if (!SWIG_IsOK(res1)) {
35075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35076 }
35077 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35078 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35079 if (!SWIG_IsOK(res2)) {
35080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35081 }
35082 if (!argp2) {
35083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35084 }
35085 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35086 if (obj2) {
35087 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35088 if (!SWIG_IsOK(ecode3)) {
35089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35090 }
35091 arg3 = static_cast< bool >(val3);
35092 }
35093 {
35094 PyThreadState* __tstate = wxPyBeginAllowThreads();
35095 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35096 wxPyEndAllowThreads(__tstate);
35097 if (PyErr_Occurred()) SWIG_fail;
35098 }
35099 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35100 return resultobj;
35101 fail:
35102 return NULL;
35103 }
35104
35105
35106 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35107 PyObject *resultobj = 0;
35108 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35109 wxTreeItemId result;
35110 void *argp1 = 0 ;
35111 int res1 = 0 ;
35112 PyObject *swig_obj[1] ;
35113
35114 if (!args) SWIG_fail;
35115 swig_obj[0] = args;
35116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35117 if (!SWIG_IsOK(res1)) {
35118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35119 }
35120 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35121 {
35122 PyThreadState* __tstate = wxPyBeginAllowThreads();
35123 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35124 wxPyEndAllowThreads(__tstate);
35125 if (PyErr_Occurred()) SWIG_fail;
35126 }
35127 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35128 return resultobj;
35129 fail:
35130 return NULL;
35131 }
35132
35133
35134 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35135 PyObject *resultobj = 0;
35136 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35137 wxTreeItemId result;
35138 void *argp1 = 0 ;
35139 int res1 = 0 ;
35140 PyObject *swig_obj[1] ;
35141
35142 if (!args) SWIG_fail;
35143 swig_obj[0] = args;
35144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35145 if (!SWIG_IsOK(res1)) {
35146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35147 }
35148 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35149 {
35150 PyThreadState* __tstate = wxPyBeginAllowThreads();
35151 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35152 wxPyEndAllowThreads(__tstate);
35153 if (PyErr_Occurred()) SWIG_fail;
35154 }
35155 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35156 return resultobj;
35157 fail:
35158 return NULL;
35159 }
35160
35161
35162 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35163 PyObject *resultobj = 0;
35164 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35165 PyObject *result = 0 ;
35166 void *argp1 = 0 ;
35167 int res1 = 0 ;
35168 PyObject *swig_obj[1] ;
35169
35170 if (!args) SWIG_fail;
35171 swig_obj[0] = args;
35172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35173 if (!SWIG_IsOK(res1)) {
35174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35175 }
35176 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35177 {
35178 PyThreadState* __tstate = wxPyBeginAllowThreads();
35179 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35180 wxPyEndAllowThreads(__tstate);
35181 if (PyErr_Occurred()) SWIG_fail;
35182 }
35183 resultobj = result;
35184 return resultobj;
35185 fail:
35186 return NULL;
35187 }
35188
35189
35190 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35191 PyObject *resultobj = 0;
35192 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35193 wxTreeItemId *arg2 = 0 ;
35194 wxTreeItemId result;
35195 void *argp1 = 0 ;
35196 int res1 = 0 ;
35197 void *argp2 = 0 ;
35198 int res2 = 0 ;
35199 PyObject * obj0 = 0 ;
35200 PyObject * obj1 = 0 ;
35201 char * kwnames[] = {
35202 (char *) "self",(char *) "item", NULL
35203 };
35204
35205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35207 if (!SWIG_IsOK(res1)) {
35208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35209 }
35210 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35211 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35212 if (!SWIG_IsOK(res2)) {
35213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35214 }
35215 if (!argp2) {
35216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35217 }
35218 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35219 {
35220 PyThreadState* __tstate = wxPyBeginAllowThreads();
35221 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35222 wxPyEndAllowThreads(__tstate);
35223 if (PyErr_Occurred()) SWIG_fail;
35224 }
35225 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35226 return resultobj;
35227 fail:
35228 return NULL;
35229 }
35230
35231
35232 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35233 PyObject *resultobj = 0;
35234 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35235 wxTreeItemId *arg2 = 0 ;
35236 PyObject *result = 0 ;
35237 void *argp1 = 0 ;
35238 int res1 = 0 ;
35239 void *argp2 = 0 ;
35240 int res2 = 0 ;
35241 PyObject * obj0 = 0 ;
35242 PyObject * obj1 = 0 ;
35243 char * kwnames[] = {
35244 (char *) "self",(char *) "item", NULL
35245 };
35246
35247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35249 if (!SWIG_IsOK(res1)) {
35250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35251 }
35252 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35253 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35254 if (!SWIG_IsOK(res2)) {
35255 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35256 }
35257 if (!argp2) {
35258 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35259 }
35260 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35261 {
35262 PyThreadState* __tstate = wxPyBeginAllowThreads();
35263 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35264 wxPyEndAllowThreads(__tstate);
35265 if (PyErr_Occurred()) SWIG_fail;
35266 }
35267 resultobj = result;
35268 return resultobj;
35269 fail:
35270 return NULL;
35271 }
35272
35273
35274 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35275 PyObject *resultobj = 0;
35276 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35277 wxTreeItemId *arg2 = 0 ;
35278 void *arg3 = (void *) 0 ;
35279 PyObject *result = 0 ;
35280 void *argp1 = 0 ;
35281 int res1 = 0 ;
35282 void *argp2 = 0 ;
35283 int res2 = 0 ;
35284 int res3 ;
35285 PyObject * obj0 = 0 ;
35286 PyObject * obj1 = 0 ;
35287 PyObject * obj2 = 0 ;
35288 char * kwnames[] = {
35289 (char *) "self",(char *) "item",(char *) "cookie", NULL
35290 };
35291
35292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35294 if (!SWIG_IsOK(res1)) {
35295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35296 }
35297 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35299 if (!SWIG_IsOK(res2)) {
35300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35301 }
35302 if (!argp2) {
35303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35304 }
35305 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35306 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35307 if (!SWIG_IsOK(res3)) {
35308 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35309 }
35310 {
35311 PyThreadState* __tstate = wxPyBeginAllowThreads();
35312 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35313 wxPyEndAllowThreads(__tstate);
35314 if (PyErr_Occurred()) SWIG_fail;
35315 }
35316 resultobj = result;
35317 return resultobj;
35318 fail:
35319 return NULL;
35320 }
35321
35322
35323 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35324 PyObject *resultobj = 0;
35325 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35326 wxTreeItemId *arg2 = 0 ;
35327 wxTreeItemId result;
35328 void *argp1 = 0 ;
35329 int res1 = 0 ;
35330 void *argp2 = 0 ;
35331 int res2 = 0 ;
35332 PyObject * obj0 = 0 ;
35333 PyObject * obj1 = 0 ;
35334 char * kwnames[] = {
35335 (char *) "self",(char *) "item", NULL
35336 };
35337
35338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35340 if (!SWIG_IsOK(res1)) {
35341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35342 }
35343 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35344 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35345 if (!SWIG_IsOK(res2)) {
35346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35347 }
35348 if (!argp2) {
35349 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35350 }
35351 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35352 {
35353 PyThreadState* __tstate = wxPyBeginAllowThreads();
35354 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35355 wxPyEndAllowThreads(__tstate);
35356 if (PyErr_Occurred()) SWIG_fail;
35357 }
35358 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35359 return resultobj;
35360 fail:
35361 return NULL;
35362 }
35363
35364
35365 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35366 PyObject *resultobj = 0;
35367 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35368 wxTreeItemId *arg2 = 0 ;
35369 wxTreeItemId result;
35370 void *argp1 = 0 ;
35371 int res1 = 0 ;
35372 void *argp2 = 0 ;
35373 int res2 = 0 ;
35374 PyObject * obj0 = 0 ;
35375 PyObject * obj1 = 0 ;
35376 char * kwnames[] = {
35377 (char *) "self",(char *) "item", NULL
35378 };
35379
35380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35382 if (!SWIG_IsOK(res1)) {
35383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35384 }
35385 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35386 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35387 if (!SWIG_IsOK(res2)) {
35388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35389 }
35390 if (!argp2) {
35391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35392 }
35393 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35394 {
35395 PyThreadState* __tstate = wxPyBeginAllowThreads();
35396 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35397 wxPyEndAllowThreads(__tstate);
35398 if (PyErr_Occurred()) SWIG_fail;
35399 }
35400 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35401 return resultobj;
35402 fail:
35403 return NULL;
35404 }
35405
35406
35407 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35408 PyObject *resultobj = 0;
35409 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35410 wxTreeItemId *arg2 = 0 ;
35411 wxTreeItemId result;
35412 void *argp1 = 0 ;
35413 int res1 = 0 ;
35414 void *argp2 = 0 ;
35415 int res2 = 0 ;
35416 PyObject * obj0 = 0 ;
35417 PyObject * obj1 = 0 ;
35418 char * kwnames[] = {
35419 (char *) "self",(char *) "item", NULL
35420 };
35421
35422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35424 if (!SWIG_IsOK(res1)) {
35425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35426 }
35427 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35428 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35429 if (!SWIG_IsOK(res2)) {
35430 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35431 }
35432 if (!argp2) {
35433 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35434 }
35435 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35436 {
35437 PyThreadState* __tstate = wxPyBeginAllowThreads();
35438 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35439 wxPyEndAllowThreads(__tstate);
35440 if (PyErr_Occurred()) SWIG_fail;
35441 }
35442 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35443 return resultobj;
35444 fail:
35445 return NULL;
35446 }
35447
35448
35449 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35450 PyObject *resultobj = 0;
35451 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35452 wxTreeItemId result;
35453 void *argp1 = 0 ;
35454 int res1 = 0 ;
35455 PyObject *swig_obj[1] ;
35456
35457 if (!args) SWIG_fail;
35458 swig_obj[0] = args;
35459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35460 if (!SWIG_IsOK(res1)) {
35461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35462 }
35463 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35464 {
35465 PyThreadState* __tstate = wxPyBeginAllowThreads();
35466 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35467 wxPyEndAllowThreads(__tstate);
35468 if (PyErr_Occurred()) SWIG_fail;
35469 }
35470 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35471 return resultobj;
35472 fail:
35473 return NULL;
35474 }
35475
35476
35477 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35478 PyObject *resultobj = 0;
35479 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35480 wxTreeItemId *arg2 = 0 ;
35481 wxTreeItemId result;
35482 void *argp1 = 0 ;
35483 int res1 = 0 ;
35484 void *argp2 = 0 ;
35485 int res2 = 0 ;
35486 PyObject * obj0 = 0 ;
35487 PyObject * obj1 = 0 ;
35488 char * kwnames[] = {
35489 (char *) "self",(char *) "item", NULL
35490 };
35491
35492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35494 if (!SWIG_IsOK(res1)) {
35495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35496 }
35497 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35498 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35499 if (!SWIG_IsOK(res2)) {
35500 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35501 }
35502 if (!argp2) {
35503 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35504 }
35505 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35506 {
35507 PyThreadState* __tstate = wxPyBeginAllowThreads();
35508 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35509 wxPyEndAllowThreads(__tstate);
35510 if (PyErr_Occurred()) SWIG_fail;
35511 }
35512 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35513 return resultobj;
35514 fail:
35515 return NULL;
35516 }
35517
35518
35519 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35520 PyObject *resultobj = 0;
35521 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35522 wxTreeItemId *arg2 = 0 ;
35523 wxTreeItemId result;
35524 void *argp1 = 0 ;
35525 int res1 = 0 ;
35526 void *argp2 = 0 ;
35527 int res2 = 0 ;
35528 PyObject * obj0 = 0 ;
35529 PyObject * obj1 = 0 ;
35530 char * kwnames[] = {
35531 (char *) "self",(char *) "item", NULL
35532 };
35533
35534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35536 if (!SWIG_IsOK(res1)) {
35537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35538 }
35539 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35540 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35541 if (!SWIG_IsOK(res2)) {
35542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35543 }
35544 if (!argp2) {
35545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35546 }
35547 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35548 {
35549 PyThreadState* __tstate = wxPyBeginAllowThreads();
35550 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35551 wxPyEndAllowThreads(__tstate);
35552 if (PyErr_Occurred()) SWIG_fail;
35553 }
35554 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35555 return resultobj;
35556 fail:
35557 return NULL;
35558 }
35559
35560
35561 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35562 PyObject *resultobj = 0;
35563 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35564 wxString *arg2 = 0 ;
35565 int arg3 = (int) -1 ;
35566 int arg4 = (int) -1 ;
35567 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35568 wxTreeItemId result;
35569 void *argp1 = 0 ;
35570 int res1 = 0 ;
35571 bool temp2 = false ;
35572 int val3 ;
35573 int ecode3 = 0 ;
35574 int val4 ;
35575 int ecode4 = 0 ;
35576 int res5 = 0 ;
35577 PyObject * obj0 = 0 ;
35578 PyObject * obj1 = 0 ;
35579 PyObject * obj2 = 0 ;
35580 PyObject * obj3 = 0 ;
35581 PyObject * obj4 = 0 ;
35582 char * kwnames[] = {
35583 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35584 };
35585
35586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35588 if (!SWIG_IsOK(res1)) {
35589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35590 }
35591 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35592 {
35593 arg2 = wxString_in_helper(obj1);
35594 if (arg2 == NULL) SWIG_fail;
35595 temp2 = true;
35596 }
35597 if (obj2) {
35598 ecode3 = SWIG_AsVal_int(obj2, &val3);
35599 if (!SWIG_IsOK(ecode3)) {
35600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35601 }
35602 arg3 = static_cast< int >(val3);
35603 }
35604 if (obj3) {
35605 ecode4 = SWIG_AsVal_int(obj3, &val4);
35606 if (!SWIG_IsOK(ecode4)) {
35607 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35608 }
35609 arg4 = static_cast< int >(val4);
35610 }
35611 if (obj4) {
35612 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35613 if (!SWIG_IsOK(res5)) {
35614 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35615 }
35616 }
35617 {
35618 PyThreadState* __tstate = wxPyBeginAllowThreads();
35619 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35620 wxPyEndAllowThreads(__tstate);
35621 if (PyErr_Occurred()) SWIG_fail;
35622 }
35623 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35624 {
35625 if (temp2)
35626 delete arg2;
35627 }
35628 return resultobj;
35629 fail:
35630 {
35631 if (temp2)
35632 delete arg2;
35633 }
35634 return NULL;
35635 }
35636
35637
35638 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35639 PyObject *resultobj = 0;
35640 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35641 wxTreeItemId *arg2 = 0 ;
35642 wxString *arg3 = 0 ;
35643 int arg4 = (int) -1 ;
35644 int arg5 = (int) -1 ;
35645 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35646 wxTreeItemId result;
35647 void *argp1 = 0 ;
35648 int res1 = 0 ;
35649 void *argp2 = 0 ;
35650 int res2 = 0 ;
35651 bool temp3 = false ;
35652 int val4 ;
35653 int ecode4 = 0 ;
35654 int val5 ;
35655 int ecode5 = 0 ;
35656 int res6 = 0 ;
35657 PyObject * obj0 = 0 ;
35658 PyObject * obj1 = 0 ;
35659 PyObject * obj2 = 0 ;
35660 PyObject * obj3 = 0 ;
35661 PyObject * obj4 = 0 ;
35662 PyObject * obj5 = 0 ;
35663 char * kwnames[] = {
35664 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35665 };
35666
35667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35669 if (!SWIG_IsOK(res1)) {
35670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35671 }
35672 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35673 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35674 if (!SWIG_IsOK(res2)) {
35675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35676 }
35677 if (!argp2) {
35678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35679 }
35680 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35681 {
35682 arg3 = wxString_in_helper(obj2);
35683 if (arg3 == NULL) SWIG_fail;
35684 temp3 = true;
35685 }
35686 if (obj3) {
35687 ecode4 = SWIG_AsVal_int(obj3, &val4);
35688 if (!SWIG_IsOK(ecode4)) {
35689 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35690 }
35691 arg4 = static_cast< int >(val4);
35692 }
35693 if (obj4) {
35694 ecode5 = SWIG_AsVal_int(obj4, &val5);
35695 if (!SWIG_IsOK(ecode5)) {
35696 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35697 }
35698 arg5 = static_cast< int >(val5);
35699 }
35700 if (obj5) {
35701 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35702 if (!SWIG_IsOK(res6)) {
35703 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35704 }
35705 }
35706 {
35707 PyThreadState* __tstate = wxPyBeginAllowThreads();
35708 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35709 wxPyEndAllowThreads(__tstate);
35710 if (PyErr_Occurred()) SWIG_fail;
35711 }
35712 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35713 {
35714 if (temp3)
35715 delete arg3;
35716 }
35717 return resultobj;
35718 fail:
35719 {
35720 if (temp3)
35721 delete arg3;
35722 }
35723 return NULL;
35724 }
35725
35726
35727 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35728 PyObject *resultobj = 0;
35729 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35730 wxTreeItemId *arg2 = 0 ;
35731 wxTreeItemId *arg3 = 0 ;
35732 wxString *arg4 = 0 ;
35733 int arg5 = (int) -1 ;
35734 int arg6 = (int) -1 ;
35735 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35736 wxTreeItemId result;
35737 void *argp1 = 0 ;
35738 int res1 = 0 ;
35739 void *argp2 = 0 ;
35740 int res2 = 0 ;
35741 void *argp3 = 0 ;
35742 int res3 = 0 ;
35743 bool temp4 = false ;
35744 int val5 ;
35745 int ecode5 = 0 ;
35746 int val6 ;
35747 int ecode6 = 0 ;
35748 int res7 = 0 ;
35749 PyObject * obj0 = 0 ;
35750 PyObject * obj1 = 0 ;
35751 PyObject * obj2 = 0 ;
35752 PyObject * obj3 = 0 ;
35753 PyObject * obj4 = 0 ;
35754 PyObject * obj5 = 0 ;
35755 PyObject * obj6 = 0 ;
35756 char * kwnames[] = {
35757 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35758 };
35759
35760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35762 if (!SWIG_IsOK(res1)) {
35763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35764 }
35765 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35766 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35767 if (!SWIG_IsOK(res2)) {
35768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35769 }
35770 if (!argp2) {
35771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35772 }
35773 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35774 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35775 if (!SWIG_IsOK(res3)) {
35776 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35777 }
35778 if (!argp3) {
35779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35780 }
35781 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35782 {
35783 arg4 = wxString_in_helper(obj3);
35784 if (arg4 == NULL) SWIG_fail;
35785 temp4 = true;
35786 }
35787 if (obj4) {
35788 ecode5 = SWIG_AsVal_int(obj4, &val5);
35789 if (!SWIG_IsOK(ecode5)) {
35790 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35791 }
35792 arg5 = static_cast< int >(val5);
35793 }
35794 if (obj5) {
35795 ecode6 = SWIG_AsVal_int(obj5, &val6);
35796 if (!SWIG_IsOK(ecode6)) {
35797 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35798 }
35799 arg6 = static_cast< int >(val6);
35800 }
35801 if (obj6) {
35802 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35803 if (!SWIG_IsOK(res7)) {
35804 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35805 }
35806 }
35807 {
35808 PyThreadState* __tstate = wxPyBeginAllowThreads();
35809 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35810 wxPyEndAllowThreads(__tstate);
35811 if (PyErr_Occurred()) SWIG_fail;
35812 }
35813 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35814 {
35815 if (temp4)
35816 delete arg4;
35817 }
35818 return resultobj;
35819 fail:
35820 {
35821 if (temp4)
35822 delete arg4;
35823 }
35824 return NULL;
35825 }
35826
35827
35828 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35829 PyObject *resultobj = 0;
35830 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35831 wxTreeItemId *arg2 = 0 ;
35832 size_t arg3 ;
35833 wxString *arg4 = 0 ;
35834 int arg5 = (int) -1 ;
35835 int arg6 = (int) -1 ;
35836 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35837 wxTreeItemId result;
35838 void *argp1 = 0 ;
35839 int res1 = 0 ;
35840 void *argp2 = 0 ;
35841 int res2 = 0 ;
35842 size_t val3 ;
35843 int ecode3 = 0 ;
35844 bool temp4 = false ;
35845 int val5 ;
35846 int ecode5 = 0 ;
35847 int val6 ;
35848 int ecode6 = 0 ;
35849 int res7 = 0 ;
35850 PyObject * obj0 = 0 ;
35851 PyObject * obj1 = 0 ;
35852 PyObject * obj2 = 0 ;
35853 PyObject * obj3 = 0 ;
35854 PyObject * obj4 = 0 ;
35855 PyObject * obj5 = 0 ;
35856 PyObject * obj6 = 0 ;
35857 char * kwnames[] = {
35858 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35859 };
35860
35861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35863 if (!SWIG_IsOK(res1)) {
35864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35865 }
35866 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35867 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35868 if (!SWIG_IsOK(res2)) {
35869 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35870 }
35871 if (!argp2) {
35872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35873 }
35874 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35875 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35876 if (!SWIG_IsOK(ecode3)) {
35877 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35878 }
35879 arg3 = static_cast< size_t >(val3);
35880 {
35881 arg4 = wxString_in_helper(obj3);
35882 if (arg4 == NULL) SWIG_fail;
35883 temp4 = true;
35884 }
35885 if (obj4) {
35886 ecode5 = SWIG_AsVal_int(obj4, &val5);
35887 if (!SWIG_IsOK(ecode5)) {
35888 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
35889 }
35890 arg5 = static_cast< int >(val5);
35891 }
35892 if (obj5) {
35893 ecode6 = SWIG_AsVal_int(obj5, &val6);
35894 if (!SWIG_IsOK(ecode6)) {
35895 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
35896 }
35897 arg6 = static_cast< int >(val6);
35898 }
35899 if (obj6) {
35900 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35901 if (!SWIG_IsOK(res7)) {
35902 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35903 }
35904 }
35905 {
35906 PyThreadState* __tstate = wxPyBeginAllowThreads();
35907 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35908 wxPyEndAllowThreads(__tstate);
35909 if (PyErr_Occurred()) SWIG_fail;
35910 }
35911 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35912 {
35913 if (temp4)
35914 delete arg4;
35915 }
35916 return resultobj;
35917 fail:
35918 {
35919 if (temp4)
35920 delete arg4;
35921 }
35922 return NULL;
35923 }
35924
35925
35926 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35927 PyObject *resultobj = 0;
35928 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35929 wxTreeItemId *arg2 = 0 ;
35930 wxString *arg3 = 0 ;
35931 int arg4 = (int) -1 ;
35932 int arg5 = (int) -1 ;
35933 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35934 wxTreeItemId result;
35935 void *argp1 = 0 ;
35936 int res1 = 0 ;
35937 void *argp2 = 0 ;
35938 int res2 = 0 ;
35939 bool temp3 = false ;
35940 int val4 ;
35941 int ecode4 = 0 ;
35942 int val5 ;
35943 int ecode5 = 0 ;
35944 int res6 = 0 ;
35945 PyObject * obj0 = 0 ;
35946 PyObject * obj1 = 0 ;
35947 PyObject * obj2 = 0 ;
35948 PyObject * obj3 = 0 ;
35949 PyObject * obj4 = 0 ;
35950 PyObject * obj5 = 0 ;
35951 char * kwnames[] = {
35952 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35953 };
35954
35955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35957 if (!SWIG_IsOK(res1)) {
35958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35959 }
35960 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35961 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35962 if (!SWIG_IsOK(res2)) {
35963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35964 }
35965 if (!argp2) {
35966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35967 }
35968 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35969 {
35970 arg3 = wxString_in_helper(obj2);
35971 if (arg3 == NULL) SWIG_fail;
35972 temp3 = true;
35973 }
35974 if (obj3) {
35975 ecode4 = SWIG_AsVal_int(obj3, &val4);
35976 if (!SWIG_IsOK(ecode4)) {
35977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
35978 }
35979 arg4 = static_cast< int >(val4);
35980 }
35981 if (obj4) {
35982 ecode5 = SWIG_AsVal_int(obj4, &val5);
35983 if (!SWIG_IsOK(ecode5)) {
35984 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
35985 }
35986 arg5 = static_cast< int >(val5);
35987 }
35988 if (obj5) {
35989 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35990 if (!SWIG_IsOK(res6)) {
35991 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35992 }
35993 }
35994 {
35995 PyThreadState* __tstate = wxPyBeginAllowThreads();
35996 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35997 wxPyEndAllowThreads(__tstate);
35998 if (PyErr_Occurred()) SWIG_fail;
35999 }
36000 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36001 {
36002 if (temp3)
36003 delete arg3;
36004 }
36005 return resultobj;
36006 fail:
36007 {
36008 if (temp3)
36009 delete arg3;
36010 }
36011 return NULL;
36012 }
36013
36014
36015 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36016 PyObject *resultobj = 0;
36017 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36018 wxTreeItemId *arg2 = 0 ;
36019 void *argp1 = 0 ;
36020 int res1 = 0 ;
36021 void *argp2 = 0 ;
36022 int res2 = 0 ;
36023 PyObject * obj0 = 0 ;
36024 PyObject * obj1 = 0 ;
36025 char * kwnames[] = {
36026 (char *) "self",(char *) "item", NULL
36027 };
36028
36029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36031 if (!SWIG_IsOK(res1)) {
36032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36033 }
36034 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36035 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36036 if (!SWIG_IsOK(res2)) {
36037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36038 }
36039 if (!argp2) {
36040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36041 }
36042 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36043 {
36044 PyThreadState* __tstate = wxPyBeginAllowThreads();
36045 (arg1)->Delete((wxTreeItemId const &)*arg2);
36046 wxPyEndAllowThreads(__tstate);
36047 if (PyErr_Occurred()) SWIG_fail;
36048 }
36049 resultobj = SWIG_Py_Void();
36050 return resultobj;
36051 fail:
36052 return NULL;
36053 }
36054
36055
36056 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36057 PyObject *resultobj = 0;
36058 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36059 wxTreeItemId *arg2 = 0 ;
36060 void *argp1 = 0 ;
36061 int res1 = 0 ;
36062 void *argp2 = 0 ;
36063 int res2 = 0 ;
36064 PyObject * obj0 = 0 ;
36065 PyObject * obj1 = 0 ;
36066 char * kwnames[] = {
36067 (char *) "self",(char *) "item", NULL
36068 };
36069
36070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36072 if (!SWIG_IsOK(res1)) {
36073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36074 }
36075 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36076 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36077 if (!SWIG_IsOK(res2)) {
36078 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36079 }
36080 if (!argp2) {
36081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36082 }
36083 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36084 {
36085 PyThreadState* __tstate = wxPyBeginAllowThreads();
36086 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36087 wxPyEndAllowThreads(__tstate);
36088 if (PyErr_Occurred()) SWIG_fail;
36089 }
36090 resultobj = SWIG_Py_Void();
36091 return resultobj;
36092 fail:
36093 return NULL;
36094 }
36095
36096
36097 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36098 PyObject *resultobj = 0;
36099 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36100 void *argp1 = 0 ;
36101 int res1 = 0 ;
36102 PyObject *swig_obj[1] ;
36103
36104 if (!args) SWIG_fail;
36105 swig_obj[0] = args;
36106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36107 if (!SWIG_IsOK(res1)) {
36108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36109 }
36110 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36111 {
36112 PyThreadState* __tstate = wxPyBeginAllowThreads();
36113 (arg1)->DeleteAllItems();
36114 wxPyEndAllowThreads(__tstate);
36115 if (PyErr_Occurred()) SWIG_fail;
36116 }
36117 resultobj = SWIG_Py_Void();
36118 return resultobj;
36119 fail:
36120 return NULL;
36121 }
36122
36123
36124 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36125 PyObject *resultobj = 0;
36126 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36127 wxTreeItemId *arg2 = 0 ;
36128 void *argp1 = 0 ;
36129 int res1 = 0 ;
36130 void *argp2 = 0 ;
36131 int res2 = 0 ;
36132 PyObject * obj0 = 0 ;
36133 PyObject * obj1 = 0 ;
36134 char * kwnames[] = {
36135 (char *) "self",(char *) "item", NULL
36136 };
36137
36138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36140 if (!SWIG_IsOK(res1)) {
36141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36142 }
36143 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36144 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36145 if (!SWIG_IsOK(res2)) {
36146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36147 }
36148 if (!argp2) {
36149 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36150 }
36151 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36152 {
36153 PyThreadState* __tstate = wxPyBeginAllowThreads();
36154 (arg1)->Expand((wxTreeItemId const &)*arg2);
36155 wxPyEndAllowThreads(__tstate);
36156 if (PyErr_Occurred()) SWIG_fail;
36157 }
36158 resultobj = SWIG_Py_Void();
36159 return resultobj;
36160 fail:
36161 return NULL;
36162 }
36163
36164
36165 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36166 PyObject *resultobj = 0;
36167 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36168 wxTreeItemId *arg2 = 0 ;
36169 void *argp1 = 0 ;
36170 int res1 = 0 ;
36171 void *argp2 = 0 ;
36172 int res2 = 0 ;
36173 PyObject * obj0 = 0 ;
36174 PyObject * obj1 = 0 ;
36175 char * kwnames[] = {
36176 (char *) "self",(char *) "item", NULL
36177 };
36178
36179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36181 if (!SWIG_IsOK(res1)) {
36182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36183 }
36184 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36185 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36186 if (!SWIG_IsOK(res2)) {
36187 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36188 }
36189 if (!argp2) {
36190 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36191 }
36192 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36193 {
36194 PyThreadState* __tstate = wxPyBeginAllowThreads();
36195 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36196 wxPyEndAllowThreads(__tstate);
36197 if (PyErr_Occurred()) SWIG_fail;
36198 }
36199 resultobj = SWIG_Py_Void();
36200 return resultobj;
36201 fail:
36202 return NULL;
36203 }
36204
36205
36206 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36207 PyObject *resultobj = 0;
36208 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36209 wxTreeItemId *arg2 = 0 ;
36210 void *argp1 = 0 ;
36211 int res1 = 0 ;
36212 void *argp2 = 0 ;
36213 int res2 = 0 ;
36214 PyObject * obj0 = 0 ;
36215 PyObject * obj1 = 0 ;
36216 char * kwnames[] = {
36217 (char *) "self",(char *) "item", NULL
36218 };
36219
36220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36222 if (!SWIG_IsOK(res1)) {
36223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36224 }
36225 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36226 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36227 if (!SWIG_IsOK(res2)) {
36228 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36229 }
36230 if (!argp2) {
36231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36232 }
36233 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36234 {
36235 PyThreadState* __tstate = wxPyBeginAllowThreads();
36236 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36237 wxPyEndAllowThreads(__tstate);
36238 if (PyErr_Occurred()) SWIG_fail;
36239 }
36240 resultobj = SWIG_Py_Void();
36241 return resultobj;
36242 fail:
36243 return NULL;
36244 }
36245
36246
36247 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36248 PyObject *resultobj = 0;
36249 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36250 wxTreeItemId *arg2 = 0 ;
36251 void *argp1 = 0 ;
36252 int res1 = 0 ;
36253 void *argp2 = 0 ;
36254 int res2 = 0 ;
36255 PyObject * obj0 = 0 ;
36256 PyObject * obj1 = 0 ;
36257 char * kwnames[] = {
36258 (char *) "self",(char *) "item", NULL
36259 };
36260
36261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36263 if (!SWIG_IsOK(res1)) {
36264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36265 }
36266 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36267 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36268 if (!SWIG_IsOK(res2)) {
36269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36270 }
36271 if (!argp2) {
36272 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36273 }
36274 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36275 {
36276 PyThreadState* __tstate = wxPyBeginAllowThreads();
36277 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36278 wxPyEndAllowThreads(__tstate);
36279 if (PyErr_Occurred()) SWIG_fail;
36280 }
36281 resultobj = SWIG_Py_Void();
36282 return resultobj;
36283 fail:
36284 return NULL;
36285 }
36286
36287
36288 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36289 PyObject *resultobj = 0;
36290 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36291 void *argp1 = 0 ;
36292 int res1 = 0 ;
36293 PyObject *swig_obj[1] ;
36294
36295 if (!args) SWIG_fail;
36296 swig_obj[0] = args;
36297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36298 if (!SWIG_IsOK(res1)) {
36299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36300 }
36301 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36302 {
36303 PyThreadState* __tstate = wxPyBeginAllowThreads();
36304 (arg1)->Unselect();
36305 wxPyEndAllowThreads(__tstate);
36306 if (PyErr_Occurred()) SWIG_fail;
36307 }
36308 resultobj = SWIG_Py_Void();
36309 return resultobj;
36310 fail:
36311 return NULL;
36312 }
36313
36314
36315 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36316 PyObject *resultobj = 0;
36317 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36318 wxTreeItemId *arg2 = 0 ;
36319 void *argp1 = 0 ;
36320 int res1 = 0 ;
36321 void *argp2 = 0 ;
36322 int res2 = 0 ;
36323 PyObject * obj0 = 0 ;
36324 PyObject * obj1 = 0 ;
36325 char * kwnames[] = {
36326 (char *) "self",(char *) "item", NULL
36327 };
36328
36329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36331 if (!SWIG_IsOK(res1)) {
36332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36333 }
36334 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36335 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36336 if (!SWIG_IsOK(res2)) {
36337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36338 }
36339 if (!argp2) {
36340 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36341 }
36342 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36343 {
36344 PyThreadState* __tstate = wxPyBeginAllowThreads();
36345 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36346 wxPyEndAllowThreads(__tstate);
36347 if (PyErr_Occurred()) SWIG_fail;
36348 }
36349 resultobj = SWIG_Py_Void();
36350 return resultobj;
36351 fail:
36352 return NULL;
36353 }
36354
36355
36356 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36357 PyObject *resultobj = 0;
36358 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36359 void *argp1 = 0 ;
36360 int res1 = 0 ;
36361 PyObject *swig_obj[1] ;
36362
36363 if (!args) SWIG_fail;
36364 swig_obj[0] = args;
36365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36366 if (!SWIG_IsOK(res1)) {
36367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36368 }
36369 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36370 {
36371 PyThreadState* __tstate = wxPyBeginAllowThreads();
36372 (arg1)->UnselectAll();
36373 wxPyEndAllowThreads(__tstate);
36374 if (PyErr_Occurred()) SWIG_fail;
36375 }
36376 resultobj = SWIG_Py_Void();
36377 return resultobj;
36378 fail:
36379 return NULL;
36380 }
36381
36382
36383 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36384 PyObject *resultobj = 0;
36385 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36386 wxTreeItemId *arg2 = 0 ;
36387 bool arg3 = (bool) true ;
36388 void *argp1 = 0 ;
36389 int res1 = 0 ;
36390 void *argp2 = 0 ;
36391 int res2 = 0 ;
36392 bool val3 ;
36393 int ecode3 = 0 ;
36394 PyObject * obj0 = 0 ;
36395 PyObject * obj1 = 0 ;
36396 PyObject * obj2 = 0 ;
36397 char * kwnames[] = {
36398 (char *) "self",(char *) "item",(char *) "select", NULL
36399 };
36400
36401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36403 if (!SWIG_IsOK(res1)) {
36404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36405 }
36406 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36407 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36408 if (!SWIG_IsOK(res2)) {
36409 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36410 }
36411 if (!argp2) {
36412 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36413 }
36414 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36415 if (obj2) {
36416 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36417 if (!SWIG_IsOK(ecode3)) {
36418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36419 }
36420 arg3 = static_cast< bool >(val3);
36421 }
36422 {
36423 PyThreadState* __tstate = wxPyBeginAllowThreads();
36424 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36425 wxPyEndAllowThreads(__tstate);
36426 if (PyErr_Occurred()) SWIG_fail;
36427 }
36428 resultobj = SWIG_Py_Void();
36429 return resultobj;
36430 fail:
36431 return NULL;
36432 }
36433
36434
36435 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36436 PyObject *resultobj = 0;
36437 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36438 wxTreeItemId *arg2 = 0 ;
36439 void *argp1 = 0 ;
36440 int res1 = 0 ;
36441 void *argp2 = 0 ;
36442 int res2 = 0 ;
36443 PyObject * obj0 = 0 ;
36444 PyObject * obj1 = 0 ;
36445 char * kwnames[] = {
36446 (char *) "self",(char *) "item", NULL
36447 };
36448
36449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36451 if (!SWIG_IsOK(res1)) {
36452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36453 }
36454 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36455 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36456 if (!SWIG_IsOK(res2)) {
36457 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36458 }
36459 if (!argp2) {
36460 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36461 }
36462 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36463 {
36464 PyThreadState* __tstate = wxPyBeginAllowThreads();
36465 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36466 wxPyEndAllowThreads(__tstate);
36467 if (PyErr_Occurred()) SWIG_fail;
36468 }
36469 resultobj = SWIG_Py_Void();
36470 return resultobj;
36471 fail:
36472 return NULL;
36473 }
36474
36475
36476 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36477 PyObject *resultobj = 0;
36478 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36479 wxTreeItemId *arg2 = 0 ;
36480 void *argp1 = 0 ;
36481 int res1 = 0 ;
36482 void *argp2 = 0 ;
36483 int res2 = 0 ;
36484 PyObject * obj0 = 0 ;
36485 PyObject * obj1 = 0 ;
36486 char * kwnames[] = {
36487 (char *) "self",(char *) "item", NULL
36488 };
36489
36490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36492 if (!SWIG_IsOK(res1)) {
36493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36494 }
36495 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36496 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36497 if (!SWIG_IsOK(res2)) {
36498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36499 }
36500 if (!argp2) {
36501 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36502 }
36503 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36504 {
36505 PyThreadState* __tstate = wxPyBeginAllowThreads();
36506 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36507 wxPyEndAllowThreads(__tstate);
36508 if (PyErr_Occurred()) SWIG_fail;
36509 }
36510 resultobj = SWIG_Py_Void();
36511 return resultobj;
36512 fail:
36513 return NULL;
36514 }
36515
36516
36517 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36518 PyObject *resultobj = 0;
36519 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36520 wxTreeItemId *arg2 = 0 ;
36521 void *argp1 = 0 ;
36522 int res1 = 0 ;
36523 void *argp2 = 0 ;
36524 int res2 = 0 ;
36525 PyObject * obj0 = 0 ;
36526 PyObject * obj1 = 0 ;
36527 char * kwnames[] = {
36528 (char *) "self",(char *) "item", NULL
36529 };
36530
36531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36533 if (!SWIG_IsOK(res1)) {
36534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36535 }
36536 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36537 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36538 if (!SWIG_IsOK(res2)) {
36539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36540 }
36541 if (!argp2) {
36542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36543 }
36544 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36545 {
36546 PyThreadState* __tstate = wxPyBeginAllowThreads();
36547 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36548 wxPyEndAllowThreads(__tstate);
36549 if (PyErr_Occurred()) SWIG_fail;
36550 }
36551 resultobj = SWIG_Py_Void();
36552 return resultobj;
36553 fail:
36554 return NULL;
36555 }
36556
36557
36558 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36559 PyObject *resultobj = 0;
36560 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36561 wxTreeItemId *arg2 = 0 ;
36562 void *argp1 = 0 ;
36563 int res1 = 0 ;
36564 void *argp2 = 0 ;
36565 int res2 = 0 ;
36566 PyObject * obj0 = 0 ;
36567 PyObject * obj1 = 0 ;
36568 char * kwnames[] = {
36569 (char *) "self",(char *) "item", NULL
36570 };
36571
36572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36574 if (!SWIG_IsOK(res1)) {
36575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36576 }
36577 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36578 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36579 if (!SWIG_IsOK(res2)) {
36580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36581 }
36582 if (!argp2) {
36583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36584 }
36585 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36586 {
36587 PyThreadState* __tstate = wxPyBeginAllowThreads();
36588 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36589 wxPyEndAllowThreads(__tstate);
36590 if (PyErr_Occurred()) SWIG_fail;
36591 }
36592 resultobj = SWIG_Py_Void();
36593 return resultobj;
36594 fail:
36595 return NULL;
36596 }
36597
36598
36599 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36600 PyObject *resultobj = 0;
36601 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36602 wxTextCtrl *result = 0 ;
36603 void *argp1 = 0 ;
36604 int res1 = 0 ;
36605 PyObject *swig_obj[1] ;
36606
36607 if (!args) SWIG_fail;
36608 swig_obj[0] = args;
36609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36610 if (!SWIG_IsOK(res1)) {
36611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36612 }
36613 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36614 {
36615 PyThreadState* __tstate = wxPyBeginAllowThreads();
36616 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36617 wxPyEndAllowThreads(__tstate);
36618 if (PyErr_Occurred()) SWIG_fail;
36619 }
36620 {
36621 resultobj = wxPyMake_wxObject(result, 0);
36622 }
36623 return resultobj;
36624 fail:
36625 return NULL;
36626 }
36627
36628
36629 SWIGINTERN PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36630 PyObject *resultobj = 0;
36631 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36632 wxTreeItemId *arg2 = 0 ;
36633 bool arg3 = (bool) false ;
36634 void *argp1 = 0 ;
36635 int res1 = 0 ;
36636 void *argp2 = 0 ;
36637 int res2 = 0 ;
36638 bool val3 ;
36639 int ecode3 = 0 ;
36640 PyObject * obj0 = 0 ;
36641 PyObject * obj1 = 0 ;
36642 PyObject * obj2 = 0 ;
36643 char * kwnames[] = {
36644 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
36645 };
36646
36647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36649 if (!SWIG_IsOK(res1)) {
36650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36651 }
36652 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36653 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36654 if (!SWIG_IsOK(res2)) {
36655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36656 }
36657 if (!argp2) {
36658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36659 }
36660 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36661 if (obj2) {
36662 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36663 if (!SWIG_IsOK(ecode3)) {
36664 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "3"" of type '" "bool""'");
36665 }
36666 arg3 = static_cast< bool >(val3);
36667 }
36668 {
36669 PyThreadState* __tstate = wxPyBeginAllowThreads();
36670 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
36671 wxPyEndAllowThreads(__tstate);
36672 if (PyErr_Occurred()) SWIG_fail;
36673 }
36674 resultobj = SWIG_Py_Void();
36675 return resultobj;
36676 fail:
36677 return NULL;
36678 }
36679
36680
36681 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36682 PyObject *resultobj = 0;
36683 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36684 wxTreeItemId *arg2 = 0 ;
36685 void *argp1 = 0 ;
36686 int res1 = 0 ;
36687 void *argp2 = 0 ;
36688 int res2 = 0 ;
36689 PyObject * obj0 = 0 ;
36690 PyObject * obj1 = 0 ;
36691 char * kwnames[] = {
36692 (char *) "self",(char *) "item", NULL
36693 };
36694
36695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36697 if (!SWIG_IsOK(res1)) {
36698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36699 }
36700 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36701 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36702 if (!SWIG_IsOK(res2)) {
36703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36704 }
36705 if (!argp2) {
36706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36707 }
36708 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36709 {
36710 PyThreadState* __tstate = wxPyBeginAllowThreads();
36711 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36712 wxPyEndAllowThreads(__tstate);
36713 if (PyErr_Occurred()) SWIG_fail;
36714 }
36715 resultobj = SWIG_Py_Void();
36716 return resultobj;
36717 fail:
36718 return NULL;
36719 }
36720
36721
36722 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36723 PyObject *resultobj = 0;
36724 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36725 wxPoint *arg2 = 0 ;
36726 int *arg3 = 0 ;
36727 wxTreeItemId result;
36728 void *argp1 = 0 ;
36729 int res1 = 0 ;
36730 wxPoint temp2 ;
36731 int temp3 ;
36732 int res3 = SWIG_TMPOBJ ;
36733 PyObject * obj0 = 0 ;
36734 PyObject * obj1 = 0 ;
36735 char * kwnames[] = {
36736 (char *) "self",(char *) "point", NULL
36737 };
36738
36739 arg3 = &temp3;
36740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36742 if (!SWIG_IsOK(res1)) {
36743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36744 }
36745 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36746 {
36747 arg2 = &temp2;
36748 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36749 }
36750 {
36751 PyThreadState* __tstate = wxPyBeginAllowThreads();
36752 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36753 wxPyEndAllowThreads(__tstate);
36754 if (PyErr_Occurred()) SWIG_fail;
36755 }
36756 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36757 if (SWIG_IsTmpObj(res3)) {
36758 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36759 } else {
36760 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36761 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36762 }
36763 return resultobj;
36764 fail:
36765 return NULL;
36766 }
36767
36768
36769 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36770 PyObject *resultobj = 0;
36771 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36772 wxTreeItemId *arg2 = 0 ;
36773 bool arg3 = (bool) false ;
36774 PyObject *result = 0 ;
36775 void *argp1 = 0 ;
36776 int res1 = 0 ;
36777 void *argp2 = 0 ;
36778 int res2 = 0 ;
36779 bool val3 ;
36780 int ecode3 = 0 ;
36781 PyObject * obj0 = 0 ;
36782 PyObject * obj1 = 0 ;
36783 PyObject * obj2 = 0 ;
36784 char * kwnames[] = {
36785 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36786 };
36787
36788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36790 if (!SWIG_IsOK(res1)) {
36791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36792 }
36793 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36794 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36795 if (!SWIG_IsOK(res2)) {
36796 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36797 }
36798 if (!argp2) {
36799 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36800 }
36801 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36802 if (obj2) {
36803 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36804 if (!SWIG_IsOK(ecode3)) {
36805 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36806 }
36807 arg3 = static_cast< bool >(val3);
36808 }
36809 {
36810 PyThreadState* __tstate = wxPyBeginAllowThreads();
36811 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36812 wxPyEndAllowThreads(__tstate);
36813 if (PyErr_Occurred()) SWIG_fail;
36814 }
36815 resultobj = result;
36816 return resultobj;
36817 fail:
36818 return NULL;
36819 }
36820
36821
36822 SWIGINTERN PyObject *_wrap_TreeCtrl_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36823 PyObject *resultobj = 0;
36824 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36825 wxTreeItemId *arg2 = 0 ;
36826 int arg3 ;
36827 void *argp1 = 0 ;
36828 int res1 = 0 ;
36829 void *argp2 = 0 ;
36830 int res2 = 0 ;
36831 int val3 ;
36832 int ecode3 = 0 ;
36833 PyObject * obj0 = 0 ;
36834 PyObject * obj1 = 0 ;
36835 PyObject * obj2 = 0 ;
36836 char * kwnames[] = {
36837 (char *) "self",(char *) "node",(char *) "state", NULL
36838 };
36839
36840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36842 if (!SWIG_IsOK(res1)) {
36843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36844 }
36845 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36846 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36847 if (!SWIG_IsOK(res2)) {
36848 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36849 }
36850 if (!argp2) {
36851 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36852 }
36853 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36854 ecode3 = SWIG_AsVal_int(obj2, &val3);
36855 if (!SWIG_IsOK(ecode3)) {
36856 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetState" "', expected argument " "3"" of type '" "int""'");
36857 }
36858 arg3 = static_cast< int >(val3);
36859 {
36860 PyThreadState* __tstate = wxPyBeginAllowThreads();
36861 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
36862 wxPyEndAllowThreads(__tstate);
36863 if (PyErr_Occurred()) SWIG_fail;
36864 }
36865 resultobj = SWIG_Py_Void();
36866 return resultobj;
36867 fail:
36868 return NULL;
36869 }
36870
36871
36872 SWIGINTERN PyObject *_wrap_TreeCtrl_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36873 PyObject *resultobj = 0;
36874 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36875 wxTreeItemId *arg2 = 0 ;
36876 int result;
36877 void *argp1 = 0 ;
36878 int res1 = 0 ;
36879 void *argp2 = 0 ;
36880 int res2 = 0 ;
36881 PyObject * obj0 = 0 ;
36882 PyObject * obj1 = 0 ;
36883 char * kwnames[] = {
36884 (char *) "self",(char *) "node", NULL
36885 };
36886
36887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) SWIG_fail;
36888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36889 if (!SWIG_IsOK(res1)) {
36890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36891 }
36892 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36893 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36894 if (!SWIG_IsOK(res2)) {
36895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36896 }
36897 if (!argp2) {
36898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36899 }
36900 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36901 {
36902 PyThreadState* __tstate = wxPyBeginAllowThreads();
36903 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
36904 wxPyEndAllowThreads(__tstate);
36905 if (PyErr_Occurred()) SWIG_fail;
36906 }
36907 resultobj = SWIG_From_int(static_cast< int >(result));
36908 return resultobj;
36909 fail:
36910 return NULL;
36911 }
36912
36913
36914 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36915 PyObject *resultobj = 0;
36916 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36917 SwigValueWrapper<wxVisualAttributes > result;
36918 int val1 ;
36919 int ecode1 = 0 ;
36920 PyObject * obj0 = 0 ;
36921 char * kwnames[] = {
36922 (char *) "variant", NULL
36923 };
36924
36925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36926 if (obj0) {
36927 ecode1 = SWIG_AsVal_int(obj0, &val1);
36928 if (!SWIG_IsOK(ecode1)) {
36929 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36930 }
36931 arg1 = static_cast< wxWindowVariant >(val1);
36932 }
36933 {
36934 if (!wxPyCheckForApp()) SWIG_fail;
36935 PyThreadState* __tstate = wxPyBeginAllowThreads();
36936 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36937 wxPyEndAllowThreads(__tstate);
36938 if (PyErr_Occurred()) SWIG_fail;
36939 }
36940 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36941 return resultobj;
36942 fail:
36943 return NULL;
36944 }
36945
36946
36947 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36948 PyObject *resultobj = 0;
36949 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36950 bool arg2 ;
36951 void *argp1 = 0 ;
36952 int res1 = 0 ;
36953 bool val2 ;
36954 int ecode2 = 0 ;
36955 PyObject * obj0 = 0 ;
36956 PyObject * obj1 = 0 ;
36957 char * kwnames[] = {
36958 (char *) "self",(char *) "q", NULL
36959 };
36960
36961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
36962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36963 if (!SWIG_IsOK(res1)) {
36964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36965 }
36966 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36967 ecode2 = SWIG_AsVal_bool(obj1, &val2);
36968 if (!SWIG_IsOK(ecode2)) {
36969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
36970 }
36971 arg2 = static_cast< bool >(val2);
36972 {
36973 PyThreadState* __tstate = wxPyBeginAllowThreads();
36974 (arg1)->SetQuickBestSize(arg2);
36975 wxPyEndAllowThreads(__tstate);
36976 if (PyErr_Occurred()) SWIG_fail;
36977 }
36978 resultobj = SWIG_Py_Void();
36979 return resultobj;
36980 fail:
36981 return NULL;
36982 }
36983
36984
36985 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36986 PyObject *resultobj = 0;
36987 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36988 bool result;
36989 void *argp1 = 0 ;
36990 int res1 = 0 ;
36991 PyObject *swig_obj[1] ;
36992
36993 if (!args) SWIG_fail;
36994 swig_obj[0] = args;
36995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36996 if (!SWIG_IsOK(res1)) {
36997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36998 }
36999 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37000 {
37001 PyThreadState* __tstate = wxPyBeginAllowThreads();
37002 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37003 wxPyEndAllowThreads(__tstate);
37004 if (PyErr_Occurred()) SWIG_fail;
37005 }
37006 {
37007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37008 }
37009 return resultobj;
37010 fail:
37011 return NULL;
37012 }
37013
37014
37015 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37016 PyObject *obj;
37017 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37018 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37019 return SWIG_Py_Void();
37020 }
37021
37022 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37023 return SWIG_Python_InitShadowInstance(args);
37024 }
37025
37026 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37027 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37028 return 1;
37029 }
37030
37031
37032 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37033 PyObject *pyobj = 0;
37034
37035 {
37036 #if wxUSE_UNICODE
37037 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37038 #else
37039 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37040 #endif
37041 }
37042 return pyobj;
37043 }
37044
37045
37046 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37047 PyObject *resultobj = 0;
37048 wxWindow *arg1 = (wxWindow *) 0 ;
37049 int arg2 = (int) (int)-1 ;
37050 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37051 wxString *arg3 = (wxString *) &arg3_defvalue ;
37052 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37053 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37054 wxSize const &arg5_defvalue = wxDefaultSize ;
37055 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37056 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37057 wxString const &arg7_defvalue = wxPyEmptyString ;
37058 wxString *arg7 = (wxString *) &arg7_defvalue ;
37059 int arg8 = (int) 0 ;
37060 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37061 wxString *arg9 = (wxString *) &arg9_defvalue ;
37062 wxGenericDirCtrl *result = 0 ;
37063 void *argp1 = 0 ;
37064 int res1 = 0 ;
37065 int val2 ;
37066 int ecode2 = 0 ;
37067 bool temp3 = false ;
37068 wxPoint temp4 ;
37069 wxSize temp5 ;
37070 long val6 ;
37071 int ecode6 = 0 ;
37072 bool temp7 = false ;
37073 int val8 ;
37074 int ecode8 = 0 ;
37075 bool temp9 = false ;
37076 PyObject * obj0 = 0 ;
37077 PyObject * obj1 = 0 ;
37078 PyObject * obj2 = 0 ;
37079 PyObject * obj3 = 0 ;
37080 PyObject * obj4 = 0 ;
37081 PyObject * obj5 = 0 ;
37082 PyObject * obj6 = 0 ;
37083 PyObject * obj7 = 0 ;
37084 PyObject * obj8 = 0 ;
37085 char * kwnames[] = {
37086 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37087 };
37088
37089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37091 if (!SWIG_IsOK(res1)) {
37092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37093 }
37094 arg1 = reinterpret_cast< wxWindow * >(argp1);
37095 if (obj1) {
37096 ecode2 = SWIG_AsVal_int(obj1, &val2);
37097 if (!SWIG_IsOK(ecode2)) {
37098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37099 }
37100 arg2 = static_cast< int >(val2);
37101 }
37102 if (obj2) {
37103 {
37104 arg3 = wxString_in_helper(obj2);
37105 if (arg3 == NULL) SWIG_fail;
37106 temp3 = true;
37107 }
37108 }
37109 if (obj3) {
37110 {
37111 arg4 = &temp4;
37112 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37113 }
37114 }
37115 if (obj4) {
37116 {
37117 arg5 = &temp5;
37118 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37119 }
37120 }
37121 if (obj5) {
37122 ecode6 = SWIG_AsVal_long(obj5, &val6);
37123 if (!SWIG_IsOK(ecode6)) {
37124 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37125 }
37126 arg6 = static_cast< long >(val6);
37127 }
37128 if (obj6) {
37129 {
37130 arg7 = wxString_in_helper(obj6);
37131 if (arg7 == NULL) SWIG_fail;
37132 temp7 = true;
37133 }
37134 }
37135 if (obj7) {
37136 ecode8 = SWIG_AsVal_int(obj7, &val8);
37137 if (!SWIG_IsOK(ecode8)) {
37138 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37139 }
37140 arg8 = static_cast< int >(val8);
37141 }
37142 if (obj8) {
37143 {
37144 arg9 = wxString_in_helper(obj8);
37145 if (arg9 == NULL) SWIG_fail;
37146 temp9 = true;
37147 }
37148 }
37149 {
37150 if (!wxPyCheckForApp()) SWIG_fail;
37151 PyThreadState* __tstate = wxPyBeginAllowThreads();
37152 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37153 wxPyEndAllowThreads(__tstate);
37154 if (PyErr_Occurred()) SWIG_fail;
37155 }
37156 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37157 {
37158 if (temp3)
37159 delete arg3;
37160 }
37161 {
37162 if (temp7)
37163 delete arg7;
37164 }
37165 {
37166 if (temp9)
37167 delete arg9;
37168 }
37169 return resultobj;
37170 fail:
37171 {
37172 if (temp3)
37173 delete arg3;
37174 }
37175 {
37176 if (temp7)
37177 delete arg7;
37178 }
37179 {
37180 if (temp9)
37181 delete arg9;
37182 }
37183 return NULL;
37184 }
37185
37186
37187 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37188 PyObject *resultobj = 0;
37189 wxGenericDirCtrl *result = 0 ;
37190
37191 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37192 {
37193 if (!wxPyCheckForApp()) SWIG_fail;
37194 PyThreadState* __tstate = wxPyBeginAllowThreads();
37195 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37196 wxPyEndAllowThreads(__tstate);
37197 if (PyErr_Occurred()) SWIG_fail;
37198 }
37199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37200 return resultobj;
37201 fail:
37202 return NULL;
37203 }
37204
37205
37206 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37207 PyObject *resultobj = 0;
37208 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37209 wxWindow *arg2 = (wxWindow *) 0 ;
37210 int arg3 = (int) (int)-1 ;
37211 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37212 wxString *arg4 = (wxString *) &arg4_defvalue ;
37213 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37214 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37215 wxSize const &arg6_defvalue = wxDefaultSize ;
37216 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37217 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37218 wxString const &arg8_defvalue = wxPyEmptyString ;
37219 wxString *arg8 = (wxString *) &arg8_defvalue ;
37220 int arg9 = (int) 0 ;
37221 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37222 wxString *arg10 = (wxString *) &arg10_defvalue ;
37223 bool result;
37224 void *argp1 = 0 ;
37225 int res1 = 0 ;
37226 void *argp2 = 0 ;
37227 int res2 = 0 ;
37228 int val3 ;
37229 int ecode3 = 0 ;
37230 bool temp4 = false ;
37231 wxPoint temp5 ;
37232 wxSize temp6 ;
37233 long val7 ;
37234 int ecode7 = 0 ;
37235 bool temp8 = false ;
37236 int val9 ;
37237 int ecode9 = 0 ;
37238 bool temp10 = false ;
37239 PyObject * obj0 = 0 ;
37240 PyObject * obj1 = 0 ;
37241 PyObject * obj2 = 0 ;
37242 PyObject * obj3 = 0 ;
37243 PyObject * obj4 = 0 ;
37244 PyObject * obj5 = 0 ;
37245 PyObject * obj6 = 0 ;
37246 PyObject * obj7 = 0 ;
37247 PyObject * obj8 = 0 ;
37248 PyObject * obj9 = 0 ;
37249 char * kwnames[] = {
37250 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37251 };
37252
37253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37255 if (!SWIG_IsOK(res1)) {
37256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37257 }
37258 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37259 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37260 if (!SWIG_IsOK(res2)) {
37261 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37262 }
37263 arg2 = reinterpret_cast< wxWindow * >(argp2);
37264 if (obj2) {
37265 ecode3 = SWIG_AsVal_int(obj2, &val3);
37266 if (!SWIG_IsOK(ecode3)) {
37267 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37268 }
37269 arg3 = static_cast< int >(val3);
37270 }
37271 if (obj3) {
37272 {
37273 arg4 = wxString_in_helper(obj3);
37274 if (arg4 == NULL) SWIG_fail;
37275 temp4 = true;
37276 }
37277 }
37278 if (obj4) {
37279 {
37280 arg5 = &temp5;
37281 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37282 }
37283 }
37284 if (obj5) {
37285 {
37286 arg6 = &temp6;
37287 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37288 }
37289 }
37290 if (obj6) {
37291 ecode7 = SWIG_AsVal_long(obj6, &val7);
37292 if (!SWIG_IsOK(ecode7)) {
37293 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37294 }
37295 arg7 = static_cast< long >(val7);
37296 }
37297 if (obj7) {
37298 {
37299 arg8 = wxString_in_helper(obj7);
37300 if (arg8 == NULL) SWIG_fail;
37301 temp8 = true;
37302 }
37303 }
37304 if (obj8) {
37305 ecode9 = SWIG_AsVal_int(obj8, &val9);
37306 if (!SWIG_IsOK(ecode9)) {
37307 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37308 }
37309 arg9 = static_cast< int >(val9);
37310 }
37311 if (obj9) {
37312 {
37313 arg10 = wxString_in_helper(obj9);
37314 if (arg10 == NULL) SWIG_fail;
37315 temp10 = true;
37316 }
37317 }
37318 {
37319 PyThreadState* __tstate = wxPyBeginAllowThreads();
37320 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37321 wxPyEndAllowThreads(__tstate);
37322 if (PyErr_Occurred()) SWIG_fail;
37323 }
37324 {
37325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37326 }
37327 {
37328 if (temp4)
37329 delete arg4;
37330 }
37331 {
37332 if (temp8)
37333 delete arg8;
37334 }
37335 {
37336 if (temp10)
37337 delete arg10;
37338 }
37339 return resultobj;
37340 fail:
37341 {
37342 if (temp4)
37343 delete arg4;
37344 }
37345 {
37346 if (temp8)
37347 delete arg8;
37348 }
37349 {
37350 if (temp10)
37351 delete arg10;
37352 }
37353 return NULL;
37354 }
37355
37356
37357 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37358 PyObject *resultobj = 0;
37359 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37360 wxString *arg2 = 0 ;
37361 bool result;
37362 void *argp1 = 0 ;
37363 int res1 = 0 ;
37364 bool temp2 = false ;
37365 PyObject * obj0 = 0 ;
37366 PyObject * obj1 = 0 ;
37367 char * kwnames[] = {
37368 (char *) "self",(char *) "path", NULL
37369 };
37370
37371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37373 if (!SWIG_IsOK(res1)) {
37374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37375 }
37376 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37377 {
37378 arg2 = wxString_in_helper(obj1);
37379 if (arg2 == NULL) SWIG_fail;
37380 temp2 = true;
37381 }
37382 {
37383 PyThreadState* __tstate = wxPyBeginAllowThreads();
37384 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37385 wxPyEndAllowThreads(__tstate);
37386 if (PyErr_Occurred()) SWIG_fail;
37387 }
37388 {
37389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37390 }
37391 {
37392 if (temp2)
37393 delete arg2;
37394 }
37395 return resultobj;
37396 fail:
37397 {
37398 if (temp2)
37399 delete arg2;
37400 }
37401 return NULL;
37402 }
37403
37404
37405 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37406 PyObject *resultobj = 0;
37407 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37408 wxString *arg2 = 0 ;
37409 bool result;
37410 void *argp1 = 0 ;
37411 int res1 = 0 ;
37412 bool temp2 = false ;
37413 PyObject * obj0 = 0 ;
37414 PyObject * obj1 = 0 ;
37415 char * kwnames[] = {
37416 (char *) "self",(char *) "path", NULL
37417 };
37418
37419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37421 if (!SWIG_IsOK(res1)) {
37422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37423 }
37424 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37425 {
37426 arg2 = wxString_in_helper(obj1);
37427 if (arg2 == NULL) SWIG_fail;
37428 temp2 = true;
37429 }
37430 {
37431 PyThreadState* __tstate = wxPyBeginAllowThreads();
37432 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37433 wxPyEndAllowThreads(__tstate);
37434 if (PyErr_Occurred()) SWIG_fail;
37435 }
37436 {
37437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37438 }
37439 {
37440 if (temp2)
37441 delete arg2;
37442 }
37443 return resultobj;
37444 fail:
37445 {
37446 if (temp2)
37447 delete arg2;
37448 }
37449 return NULL;
37450 }
37451
37452
37453 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37454 PyObject *resultobj = 0;
37455 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37456 wxString result;
37457 void *argp1 = 0 ;
37458 int res1 = 0 ;
37459 PyObject *swig_obj[1] ;
37460
37461 if (!args) SWIG_fail;
37462 swig_obj[0] = args;
37463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37464 if (!SWIG_IsOK(res1)) {
37465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37466 }
37467 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37468 {
37469 PyThreadState* __tstate = wxPyBeginAllowThreads();
37470 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37471 wxPyEndAllowThreads(__tstate);
37472 if (PyErr_Occurred()) SWIG_fail;
37473 }
37474 {
37475 #if wxUSE_UNICODE
37476 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37477 #else
37478 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37479 #endif
37480 }
37481 return resultobj;
37482 fail:
37483 return NULL;
37484 }
37485
37486
37487 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37488 PyObject *resultobj = 0;
37489 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37490 wxString *arg2 = 0 ;
37491 void *argp1 = 0 ;
37492 int res1 = 0 ;
37493 bool temp2 = false ;
37494 PyObject * obj0 = 0 ;
37495 PyObject * obj1 = 0 ;
37496 char * kwnames[] = {
37497 (char *) "self",(char *) "path", NULL
37498 };
37499
37500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37502 if (!SWIG_IsOK(res1)) {
37503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37504 }
37505 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37506 {
37507 arg2 = wxString_in_helper(obj1);
37508 if (arg2 == NULL) SWIG_fail;
37509 temp2 = true;
37510 }
37511 {
37512 PyThreadState* __tstate = wxPyBeginAllowThreads();
37513 (arg1)->SetDefaultPath((wxString const &)*arg2);
37514 wxPyEndAllowThreads(__tstate);
37515 if (PyErr_Occurred()) SWIG_fail;
37516 }
37517 resultobj = SWIG_Py_Void();
37518 {
37519 if (temp2)
37520 delete arg2;
37521 }
37522 return resultobj;
37523 fail:
37524 {
37525 if (temp2)
37526 delete arg2;
37527 }
37528 return NULL;
37529 }
37530
37531
37532 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37533 PyObject *resultobj = 0;
37534 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37535 wxString result;
37536 void *argp1 = 0 ;
37537 int res1 = 0 ;
37538 PyObject *swig_obj[1] ;
37539
37540 if (!args) SWIG_fail;
37541 swig_obj[0] = args;
37542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37543 if (!SWIG_IsOK(res1)) {
37544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37545 }
37546 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37547 {
37548 PyThreadState* __tstate = wxPyBeginAllowThreads();
37549 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37550 wxPyEndAllowThreads(__tstate);
37551 if (PyErr_Occurred()) SWIG_fail;
37552 }
37553 {
37554 #if wxUSE_UNICODE
37555 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37556 #else
37557 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37558 #endif
37559 }
37560 return resultobj;
37561 fail:
37562 return NULL;
37563 }
37564
37565
37566 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37567 PyObject *resultobj = 0;
37568 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37569 wxString result;
37570 void *argp1 = 0 ;
37571 int res1 = 0 ;
37572 PyObject *swig_obj[1] ;
37573
37574 if (!args) SWIG_fail;
37575 swig_obj[0] = args;
37576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37577 if (!SWIG_IsOK(res1)) {
37578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37579 }
37580 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37581 {
37582 PyThreadState* __tstate = wxPyBeginAllowThreads();
37583 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37584 wxPyEndAllowThreads(__tstate);
37585 if (PyErr_Occurred()) SWIG_fail;
37586 }
37587 {
37588 #if wxUSE_UNICODE
37589 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37590 #else
37591 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37592 #endif
37593 }
37594 return resultobj;
37595 fail:
37596 return NULL;
37597 }
37598
37599
37600 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37601 PyObject *resultobj = 0;
37602 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37603 wxString *arg2 = 0 ;
37604 void *argp1 = 0 ;
37605 int res1 = 0 ;
37606 bool temp2 = false ;
37607 PyObject * obj0 = 0 ;
37608 PyObject * obj1 = 0 ;
37609 char * kwnames[] = {
37610 (char *) "self",(char *) "path", NULL
37611 };
37612
37613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37615 if (!SWIG_IsOK(res1)) {
37616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37617 }
37618 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37619 {
37620 arg2 = wxString_in_helper(obj1);
37621 if (arg2 == NULL) SWIG_fail;
37622 temp2 = true;
37623 }
37624 {
37625 PyThreadState* __tstate = wxPyBeginAllowThreads();
37626 (arg1)->SetPath((wxString const &)*arg2);
37627 wxPyEndAllowThreads(__tstate);
37628 if (PyErr_Occurred()) SWIG_fail;
37629 }
37630 resultobj = SWIG_Py_Void();
37631 {
37632 if (temp2)
37633 delete arg2;
37634 }
37635 return resultobj;
37636 fail:
37637 {
37638 if (temp2)
37639 delete arg2;
37640 }
37641 return NULL;
37642 }
37643
37644
37645 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37646 PyObject *resultobj = 0;
37647 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37648 bool arg2 ;
37649 void *argp1 = 0 ;
37650 int res1 = 0 ;
37651 bool val2 ;
37652 int ecode2 = 0 ;
37653 PyObject * obj0 = 0 ;
37654 PyObject * obj1 = 0 ;
37655 char * kwnames[] = {
37656 (char *) "self",(char *) "show", NULL
37657 };
37658
37659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37661 if (!SWIG_IsOK(res1)) {
37662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37663 }
37664 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37665 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37666 if (!SWIG_IsOK(ecode2)) {
37667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37668 }
37669 arg2 = static_cast< bool >(val2);
37670 {
37671 PyThreadState* __tstate = wxPyBeginAllowThreads();
37672 (arg1)->ShowHidden(arg2);
37673 wxPyEndAllowThreads(__tstate);
37674 if (PyErr_Occurred()) SWIG_fail;
37675 }
37676 resultobj = SWIG_Py_Void();
37677 return resultobj;
37678 fail:
37679 return NULL;
37680 }
37681
37682
37683 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37684 PyObject *resultobj = 0;
37685 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37686 bool result;
37687 void *argp1 = 0 ;
37688 int res1 = 0 ;
37689 PyObject *swig_obj[1] ;
37690
37691 if (!args) SWIG_fail;
37692 swig_obj[0] = args;
37693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37694 if (!SWIG_IsOK(res1)) {
37695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37696 }
37697 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37698 {
37699 PyThreadState* __tstate = wxPyBeginAllowThreads();
37700 result = (bool)(arg1)->GetShowHidden();
37701 wxPyEndAllowThreads(__tstate);
37702 if (PyErr_Occurred()) SWIG_fail;
37703 }
37704 {
37705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37706 }
37707 return resultobj;
37708 fail:
37709 return NULL;
37710 }
37711
37712
37713 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37714 PyObject *resultobj = 0;
37715 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37716 wxString result;
37717 void *argp1 = 0 ;
37718 int res1 = 0 ;
37719 PyObject *swig_obj[1] ;
37720
37721 if (!args) SWIG_fail;
37722 swig_obj[0] = args;
37723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37724 if (!SWIG_IsOK(res1)) {
37725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37726 }
37727 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37728 {
37729 PyThreadState* __tstate = wxPyBeginAllowThreads();
37730 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37731 wxPyEndAllowThreads(__tstate);
37732 if (PyErr_Occurred()) SWIG_fail;
37733 }
37734 {
37735 #if wxUSE_UNICODE
37736 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37737 #else
37738 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37739 #endif
37740 }
37741 return resultobj;
37742 fail:
37743 return NULL;
37744 }
37745
37746
37747 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37748 PyObject *resultobj = 0;
37749 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37750 wxString *arg2 = 0 ;
37751 void *argp1 = 0 ;
37752 int res1 = 0 ;
37753 bool temp2 = false ;
37754 PyObject * obj0 = 0 ;
37755 PyObject * obj1 = 0 ;
37756 char * kwnames[] = {
37757 (char *) "self",(char *) "filter", NULL
37758 };
37759
37760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37762 if (!SWIG_IsOK(res1)) {
37763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37764 }
37765 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37766 {
37767 arg2 = wxString_in_helper(obj1);
37768 if (arg2 == NULL) SWIG_fail;
37769 temp2 = true;
37770 }
37771 {
37772 PyThreadState* __tstate = wxPyBeginAllowThreads();
37773 (arg1)->SetFilter((wxString const &)*arg2);
37774 wxPyEndAllowThreads(__tstate);
37775 if (PyErr_Occurred()) SWIG_fail;
37776 }
37777 resultobj = SWIG_Py_Void();
37778 {
37779 if (temp2)
37780 delete arg2;
37781 }
37782 return resultobj;
37783 fail:
37784 {
37785 if (temp2)
37786 delete arg2;
37787 }
37788 return NULL;
37789 }
37790
37791
37792 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37793 PyObject *resultobj = 0;
37794 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37795 int result;
37796 void *argp1 = 0 ;
37797 int res1 = 0 ;
37798 PyObject *swig_obj[1] ;
37799
37800 if (!args) SWIG_fail;
37801 swig_obj[0] = args;
37802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37803 if (!SWIG_IsOK(res1)) {
37804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37805 }
37806 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37807 {
37808 PyThreadState* __tstate = wxPyBeginAllowThreads();
37809 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37810 wxPyEndAllowThreads(__tstate);
37811 if (PyErr_Occurred()) SWIG_fail;
37812 }
37813 resultobj = SWIG_From_int(static_cast< int >(result));
37814 return resultobj;
37815 fail:
37816 return NULL;
37817 }
37818
37819
37820 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37821 PyObject *resultobj = 0;
37822 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37823 int arg2 ;
37824 void *argp1 = 0 ;
37825 int res1 = 0 ;
37826 int val2 ;
37827 int ecode2 = 0 ;
37828 PyObject * obj0 = 0 ;
37829 PyObject * obj1 = 0 ;
37830 char * kwnames[] = {
37831 (char *) "self",(char *) "n", NULL
37832 };
37833
37834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37836 if (!SWIG_IsOK(res1)) {
37837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37838 }
37839 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37840 ecode2 = SWIG_AsVal_int(obj1, &val2);
37841 if (!SWIG_IsOK(ecode2)) {
37842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37843 }
37844 arg2 = static_cast< int >(val2);
37845 {
37846 PyThreadState* __tstate = wxPyBeginAllowThreads();
37847 (arg1)->SetFilterIndex(arg2);
37848 wxPyEndAllowThreads(__tstate);
37849 if (PyErr_Occurred()) SWIG_fail;
37850 }
37851 resultobj = SWIG_Py_Void();
37852 return resultobj;
37853 fail:
37854 return NULL;
37855 }
37856
37857
37858 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37859 PyObject *resultobj = 0;
37860 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37861 wxTreeItemId result;
37862 void *argp1 = 0 ;
37863 int res1 = 0 ;
37864 PyObject *swig_obj[1] ;
37865
37866 if (!args) SWIG_fail;
37867 swig_obj[0] = args;
37868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37869 if (!SWIG_IsOK(res1)) {
37870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37871 }
37872 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37873 {
37874 PyThreadState* __tstate = wxPyBeginAllowThreads();
37875 result = (arg1)->GetRootId();
37876 wxPyEndAllowThreads(__tstate);
37877 if (PyErr_Occurred()) SWIG_fail;
37878 }
37879 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37880 return resultobj;
37881 fail:
37882 return NULL;
37883 }
37884
37885
37886 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37887 PyObject *resultobj = 0;
37888 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37889 wxPyTreeCtrl *result = 0 ;
37890 void *argp1 = 0 ;
37891 int res1 = 0 ;
37892 PyObject *swig_obj[1] ;
37893
37894 if (!args) SWIG_fail;
37895 swig_obj[0] = args;
37896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37897 if (!SWIG_IsOK(res1)) {
37898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37899 }
37900 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37901 {
37902 PyThreadState* __tstate = wxPyBeginAllowThreads();
37903 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37904 wxPyEndAllowThreads(__tstate);
37905 if (PyErr_Occurred()) SWIG_fail;
37906 }
37907 {
37908 resultobj = wxPyMake_wxObject(result, 0);
37909 }
37910 return resultobj;
37911 fail:
37912 return NULL;
37913 }
37914
37915
37916 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37917 PyObject *resultobj = 0;
37918 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37919 wxDirFilterListCtrl *result = 0 ;
37920 void *argp1 = 0 ;
37921 int res1 = 0 ;
37922 PyObject *swig_obj[1] ;
37923
37924 if (!args) SWIG_fail;
37925 swig_obj[0] = args;
37926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37927 if (!SWIG_IsOK(res1)) {
37928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37929 }
37930 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37931 {
37932 PyThreadState* __tstate = wxPyBeginAllowThreads();
37933 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37934 wxPyEndAllowThreads(__tstate);
37935 if (PyErr_Occurred()) SWIG_fail;
37936 }
37937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37938 return resultobj;
37939 fail:
37940 return NULL;
37941 }
37942
37943
37944 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37945 PyObject *resultobj = 0;
37946 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37947 wxTreeItemId arg2 ;
37948 wxString *arg3 = 0 ;
37949 bool *arg4 = 0 ;
37950 wxTreeItemId result;
37951 void *argp1 = 0 ;
37952 int res1 = 0 ;
37953 void *argp2 ;
37954 int res2 = 0 ;
37955 bool temp3 = false ;
37956 bool temp4 ;
37957 int res4 = SWIG_TMPOBJ ;
37958 PyObject * obj0 = 0 ;
37959 PyObject * obj1 = 0 ;
37960 PyObject * obj2 = 0 ;
37961 char * kwnames[] = {
37962 (char *) "self",(char *) "parentId",(char *) "path", NULL
37963 };
37964
37965 arg4 = &temp4;
37966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37968 if (!SWIG_IsOK(res1)) {
37969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37970 }
37971 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37972 {
37973 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37974 if (!SWIG_IsOK(res2)) {
37975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37976 }
37977 if (!argp2) {
37978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37979 } else {
37980 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
37981 arg2 = *temp;
37982 if (SWIG_IsNewObj(res2)) delete temp;
37983 }
37984 }
37985 {
37986 arg3 = wxString_in_helper(obj2);
37987 if (arg3 == NULL) SWIG_fail;
37988 temp3 = true;
37989 }
37990 {
37991 PyThreadState* __tstate = wxPyBeginAllowThreads();
37992 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
37993 wxPyEndAllowThreads(__tstate);
37994 if (PyErr_Occurred()) SWIG_fail;
37995 }
37996 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37997 if (SWIG_IsTmpObj(res4)) {
37998 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
37999 } else {
38000 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38001 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38002 }
38003 {
38004 if (temp3)
38005 delete arg3;
38006 }
38007 return resultobj;
38008 fail:
38009 {
38010 if (temp3)
38011 delete arg3;
38012 }
38013 return NULL;
38014 }
38015
38016
38017 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38018 PyObject *resultobj = 0;
38019 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38020 void *argp1 = 0 ;
38021 int res1 = 0 ;
38022 PyObject *swig_obj[1] ;
38023
38024 if (!args) SWIG_fail;
38025 swig_obj[0] = args;
38026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38027 if (!SWIG_IsOK(res1)) {
38028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38029 }
38030 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38031 {
38032 PyThreadState* __tstate = wxPyBeginAllowThreads();
38033 (arg1)->DoResize();
38034 wxPyEndAllowThreads(__tstate);
38035 if (PyErr_Occurred()) SWIG_fail;
38036 }
38037 resultobj = SWIG_Py_Void();
38038 return resultobj;
38039 fail:
38040 return NULL;
38041 }
38042
38043
38044 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38045 PyObject *resultobj = 0;
38046 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38047 void *argp1 = 0 ;
38048 int res1 = 0 ;
38049 PyObject *swig_obj[1] ;
38050
38051 if (!args) SWIG_fail;
38052 swig_obj[0] = args;
38053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38054 if (!SWIG_IsOK(res1)) {
38055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38056 }
38057 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38058 {
38059 PyThreadState* __tstate = wxPyBeginAllowThreads();
38060 (arg1)->ReCreateTree();
38061 wxPyEndAllowThreads(__tstate);
38062 if (PyErr_Occurred()) SWIG_fail;
38063 }
38064 resultobj = SWIG_Py_Void();
38065 return resultobj;
38066 fail:
38067 return NULL;
38068 }
38069
38070
38071 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38072 PyObject *obj;
38073 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38074 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38075 return SWIG_Py_Void();
38076 }
38077
38078 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38079 return SWIG_Python_InitShadowInstance(args);
38080 }
38081
38082 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38083 PyObject *resultobj = 0;
38084 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38085 int arg2 = (int) (int)-1 ;
38086 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38087 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38088 wxSize const &arg4_defvalue = wxDefaultSize ;
38089 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38090 long arg5 = (long) 0 ;
38091 wxDirFilterListCtrl *result = 0 ;
38092 void *argp1 = 0 ;
38093 int res1 = 0 ;
38094 int val2 ;
38095 int ecode2 = 0 ;
38096 wxPoint temp3 ;
38097 wxSize temp4 ;
38098 long val5 ;
38099 int ecode5 = 0 ;
38100 PyObject * obj0 = 0 ;
38101 PyObject * obj1 = 0 ;
38102 PyObject * obj2 = 0 ;
38103 PyObject * obj3 = 0 ;
38104 PyObject * obj4 = 0 ;
38105 char * kwnames[] = {
38106 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38107 };
38108
38109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38111 if (!SWIG_IsOK(res1)) {
38112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38113 }
38114 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38115 if (obj1) {
38116 ecode2 = SWIG_AsVal_int(obj1, &val2);
38117 if (!SWIG_IsOK(ecode2)) {
38118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38119 }
38120 arg2 = static_cast< int >(val2);
38121 }
38122 if (obj2) {
38123 {
38124 arg3 = &temp3;
38125 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38126 }
38127 }
38128 if (obj3) {
38129 {
38130 arg4 = &temp4;
38131 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38132 }
38133 }
38134 if (obj4) {
38135 ecode5 = SWIG_AsVal_long(obj4, &val5);
38136 if (!SWIG_IsOK(ecode5)) {
38137 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38138 }
38139 arg5 = static_cast< long >(val5);
38140 }
38141 {
38142 if (!wxPyCheckForApp()) SWIG_fail;
38143 PyThreadState* __tstate = wxPyBeginAllowThreads();
38144 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38145 wxPyEndAllowThreads(__tstate);
38146 if (PyErr_Occurred()) SWIG_fail;
38147 }
38148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38149 return resultobj;
38150 fail:
38151 return NULL;
38152 }
38153
38154
38155 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38156 PyObject *resultobj = 0;
38157 wxDirFilterListCtrl *result = 0 ;
38158
38159 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38160 {
38161 if (!wxPyCheckForApp()) SWIG_fail;
38162 PyThreadState* __tstate = wxPyBeginAllowThreads();
38163 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38164 wxPyEndAllowThreads(__tstate);
38165 if (PyErr_Occurred()) SWIG_fail;
38166 }
38167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38168 return resultobj;
38169 fail:
38170 return NULL;
38171 }
38172
38173
38174 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38175 PyObject *resultobj = 0;
38176 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38177 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38178 int arg3 = (int) (int)-1 ;
38179 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38180 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38181 wxSize const &arg5_defvalue = wxDefaultSize ;
38182 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38183 long arg6 = (long) 0 ;
38184 bool result;
38185 void *argp1 = 0 ;
38186 int res1 = 0 ;
38187 void *argp2 = 0 ;
38188 int res2 = 0 ;
38189 int val3 ;
38190 int ecode3 = 0 ;
38191 wxPoint temp4 ;
38192 wxSize temp5 ;
38193 long val6 ;
38194 int ecode6 = 0 ;
38195 PyObject * obj0 = 0 ;
38196 PyObject * obj1 = 0 ;
38197 PyObject * obj2 = 0 ;
38198 PyObject * obj3 = 0 ;
38199 PyObject * obj4 = 0 ;
38200 PyObject * obj5 = 0 ;
38201 char * kwnames[] = {
38202 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38203 };
38204
38205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38207 if (!SWIG_IsOK(res1)) {
38208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38209 }
38210 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38211 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38212 if (!SWIG_IsOK(res2)) {
38213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38214 }
38215 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38216 if (obj2) {
38217 ecode3 = SWIG_AsVal_int(obj2, &val3);
38218 if (!SWIG_IsOK(ecode3)) {
38219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38220 }
38221 arg3 = static_cast< int >(val3);
38222 }
38223 if (obj3) {
38224 {
38225 arg4 = &temp4;
38226 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38227 }
38228 }
38229 if (obj4) {
38230 {
38231 arg5 = &temp5;
38232 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38233 }
38234 }
38235 if (obj5) {
38236 ecode6 = SWIG_AsVal_long(obj5, &val6);
38237 if (!SWIG_IsOK(ecode6)) {
38238 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38239 }
38240 arg6 = static_cast< long >(val6);
38241 }
38242 {
38243 PyThreadState* __tstate = wxPyBeginAllowThreads();
38244 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38245 wxPyEndAllowThreads(__tstate);
38246 if (PyErr_Occurred()) SWIG_fail;
38247 }
38248 {
38249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38250 }
38251 return resultobj;
38252 fail:
38253 return NULL;
38254 }
38255
38256
38257 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38258 PyObject *resultobj = 0;
38259 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38260 wxString *arg2 = 0 ;
38261 int arg3 ;
38262 void *argp1 = 0 ;
38263 int res1 = 0 ;
38264 bool temp2 = false ;
38265 int val3 ;
38266 int ecode3 = 0 ;
38267 PyObject * obj0 = 0 ;
38268 PyObject * obj1 = 0 ;
38269 PyObject * obj2 = 0 ;
38270 char * kwnames[] = {
38271 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38272 };
38273
38274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38276 if (!SWIG_IsOK(res1)) {
38277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38278 }
38279 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38280 {
38281 arg2 = wxString_in_helper(obj1);
38282 if (arg2 == NULL) SWIG_fail;
38283 temp2 = true;
38284 }
38285 ecode3 = SWIG_AsVal_int(obj2, &val3);
38286 if (!SWIG_IsOK(ecode3)) {
38287 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38288 }
38289 arg3 = static_cast< int >(val3);
38290 {
38291 PyThreadState* __tstate = wxPyBeginAllowThreads();
38292 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38293 wxPyEndAllowThreads(__tstate);
38294 if (PyErr_Occurred()) SWIG_fail;
38295 }
38296 resultobj = SWIG_Py_Void();
38297 {
38298 if (temp2)
38299 delete arg2;
38300 }
38301 return resultobj;
38302 fail:
38303 {
38304 if (temp2)
38305 delete arg2;
38306 }
38307 return NULL;
38308 }
38309
38310
38311 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38312 PyObject *obj;
38313 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38314 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38315 return SWIG_Py_Void();
38316 }
38317
38318 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38319 return SWIG_Python_InitShadowInstance(args);
38320 }
38321
38322 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38323 PyObject *resultobj = 0;
38324 wxWindow *arg1 = (wxWindow *) 0 ;
38325 int arg2 = (int) (int)-1 ;
38326 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38327 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38328 wxSize const &arg4_defvalue = wxDefaultSize ;
38329 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38330 long arg5 = (long) 0 ;
38331 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38332 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38333 wxString const &arg7_defvalue = wxPyControlNameStr ;
38334 wxString *arg7 = (wxString *) &arg7_defvalue ;
38335 wxPyControl *result = 0 ;
38336 void *argp1 = 0 ;
38337 int res1 = 0 ;
38338 int val2 ;
38339 int ecode2 = 0 ;
38340 wxPoint temp3 ;
38341 wxSize temp4 ;
38342 long val5 ;
38343 int ecode5 = 0 ;
38344 void *argp6 = 0 ;
38345 int res6 = 0 ;
38346 bool temp7 = false ;
38347 PyObject * obj0 = 0 ;
38348 PyObject * obj1 = 0 ;
38349 PyObject * obj2 = 0 ;
38350 PyObject * obj3 = 0 ;
38351 PyObject * obj4 = 0 ;
38352 PyObject * obj5 = 0 ;
38353 PyObject * obj6 = 0 ;
38354 char * kwnames[] = {
38355 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38356 };
38357
38358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38360 if (!SWIG_IsOK(res1)) {
38361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38362 }
38363 arg1 = reinterpret_cast< wxWindow * >(argp1);
38364 if (obj1) {
38365 ecode2 = SWIG_AsVal_int(obj1, &val2);
38366 if (!SWIG_IsOK(ecode2)) {
38367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38368 }
38369 arg2 = static_cast< int >(val2);
38370 }
38371 if (obj2) {
38372 {
38373 arg3 = &temp3;
38374 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38375 }
38376 }
38377 if (obj3) {
38378 {
38379 arg4 = &temp4;
38380 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38381 }
38382 }
38383 if (obj4) {
38384 ecode5 = SWIG_AsVal_long(obj4, &val5);
38385 if (!SWIG_IsOK(ecode5)) {
38386 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38387 }
38388 arg5 = static_cast< long >(val5);
38389 }
38390 if (obj5) {
38391 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38392 if (!SWIG_IsOK(res6)) {
38393 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38394 }
38395 if (!argp6) {
38396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38397 }
38398 arg6 = reinterpret_cast< wxValidator * >(argp6);
38399 }
38400 if (obj6) {
38401 {
38402 arg7 = wxString_in_helper(obj6);
38403 if (arg7 == NULL) SWIG_fail;
38404 temp7 = true;
38405 }
38406 }
38407 {
38408 if (!wxPyCheckForApp()) SWIG_fail;
38409 PyThreadState* __tstate = wxPyBeginAllowThreads();
38410 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38411 wxPyEndAllowThreads(__tstate);
38412 if (PyErr_Occurred()) SWIG_fail;
38413 }
38414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38415 {
38416 if (temp7)
38417 delete arg7;
38418 }
38419 return resultobj;
38420 fail:
38421 {
38422 if (temp7)
38423 delete arg7;
38424 }
38425 return NULL;
38426 }
38427
38428
38429 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38430 PyObject *resultobj = 0;
38431 wxPyControl *result = 0 ;
38432
38433 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38434 {
38435 if (!wxPyCheckForApp()) SWIG_fail;
38436 PyThreadState* __tstate = wxPyBeginAllowThreads();
38437 result = (wxPyControl *)new wxPyControl();
38438 wxPyEndAllowThreads(__tstate);
38439 if (PyErr_Occurred()) SWIG_fail;
38440 }
38441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38442 return resultobj;
38443 fail:
38444 return NULL;
38445 }
38446
38447
38448 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38449 PyObject *resultobj = 0;
38450 wxPyControl *arg1 = (wxPyControl *) 0 ;
38451 PyObject *arg2 = (PyObject *) 0 ;
38452 PyObject *arg3 = (PyObject *) 0 ;
38453 void *argp1 = 0 ;
38454 int res1 = 0 ;
38455 PyObject * obj0 = 0 ;
38456 PyObject * obj1 = 0 ;
38457 PyObject * obj2 = 0 ;
38458 char * kwnames[] = {
38459 (char *) "self",(char *) "self",(char *) "_class", NULL
38460 };
38461
38462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38464 if (!SWIG_IsOK(res1)) {
38465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38466 }
38467 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38468 arg2 = obj1;
38469 arg3 = obj2;
38470 {
38471 PyThreadState* __tstate = wxPyBeginAllowThreads();
38472 (arg1)->_setCallbackInfo(arg2,arg3);
38473 wxPyEndAllowThreads(__tstate);
38474 if (PyErr_Occurred()) SWIG_fail;
38475 }
38476 resultobj = SWIG_Py_Void();
38477 return resultobj;
38478 fail:
38479 return NULL;
38480 }
38481
38482
38483 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38484 PyObject *resultobj = 0;
38485 wxPyControl *arg1 = (wxPyControl *) 0 ;
38486 wxSize *arg2 = 0 ;
38487 void *argp1 = 0 ;
38488 int res1 = 0 ;
38489 wxSize temp2 ;
38490 PyObject * obj0 = 0 ;
38491 PyObject * obj1 = 0 ;
38492 char * kwnames[] = {
38493 (char *) "self",(char *) "size", NULL
38494 };
38495
38496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38498 if (!SWIG_IsOK(res1)) {
38499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38500 }
38501 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38502 {
38503 arg2 = &temp2;
38504 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38505 }
38506 {
38507 PyThreadState* __tstate = wxPyBeginAllowThreads();
38508 (arg1)->SetBestSize((wxSize const &)*arg2);
38509 wxPyEndAllowThreads(__tstate);
38510 if (PyErr_Occurred()) SWIG_fail;
38511 }
38512 resultobj = SWIG_Py_Void();
38513 return resultobj;
38514 fail:
38515 return NULL;
38516 }
38517
38518
38519 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38520 PyObject *resultobj = 0;
38521 wxPyControl *arg1 = (wxPyControl *) 0 ;
38522 wxDC *arg2 = (wxDC *) 0 ;
38523 bool result;
38524 void *argp1 = 0 ;
38525 int res1 = 0 ;
38526 void *argp2 = 0 ;
38527 int res2 = 0 ;
38528 PyObject * obj0 = 0 ;
38529 PyObject * obj1 = 0 ;
38530 char * kwnames[] = {
38531 (char *) "self",(char *) "dc", NULL
38532 };
38533
38534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38536 if (!SWIG_IsOK(res1)) {
38537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38538 }
38539 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38540 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38541 if (!SWIG_IsOK(res2)) {
38542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38543 }
38544 arg2 = reinterpret_cast< wxDC * >(argp2);
38545 {
38546 PyThreadState* __tstate = wxPyBeginAllowThreads();
38547 result = (bool)(arg1)->DoEraseBackground(arg2);
38548 wxPyEndAllowThreads(__tstate);
38549 if (PyErr_Occurred()) SWIG_fail;
38550 }
38551 {
38552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38553 }
38554 return resultobj;
38555 fail:
38556 return NULL;
38557 }
38558
38559
38560 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38561 PyObject *resultobj = 0;
38562 wxPyControl *arg1 = (wxPyControl *) 0 ;
38563 int arg2 ;
38564 int arg3 ;
38565 int arg4 ;
38566 int arg5 ;
38567 void *argp1 = 0 ;
38568 int res1 = 0 ;
38569 int val2 ;
38570 int ecode2 = 0 ;
38571 int val3 ;
38572 int ecode3 = 0 ;
38573 int val4 ;
38574 int ecode4 = 0 ;
38575 int val5 ;
38576 int ecode5 = 0 ;
38577 PyObject * obj0 = 0 ;
38578 PyObject * obj1 = 0 ;
38579 PyObject * obj2 = 0 ;
38580 PyObject * obj3 = 0 ;
38581 PyObject * obj4 = 0 ;
38582 char * kwnames[] = {
38583 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38584 };
38585
38586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38588 if (!SWIG_IsOK(res1)) {
38589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38590 }
38591 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38592 ecode2 = SWIG_AsVal_int(obj1, &val2);
38593 if (!SWIG_IsOK(ecode2)) {
38594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38595 }
38596 arg2 = static_cast< int >(val2);
38597 ecode3 = SWIG_AsVal_int(obj2, &val3);
38598 if (!SWIG_IsOK(ecode3)) {
38599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38600 }
38601 arg3 = static_cast< int >(val3);
38602 ecode4 = SWIG_AsVal_int(obj3, &val4);
38603 if (!SWIG_IsOK(ecode4)) {
38604 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38605 }
38606 arg4 = static_cast< int >(val4);
38607 ecode5 = SWIG_AsVal_int(obj4, &val5);
38608 if (!SWIG_IsOK(ecode5)) {
38609 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38610 }
38611 arg5 = static_cast< int >(val5);
38612 {
38613 PyThreadState* __tstate = wxPyBeginAllowThreads();
38614 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38615 wxPyEndAllowThreads(__tstate);
38616 if (PyErr_Occurred()) SWIG_fail;
38617 }
38618 resultobj = SWIG_Py_Void();
38619 return resultobj;
38620 fail:
38621 return NULL;
38622 }
38623
38624
38625 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38626 PyObject *resultobj = 0;
38627 wxPyControl *arg1 = (wxPyControl *) 0 ;
38628 int arg2 ;
38629 int arg3 ;
38630 int arg4 ;
38631 int arg5 ;
38632 int arg6 = (int) wxSIZE_AUTO ;
38633 void *argp1 = 0 ;
38634 int res1 = 0 ;
38635 int val2 ;
38636 int ecode2 = 0 ;
38637 int val3 ;
38638 int ecode3 = 0 ;
38639 int val4 ;
38640 int ecode4 = 0 ;
38641 int val5 ;
38642 int ecode5 = 0 ;
38643 int val6 ;
38644 int ecode6 = 0 ;
38645 PyObject * obj0 = 0 ;
38646 PyObject * obj1 = 0 ;
38647 PyObject * obj2 = 0 ;
38648 PyObject * obj3 = 0 ;
38649 PyObject * obj4 = 0 ;
38650 PyObject * obj5 = 0 ;
38651 char * kwnames[] = {
38652 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38653 };
38654
38655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38657 if (!SWIG_IsOK(res1)) {
38658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38659 }
38660 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38661 ecode2 = SWIG_AsVal_int(obj1, &val2);
38662 if (!SWIG_IsOK(ecode2)) {
38663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38664 }
38665 arg2 = static_cast< int >(val2);
38666 ecode3 = SWIG_AsVal_int(obj2, &val3);
38667 if (!SWIG_IsOK(ecode3)) {
38668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38669 }
38670 arg3 = static_cast< int >(val3);
38671 ecode4 = SWIG_AsVal_int(obj3, &val4);
38672 if (!SWIG_IsOK(ecode4)) {
38673 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38674 }
38675 arg4 = static_cast< int >(val4);
38676 ecode5 = SWIG_AsVal_int(obj4, &val5);
38677 if (!SWIG_IsOK(ecode5)) {
38678 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38679 }
38680 arg5 = static_cast< int >(val5);
38681 if (obj5) {
38682 ecode6 = SWIG_AsVal_int(obj5, &val6);
38683 if (!SWIG_IsOK(ecode6)) {
38684 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38685 }
38686 arg6 = static_cast< int >(val6);
38687 }
38688 {
38689 PyThreadState* __tstate = wxPyBeginAllowThreads();
38690 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38691 wxPyEndAllowThreads(__tstate);
38692 if (PyErr_Occurred()) SWIG_fail;
38693 }
38694 resultobj = SWIG_Py_Void();
38695 return resultobj;
38696 fail:
38697 return NULL;
38698 }
38699
38700
38701 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38702 PyObject *resultobj = 0;
38703 wxPyControl *arg1 = (wxPyControl *) 0 ;
38704 int arg2 ;
38705 int arg3 ;
38706 void *argp1 = 0 ;
38707 int res1 = 0 ;
38708 int val2 ;
38709 int ecode2 = 0 ;
38710 int val3 ;
38711 int ecode3 = 0 ;
38712 PyObject * obj0 = 0 ;
38713 PyObject * obj1 = 0 ;
38714 PyObject * obj2 = 0 ;
38715 char * kwnames[] = {
38716 (char *) "self",(char *) "width",(char *) "height", NULL
38717 };
38718
38719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38721 if (!SWIG_IsOK(res1)) {
38722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38723 }
38724 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38725 ecode2 = SWIG_AsVal_int(obj1, &val2);
38726 if (!SWIG_IsOK(ecode2)) {
38727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38728 }
38729 arg2 = static_cast< int >(val2);
38730 ecode3 = SWIG_AsVal_int(obj2, &val3);
38731 if (!SWIG_IsOK(ecode3)) {
38732 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38733 }
38734 arg3 = static_cast< int >(val3);
38735 {
38736 PyThreadState* __tstate = wxPyBeginAllowThreads();
38737 (arg1)->DoSetClientSize(arg2,arg3);
38738 wxPyEndAllowThreads(__tstate);
38739 if (PyErr_Occurred()) SWIG_fail;
38740 }
38741 resultobj = SWIG_Py_Void();
38742 return resultobj;
38743 fail:
38744 return NULL;
38745 }
38746
38747
38748 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38749 PyObject *resultobj = 0;
38750 wxPyControl *arg1 = (wxPyControl *) 0 ;
38751 int arg2 ;
38752 int arg3 ;
38753 void *argp1 = 0 ;
38754 int res1 = 0 ;
38755 int val2 ;
38756 int ecode2 = 0 ;
38757 int val3 ;
38758 int ecode3 = 0 ;
38759 PyObject * obj0 = 0 ;
38760 PyObject * obj1 = 0 ;
38761 PyObject * obj2 = 0 ;
38762 char * kwnames[] = {
38763 (char *) "self",(char *) "x",(char *) "y", NULL
38764 };
38765
38766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38768 if (!SWIG_IsOK(res1)) {
38769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38770 }
38771 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38772 ecode2 = SWIG_AsVal_int(obj1, &val2);
38773 if (!SWIG_IsOK(ecode2)) {
38774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38775 }
38776 arg2 = static_cast< int >(val2);
38777 ecode3 = SWIG_AsVal_int(obj2, &val3);
38778 if (!SWIG_IsOK(ecode3)) {
38779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38780 }
38781 arg3 = static_cast< int >(val3);
38782 {
38783 PyThreadState* __tstate = wxPyBeginAllowThreads();
38784 (arg1)->DoSetVirtualSize(arg2,arg3);
38785 wxPyEndAllowThreads(__tstate);
38786 if (PyErr_Occurred()) SWIG_fail;
38787 }
38788 resultobj = SWIG_Py_Void();
38789 return resultobj;
38790 fail:
38791 return NULL;
38792 }
38793
38794
38795 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38796 PyObject *resultobj = 0;
38797 wxPyControl *arg1 = (wxPyControl *) 0 ;
38798 int *arg2 = (int *) 0 ;
38799 int *arg3 = (int *) 0 ;
38800 void *argp1 = 0 ;
38801 int res1 = 0 ;
38802 int temp2 ;
38803 int res2 = SWIG_TMPOBJ ;
38804 int temp3 ;
38805 int res3 = SWIG_TMPOBJ ;
38806 PyObject *swig_obj[1] ;
38807
38808 arg2 = &temp2;
38809 arg3 = &temp3;
38810 if (!args) SWIG_fail;
38811 swig_obj[0] = args;
38812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38813 if (!SWIG_IsOK(res1)) {
38814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38815 }
38816 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38817 {
38818 PyThreadState* __tstate = wxPyBeginAllowThreads();
38819 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38820 wxPyEndAllowThreads(__tstate);
38821 if (PyErr_Occurred()) SWIG_fail;
38822 }
38823 resultobj = SWIG_Py_Void();
38824 if (SWIG_IsTmpObj(res2)) {
38825 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38826 } else {
38827 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38828 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38829 }
38830 if (SWIG_IsTmpObj(res3)) {
38831 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38832 } else {
38833 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38834 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38835 }
38836 return resultobj;
38837 fail:
38838 return NULL;
38839 }
38840
38841
38842 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38843 PyObject *resultobj = 0;
38844 wxPyControl *arg1 = (wxPyControl *) 0 ;
38845 int *arg2 = (int *) 0 ;
38846 int *arg3 = (int *) 0 ;
38847 void *argp1 = 0 ;
38848 int res1 = 0 ;
38849 int temp2 ;
38850 int res2 = SWIG_TMPOBJ ;
38851 int temp3 ;
38852 int res3 = SWIG_TMPOBJ ;
38853 PyObject *swig_obj[1] ;
38854
38855 arg2 = &temp2;
38856 arg3 = &temp3;
38857 if (!args) SWIG_fail;
38858 swig_obj[0] = args;
38859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38860 if (!SWIG_IsOK(res1)) {
38861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38862 }
38863 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38864 {
38865 PyThreadState* __tstate = wxPyBeginAllowThreads();
38866 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38867 wxPyEndAllowThreads(__tstate);
38868 if (PyErr_Occurred()) SWIG_fail;
38869 }
38870 resultobj = SWIG_Py_Void();
38871 if (SWIG_IsTmpObj(res2)) {
38872 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38873 } else {
38874 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38875 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38876 }
38877 if (SWIG_IsTmpObj(res3)) {
38878 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38879 } else {
38880 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38881 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38882 }
38883 return resultobj;
38884 fail:
38885 return NULL;
38886 }
38887
38888
38889 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38890 PyObject *resultobj = 0;
38891 wxPyControl *arg1 = (wxPyControl *) 0 ;
38892 int *arg2 = (int *) 0 ;
38893 int *arg3 = (int *) 0 ;
38894 void *argp1 = 0 ;
38895 int res1 = 0 ;
38896 int temp2 ;
38897 int res2 = SWIG_TMPOBJ ;
38898 int temp3 ;
38899 int res3 = SWIG_TMPOBJ ;
38900 PyObject *swig_obj[1] ;
38901
38902 arg2 = &temp2;
38903 arg3 = &temp3;
38904 if (!args) SWIG_fail;
38905 swig_obj[0] = args;
38906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38907 if (!SWIG_IsOK(res1)) {
38908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38909 }
38910 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38911 {
38912 PyThreadState* __tstate = wxPyBeginAllowThreads();
38913 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38914 wxPyEndAllowThreads(__tstate);
38915 if (PyErr_Occurred()) SWIG_fail;
38916 }
38917 resultobj = SWIG_Py_Void();
38918 if (SWIG_IsTmpObj(res2)) {
38919 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38920 } else {
38921 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38922 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38923 }
38924 if (SWIG_IsTmpObj(res3)) {
38925 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38926 } else {
38927 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38928 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38929 }
38930 return resultobj;
38931 fail:
38932 return NULL;
38933 }
38934
38935
38936 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38937 PyObject *resultobj = 0;
38938 wxPyControl *arg1 = (wxPyControl *) 0 ;
38939 wxSize result;
38940 void *argp1 = 0 ;
38941 int res1 = 0 ;
38942 PyObject *swig_obj[1] ;
38943
38944 if (!args) SWIG_fail;
38945 swig_obj[0] = args;
38946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38947 if (!SWIG_IsOK(res1)) {
38948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38949 }
38950 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38951 {
38952 PyThreadState* __tstate = wxPyBeginAllowThreads();
38953 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38954 wxPyEndAllowThreads(__tstate);
38955 if (PyErr_Occurred()) SWIG_fail;
38956 }
38957 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38958 return resultobj;
38959 fail:
38960 return NULL;
38961 }
38962
38963
38964 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38965 PyObject *resultobj = 0;
38966 wxPyControl *arg1 = (wxPyControl *) 0 ;
38967 wxSize result;
38968 void *argp1 = 0 ;
38969 int res1 = 0 ;
38970 PyObject *swig_obj[1] ;
38971
38972 if (!args) SWIG_fail;
38973 swig_obj[0] = args;
38974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38975 if (!SWIG_IsOK(res1)) {
38976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38977 }
38978 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38979 {
38980 PyThreadState* __tstate = wxPyBeginAllowThreads();
38981 result = ((wxPyControl const *)arg1)->DoGetBestSize();
38982 wxPyEndAllowThreads(__tstate);
38983 if (PyErr_Occurred()) SWIG_fail;
38984 }
38985 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38986 return resultobj;
38987 fail:
38988 return NULL;
38989 }
38990
38991
38992 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38993 PyObject *resultobj = 0;
38994 wxPyControl *arg1 = (wxPyControl *) 0 ;
38995 SwigValueWrapper<wxVisualAttributes > result;
38996 void *argp1 = 0 ;
38997 int res1 = 0 ;
38998 PyObject *swig_obj[1] ;
38999
39000 if (!args) SWIG_fail;
39001 swig_obj[0] = args;
39002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39003 if (!SWIG_IsOK(res1)) {
39004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39005 }
39006 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39007 {
39008 PyThreadState* __tstate = wxPyBeginAllowThreads();
39009 result = (arg1)->GetDefaultAttributes();
39010 wxPyEndAllowThreads(__tstate);
39011 if (PyErr_Occurred()) SWIG_fail;
39012 }
39013 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39014 return resultobj;
39015 fail:
39016 return NULL;
39017 }
39018
39019
39020 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39021 PyObject *resultobj = 0;
39022 wxPyControl *arg1 = (wxPyControl *) 0 ;
39023 void *argp1 = 0 ;
39024 int res1 = 0 ;
39025 PyObject *swig_obj[1] ;
39026
39027 if (!args) SWIG_fail;
39028 swig_obj[0] = args;
39029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39030 if (!SWIG_IsOK(res1)) {
39031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39032 }
39033 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39034 {
39035 PyThreadState* __tstate = wxPyBeginAllowThreads();
39036 (arg1)->OnInternalIdle();
39037 wxPyEndAllowThreads(__tstate);
39038 if (PyErr_Occurred()) SWIG_fail;
39039 }
39040 resultobj = SWIG_Py_Void();
39041 return resultobj;
39042 fail:
39043 return NULL;
39044 }
39045
39046
39047 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39048 PyObject *obj;
39049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39050 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39051 return SWIG_Py_Void();
39052 }
39053
39054 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39055 return SWIG_Python_InitShadowInstance(args);
39056 }
39057
39058 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39059 PyObject *resultobj = 0;
39060 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39061 int arg2 = (int) 0 ;
39062 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39063 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39064 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39065 wxHelpEvent *result = 0 ;
39066 int val1 ;
39067 int ecode1 = 0 ;
39068 int val2 ;
39069 int ecode2 = 0 ;
39070 wxPoint temp3 ;
39071 int val4 ;
39072 int ecode4 = 0 ;
39073 PyObject * obj0 = 0 ;
39074 PyObject * obj1 = 0 ;
39075 PyObject * obj2 = 0 ;
39076 PyObject * obj3 = 0 ;
39077 char * kwnames[] = {
39078 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39079 };
39080
39081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39082 if (obj0) {
39083 ecode1 = SWIG_AsVal_int(obj0, &val1);
39084 if (!SWIG_IsOK(ecode1)) {
39085 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39086 }
39087 arg1 = static_cast< wxEventType >(val1);
39088 }
39089 if (obj1) {
39090 ecode2 = SWIG_AsVal_int(obj1, &val2);
39091 if (!SWIG_IsOK(ecode2)) {
39092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39093 }
39094 arg2 = static_cast< int >(val2);
39095 }
39096 if (obj2) {
39097 {
39098 arg3 = &temp3;
39099 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39100 }
39101 }
39102 if (obj3) {
39103 ecode4 = SWIG_AsVal_int(obj3, &val4);
39104 if (!SWIG_IsOK(ecode4)) {
39105 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39106 }
39107 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39108 }
39109 {
39110 PyThreadState* __tstate = wxPyBeginAllowThreads();
39111 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39112 wxPyEndAllowThreads(__tstate);
39113 if (PyErr_Occurred()) SWIG_fail;
39114 }
39115 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39116 return resultobj;
39117 fail:
39118 return NULL;
39119 }
39120
39121
39122 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39123 PyObject *resultobj = 0;
39124 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39125 wxPoint result;
39126 void *argp1 = 0 ;
39127 int res1 = 0 ;
39128 PyObject *swig_obj[1] ;
39129
39130 if (!args) SWIG_fail;
39131 swig_obj[0] = args;
39132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39133 if (!SWIG_IsOK(res1)) {
39134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39135 }
39136 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39137 {
39138 PyThreadState* __tstate = wxPyBeginAllowThreads();
39139 result = ((wxHelpEvent const *)arg1)->GetPosition();
39140 wxPyEndAllowThreads(__tstate);
39141 if (PyErr_Occurred()) SWIG_fail;
39142 }
39143 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39144 return resultobj;
39145 fail:
39146 return NULL;
39147 }
39148
39149
39150 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39151 PyObject *resultobj = 0;
39152 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39153 wxPoint *arg2 = 0 ;
39154 void *argp1 = 0 ;
39155 int res1 = 0 ;
39156 wxPoint temp2 ;
39157 PyObject * obj0 = 0 ;
39158 PyObject * obj1 = 0 ;
39159 char * kwnames[] = {
39160 (char *) "self",(char *) "pos", NULL
39161 };
39162
39163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39165 if (!SWIG_IsOK(res1)) {
39166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39167 }
39168 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39169 {
39170 arg2 = &temp2;
39171 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39172 }
39173 {
39174 PyThreadState* __tstate = wxPyBeginAllowThreads();
39175 (arg1)->SetPosition((wxPoint const &)*arg2);
39176 wxPyEndAllowThreads(__tstate);
39177 if (PyErr_Occurred()) SWIG_fail;
39178 }
39179 resultobj = SWIG_Py_Void();
39180 return resultobj;
39181 fail:
39182 return NULL;
39183 }
39184
39185
39186 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39187 PyObject *resultobj = 0;
39188 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39189 wxString *result = 0 ;
39190 void *argp1 = 0 ;
39191 int res1 = 0 ;
39192 PyObject *swig_obj[1] ;
39193
39194 if (!args) SWIG_fail;
39195 swig_obj[0] = args;
39196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39197 if (!SWIG_IsOK(res1)) {
39198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39199 }
39200 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39201 {
39202 PyThreadState* __tstate = wxPyBeginAllowThreads();
39203 {
39204 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39205 result = (wxString *) &_result_ref;
39206 }
39207 wxPyEndAllowThreads(__tstate);
39208 if (PyErr_Occurred()) SWIG_fail;
39209 }
39210 {
39211 #if wxUSE_UNICODE
39212 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39213 #else
39214 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39215 #endif
39216 }
39217 return resultobj;
39218 fail:
39219 return NULL;
39220 }
39221
39222
39223 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39224 PyObject *resultobj = 0;
39225 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39226 wxString *arg2 = 0 ;
39227 void *argp1 = 0 ;
39228 int res1 = 0 ;
39229 bool temp2 = false ;
39230 PyObject * obj0 = 0 ;
39231 PyObject * obj1 = 0 ;
39232 char * kwnames[] = {
39233 (char *) "self",(char *) "link", NULL
39234 };
39235
39236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39238 if (!SWIG_IsOK(res1)) {
39239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39240 }
39241 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39242 {
39243 arg2 = wxString_in_helper(obj1);
39244 if (arg2 == NULL) SWIG_fail;
39245 temp2 = true;
39246 }
39247 {
39248 PyThreadState* __tstate = wxPyBeginAllowThreads();
39249 (arg1)->SetLink((wxString const &)*arg2);
39250 wxPyEndAllowThreads(__tstate);
39251 if (PyErr_Occurred()) SWIG_fail;
39252 }
39253 resultobj = SWIG_Py_Void();
39254 {
39255 if (temp2)
39256 delete arg2;
39257 }
39258 return resultobj;
39259 fail:
39260 {
39261 if (temp2)
39262 delete arg2;
39263 }
39264 return NULL;
39265 }
39266
39267
39268 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39269 PyObject *resultobj = 0;
39270 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39271 wxString *result = 0 ;
39272 void *argp1 = 0 ;
39273 int res1 = 0 ;
39274 PyObject *swig_obj[1] ;
39275
39276 if (!args) SWIG_fail;
39277 swig_obj[0] = args;
39278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39279 if (!SWIG_IsOK(res1)) {
39280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39281 }
39282 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39283 {
39284 PyThreadState* __tstate = wxPyBeginAllowThreads();
39285 {
39286 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39287 result = (wxString *) &_result_ref;
39288 }
39289 wxPyEndAllowThreads(__tstate);
39290 if (PyErr_Occurred()) SWIG_fail;
39291 }
39292 {
39293 #if wxUSE_UNICODE
39294 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39295 #else
39296 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39297 #endif
39298 }
39299 return resultobj;
39300 fail:
39301 return NULL;
39302 }
39303
39304
39305 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39306 PyObject *resultobj = 0;
39307 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39308 wxString *arg2 = 0 ;
39309 void *argp1 = 0 ;
39310 int res1 = 0 ;
39311 bool temp2 = false ;
39312 PyObject * obj0 = 0 ;
39313 PyObject * obj1 = 0 ;
39314 char * kwnames[] = {
39315 (char *) "self",(char *) "target", NULL
39316 };
39317
39318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39320 if (!SWIG_IsOK(res1)) {
39321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39322 }
39323 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39324 {
39325 arg2 = wxString_in_helper(obj1);
39326 if (arg2 == NULL) SWIG_fail;
39327 temp2 = true;
39328 }
39329 {
39330 PyThreadState* __tstate = wxPyBeginAllowThreads();
39331 (arg1)->SetTarget((wxString const &)*arg2);
39332 wxPyEndAllowThreads(__tstate);
39333 if (PyErr_Occurred()) SWIG_fail;
39334 }
39335 resultobj = SWIG_Py_Void();
39336 {
39337 if (temp2)
39338 delete arg2;
39339 }
39340 return resultobj;
39341 fail:
39342 {
39343 if (temp2)
39344 delete arg2;
39345 }
39346 return NULL;
39347 }
39348
39349
39350 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39351 PyObject *resultobj = 0;
39352 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39353 wxHelpEvent::Origin result;
39354 void *argp1 = 0 ;
39355 int res1 = 0 ;
39356 PyObject *swig_obj[1] ;
39357
39358 if (!args) SWIG_fail;
39359 swig_obj[0] = args;
39360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39361 if (!SWIG_IsOK(res1)) {
39362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39363 }
39364 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39365 {
39366 PyThreadState* __tstate = wxPyBeginAllowThreads();
39367 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39368 wxPyEndAllowThreads(__tstate);
39369 if (PyErr_Occurred()) SWIG_fail;
39370 }
39371 resultobj = SWIG_From_int(static_cast< int >(result));
39372 return resultobj;
39373 fail:
39374 return NULL;
39375 }
39376
39377
39378 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39379 PyObject *resultobj = 0;
39380 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39381 wxHelpEvent::Origin arg2 ;
39382 void *argp1 = 0 ;
39383 int res1 = 0 ;
39384 int val2 ;
39385 int ecode2 = 0 ;
39386 PyObject * obj0 = 0 ;
39387 PyObject * obj1 = 0 ;
39388 char * kwnames[] = {
39389 (char *) "self",(char *) "origin", NULL
39390 };
39391
39392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39394 if (!SWIG_IsOK(res1)) {
39395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39396 }
39397 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39398 ecode2 = SWIG_AsVal_int(obj1, &val2);
39399 if (!SWIG_IsOK(ecode2)) {
39400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39401 }
39402 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39403 {
39404 PyThreadState* __tstate = wxPyBeginAllowThreads();
39405 (arg1)->SetOrigin(arg2);
39406 wxPyEndAllowThreads(__tstate);
39407 if (PyErr_Occurred()) SWIG_fail;
39408 }
39409 resultobj = SWIG_Py_Void();
39410 return resultobj;
39411 fail:
39412 return NULL;
39413 }
39414
39415
39416 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39417 PyObject *obj;
39418 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39419 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39420 return SWIG_Py_Void();
39421 }
39422
39423 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39424 return SWIG_Python_InitShadowInstance(args);
39425 }
39426
39427 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39428 PyObject *resultobj = 0;
39429 wxWindow *arg1 = (wxWindow *) NULL ;
39430 bool arg2 = (bool) true ;
39431 wxContextHelp *result = 0 ;
39432 void *argp1 = 0 ;
39433 int res1 = 0 ;
39434 bool val2 ;
39435 int ecode2 = 0 ;
39436 PyObject * obj0 = 0 ;
39437 PyObject * obj1 = 0 ;
39438 char * kwnames[] = {
39439 (char *) "window",(char *) "doNow", NULL
39440 };
39441
39442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39443 if (obj0) {
39444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39445 if (!SWIG_IsOK(res1)) {
39446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39447 }
39448 arg1 = reinterpret_cast< wxWindow * >(argp1);
39449 }
39450 if (obj1) {
39451 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39452 if (!SWIG_IsOK(ecode2)) {
39453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39454 }
39455 arg2 = static_cast< bool >(val2);
39456 }
39457 {
39458 if (!wxPyCheckForApp()) SWIG_fail;
39459 PyThreadState* __tstate = wxPyBeginAllowThreads();
39460 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39461 wxPyEndAllowThreads(__tstate);
39462 if (PyErr_Occurred()) SWIG_fail;
39463 }
39464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39465 return resultobj;
39466 fail:
39467 return NULL;
39468 }
39469
39470
39471 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39472 PyObject *resultobj = 0;
39473 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39474 void *argp1 = 0 ;
39475 int res1 = 0 ;
39476 PyObject *swig_obj[1] ;
39477
39478 if (!args) SWIG_fail;
39479 swig_obj[0] = args;
39480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39481 if (!SWIG_IsOK(res1)) {
39482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39483 }
39484 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39485 {
39486 PyThreadState* __tstate = wxPyBeginAllowThreads();
39487 delete arg1;
39488
39489 wxPyEndAllowThreads(__tstate);
39490 if (PyErr_Occurred()) SWIG_fail;
39491 }
39492 resultobj = SWIG_Py_Void();
39493 return resultobj;
39494 fail:
39495 return NULL;
39496 }
39497
39498
39499 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39500 PyObject *resultobj = 0;
39501 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39502 wxWindow *arg2 = (wxWindow *) NULL ;
39503 bool result;
39504 void *argp1 = 0 ;
39505 int res1 = 0 ;
39506 void *argp2 = 0 ;
39507 int res2 = 0 ;
39508 PyObject * obj0 = 0 ;
39509 PyObject * obj1 = 0 ;
39510 char * kwnames[] = {
39511 (char *) "self",(char *) "window", NULL
39512 };
39513
39514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39516 if (!SWIG_IsOK(res1)) {
39517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39518 }
39519 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39520 if (obj1) {
39521 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39522 if (!SWIG_IsOK(res2)) {
39523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39524 }
39525 arg2 = reinterpret_cast< wxWindow * >(argp2);
39526 }
39527 {
39528 PyThreadState* __tstate = wxPyBeginAllowThreads();
39529 result = (bool)(arg1)->BeginContextHelp(arg2);
39530 wxPyEndAllowThreads(__tstate);
39531 if (PyErr_Occurred()) SWIG_fail;
39532 }
39533 {
39534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39535 }
39536 return resultobj;
39537 fail:
39538 return NULL;
39539 }
39540
39541
39542 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39543 PyObject *resultobj = 0;
39544 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39545 bool result;
39546 void *argp1 = 0 ;
39547 int res1 = 0 ;
39548 PyObject *swig_obj[1] ;
39549
39550 if (!args) SWIG_fail;
39551 swig_obj[0] = args;
39552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39553 if (!SWIG_IsOK(res1)) {
39554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39555 }
39556 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39557 {
39558 PyThreadState* __tstate = wxPyBeginAllowThreads();
39559 result = (bool)(arg1)->EndContextHelp();
39560 wxPyEndAllowThreads(__tstate);
39561 if (PyErr_Occurred()) SWIG_fail;
39562 }
39563 {
39564 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39565 }
39566 return resultobj;
39567 fail:
39568 return NULL;
39569 }
39570
39571
39572 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39573 PyObject *obj;
39574 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39575 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39576 return SWIG_Py_Void();
39577 }
39578
39579 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39580 return SWIG_Python_InitShadowInstance(args);
39581 }
39582
39583 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39584 PyObject *resultobj = 0;
39585 wxWindow *arg1 = (wxWindow *) 0 ;
39586 int arg2 = (int) wxID_CONTEXT_HELP ;
39587 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39588 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39589 wxSize const &arg4_defvalue = wxDefaultSize ;
39590 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39591 long arg5 = (long) wxBU_AUTODRAW ;
39592 wxContextHelpButton *result = 0 ;
39593 void *argp1 = 0 ;
39594 int res1 = 0 ;
39595 int val2 ;
39596 int ecode2 = 0 ;
39597 wxPoint temp3 ;
39598 wxSize temp4 ;
39599 long val5 ;
39600 int ecode5 = 0 ;
39601 PyObject * obj0 = 0 ;
39602 PyObject * obj1 = 0 ;
39603 PyObject * obj2 = 0 ;
39604 PyObject * obj3 = 0 ;
39605 PyObject * obj4 = 0 ;
39606 char * kwnames[] = {
39607 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39608 };
39609
39610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39612 if (!SWIG_IsOK(res1)) {
39613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39614 }
39615 arg1 = reinterpret_cast< wxWindow * >(argp1);
39616 if (obj1) {
39617 ecode2 = SWIG_AsVal_int(obj1, &val2);
39618 if (!SWIG_IsOK(ecode2)) {
39619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39620 }
39621 arg2 = static_cast< int >(val2);
39622 }
39623 if (obj2) {
39624 {
39625 arg3 = &temp3;
39626 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39627 }
39628 }
39629 if (obj3) {
39630 {
39631 arg4 = &temp4;
39632 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39633 }
39634 }
39635 if (obj4) {
39636 ecode5 = SWIG_AsVal_long(obj4, &val5);
39637 if (!SWIG_IsOK(ecode5)) {
39638 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39639 }
39640 arg5 = static_cast< long >(val5);
39641 }
39642 {
39643 if (!wxPyCheckForApp()) SWIG_fail;
39644 PyThreadState* __tstate = wxPyBeginAllowThreads();
39645 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39646 wxPyEndAllowThreads(__tstate);
39647 if (PyErr_Occurred()) SWIG_fail;
39648 }
39649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39650 return resultobj;
39651 fail:
39652 return NULL;
39653 }
39654
39655
39656 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39657 PyObject *obj;
39658 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39659 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39660 return SWIG_Py_Void();
39661 }
39662
39663 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39664 return SWIG_Python_InitShadowInstance(args);
39665 }
39666
39667 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39668 PyObject *resultobj = 0;
39669 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39670 void *argp1 = 0 ;
39671 int res1 = 0 ;
39672 PyObject *swig_obj[1] ;
39673
39674 if (!args) SWIG_fail;
39675 swig_obj[0] = args;
39676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39677 if (!SWIG_IsOK(res1)) {
39678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39679 }
39680 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39681 {
39682 PyThreadState* __tstate = wxPyBeginAllowThreads();
39683 delete arg1;
39684
39685 wxPyEndAllowThreads(__tstate);
39686 if (PyErr_Occurred()) SWIG_fail;
39687 }
39688 resultobj = SWIG_Py_Void();
39689 return resultobj;
39690 fail:
39691 return NULL;
39692 }
39693
39694
39695 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39696 PyObject *resultobj = 0;
39697 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39698 wxHelpProvider *result = 0 ;
39699 int res1 = 0 ;
39700 PyObject * obj0 = 0 ;
39701 char * kwnames[] = {
39702 (char *) "helpProvider", NULL
39703 };
39704
39705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39706 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39707 if (!SWIG_IsOK(res1)) {
39708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39709 }
39710 {
39711 PyThreadState* __tstate = wxPyBeginAllowThreads();
39712 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39713 wxPyEndAllowThreads(__tstate);
39714 if (PyErr_Occurred()) SWIG_fail;
39715 }
39716 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39717 return resultobj;
39718 fail:
39719 return NULL;
39720 }
39721
39722
39723 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39724 PyObject *resultobj = 0;
39725 wxHelpProvider *result = 0 ;
39726
39727 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39728 {
39729 PyThreadState* __tstate = wxPyBeginAllowThreads();
39730 result = (wxHelpProvider *)wxHelpProvider::Get();
39731 wxPyEndAllowThreads(__tstate);
39732 if (PyErr_Occurred()) SWIG_fail;
39733 }
39734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39735 return resultobj;
39736 fail:
39737 return NULL;
39738 }
39739
39740
39741 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39742 PyObject *resultobj = 0;
39743 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39744 wxWindow *arg2 = (wxWindow *) 0 ;
39745 wxString result;
39746 void *argp1 = 0 ;
39747 int res1 = 0 ;
39748 void *argp2 = 0 ;
39749 int res2 = 0 ;
39750 PyObject * obj0 = 0 ;
39751 PyObject * obj1 = 0 ;
39752 char * kwnames[] = {
39753 (char *) "self",(char *) "window", NULL
39754 };
39755
39756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39758 if (!SWIG_IsOK(res1)) {
39759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39760 }
39761 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39762 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39763 if (!SWIG_IsOK(res2)) {
39764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39765 }
39766 arg2 = reinterpret_cast< wxWindow * >(argp2);
39767 {
39768 PyThreadState* __tstate = wxPyBeginAllowThreads();
39769 result = (arg1)->GetHelp((wxWindow const *)arg2);
39770 wxPyEndAllowThreads(__tstate);
39771 if (PyErr_Occurred()) SWIG_fail;
39772 }
39773 {
39774 #if wxUSE_UNICODE
39775 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39776 #else
39777 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39778 #endif
39779 }
39780 return resultobj;
39781 fail:
39782 return NULL;
39783 }
39784
39785
39786 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39787 PyObject *resultobj = 0;
39788 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39789 wxWindow *arg2 = (wxWindow *) 0 ;
39790 bool result;
39791 void *argp1 = 0 ;
39792 int res1 = 0 ;
39793 void *argp2 = 0 ;
39794 int res2 = 0 ;
39795 PyObject * obj0 = 0 ;
39796 PyObject * obj1 = 0 ;
39797 char * kwnames[] = {
39798 (char *) "self",(char *) "window", NULL
39799 };
39800
39801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39803 if (!SWIG_IsOK(res1)) {
39804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39805 }
39806 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39807 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39808 if (!SWIG_IsOK(res2)) {
39809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39810 }
39811 arg2 = reinterpret_cast< wxWindow * >(argp2);
39812 {
39813 PyThreadState* __tstate = wxPyBeginAllowThreads();
39814 result = (bool)(arg1)->ShowHelp(arg2);
39815 wxPyEndAllowThreads(__tstate);
39816 if (PyErr_Occurred()) SWIG_fail;
39817 }
39818 {
39819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39820 }
39821 return resultobj;
39822 fail:
39823 return NULL;
39824 }
39825
39826
39827 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39828 PyObject *resultobj = 0;
39829 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39830 wxWindow *arg2 = (wxWindow *) 0 ;
39831 wxString *arg3 = 0 ;
39832 void *argp1 = 0 ;
39833 int res1 = 0 ;
39834 void *argp2 = 0 ;
39835 int res2 = 0 ;
39836 bool temp3 = false ;
39837 PyObject * obj0 = 0 ;
39838 PyObject * obj1 = 0 ;
39839 PyObject * obj2 = 0 ;
39840 char * kwnames[] = {
39841 (char *) "self",(char *) "window",(char *) "text", NULL
39842 };
39843
39844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39846 if (!SWIG_IsOK(res1)) {
39847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39848 }
39849 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39850 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39851 if (!SWIG_IsOK(res2)) {
39852 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39853 }
39854 arg2 = reinterpret_cast< wxWindow * >(argp2);
39855 {
39856 arg3 = wxString_in_helper(obj2);
39857 if (arg3 == NULL) SWIG_fail;
39858 temp3 = true;
39859 }
39860 {
39861 PyThreadState* __tstate = wxPyBeginAllowThreads();
39862 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39863 wxPyEndAllowThreads(__tstate);
39864 if (PyErr_Occurred()) SWIG_fail;
39865 }
39866 resultobj = SWIG_Py_Void();
39867 {
39868 if (temp3)
39869 delete arg3;
39870 }
39871 return resultobj;
39872 fail:
39873 {
39874 if (temp3)
39875 delete arg3;
39876 }
39877 return NULL;
39878 }
39879
39880
39881 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39882 PyObject *resultobj = 0;
39883 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39884 int arg2 ;
39885 wxString *arg3 = 0 ;
39886 void *argp1 = 0 ;
39887 int res1 = 0 ;
39888 int val2 ;
39889 int ecode2 = 0 ;
39890 bool temp3 = false ;
39891 PyObject * obj0 = 0 ;
39892 PyObject * obj1 = 0 ;
39893 PyObject * obj2 = 0 ;
39894 char * kwnames[] = {
39895 (char *) "self",(char *) "id",(char *) "text", NULL
39896 };
39897
39898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39900 if (!SWIG_IsOK(res1)) {
39901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39902 }
39903 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39904 ecode2 = SWIG_AsVal_int(obj1, &val2);
39905 if (!SWIG_IsOK(ecode2)) {
39906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
39907 }
39908 arg2 = static_cast< int >(val2);
39909 {
39910 arg3 = wxString_in_helper(obj2);
39911 if (arg3 == NULL) SWIG_fail;
39912 temp3 = true;
39913 }
39914 {
39915 PyThreadState* __tstate = wxPyBeginAllowThreads();
39916 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39917 wxPyEndAllowThreads(__tstate);
39918 if (PyErr_Occurred()) SWIG_fail;
39919 }
39920 resultobj = SWIG_Py_Void();
39921 {
39922 if (temp3)
39923 delete arg3;
39924 }
39925 return resultobj;
39926 fail:
39927 {
39928 if (temp3)
39929 delete arg3;
39930 }
39931 return NULL;
39932 }
39933
39934
39935 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39936 PyObject *resultobj = 0;
39937 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39938 wxWindow *arg2 = (wxWindow *) 0 ;
39939 void *argp1 = 0 ;
39940 int res1 = 0 ;
39941 void *argp2 = 0 ;
39942 int res2 = 0 ;
39943 PyObject * obj0 = 0 ;
39944 PyObject * obj1 = 0 ;
39945 char * kwnames[] = {
39946 (char *) "self",(char *) "window", NULL
39947 };
39948
39949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39951 if (!SWIG_IsOK(res1)) {
39952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39953 }
39954 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39955 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39956 if (!SWIG_IsOK(res2)) {
39957 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39958 }
39959 arg2 = reinterpret_cast< wxWindow * >(argp2);
39960 {
39961 PyThreadState* __tstate = wxPyBeginAllowThreads();
39962 (arg1)->RemoveHelp(arg2);
39963 wxPyEndAllowThreads(__tstate);
39964 if (PyErr_Occurred()) SWIG_fail;
39965 }
39966 resultobj = SWIG_Py_Void();
39967 return resultobj;
39968 fail:
39969 return NULL;
39970 }
39971
39972
39973 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39974 PyObject *resultobj = 0;
39975 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39976 void *argp1 = 0 ;
39977 int res1 = 0 ;
39978 PyObject *swig_obj[1] ;
39979
39980 if (!args) SWIG_fail;
39981 swig_obj[0] = args;
39982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39983 if (!SWIG_IsOK(res1)) {
39984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39985 }
39986 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39987 {
39988 PyThreadState* __tstate = wxPyBeginAllowThreads();
39989 wxHelpProvider_Destroy(arg1);
39990 wxPyEndAllowThreads(__tstate);
39991 if (PyErr_Occurred()) SWIG_fail;
39992 }
39993 resultobj = SWIG_Py_Void();
39994 return resultobj;
39995 fail:
39996 return NULL;
39997 }
39998
39999
40000 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40001 PyObject *obj;
40002 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40003 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40004 return SWIG_Py_Void();
40005 }
40006
40007 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40008 PyObject *resultobj = 0;
40009 wxSimpleHelpProvider *result = 0 ;
40010
40011 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40012 {
40013 PyThreadState* __tstate = wxPyBeginAllowThreads();
40014 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40015 wxPyEndAllowThreads(__tstate);
40016 if (PyErr_Occurred()) SWIG_fail;
40017 }
40018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40019 return resultobj;
40020 fail:
40021 return NULL;
40022 }
40023
40024
40025 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40026 PyObject *obj;
40027 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40028 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40029 return SWIG_Py_Void();
40030 }
40031
40032 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40033 return SWIG_Python_InitShadowInstance(args);
40034 }
40035
40036 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40037 PyObject *resultobj = 0;
40038 wxBitmap *arg1 = 0 ;
40039 wxCursor const &arg2_defvalue = wxNullCursor ;
40040 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40041 wxGenericDragImage *result = 0 ;
40042 void *argp1 = 0 ;
40043 int res1 = 0 ;
40044 void *argp2 = 0 ;
40045 int res2 = 0 ;
40046 PyObject * obj0 = 0 ;
40047 PyObject * obj1 = 0 ;
40048 char * kwnames[] = {
40049 (char *) "image",(char *) "cursor", NULL
40050 };
40051
40052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40053 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40054 if (!SWIG_IsOK(res1)) {
40055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40056 }
40057 if (!argp1) {
40058 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40059 }
40060 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40061 if (obj1) {
40062 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40063 if (!SWIG_IsOK(res2)) {
40064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40065 }
40066 if (!argp2) {
40067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40068 }
40069 arg2 = reinterpret_cast< wxCursor * >(argp2);
40070 }
40071 {
40072 if (!wxPyCheckForApp()) SWIG_fail;
40073 PyThreadState* __tstate = wxPyBeginAllowThreads();
40074 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40075 wxPyEndAllowThreads(__tstate);
40076 if (PyErr_Occurred()) SWIG_fail;
40077 }
40078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40079 return resultobj;
40080 fail:
40081 return NULL;
40082 }
40083
40084
40085 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40086 PyObject *resultobj = 0;
40087 wxIcon *arg1 = 0 ;
40088 wxCursor const &arg2_defvalue = wxNullCursor ;
40089 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40090 wxGenericDragImage *result = 0 ;
40091 void *argp1 = 0 ;
40092 int res1 = 0 ;
40093 void *argp2 = 0 ;
40094 int res2 = 0 ;
40095 PyObject * obj0 = 0 ;
40096 PyObject * obj1 = 0 ;
40097 char * kwnames[] = {
40098 (char *) "image",(char *) "cursor", NULL
40099 };
40100
40101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40102 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40103 if (!SWIG_IsOK(res1)) {
40104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40105 }
40106 if (!argp1) {
40107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40108 }
40109 arg1 = reinterpret_cast< wxIcon * >(argp1);
40110 if (obj1) {
40111 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40112 if (!SWIG_IsOK(res2)) {
40113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40114 }
40115 if (!argp2) {
40116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40117 }
40118 arg2 = reinterpret_cast< wxCursor * >(argp2);
40119 }
40120 {
40121 if (!wxPyCheckForApp()) SWIG_fail;
40122 PyThreadState* __tstate = wxPyBeginAllowThreads();
40123 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40124 wxPyEndAllowThreads(__tstate);
40125 if (PyErr_Occurred()) SWIG_fail;
40126 }
40127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40128 return resultobj;
40129 fail:
40130 return NULL;
40131 }
40132
40133
40134 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40135 PyObject *resultobj = 0;
40136 wxString *arg1 = 0 ;
40137 wxCursor const &arg2_defvalue = wxNullCursor ;
40138 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40139 wxGenericDragImage *result = 0 ;
40140 bool temp1 = false ;
40141 void *argp2 = 0 ;
40142 int res2 = 0 ;
40143 PyObject * obj0 = 0 ;
40144 PyObject * obj1 = 0 ;
40145 char * kwnames[] = {
40146 (char *) "str",(char *) "cursor", NULL
40147 };
40148
40149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40150 {
40151 arg1 = wxString_in_helper(obj0);
40152 if (arg1 == NULL) SWIG_fail;
40153 temp1 = true;
40154 }
40155 if (obj1) {
40156 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40157 if (!SWIG_IsOK(res2)) {
40158 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40159 }
40160 if (!argp2) {
40161 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40162 }
40163 arg2 = reinterpret_cast< wxCursor * >(argp2);
40164 }
40165 {
40166 if (!wxPyCheckForApp()) SWIG_fail;
40167 PyThreadState* __tstate = wxPyBeginAllowThreads();
40168 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40169 wxPyEndAllowThreads(__tstate);
40170 if (PyErr_Occurred()) SWIG_fail;
40171 }
40172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40173 {
40174 if (temp1)
40175 delete arg1;
40176 }
40177 return resultobj;
40178 fail:
40179 {
40180 if (temp1)
40181 delete arg1;
40182 }
40183 return NULL;
40184 }
40185
40186
40187 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40188 PyObject *resultobj = 0;
40189 wxPyTreeCtrl *arg1 = 0 ;
40190 wxTreeItemId *arg2 = 0 ;
40191 wxGenericDragImage *result = 0 ;
40192 void *argp1 = 0 ;
40193 int res1 = 0 ;
40194 void *argp2 = 0 ;
40195 int res2 = 0 ;
40196 PyObject * obj0 = 0 ;
40197 PyObject * obj1 = 0 ;
40198 char * kwnames[] = {
40199 (char *) "treeCtrl",(char *) "id", NULL
40200 };
40201
40202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40203 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40204 if (!SWIG_IsOK(res1)) {
40205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40206 }
40207 if (!argp1) {
40208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40209 }
40210 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40211 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40212 if (!SWIG_IsOK(res2)) {
40213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40214 }
40215 if (!argp2) {
40216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40217 }
40218 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40219 {
40220 if (!wxPyCheckForApp()) SWIG_fail;
40221 PyThreadState* __tstate = wxPyBeginAllowThreads();
40222 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40223 wxPyEndAllowThreads(__tstate);
40224 if (PyErr_Occurred()) SWIG_fail;
40225 }
40226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40227 return resultobj;
40228 fail:
40229 return NULL;
40230 }
40231
40232
40233 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40234 PyObject *resultobj = 0;
40235 wxPyListCtrl *arg1 = 0 ;
40236 long arg2 ;
40237 wxGenericDragImage *result = 0 ;
40238 void *argp1 = 0 ;
40239 int res1 = 0 ;
40240 long val2 ;
40241 int ecode2 = 0 ;
40242 PyObject * obj0 = 0 ;
40243 PyObject * obj1 = 0 ;
40244 char * kwnames[] = {
40245 (char *) "listCtrl",(char *) "id", NULL
40246 };
40247
40248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40249 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40250 if (!SWIG_IsOK(res1)) {
40251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40252 }
40253 if (!argp1) {
40254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40255 }
40256 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40257 ecode2 = SWIG_AsVal_long(obj1, &val2);
40258 if (!SWIG_IsOK(ecode2)) {
40259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40260 }
40261 arg2 = static_cast< long >(val2);
40262 {
40263 if (!wxPyCheckForApp()) SWIG_fail;
40264 PyThreadState* __tstate = wxPyBeginAllowThreads();
40265 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40266 wxPyEndAllowThreads(__tstate);
40267 if (PyErr_Occurred()) SWIG_fail;
40268 }
40269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40270 return resultobj;
40271 fail:
40272 return NULL;
40273 }
40274
40275
40276 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40277 PyObject *resultobj = 0;
40278 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40279 void *argp1 = 0 ;
40280 int res1 = 0 ;
40281 PyObject *swig_obj[1] ;
40282
40283 if (!args) SWIG_fail;
40284 swig_obj[0] = args;
40285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40286 if (!SWIG_IsOK(res1)) {
40287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40288 }
40289 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40290 {
40291 PyThreadState* __tstate = wxPyBeginAllowThreads();
40292 delete arg1;
40293
40294 wxPyEndAllowThreads(__tstate);
40295 if (PyErr_Occurred()) SWIG_fail;
40296 }
40297 resultobj = SWIG_Py_Void();
40298 return resultobj;
40299 fail:
40300 return NULL;
40301 }
40302
40303
40304 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40305 PyObject *resultobj = 0;
40306 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40307 wxBitmap *arg2 = (wxBitmap *) 0 ;
40308 void *argp1 = 0 ;
40309 int res1 = 0 ;
40310 void *argp2 = 0 ;
40311 int res2 = 0 ;
40312 PyObject * obj0 = 0 ;
40313 PyObject * obj1 = 0 ;
40314 char * kwnames[] = {
40315 (char *) "self",(char *) "bitmap", NULL
40316 };
40317
40318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40320 if (!SWIG_IsOK(res1)) {
40321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40322 }
40323 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40324 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40325 if (!SWIG_IsOK(res2)) {
40326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40327 }
40328 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40329 {
40330 PyThreadState* __tstate = wxPyBeginAllowThreads();
40331 (arg1)->SetBackingBitmap(arg2);
40332 wxPyEndAllowThreads(__tstate);
40333 if (PyErr_Occurred()) SWIG_fail;
40334 }
40335 resultobj = SWIG_Py_Void();
40336 return resultobj;
40337 fail:
40338 return NULL;
40339 }
40340
40341
40342 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40343 PyObject *resultobj = 0;
40344 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40345 wxPoint *arg2 = 0 ;
40346 wxWindow *arg3 = (wxWindow *) 0 ;
40347 bool arg4 = (bool) false ;
40348 wxRect *arg5 = (wxRect *) NULL ;
40349 bool result;
40350 void *argp1 = 0 ;
40351 int res1 = 0 ;
40352 wxPoint temp2 ;
40353 void *argp3 = 0 ;
40354 int res3 = 0 ;
40355 bool val4 ;
40356 int ecode4 = 0 ;
40357 void *argp5 = 0 ;
40358 int res5 = 0 ;
40359 PyObject * obj0 = 0 ;
40360 PyObject * obj1 = 0 ;
40361 PyObject * obj2 = 0 ;
40362 PyObject * obj3 = 0 ;
40363 PyObject * obj4 = 0 ;
40364 char * kwnames[] = {
40365 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40366 };
40367
40368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40370 if (!SWIG_IsOK(res1)) {
40371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40372 }
40373 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40374 {
40375 arg2 = &temp2;
40376 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40377 }
40378 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40379 if (!SWIG_IsOK(res3)) {
40380 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40381 }
40382 arg3 = reinterpret_cast< wxWindow * >(argp3);
40383 if (obj3) {
40384 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40385 if (!SWIG_IsOK(ecode4)) {
40386 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40387 }
40388 arg4 = static_cast< bool >(val4);
40389 }
40390 if (obj4) {
40391 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40392 if (!SWIG_IsOK(res5)) {
40393 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40394 }
40395 arg5 = reinterpret_cast< wxRect * >(argp5);
40396 }
40397 {
40398 PyThreadState* __tstate = wxPyBeginAllowThreads();
40399 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40400 wxPyEndAllowThreads(__tstate);
40401 if (PyErr_Occurred()) SWIG_fail;
40402 }
40403 {
40404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40405 }
40406 return resultobj;
40407 fail:
40408 return NULL;
40409 }
40410
40411
40412 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40413 PyObject *resultobj = 0;
40414 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40415 wxPoint *arg2 = 0 ;
40416 wxWindow *arg3 = (wxWindow *) 0 ;
40417 wxWindow *arg4 = (wxWindow *) 0 ;
40418 bool result;
40419 void *argp1 = 0 ;
40420 int res1 = 0 ;
40421 wxPoint temp2 ;
40422 void *argp3 = 0 ;
40423 int res3 = 0 ;
40424 void *argp4 = 0 ;
40425 int res4 = 0 ;
40426 PyObject * obj0 = 0 ;
40427 PyObject * obj1 = 0 ;
40428 PyObject * obj2 = 0 ;
40429 PyObject * obj3 = 0 ;
40430 char * kwnames[] = {
40431 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40432 };
40433
40434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40436 if (!SWIG_IsOK(res1)) {
40437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40438 }
40439 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40440 {
40441 arg2 = &temp2;
40442 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40443 }
40444 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40445 if (!SWIG_IsOK(res3)) {
40446 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40447 }
40448 arg3 = reinterpret_cast< wxWindow * >(argp3);
40449 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40450 if (!SWIG_IsOK(res4)) {
40451 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40452 }
40453 arg4 = reinterpret_cast< wxWindow * >(argp4);
40454 {
40455 PyThreadState* __tstate = wxPyBeginAllowThreads();
40456 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40457 wxPyEndAllowThreads(__tstate);
40458 if (PyErr_Occurred()) SWIG_fail;
40459 }
40460 {
40461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40462 }
40463 return resultobj;
40464 fail:
40465 return NULL;
40466 }
40467
40468
40469 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40470 PyObject *resultobj = 0;
40471 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40472 bool result;
40473 void *argp1 = 0 ;
40474 int res1 = 0 ;
40475 PyObject *swig_obj[1] ;
40476
40477 if (!args) SWIG_fail;
40478 swig_obj[0] = args;
40479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40480 if (!SWIG_IsOK(res1)) {
40481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40482 }
40483 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40484 {
40485 PyThreadState* __tstate = wxPyBeginAllowThreads();
40486 result = (bool)(arg1)->EndDrag();
40487 wxPyEndAllowThreads(__tstate);
40488 if (PyErr_Occurred()) SWIG_fail;
40489 }
40490 {
40491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40492 }
40493 return resultobj;
40494 fail:
40495 return NULL;
40496 }
40497
40498
40499 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40500 PyObject *resultobj = 0;
40501 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40502 wxPoint *arg2 = 0 ;
40503 bool result;
40504 void *argp1 = 0 ;
40505 int res1 = 0 ;
40506 wxPoint temp2 ;
40507 PyObject * obj0 = 0 ;
40508 PyObject * obj1 = 0 ;
40509 char * kwnames[] = {
40510 (char *) "self",(char *) "pt", NULL
40511 };
40512
40513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40515 if (!SWIG_IsOK(res1)) {
40516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40517 }
40518 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40519 {
40520 arg2 = &temp2;
40521 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40522 }
40523 {
40524 PyThreadState* __tstate = wxPyBeginAllowThreads();
40525 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40526 wxPyEndAllowThreads(__tstate);
40527 if (PyErr_Occurred()) SWIG_fail;
40528 }
40529 {
40530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40531 }
40532 return resultobj;
40533 fail:
40534 return NULL;
40535 }
40536
40537
40538 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40539 PyObject *resultobj = 0;
40540 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40541 bool result;
40542 void *argp1 = 0 ;
40543 int res1 = 0 ;
40544 PyObject *swig_obj[1] ;
40545
40546 if (!args) SWIG_fail;
40547 swig_obj[0] = args;
40548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40549 if (!SWIG_IsOK(res1)) {
40550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40551 }
40552 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40553 {
40554 PyThreadState* __tstate = wxPyBeginAllowThreads();
40555 result = (bool)(arg1)->Show();
40556 wxPyEndAllowThreads(__tstate);
40557 if (PyErr_Occurred()) SWIG_fail;
40558 }
40559 {
40560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40561 }
40562 return resultobj;
40563 fail:
40564 return NULL;
40565 }
40566
40567
40568 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40569 PyObject *resultobj = 0;
40570 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40571 bool result;
40572 void *argp1 = 0 ;
40573 int res1 = 0 ;
40574 PyObject *swig_obj[1] ;
40575
40576 if (!args) SWIG_fail;
40577 swig_obj[0] = args;
40578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40579 if (!SWIG_IsOK(res1)) {
40580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40581 }
40582 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40583 {
40584 PyThreadState* __tstate = wxPyBeginAllowThreads();
40585 result = (bool)(arg1)->Hide();
40586 wxPyEndAllowThreads(__tstate);
40587 if (PyErr_Occurred()) SWIG_fail;
40588 }
40589 {
40590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40591 }
40592 return resultobj;
40593 fail:
40594 return NULL;
40595 }
40596
40597
40598 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40599 PyObject *resultobj = 0;
40600 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40601 wxPoint *arg2 = 0 ;
40602 wxRect result;
40603 void *argp1 = 0 ;
40604 int res1 = 0 ;
40605 wxPoint temp2 ;
40606 PyObject * obj0 = 0 ;
40607 PyObject * obj1 = 0 ;
40608 char * kwnames[] = {
40609 (char *) "self",(char *) "pos", NULL
40610 };
40611
40612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40614 if (!SWIG_IsOK(res1)) {
40615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40616 }
40617 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40618 {
40619 arg2 = &temp2;
40620 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40621 }
40622 {
40623 PyThreadState* __tstate = wxPyBeginAllowThreads();
40624 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40625 wxPyEndAllowThreads(__tstate);
40626 if (PyErr_Occurred()) SWIG_fail;
40627 }
40628 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40629 return resultobj;
40630 fail:
40631 return NULL;
40632 }
40633
40634
40635 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40636 PyObject *resultobj = 0;
40637 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40638 wxDC *arg2 = 0 ;
40639 wxPoint *arg3 = 0 ;
40640 bool result;
40641 void *argp1 = 0 ;
40642 int res1 = 0 ;
40643 void *argp2 = 0 ;
40644 int res2 = 0 ;
40645 wxPoint temp3 ;
40646 PyObject * obj0 = 0 ;
40647 PyObject * obj1 = 0 ;
40648 PyObject * obj2 = 0 ;
40649 char * kwnames[] = {
40650 (char *) "self",(char *) "dc",(char *) "pos", NULL
40651 };
40652
40653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40655 if (!SWIG_IsOK(res1)) {
40656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40657 }
40658 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40659 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40660 if (!SWIG_IsOK(res2)) {
40661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40662 }
40663 if (!argp2) {
40664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40665 }
40666 arg2 = reinterpret_cast< wxDC * >(argp2);
40667 {
40668 arg3 = &temp3;
40669 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40670 }
40671 {
40672 PyThreadState* __tstate = wxPyBeginAllowThreads();
40673 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40674 wxPyEndAllowThreads(__tstate);
40675 if (PyErr_Occurred()) SWIG_fail;
40676 }
40677 {
40678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40679 }
40680 return resultobj;
40681 fail:
40682 return NULL;
40683 }
40684
40685
40686 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40687 PyObject *resultobj = 0;
40688 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40689 wxDC *arg2 = 0 ;
40690 wxMemoryDC *arg3 = 0 ;
40691 wxRect *arg4 = 0 ;
40692 wxRect *arg5 = 0 ;
40693 bool result;
40694 void *argp1 = 0 ;
40695 int res1 = 0 ;
40696 void *argp2 = 0 ;
40697 int res2 = 0 ;
40698 void *argp3 = 0 ;
40699 int res3 = 0 ;
40700 wxRect temp4 ;
40701 wxRect temp5 ;
40702 PyObject * obj0 = 0 ;
40703 PyObject * obj1 = 0 ;
40704 PyObject * obj2 = 0 ;
40705 PyObject * obj3 = 0 ;
40706 PyObject * obj4 = 0 ;
40707 char * kwnames[] = {
40708 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40709 };
40710
40711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40713 if (!SWIG_IsOK(res1)) {
40714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40715 }
40716 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40717 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40718 if (!SWIG_IsOK(res2)) {
40719 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40720 }
40721 if (!argp2) {
40722 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40723 }
40724 arg2 = reinterpret_cast< wxDC * >(argp2);
40725 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40726 if (!SWIG_IsOK(res3)) {
40727 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40728 }
40729 if (!argp3) {
40730 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40731 }
40732 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40733 {
40734 arg4 = &temp4;
40735 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40736 }
40737 {
40738 arg5 = &temp5;
40739 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40740 }
40741 {
40742 PyThreadState* __tstate = wxPyBeginAllowThreads();
40743 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40744 wxPyEndAllowThreads(__tstate);
40745 if (PyErr_Occurred()) SWIG_fail;
40746 }
40747 {
40748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40749 }
40750 return resultobj;
40751 fail:
40752 return NULL;
40753 }
40754
40755
40756 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40757 PyObject *resultobj = 0;
40758 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40759 wxPoint *arg2 = 0 ;
40760 wxPoint *arg3 = 0 ;
40761 bool arg4 ;
40762 bool arg5 ;
40763 bool result;
40764 void *argp1 = 0 ;
40765 int res1 = 0 ;
40766 wxPoint temp2 ;
40767 wxPoint temp3 ;
40768 bool val4 ;
40769 int ecode4 = 0 ;
40770 bool val5 ;
40771 int ecode5 = 0 ;
40772 PyObject * obj0 = 0 ;
40773 PyObject * obj1 = 0 ;
40774 PyObject * obj2 = 0 ;
40775 PyObject * obj3 = 0 ;
40776 PyObject * obj4 = 0 ;
40777 char * kwnames[] = {
40778 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40779 };
40780
40781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40783 if (!SWIG_IsOK(res1)) {
40784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40785 }
40786 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40787 {
40788 arg2 = &temp2;
40789 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40790 }
40791 {
40792 arg3 = &temp3;
40793 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40794 }
40795 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40796 if (!SWIG_IsOK(ecode4)) {
40797 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40798 }
40799 arg4 = static_cast< bool >(val4);
40800 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40801 if (!SWIG_IsOK(ecode5)) {
40802 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40803 }
40804 arg5 = static_cast< bool >(val5);
40805 {
40806 PyThreadState* __tstate = wxPyBeginAllowThreads();
40807 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40808 wxPyEndAllowThreads(__tstate);
40809 if (PyErr_Occurred()) SWIG_fail;
40810 }
40811 {
40812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40813 }
40814 return resultobj;
40815 fail:
40816 return NULL;
40817 }
40818
40819
40820 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40821 PyObject *obj;
40822 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40823 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40824 return SWIG_Py_Void();
40825 }
40826
40827 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40828 return SWIG_Python_InitShadowInstance(args);
40829 }
40830
40831 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40832 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40833 return 1;
40834 }
40835
40836
40837 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40838 PyObject *pyobj = 0;
40839
40840 {
40841 #if wxUSE_UNICODE
40842 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40843 #else
40844 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40845 #endif
40846 }
40847 return pyobj;
40848 }
40849
40850
40851 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40852 PyObject *resultobj = 0;
40853 wxWindow *arg1 = (wxWindow *) 0 ;
40854 int arg2 = (int) -1 ;
40855 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40856 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40857 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40858 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40859 wxSize const &arg5_defvalue = wxDefaultSize ;
40860 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40861 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40862 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40863 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40864 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40865 wxString *arg8 = (wxString *) &arg8_defvalue ;
40866 wxDatePickerCtrl *result = 0 ;
40867 void *argp1 = 0 ;
40868 int res1 = 0 ;
40869 int val2 ;
40870 int ecode2 = 0 ;
40871 void *argp3 = 0 ;
40872 int res3 = 0 ;
40873 wxPoint temp4 ;
40874 wxSize temp5 ;
40875 long val6 ;
40876 int ecode6 = 0 ;
40877 void *argp7 = 0 ;
40878 int res7 = 0 ;
40879 bool temp8 = false ;
40880 PyObject * obj0 = 0 ;
40881 PyObject * obj1 = 0 ;
40882 PyObject * obj2 = 0 ;
40883 PyObject * obj3 = 0 ;
40884 PyObject * obj4 = 0 ;
40885 PyObject * obj5 = 0 ;
40886 PyObject * obj6 = 0 ;
40887 PyObject * obj7 = 0 ;
40888 char * kwnames[] = {
40889 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40890 };
40891
40892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40894 if (!SWIG_IsOK(res1)) {
40895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40896 }
40897 arg1 = reinterpret_cast< wxWindow * >(argp1);
40898 if (obj1) {
40899 ecode2 = SWIG_AsVal_int(obj1, &val2);
40900 if (!SWIG_IsOK(ecode2)) {
40901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
40902 }
40903 arg2 = static_cast< int >(val2);
40904 }
40905 if (obj2) {
40906 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40907 if (!SWIG_IsOK(res3)) {
40908 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40909 }
40910 if (!argp3) {
40911 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40912 }
40913 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40914 }
40915 if (obj3) {
40916 {
40917 arg4 = &temp4;
40918 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
40919 }
40920 }
40921 if (obj4) {
40922 {
40923 arg5 = &temp5;
40924 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
40925 }
40926 }
40927 if (obj5) {
40928 ecode6 = SWIG_AsVal_long(obj5, &val6);
40929 if (!SWIG_IsOK(ecode6)) {
40930 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
40931 }
40932 arg6 = static_cast< long >(val6);
40933 }
40934 if (obj6) {
40935 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
40936 if (!SWIG_IsOK(res7)) {
40937 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40938 }
40939 if (!argp7) {
40940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40941 }
40942 arg7 = reinterpret_cast< wxValidator * >(argp7);
40943 }
40944 if (obj7) {
40945 {
40946 arg8 = wxString_in_helper(obj7);
40947 if (arg8 == NULL) SWIG_fail;
40948 temp8 = true;
40949 }
40950 }
40951 {
40952 if (!wxPyCheckForApp()) SWIG_fail;
40953 PyThreadState* __tstate = wxPyBeginAllowThreads();
40954 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
40955 wxPyEndAllowThreads(__tstate);
40956 if (PyErr_Occurred()) SWIG_fail;
40957 }
40958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
40959 {
40960 if (temp8)
40961 delete arg8;
40962 }
40963 return resultobj;
40964 fail:
40965 {
40966 if (temp8)
40967 delete arg8;
40968 }
40969 return NULL;
40970 }
40971
40972
40973 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40974 PyObject *resultobj = 0;
40975 wxDatePickerCtrl *result = 0 ;
40976
40977 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
40978 {
40979 if (!wxPyCheckForApp()) SWIG_fail;
40980 PyThreadState* __tstate = wxPyBeginAllowThreads();
40981 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
40982 wxPyEndAllowThreads(__tstate);
40983 if (PyErr_Occurred()) SWIG_fail;
40984 }
40985 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
40986 return resultobj;
40987 fail:
40988 return NULL;
40989 }
40990
40991
40992 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40993 PyObject *resultobj = 0;
40994 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40995 wxWindow *arg2 = (wxWindow *) 0 ;
40996 int arg3 = (int) -1 ;
40997 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
40998 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
40999 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41000 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41001 wxSize const &arg6_defvalue = wxDefaultSize ;
41002 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41003 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41004 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41005 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41006 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41007 wxString *arg9 = (wxString *) &arg9_defvalue ;
41008 bool result;
41009 void *argp1 = 0 ;
41010 int res1 = 0 ;
41011 void *argp2 = 0 ;
41012 int res2 = 0 ;
41013 int val3 ;
41014 int ecode3 = 0 ;
41015 void *argp4 = 0 ;
41016 int res4 = 0 ;
41017 wxPoint temp5 ;
41018 wxSize temp6 ;
41019 long val7 ;
41020 int ecode7 = 0 ;
41021 void *argp8 = 0 ;
41022 int res8 = 0 ;
41023 bool temp9 = false ;
41024 PyObject * obj0 = 0 ;
41025 PyObject * obj1 = 0 ;
41026 PyObject * obj2 = 0 ;
41027 PyObject * obj3 = 0 ;
41028 PyObject * obj4 = 0 ;
41029 PyObject * obj5 = 0 ;
41030 PyObject * obj6 = 0 ;
41031 PyObject * obj7 = 0 ;
41032 PyObject * obj8 = 0 ;
41033 char * kwnames[] = {
41034 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41035 };
41036
41037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41039 if (!SWIG_IsOK(res1)) {
41040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41041 }
41042 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41043 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41044 if (!SWIG_IsOK(res2)) {
41045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41046 }
41047 arg2 = reinterpret_cast< wxWindow * >(argp2);
41048 if (obj2) {
41049 ecode3 = SWIG_AsVal_int(obj2, &val3);
41050 if (!SWIG_IsOK(ecode3)) {
41051 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41052 }
41053 arg3 = static_cast< int >(val3);
41054 }
41055 if (obj3) {
41056 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41057 if (!SWIG_IsOK(res4)) {
41058 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41059 }
41060 if (!argp4) {
41061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41062 }
41063 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41064 }
41065 if (obj4) {
41066 {
41067 arg5 = &temp5;
41068 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41069 }
41070 }
41071 if (obj5) {
41072 {
41073 arg6 = &temp6;
41074 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41075 }
41076 }
41077 if (obj6) {
41078 ecode7 = SWIG_AsVal_long(obj6, &val7);
41079 if (!SWIG_IsOK(ecode7)) {
41080 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41081 }
41082 arg7 = static_cast< long >(val7);
41083 }
41084 if (obj7) {
41085 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41086 if (!SWIG_IsOK(res8)) {
41087 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41088 }
41089 if (!argp8) {
41090 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41091 }
41092 arg8 = reinterpret_cast< wxValidator * >(argp8);
41093 }
41094 if (obj8) {
41095 {
41096 arg9 = wxString_in_helper(obj8);
41097 if (arg9 == NULL) SWIG_fail;
41098 temp9 = true;
41099 }
41100 }
41101 {
41102 PyThreadState* __tstate = wxPyBeginAllowThreads();
41103 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41104 wxPyEndAllowThreads(__tstate);
41105 if (PyErr_Occurred()) SWIG_fail;
41106 }
41107 {
41108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41109 }
41110 {
41111 if (temp9)
41112 delete arg9;
41113 }
41114 return resultobj;
41115 fail:
41116 {
41117 if (temp9)
41118 delete arg9;
41119 }
41120 return NULL;
41121 }
41122
41123
41124 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41125 PyObject *resultobj = 0;
41126 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41127 wxDateTime *arg2 = 0 ;
41128 void *argp1 = 0 ;
41129 int res1 = 0 ;
41130 void *argp2 = 0 ;
41131 int res2 = 0 ;
41132 PyObject * obj0 = 0 ;
41133 PyObject * obj1 = 0 ;
41134 char * kwnames[] = {
41135 (char *) "self",(char *) "dt", NULL
41136 };
41137
41138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41140 if (!SWIG_IsOK(res1)) {
41141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41142 }
41143 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41144 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41145 if (!SWIG_IsOK(res2)) {
41146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41147 }
41148 if (!argp2) {
41149 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41150 }
41151 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41152 {
41153 PyThreadState* __tstate = wxPyBeginAllowThreads();
41154 (arg1)->SetValue((wxDateTime const &)*arg2);
41155 wxPyEndAllowThreads(__tstate);
41156 if (PyErr_Occurred()) SWIG_fail;
41157 }
41158 resultobj = SWIG_Py_Void();
41159 return resultobj;
41160 fail:
41161 return NULL;
41162 }
41163
41164
41165 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41166 PyObject *resultobj = 0;
41167 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41168 wxDateTime result;
41169 void *argp1 = 0 ;
41170 int res1 = 0 ;
41171 PyObject *swig_obj[1] ;
41172
41173 if (!args) SWIG_fail;
41174 swig_obj[0] = args;
41175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41176 if (!SWIG_IsOK(res1)) {
41177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41178 }
41179 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41180 {
41181 PyThreadState* __tstate = wxPyBeginAllowThreads();
41182 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41183 wxPyEndAllowThreads(__tstate);
41184 if (PyErr_Occurred()) SWIG_fail;
41185 }
41186 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41187 return resultobj;
41188 fail:
41189 return NULL;
41190 }
41191
41192
41193 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41194 PyObject *resultobj = 0;
41195 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41196 wxDateTime *arg2 = 0 ;
41197 wxDateTime *arg3 = 0 ;
41198 void *argp1 = 0 ;
41199 int res1 = 0 ;
41200 void *argp2 = 0 ;
41201 int res2 = 0 ;
41202 void *argp3 = 0 ;
41203 int res3 = 0 ;
41204 PyObject * obj0 = 0 ;
41205 PyObject * obj1 = 0 ;
41206 PyObject * obj2 = 0 ;
41207 char * kwnames[] = {
41208 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41209 };
41210
41211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41213 if (!SWIG_IsOK(res1)) {
41214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41215 }
41216 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41217 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41218 if (!SWIG_IsOK(res2)) {
41219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41220 }
41221 if (!argp2) {
41222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41223 }
41224 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41225 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41226 if (!SWIG_IsOK(res3)) {
41227 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41228 }
41229 if (!argp3) {
41230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41231 }
41232 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41233 {
41234 PyThreadState* __tstate = wxPyBeginAllowThreads();
41235 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41236 wxPyEndAllowThreads(__tstate);
41237 if (PyErr_Occurred()) SWIG_fail;
41238 }
41239 resultobj = SWIG_Py_Void();
41240 return resultobj;
41241 fail:
41242 return NULL;
41243 }
41244
41245
41246 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41247 PyObject *resultobj = 0;
41248 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41249 wxDateTime result;
41250 void *argp1 = 0 ;
41251 int res1 = 0 ;
41252 PyObject *swig_obj[1] ;
41253
41254 if (!args) SWIG_fail;
41255 swig_obj[0] = args;
41256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41257 if (!SWIG_IsOK(res1)) {
41258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41259 }
41260 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41261 {
41262 PyThreadState* __tstate = wxPyBeginAllowThreads();
41263 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41264 wxPyEndAllowThreads(__tstate);
41265 if (PyErr_Occurred()) SWIG_fail;
41266 }
41267 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41268 return resultobj;
41269 fail:
41270 return NULL;
41271 }
41272
41273
41274 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41275 PyObject *resultobj = 0;
41276 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41277 wxDateTime result;
41278 void *argp1 = 0 ;
41279 int res1 = 0 ;
41280 PyObject *swig_obj[1] ;
41281
41282 if (!args) SWIG_fail;
41283 swig_obj[0] = args;
41284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41285 if (!SWIG_IsOK(res1)) {
41286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41287 }
41288 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41289 {
41290 PyThreadState* __tstate = wxPyBeginAllowThreads();
41291 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41292 wxPyEndAllowThreads(__tstate);
41293 if (PyErr_Occurred()) SWIG_fail;
41294 }
41295 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41296 return resultobj;
41297 fail:
41298 return NULL;
41299 }
41300
41301
41302 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41303 PyObject *obj;
41304 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41305 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41306 return SWIG_Py_Void();
41307 }
41308
41309 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41310 return SWIG_Python_InitShadowInstance(args);
41311 }
41312
41313 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41314 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41315 return 1;
41316 }
41317
41318
41319 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41320 PyObject *pyobj = 0;
41321
41322 {
41323 #if wxUSE_UNICODE
41324 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41325 #else
41326 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41327 #endif
41328 }
41329 return pyobj;
41330 }
41331
41332
41333 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41334 PyObject *resultobj = 0;
41335 wxWindow *arg1 = (wxWindow *) 0 ;
41336 int arg2 ;
41337 wxString *arg3 = 0 ;
41338 wxString *arg4 = 0 ;
41339 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41340 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41341 wxSize const &arg6_defvalue = wxDefaultSize ;
41342 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41343 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41344 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41345 wxString *arg8 = (wxString *) &arg8_defvalue ;
41346 wxHyperlinkCtrl *result = 0 ;
41347 void *argp1 = 0 ;
41348 int res1 = 0 ;
41349 int val2 ;
41350 int ecode2 = 0 ;
41351 bool temp3 = false ;
41352 bool temp4 = false ;
41353 wxPoint temp5 ;
41354 wxSize temp6 ;
41355 long val7 ;
41356 int ecode7 = 0 ;
41357 bool temp8 = false ;
41358 PyObject * obj0 = 0 ;
41359 PyObject * obj1 = 0 ;
41360 PyObject * obj2 = 0 ;
41361 PyObject * obj3 = 0 ;
41362 PyObject * obj4 = 0 ;
41363 PyObject * obj5 = 0 ;
41364 PyObject * obj6 = 0 ;
41365 PyObject * obj7 = 0 ;
41366 char * kwnames[] = {
41367 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41368 };
41369
41370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41372 if (!SWIG_IsOK(res1)) {
41373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41374 }
41375 arg1 = reinterpret_cast< wxWindow * >(argp1);
41376 ecode2 = SWIG_AsVal_int(obj1, &val2);
41377 if (!SWIG_IsOK(ecode2)) {
41378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41379 }
41380 arg2 = static_cast< int >(val2);
41381 {
41382 arg3 = wxString_in_helper(obj2);
41383 if (arg3 == NULL) SWIG_fail;
41384 temp3 = true;
41385 }
41386 {
41387 arg4 = wxString_in_helper(obj3);
41388 if (arg4 == NULL) SWIG_fail;
41389 temp4 = true;
41390 }
41391 if (obj4) {
41392 {
41393 arg5 = &temp5;
41394 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41395 }
41396 }
41397 if (obj5) {
41398 {
41399 arg6 = &temp6;
41400 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41401 }
41402 }
41403 if (obj6) {
41404 ecode7 = SWIG_AsVal_long(obj6, &val7);
41405 if (!SWIG_IsOK(ecode7)) {
41406 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41407 }
41408 arg7 = static_cast< long >(val7);
41409 }
41410 if (obj7) {
41411 {
41412 arg8 = wxString_in_helper(obj7);
41413 if (arg8 == NULL) SWIG_fail;
41414 temp8 = true;
41415 }
41416 }
41417 {
41418 if (!wxPyCheckForApp()) SWIG_fail;
41419 PyThreadState* __tstate = wxPyBeginAllowThreads();
41420 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41421 wxPyEndAllowThreads(__tstate);
41422 if (PyErr_Occurred()) SWIG_fail;
41423 }
41424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41425 {
41426 if (temp3)
41427 delete arg3;
41428 }
41429 {
41430 if (temp4)
41431 delete arg4;
41432 }
41433 {
41434 if (temp8)
41435 delete arg8;
41436 }
41437 return resultobj;
41438 fail:
41439 {
41440 if (temp3)
41441 delete arg3;
41442 }
41443 {
41444 if (temp4)
41445 delete arg4;
41446 }
41447 {
41448 if (temp8)
41449 delete arg8;
41450 }
41451 return NULL;
41452 }
41453
41454
41455 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41456 PyObject *resultobj = 0;
41457 wxHyperlinkCtrl *result = 0 ;
41458
41459 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41460 {
41461 if (!wxPyCheckForApp()) SWIG_fail;
41462 PyThreadState* __tstate = wxPyBeginAllowThreads();
41463 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41464 wxPyEndAllowThreads(__tstate);
41465 if (PyErr_Occurred()) SWIG_fail;
41466 }
41467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41468 return resultobj;
41469 fail:
41470 return NULL;
41471 }
41472
41473
41474 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41475 PyObject *resultobj = 0;
41476 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41477 wxWindow *arg2 = (wxWindow *) 0 ;
41478 int arg3 ;
41479 wxString *arg4 = 0 ;
41480 wxString *arg5 = 0 ;
41481 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41482 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41483 wxSize const &arg7_defvalue = wxDefaultSize ;
41484 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41485 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41486 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41487 wxString *arg9 = (wxString *) &arg9_defvalue ;
41488 bool result;
41489 void *argp1 = 0 ;
41490 int res1 = 0 ;
41491 void *argp2 = 0 ;
41492 int res2 = 0 ;
41493 int val3 ;
41494 int ecode3 = 0 ;
41495 bool temp4 = false ;
41496 bool temp5 = false ;
41497 wxPoint temp6 ;
41498 wxSize temp7 ;
41499 long val8 ;
41500 int ecode8 = 0 ;
41501 bool temp9 = false ;
41502 PyObject * obj0 = 0 ;
41503 PyObject * obj1 = 0 ;
41504 PyObject * obj2 = 0 ;
41505 PyObject * obj3 = 0 ;
41506 PyObject * obj4 = 0 ;
41507 PyObject * obj5 = 0 ;
41508 PyObject * obj6 = 0 ;
41509 PyObject * obj7 = 0 ;
41510 PyObject * obj8 = 0 ;
41511 char * kwnames[] = {
41512 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41513 };
41514
41515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41517 if (!SWIG_IsOK(res1)) {
41518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41519 }
41520 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41521 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41522 if (!SWIG_IsOK(res2)) {
41523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41524 }
41525 arg2 = reinterpret_cast< wxWindow * >(argp2);
41526 ecode3 = SWIG_AsVal_int(obj2, &val3);
41527 if (!SWIG_IsOK(ecode3)) {
41528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41529 }
41530 arg3 = static_cast< int >(val3);
41531 {
41532 arg4 = wxString_in_helper(obj3);
41533 if (arg4 == NULL) SWIG_fail;
41534 temp4 = true;
41535 }
41536 {
41537 arg5 = wxString_in_helper(obj4);
41538 if (arg5 == NULL) SWIG_fail;
41539 temp5 = true;
41540 }
41541 if (obj5) {
41542 {
41543 arg6 = &temp6;
41544 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41545 }
41546 }
41547 if (obj6) {
41548 {
41549 arg7 = &temp7;
41550 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41551 }
41552 }
41553 if (obj7) {
41554 ecode8 = SWIG_AsVal_long(obj7, &val8);
41555 if (!SWIG_IsOK(ecode8)) {
41556 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41557 }
41558 arg8 = static_cast< long >(val8);
41559 }
41560 if (obj8) {
41561 {
41562 arg9 = wxString_in_helper(obj8);
41563 if (arg9 == NULL) SWIG_fail;
41564 temp9 = true;
41565 }
41566 }
41567 {
41568 PyThreadState* __tstate = wxPyBeginAllowThreads();
41569 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41570 wxPyEndAllowThreads(__tstate);
41571 if (PyErr_Occurred()) SWIG_fail;
41572 }
41573 {
41574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41575 }
41576 {
41577 if (temp4)
41578 delete arg4;
41579 }
41580 {
41581 if (temp5)
41582 delete arg5;
41583 }
41584 {
41585 if (temp9)
41586 delete arg9;
41587 }
41588 return resultobj;
41589 fail:
41590 {
41591 if (temp4)
41592 delete arg4;
41593 }
41594 {
41595 if (temp5)
41596 delete arg5;
41597 }
41598 {
41599 if (temp9)
41600 delete arg9;
41601 }
41602 return NULL;
41603 }
41604
41605
41606 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41607 PyObject *resultobj = 0;
41608 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41609 wxColour result;
41610 void *argp1 = 0 ;
41611 int res1 = 0 ;
41612 PyObject *swig_obj[1] ;
41613
41614 if (!args) SWIG_fail;
41615 swig_obj[0] = args;
41616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41617 if (!SWIG_IsOK(res1)) {
41618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41619 }
41620 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41621 {
41622 PyThreadState* __tstate = wxPyBeginAllowThreads();
41623 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41624 wxPyEndAllowThreads(__tstate);
41625 if (PyErr_Occurred()) SWIG_fail;
41626 }
41627 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41628 return resultobj;
41629 fail:
41630 return NULL;
41631 }
41632
41633
41634 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41635 PyObject *resultobj = 0;
41636 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41637 wxColour *arg2 = 0 ;
41638 void *argp1 = 0 ;
41639 int res1 = 0 ;
41640 wxColour temp2 ;
41641 PyObject * obj0 = 0 ;
41642 PyObject * obj1 = 0 ;
41643 char * kwnames[] = {
41644 (char *) "self",(char *) "colour", NULL
41645 };
41646
41647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41649 if (!SWIG_IsOK(res1)) {
41650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41651 }
41652 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41653 {
41654 arg2 = &temp2;
41655 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41656 }
41657 {
41658 PyThreadState* __tstate = wxPyBeginAllowThreads();
41659 (arg1)->SetHoverColour((wxColour const &)*arg2);
41660 wxPyEndAllowThreads(__tstate);
41661 if (PyErr_Occurred()) SWIG_fail;
41662 }
41663 resultobj = SWIG_Py_Void();
41664 return resultobj;
41665 fail:
41666 return NULL;
41667 }
41668
41669
41670 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41671 PyObject *resultobj = 0;
41672 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41673 wxColour result;
41674 void *argp1 = 0 ;
41675 int res1 = 0 ;
41676 PyObject *swig_obj[1] ;
41677
41678 if (!args) SWIG_fail;
41679 swig_obj[0] = args;
41680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41681 if (!SWIG_IsOK(res1)) {
41682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41683 }
41684 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41685 {
41686 PyThreadState* __tstate = wxPyBeginAllowThreads();
41687 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
41688 wxPyEndAllowThreads(__tstate);
41689 if (PyErr_Occurred()) SWIG_fail;
41690 }
41691 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41692 return resultobj;
41693 fail:
41694 return NULL;
41695 }
41696
41697
41698 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41699 PyObject *resultobj = 0;
41700 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41701 wxColour *arg2 = 0 ;
41702 void *argp1 = 0 ;
41703 int res1 = 0 ;
41704 wxColour temp2 ;
41705 PyObject * obj0 = 0 ;
41706 PyObject * obj1 = 0 ;
41707 char * kwnames[] = {
41708 (char *) "self",(char *) "colour", NULL
41709 };
41710
41711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
41712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41713 if (!SWIG_IsOK(res1)) {
41714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41715 }
41716 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41717 {
41718 arg2 = &temp2;
41719 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41720 }
41721 {
41722 PyThreadState* __tstate = wxPyBeginAllowThreads();
41723 (arg1)->SetNormalColour((wxColour const &)*arg2);
41724 wxPyEndAllowThreads(__tstate);
41725 if (PyErr_Occurred()) SWIG_fail;
41726 }
41727 resultobj = SWIG_Py_Void();
41728 return resultobj;
41729 fail:
41730 return NULL;
41731 }
41732
41733
41734 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41735 PyObject *resultobj = 0;
41736 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41737 wxColour result;
41738 void *argp1 = 0 ;
41739 int res1 = 0 ;
41740 PyObject *swig_obj[1] ;
41741
41742 if (!args) SWIG_fail;
41743 swig_obj[0] = args;
41744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41745 if (!SWIG_IsOK(res1)) {
41746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41747 }
41748 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41749 {
41750 PyThreadState* __tstate = wxPyBeginAllowThreads();
41751 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
41752 wxPyEndAllowThreads(__tstate);
41753 if (PyErr_Occurred()) SWIG_fail;
41754 }
41755 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41756 return resultobj;
41757 fail:
41758 return NULL;
41759 }
41760
41761
41762 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41763 PyObject *resultobj = 0;
41764 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41765 wxColour *arg2 = 0 ;
41766 void *argp1 = 0 ;
41767 int res1 = 0 ;
41768 wxColour temp2 ;
41769 PyObject * obj0 = 0 ;
41770 PyObject * obj1 = 0 ;
41771 char * kwnames[] = {
41772 (char *) "self",(char *) "colour", NULL
41773 };
41774
41775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
41776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41777 if (!SWIG_IsOK(res1)) {
41778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41779 }
41780 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41781 {
41782 arg2 = &temp2;
41783 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41784 }
41785 {
41786 PyThreadState* __tstate = wxPyBeginAllowThreads();
41787 (arg1)->SetVisitedColour((wxColour const &)*arg2);
41788 wxPyEndAllowThreads(__tstate);
41789 if (PyErr_Occurred()) SWIG_fail;
41790 }
41791 resultobj = SWIG_Py_Void();
41792 return resultobj;
41793 fail:
41794 return NULL;
41795 }
41796
41797
41798 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41799 PyObject *resultobj = 0;
41800 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41801 wxString result;
41802 void *argp1 = 0 ;
41803 int res1 = 0 ;
41804 PyObject *swig_obj[1] ;
41805
41806 if (!args) SWIG_fail;
41807 swig_obj[0] = args;
41808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41809 if (!SWIG_IsOK(res1)) {
41810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41811 }
41812 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41813 {
41814 PyThreadState* __tstate = wxPyBeginAllowThreads();
41815 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
41816 wxPyEndAllowThreads(__tstate);
41817 if (PyErr_Occurred()) SWIG_fail;
41818 }
41819 {
41820 #if wxUSE_UNICODE
41821 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
41822 #else
41823 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
41824 #endif
41825 }
41826 return resultobj;
41827 fail:
41828 return NULL;
41829 }
41830
41831
41832 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41833 PyObject *resultobj = 0;
41834 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41835 wxString *arg2 = 0 ;
41836 void *argp1 = 0 ;
41837 int res1 = 0 ;
41838 bool temp2 = false ;
41839 PyObject * obj0 = 0 ;
41840 PyObject * obj1 = 0 ;
41841 char * kwnames[] = {
41842 (char *) "self",(char *) "url", NULL
41843 };
41844
41845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
41846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41847 if (!SWIG_IsOK(res1)) {
41848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41849 }
41850 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41851 {
41852 arg2 = wxString_in_helper(obj1);
41853 if (arg2 == NULL) SWIG_fail;
41854 temp2 = true;
41855 }
41856 {
41857 PyThreadState* __tstate = wxPyBeginAllowThreads();
41858 (arg1)->SetURL((wxString const &)*arg2);
41859 wxPyEndAllowThreads(__tstate);
41860 if (PyErr_Occurred()) SWIG_fail;
41861 }
41862 resultobj = SWIG_Py_Void();
41863 {
41864 if (temp2)
41865 delete arg2;
41866 }
41867 return resultobj;
41868 fail:
41869 {
41870 if (temp2)
41871 delete arg2;
41872 }
41873 return NULL;
41874 }
41875
41876
41877 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41878 PyObject *resultobj = 0;
41879 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41880 bool arg2 = (bool) true ;
41881 void *argp1 = 0 ;
41882 int res1 = 0 ;
41883 bool val2 ;
41884 int ecode2 = 0 ;
41885 PyObject * obj0 = 0 ;
41886 PyObject * obj1 = 0 ;
41887 char * kwnames[] = {
41888 (char *) "self",(char *) "visited", NULL
41889 };
41890
41891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
41892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41893 if (!SWIG_IsOK(res1)) {
41894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41895 }
41896 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41897 if (obj1) {
41898 ecode2 = SWIG_AsVal_bool(obj1, &val2);
41899 if (!SWIG_IsOK(ecode2)) {
41900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
41901 }
41902 arg2 = static_cast< bool >(val2);
41903 }
41904 {
41905 PyThreadState* __tstate = wxPyBeginAllowThreads();
41906 (arg1)->SetVisited(arg2);
41907 wxPyEndAllowThreads(__tstate);
41908 if (PyErr_Occurred()) SWIG_fail;
41909 }
41910 resultobj = SWIG_Py_Void();
41911 return resultobj;
41912 fail:
41913 return NULL;
41914 }
41915
41916
41917 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41918 PyObject *resultobj = 0;
41919 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41920 bool result;
41921 void *argp1 = 0 ;
41922 int res1 = 0 ;
41923 PyObject *swig_obj[1] ;
41924
41925 if (!args) SWIG_fail;
41926 swig_obj[0] = args;
41927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41928 if (!SWIG_IsOK(res1)) {
41929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41930 }
41931 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41932 {
41933 PyThreadState* __tstate = wxPyBeginAllowThreads();
41934 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
41935 wxPyEndAllowThreads(__tstate);
41936 if (PyErr_Occurred()) SWIG_fail;
41937 }
41938 {
41939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41940 }
41941 return resultobj;
41942 fail:
41943 return NULL;
41944 }
41945
41946
41947 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41948 PyObject *obj;
41949 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41950 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
41951 return SWIG_Py_Void();
41952 }
41953
41954 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41955 return SWIG_Python_InitShadowInstance(args);
41956 }
41957
41958 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41959 PyObject *resultobj = 0;
41960 wxObject *arg1 = (wxObject *) 0 ;
41961 int arg2 ;
41962 wxString *arg3 = 0 ;
41963 wxHyperlinkEvent *result = 0 ;
41964 void *argp1 = 0 ;
41965 int res1 = 0 ;
41966 int val2 ;
41967 int ecode2 = 0 ;
41968 bool temp3 = false ;
41969 PyObject * obj0 = 0 ;
41970 PyObject * obj1 = 0 ;
41971 PyObject * obj2 = 0 ;
41972 char * kwnames[] = {
41973 (char *) "generator",(char *) "id",(char *) "url", NULL
41974 };
41975
41976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
41978 if (!SWIG_IsOK(res1)) {
41979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
41980 }
41981 arg1 = reinterpret_cast< wxObject * >(argp1);
41982 ecode2 = SWIG_AsVal_int(obj1, &val2);
41983 if (!SWIG_IsOK(ecode2)) {
41984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
41985 }
41986 arg2 = static_cast< int >(val2);
41987 {
41988 arg3 = wxString_in_helper(obj2);
41989 if (arg3 == NULL) SWIG_fail;
41990 temp3 = true;
41991 }
41992 {
41993 PyThreadState* __tstate = wxPyBeginAllowThreads();
41994 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
41995 wxPyEndAllowThreads(__tstate);
41996 if (PyErr_Occurred()) SWIG_fail;
41997 }
41998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
41999 {
42000 if (temp3)
42001 delete arg3;
42002 }
42003 return resultobj;
42004 fail:
42005 {
42006 if (temp3)
42007 delete arg3;
42008 }
42009 return NULL;
42010 }
42011
42012
42013 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42014 PyObject *resultobj = 0;
42015 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42016 wxString result;
42017 void *argp1 = 0 ;
42018 int res1 = 0 ;
42019 PyObject *swig_obj[1] ;
42020
42021 if (!args) SWIG_fail;
42022 swig_obj[0] = args;
42023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42024 if (!SWIG_IsOK(res1)) {
42025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42026 }
42027 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42028 {
42029 PyThreadState* __tstate = wxPyBeginAllowThreads();
42030 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42031 wxPyEndAllowThreads(__tstate);
42032 if (PyErr_Occurred()) SWIG_fail;
42033 }
42034 {
42035 #if wxUSE_UNICODE
42036 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42037 #else
42038 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42039 #endif
42040 }
42041 return resultobj;
42042 fail:
42043 return NULL;
42044 }
42045
42046
42047 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42048 PyObject *resultobj = 0;
42049 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42050 wxString *arg2 = 0 ;
42051 void *argp1 = 0 ;
42052 int res1 = 0 ;
42053 bool temp2 = false ;
42054 PyObject * obj0 = 0 ;
42055 PyObject * obj1 = 0 ;
42056 char * kwnames[] = {
42057 (char *) "self",(char *) "url", NULL
42058 };
42059
42060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42062 if (!SWIG_IsOK(res1)) {
42063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42064 }
42065 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42066 {
42067 arg2 = wxString_in_helper(obj1);
42068 if (arg2 == NULL) SWIG_fail;
42069 temp2 = true;
42070 }
42071 {
42072 PyThreadState* __tstate = wxPyBeginAllowThreads();
42073 (arg1)->SetURL((wxString const &)*arg2);
42074 wxPyEndAllowThreads(__tstate);
42075 if (PyErr_Occurred()) SWIG_fail;
42076 }
42077 resultobj = SWIG_Py_Void();
42078 {
42079 if (temp2)
42080 delete arg2;
42081 }
42082 return resultobj;
42083 fail:
42084 {
42085 if (temp2)
42086 delete arg2;
42087 }
42088 return NULL;
42089 }
42090
42091
42092 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42093 PyObject *obj;
42094 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42095 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42096 return SWIG_Py_Void();
42097 }
42098
42099 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42100 return SWIG_Python_InitShadowInstance(args);
42101 }
42102
42103 static PyMethodDef SwigMethods[] = {
42104 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
42105 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
42106 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42107 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
42108 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
42109 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42110 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
42111 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
42112 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
42113 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
42114 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42115 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
42116 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
42117 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
42118 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
42119 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
42120 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
42121 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
42122 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42123 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42124 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
42125 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
42126 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
42127 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
42128 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
42129 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
42130 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
42131 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
42132 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42133 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
42134 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
42135 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42136 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
42137 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
42138 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
42139 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
42140 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42141 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
42142 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
42143 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
42144 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
42145 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42146 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
42147 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42148 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
42149 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
42150 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
42151 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
42152 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42153 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
42154 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42155 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
42156 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
42157 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
42158 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
42159 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
42160 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
42161 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
42162 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
42163 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
42164 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
42165 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42166 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
42167 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
42168 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
42169 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
42170 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
42171 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
42172 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
42173 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
42174 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
42175 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
42176 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
42177 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
42178 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
42179 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42180 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
42181 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
42182 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
42183 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
42184 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42185 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42186 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
42187 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42188 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
42189 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
42190 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
42191 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
42192 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
42193 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
42194 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42195 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
42196 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
42197 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
42198 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
42199 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42200 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42201 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
42202 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
42203 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
42204 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
42205 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42206 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
42207 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
42208 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42209 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
42210 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
42211 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
42212 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
42213 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42214 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
42215 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42216 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
42217 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
42218 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42219 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
42220 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42221 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
42222 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42223 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
42224 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42225 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
42226 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
42227 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
42228 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
42229 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42230 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
42231 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
42232 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
42233 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42234 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42235 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
42236 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
42237 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
42238 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42239 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
42240 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
42241 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
42242 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42243 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42244 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
42245 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42246 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42247 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42248 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42249 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42250 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
42251 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
42252 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
42253 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
42254 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42255 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
42256 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
42257 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
42258 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
42259 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
42260 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
42261 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
42262 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
42263 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
42264 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42265 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42266 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
42267 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
42268 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
42269 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
42270 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
42271 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
42272 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
42273 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
42274 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
42275 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
42276 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
42277 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
42278 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
42279 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
42280 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
42281 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
42282 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
42283 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
42284 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
42285 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
42286 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
42287 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
42288 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
42289 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
42290 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
42291 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
42292 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
42293 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42294 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
42295 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42296 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
42297 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42298 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42299 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
42300 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
42301 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
42302 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
42303 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
42304 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
42305 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
42306 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
42307 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
42308 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
42309 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
42310 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
42311 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
42312 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
42313 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
42314 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
42315 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
42316 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
42317 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
42318 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
42319 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42320 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42321 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42322 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
42323 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42324 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
42325 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42326 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42327 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
42328 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
42329 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
42330 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
42331 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
42332 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
42333 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
42334 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
42335 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
42336 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
42337 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
42338 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
42339 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
42340 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
42341 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
42342 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42343 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
42344 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
42345 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL},
42346 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction)_wrap_TextCtrl_HideNativeCaret, METH_O, NULL},
42347 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
42348 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
42349 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42350 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
42351 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
42352 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42353 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
42354 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
42355 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
42356 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
42357 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
42358 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
42359 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
42360 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42361 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
42362 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
42363 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
42364 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
42365 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
42366 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42367 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42368 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
42369 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
42370 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
42371 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
42372 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42373 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
42374 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
42375 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
42376 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42377 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
42378 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
42379 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42380 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
42381 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42382 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
42383 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
42384 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42385 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
42386 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42387 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
42388 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42389 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
42390 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42391 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
42392 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
42393 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42394 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42395 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
42396 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
42397 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42398 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
42399 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42400 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
42401 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
42402 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
42403 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
42404 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42405 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42406 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
42407 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
42408 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42409 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
42410 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
42411 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
42412 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
42413 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
42414 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
42415 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
42416 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
42417 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
42418 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
42419 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
42420 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
42421 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
42422 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42423 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
42424 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
42425 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
42426 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
42427 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42428 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
42429 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42430 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42431 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
42432 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
42433 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
42434 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
42435 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42436 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
42437 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42438 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42439 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
42440 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
42441 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
42442 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
42443 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
42444 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
42445 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
42446 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
42447 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
42448 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
42449 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
42450 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
42451 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
42452 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
42453 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
42454 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
42455 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
42456 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42457 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42458 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
42459 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
42460 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
42461 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
42462 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42463 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42464 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
42465 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42466 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
42467 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
42468 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
42469 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
42470 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
42471 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
42472 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
42473 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
42474 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42475 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42476 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
42477 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
42478 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
42479 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
42480 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
42481 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
42482 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
42483 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
42484 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
42485 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
42486 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
42487 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
42488 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
42489 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
42490 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
42491 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
42492 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
42493 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
42494 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42495 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42496 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42497 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42498 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
42499 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42500 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
42501 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42502 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
42503 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42504 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
42505 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
42506 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
42507 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
42508 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42509 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
42510 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
42511 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
42512 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
42513 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42514 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
42515 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
42516 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42517 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
42518 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
42519 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
42520 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
42521 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42522 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
42523 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
42524 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
42525 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42526 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
42527 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
42528 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
42529 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
42530 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42531 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
42532 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
42533 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
42534 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42535 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
42536 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
42537 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
42538 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
42539 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42540 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
42541 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
42542 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
42543 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
42544 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
42545 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
42546 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
42547 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
42548 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
42549 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42550 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
42551 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
42552 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
42553 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
42554 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42555 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
42556 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
42557 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
42558 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
42559 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42560 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
42561 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
42562 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
42563 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
42564 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
42565 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
42566 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
42567 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
42568 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
42569 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
42570 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
42571 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
42572 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
42573 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
42574 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
42575 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
42576 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
42577 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
42578 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
42579 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
42580 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
42581 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
42582 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42583 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42584 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42585 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42586 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42587 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
42588 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
42589 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
42590 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
42591 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
42592 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
42593 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
42594 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
42595 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
42596 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
42597 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
42598 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
42599 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
42600 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
42601 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
42602 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
42603 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
42604 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
42605 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
42606 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
42607 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
42608 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
42609 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
42610 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
42611 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
42612 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
42613 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
42614 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42615 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42616 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42617 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42618 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
42619 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
42620 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
42621 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
42622 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
42623 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
42624 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
42625 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
42626 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
42627 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
42628 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
42629 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
42630 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
42631 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
42632 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
42633 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42634 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
42635 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
42636 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
42637 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
42638 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
42639 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
42640 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42641 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42642 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
42643 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
42644 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
42645 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
42646 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42647 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42648 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
42649 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
42650 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
42651 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
42652 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
42653 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
42654 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
42655 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
42656 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
42657 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
42658 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
42659 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
42660 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
42661 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
42662 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
42663 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
42664 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
42665 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42666 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
42667 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
42668 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
42669 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
42670 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
42671 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
42672 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
42673 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42674 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42675 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
42676 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
42677 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
42678 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
42679 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
42680 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
42681 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
42682 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
42683 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
42684 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
42685 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
42686 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
42687 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
42688 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
42689 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
42690 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
42691 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
42692 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
42693 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
42694 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
42695 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
42696 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
42697 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
42698 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
42699 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
42700 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
42701 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
42702 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
42703 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
42704 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
42705 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
42706 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
42707 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
42708 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
42709 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
42710 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
42711 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
42712 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42713 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
42714 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
42715 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
42716 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
42717 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
42718 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
42719 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
42720 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
42721 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
42722 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
42723 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
42724 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
42725 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
42726 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
42727 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
42728 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
42729 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
42730 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
42731 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
42732 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
42733 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
42734 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
42735 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
42736 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
42737 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
42738 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
42739 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
42740 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42741 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
42742 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42743 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
42744 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42745 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42746 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
42747 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
42748 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
42749 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
42750 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
42751 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
42752 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
42753 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
42754 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
42755 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
42756 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
42757 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
42758 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42759 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42760 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42761 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42762 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42763 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
42764 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42765 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
42766 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
42767 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
42768 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
42769 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
42770 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42771 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
42772 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42773 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
42774 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42775 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42776 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42777 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
42778 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
42779 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
42780 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
42781 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
42782 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
42783 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
42784 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42785 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
42786 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
42787 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42788 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42789 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42790 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
42791 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42792 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
42793 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42794 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
42795 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
42796 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
42797 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
42798 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
42799 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
42800 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42801 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
42802 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
42803 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42804 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42805 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42806 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42807 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42808 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42809 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
42810 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
42811 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42812 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
42813 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
42814 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
42815 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
42816 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42817 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
42818 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
42819 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
42820 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42821 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
42822 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42823 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
42824 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
42825 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
42826 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
42827 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
42828 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
42829 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
42830 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
42831 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
42832 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
42833 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
42834 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
42835 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
42836 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42837 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
42838 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
42839 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
42840 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
42841 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
42842 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
42843 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
42844 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
42845 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42846 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
42847 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
42848 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
42849 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
42850 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
42851 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
42852 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
42853 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
42854 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42855 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
42856 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42857 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
42858 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
42859 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
42860 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
42861 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
42862 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
42863 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42864 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
42865 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42866 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
42867 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
42868 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
42869 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
42870 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
42871 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
42872 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
42873 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
42874 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42875 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42876 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42877 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42878 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42879 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
42880 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42881 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
42882 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42883 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42884 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42885 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42886 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
42887 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42888 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
42889 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42890 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
42891 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
42892 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42893 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42894 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42895 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42896 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42897 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
42898 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42899 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
42900 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
42901 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
42902 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
42903 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
42904 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
42905 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
42906 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
42907 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
42908 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
42909 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
42910 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
42911 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42912 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42913 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
42914 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
42915 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
42916 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
42917 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
42918 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
42919 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42920 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
42921 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
42922 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
42923 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
42924 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
42925 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
42926 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
42927 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
42928 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
42929 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42930 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42931 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
42932 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42933 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
42934 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42935 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42936 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42937 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
42938 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
42939 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
42940 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42941 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
42942 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
42943 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
42944 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
42945 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42946 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
42947 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42948 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
42949 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
42950 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
42951 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
42952 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
42953 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
42954 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
42955 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
42956 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
42957 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
42958 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
42959 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
42960 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
42961 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
42962 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
42963 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
42964 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
42965 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
42966 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
42967 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
42968 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
42969 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42970 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
42971 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42972 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
42973 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
42974 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
42975 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
42976 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
42977 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
42978 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
42979 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
42980 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
42981 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
42982 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
42983 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
42984 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
42985 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
42986 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
42987 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
42988 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
42989 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
42990 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
42991 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
42992 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
42993 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42994 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
42995 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42996 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
42997 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
42998 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
42999 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
43000 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
43001 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
43002 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
43003 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
43004 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
43005 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
43006 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
43007 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
43008 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
43009 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
43010 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
43011 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
43012 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
43013 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
43014 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
43015 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
43016 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
43017 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
43018 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
43019 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
43020 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
43021 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
43022 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
43023 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
43024 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
43025 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
43026 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
43027 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
43028 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
43029 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
43030 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
43031 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
43032 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
43033 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
43034 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
43035 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
43036 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
43037 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
43038 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
43039 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
43040 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
43041 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
43042 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
43043 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
43044 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
43045 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
43046 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
43047 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
43048 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
43049 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
43050 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
43051 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
43052 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
43053 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
43054 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
43055 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
43056 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
43057 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
43058 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
43059 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
43060 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
43061 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
43062 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
43063 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
43064 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
43065 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
43066 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
43067 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
43068 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
43069 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
43070 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
43071 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
43072 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
43073 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
43074 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
43075 { NULL, NULL, 0, NULL }
43076 };
43077
43078
43079 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
43080
43081 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
43082 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
43083 }
43084 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
43085 return (void *)((wxEvent *) ((wxMenuEvent *) x));
43086 }
43087 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
43088 return (void *)((wxEvent *) ((wxCloseEvent *) x));
43089 }
43090 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
43091 return (void *)((wxEvent *) ((wxMouseEvent *) x));
43092 }
43093 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
43094 return (void *)((wxEvent *) ((wxEraseEvent *) x));
43095 }
43096 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
43097 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
43098 }
43099 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
43100 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
43101 }
43102 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
43103 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
43104 }
43105 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
43106 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
43107 }
43108 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
43109 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
43110 }
43111 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
43112 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
43113 }
43114 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
43115 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
43116 }
43117 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
43118 return (void *)((wxEvent *) ((wxPyEvent *) x));
43119 }
43120 static void *_p_wxListEventTo_p_wxEvent(void *x) {
43121 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
43122 }
43123 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
43124 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43125 }
43126 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
43127 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43128 }
43129 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
43130 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43131 }
43132 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
43133 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43134 }
43135 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
43136 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43137 }
43138 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
43139 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
43140 }
43141 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
43142 return (void *)((wxEvent *) ((wxIdleEvent *) x));
43143 }
43144 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
43145 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
43146 }
43147 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
43148 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
43149 }
43150 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
43151 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
43152 }
43153 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
43154 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
43155 }
43156 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
43157 return (void *)((wxEvent *) ((wxActivateEvent *) x));
43158 }
43159 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
43160 return (void *)((wxEvent *) ((wxSizeEvent *) x));
43161 }
43162 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
43163 return (void *)((wxEvent *) ((wxMoveEvent *) x));
43164 }
43165 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
43166 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
43167 }
43168 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
43169 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
43170 }
43171 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
43172 return (void *)((wxEvent *) ((wxPaintEvent *) x));
43173 }
43174 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
43175 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
43176 }
43177 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
43178 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
43179 }
43180 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
43181 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
43182 }
43183 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
43184 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
43185 }
43186 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
43187 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
43188 }
43189 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
43190 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
43191 }
43192 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
43193 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
43194 }
43195 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
43196 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
43197 }
43198 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
43199 return (void *)((wxEvent *) ((wxFocusEvent *) x));
43200 }
43201 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
43202 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
43203 }
43204 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
43205 return (void *)((wxEvent *) ((wxShowEvent *) x));
43206 }
43207 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
43208 return (void *)((wxEvent *) ((wxCommandEvent *) x));
43209 }
43210 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
43211 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
43212 }
43213 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
43214 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
43215 }
43216 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
43217 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
43218 }
43219 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
43220 return (void *)((wxEvent *) ((wxKeyEvent *) x));
43221 }
43222 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
43223 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
43224 }
43225 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
43226 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
43227 }
43228 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
43229 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
43230 }
43231 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
43232 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43233 }
43234 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
43235 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
43236 }
43237 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
43238 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
43239 }
43240 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
43241 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
43242 }
43243 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
43244 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43245 }
43246 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
43247 return (void *)((wxPyListCtrl *) ((wxListView *) x));
43248 }
43249 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
43250 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
43251 }
43252 static void *_p_wxToolBarTo_p_wxControl(void *x) {
43253 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
43254 }
43255 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
43256 return (void *)((wxControl *) ((wxToggleButton *) x));
43257 }
43258 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
43259 return (void *)((wxControl *) ((wxRadioButton *) x));
43260 }
43261 static void *_p_wxToolbookTo_p_wxControl(void *x) {
43262 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
43263 }
43264 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
43265 return (void *)((wxControl *) ((wxToolBarBase *) x));
43266 }
43267 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
43268 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43269 }
43270 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
43271 return (void *)((wxControl *) ((wxPyListCtrl *) x));
43272 }
43273 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
43274 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
43275 }
43276 static void *_p_wxPyControlTo_p_wxControl(void *x) {
43277 return (void *)((wxControl *) ((wxPyControl *) x));
43278 }
43279 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
43280 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
43281 }
43282 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
43283 return (void *)((wxControl *) ((wxScrollBar *) x));
43284 }
43285 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
43286 return (void *)((wxControl *) ((wxControlWithItems *) x));
43287 }
43288 static void *_p_wxGaugeTo_p_wxControl(void *x) {
43289 return (void *)((wxControl *) ((wxGauge *) x));
43290 }
43291 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
43292 return (void *)((wxControl *) ((wxStaticLine *) x));
43293 }
43294 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
43295 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
43296 }
43297 static void *_p_wxListbookTo_p_wxControl(void *x) {
43298 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
43299 }
43300 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
43301 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
43302 }
43303 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
43304 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
43305 }
43306 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
43307 return (void *)((wxControl *) ((wxCheckBox *) x));
43308 }
43309 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
43310 return (void *)((wxControl *) ((wxRadioBox *) x));
43311 }
43312 static void *_p_wxChoiceTo_p_wxControl(void *x) {
43313 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
43314 }
43315 static void *_p_wxListBoxTo_p_wxControl(void *x) {
43316 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
43317 }
43318 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
43319 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43320 }
43321 static void *_p_wxListViewTo_p_wxControl(void *x) {
43322 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
43323 }
43324 static void *_p_wxNotebookTo_p_wxControl(void *x) {
43325 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
43326 }
43327 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
43328 return (void *)((wxControl *) ((wxStaticBitmap *) x));
43329 }
43330 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
43331 return (void *)((wxControl *) ((wxSpinCtrl *) x));
43332 }
43333 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
43334 return (void *)((wxControl *) ((wxStaticText *) x));
43335 }
43336 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
43337 return (void *)((wxControl *) ((wxStaticBox *) x));
43338 }
43339 static void *_p_wxSliderTo_p_wxControl(void *x) {
43340 return (void *)((wxControl *) ((wxSlider *) x));
43341 }
43342 static void *_p_wxTreebookTo_p_wxControl(void *x) {
43343 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
43344 }
43345 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
43346 return (void *)((wxControl *) ((wxSpinButton *) x));
43347 }
43348 static void *_p_wxButtonTo_p_wxControl(void *x) {
43349 return (void *)((wxControl *) ((wxButton *) x));
43350 }
43351 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
43352 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
43353 }
43354 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
43355 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43356 }
43357 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
43358 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
43359 }
43360 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
43361 return (void *)((wxControl *) ((wxTextCtrl *) x));
43362 }
43363 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
43364 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
43365 }
43366 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
43367 return (void *)((wxChoice *) ((wxComboBox *) x));
43368 }
43369 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
43370 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
43371 }
43372 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
43373 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
43374 }
43375 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
43376 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
43377 }
43378 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
43379 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
43380 }
43381 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
43382 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
43383 }
43384 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
43385 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43386 }
43387 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
43388 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43389 }
43390 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
43391 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43392 }
43393 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
43394 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43395 }
43396 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
43397 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43398 }
43399 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
43400 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
43401 }
43402 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
43403 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
43404 }
43405 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
43406 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
43407 }
43408 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
43409 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
43410 }
43411 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
43412 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
43413 }
43414 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
43415 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
43416 }
43417 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
43418 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
43419 }
43420 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
43421 return (void *)((wxEvtHandler *) ((wxValidator *) x));
43422 }
43423 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
43424 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
43425 }
43426 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
43427 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
43428 }
43429 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
43430 return (void *)((wxEvtHandler *) ((wxMenu *) x));
43431 }
43432 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
43433 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
43434 }
43435 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
43436 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
43437 }
43438 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
43439 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
43440 }
43441 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
43442 return (void *)((wxEvtHandler *) ((wxWindow *) x));
43443 }
43444 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
43445 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
43446 }
43447 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
43448 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
43449 }
43450 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
43451 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
43452 }
43453 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
43454 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
43455 }
43456 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
43457 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43458 }
43459 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
43460 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
43461 }
43462 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
43463 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
43464 }
43465 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
43466 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
43467 }
43468 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
43469 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
43470 }
43471 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
43472 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
43473 }
43474 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
43475 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
43476 }
43477 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
43478 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
43479 }
43480 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
43481 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
43482 }
43483 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
43484 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
43485 }
43486 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
43487 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
43488 }
43489 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
43490 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
43491 }
43492 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
43493 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
43494 }
43495 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
43496 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
43497 }
43498 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
43499 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43500 }
43501 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
43502 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
43503 }
43504 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
43505 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
43506 }
43507 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
43508 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
43509 }
43510 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
43511 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
43512 }
43513 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
43514 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
43515 }
43516 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
43517 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
43518 }
43519 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
43520 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
43521 }
43522 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
43523 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
43524 }
43525 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
43526 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
43527 }
43528 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
43529 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
43530 }
43531 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
43532 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
43533 }
43534 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
43535 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
43536 }
43537 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
43538 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
43539 }
43540 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
43541 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43542 }
43543 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
43544 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
43545 }
43546 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
43547 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
43548 }
43549 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
43550 return (void *)((wxListBox *) ((wxCheckListBox *) x));
43551 }
43552 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
43553 return (void *)((wxButton *) ((wxBitmapButton *) x));
43554 }
43555 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
43556 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
43557 }
43558 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
43559 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
43560 }
43561 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
43562 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
43563 }
43564 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
43565 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
43566 }
43567 static void *_p_wxToolbookTo_p_wxObject(void *x) {
43568 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
43569 }
43570 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
43571 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
43572 }
43573 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
43574 return (void *)((wxObject *) ((wxSizerItem *) x));
43575 }
43576 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
43577 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
43578 }
43579 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
43580 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
43581 }
43582 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
43583 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
43584 }
43585 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
43586 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
43587 }
43588 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
43589 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
43590 }
43591 static void *_p_wxSizerTo_p_wxObject(void *x) {
43592 return (void *)((wxObject *) ((wxSizer *) x));
43593 }
43594 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
43595 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
43596 }
43597 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
43598 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
43599 }
43600 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
43601 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
43602 }
43603 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
43604 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
43605 }
43606 static void *_p_wxEventTo_p_wxObject(void *x) {
43607 return (void *)((wxObject *) ((wxEvent *) x));
43608 }
43609 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
43610 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
43611 }
43612 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
43613 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
43614 }
43615 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
43616 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
43617 }
43618 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
43619 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
43620 }
43621 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
43622 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
43623 }
43624 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
43625 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43626 }
43627 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
43628 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
43629 }
43630 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
43631 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
43632 }
43633 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
43634 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
43635 }
43636 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
43637 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
43638 }
43639 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
43640 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
43641 }
43642 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
43643 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
43644 }
43645 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
43646 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
43647 }
43648 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
43649 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
43650 }
43651 static void *_p_wxControlTo_p_wxObject(void *x) {
43652 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
43653 }
43654 static void *_p_wxPyControlTo_p_wxObject(void *x) {
43655 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
43656 }
43657 static void *_p_wxGaugeTo_p_wxObject(void *x) {
43658 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
43659 }
43660 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
43661 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
43662 }
43663 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
43664 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
43665 }
43666 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
43667 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
43668 }
43669 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
43670 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
43671 }
43672 static void *_p_wxChoiceTo_p_wxObject(void *x) {
43673 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
43674 }
43675 static void *_p_wxFSFileTo_p_wxObject(void *x) {
43676 return (void *)((wxObject *) ((wxFSFile *) x));
43677 }
43678 static void *_p_wxPySizerTo_p_wxObject(void *x) {
43679 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
43680 }
43681 static void *_p_wxTreebookTo_p_wxObject(void *x) {
43682 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
43683 }
43684 static void *_p_wxListViewTo_p_wxObject(void *x) {
43685 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
43686 }
43687 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
43688 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
43689 }
43690 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
43691 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
43692 }
43693 static void *_p_wxNotebookTo_p_wxObject(void *x) {
43694 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
43695 }
43696 static void *_p_wxPyEventTo_p_wxObject(void *x) {
43697 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
43698 }
43699 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
43700 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
43701 }
43702 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
43703 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
43704 }
43705 static void *_p_wxListbookTo_p_wxObject(void *x) {
43706 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
43707 }
43708 static void *_p_wxShowEventTo_p_wxObject(void *x) {
43709 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
43710 }
43711 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
43712 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
43713 }
43714 static void *_p_wxSliderTo_p_wxObject(void *x) {
43715 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
43716 }
43717 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
43718 return (void *)((wxObject *) ((wxMenuItem *) x));
43719 }
43720 static void *_p_wxDateEventTo_p_wxObject(void *x) {
43721 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
43722 }
43723 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
43724 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
43725 }
43726 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
43727 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
43728 }
43729 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
43730 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
43731 }
43732 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
43733 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
43734 }
43735 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
43736 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
43737 }
43738 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
43739 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
43740 }
43741 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
43742 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
43743 }
43744 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
43745 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
43746 }
43747 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
43748 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
43749 }
43750 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
43751 return (void *)((wxObject *) ((wxContextHelp *) x));
43752 }
43753 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
43754 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
43755 }
43756 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
43757 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
43758 }
43759 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
43760 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
43761 }
43762 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
43763 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
43764 }
43765 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
43766 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
43767 }
43768 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
43769 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
43770 }
43771 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
43772 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
43773 }
43774 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
43775 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
43776 }
43777 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
43778 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
43779 }
43780 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
43781 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
43782 }
43783 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
43784 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
43785 }
43786 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
43787 return (void *)((wxObject *) ((wxImageHandler *) x));
43788 }
43789 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
43790 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
43791 }
43792 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
43793 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
43794 }
43795 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
43796 return (void *)((wxObject *) ((wxEvtHandler *) x));
43797 }
43798 static void *_p_wxListEventTo_p_wxObject(void *x) {
43799 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
43800 }
43801 static void *_p_wxListBoxTo_p_wxObject(void *x) {
43802 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
43803 }
43804 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
43805 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43806 }
43807 static void *_p_wxButtonTo_p_wxObject(void *x) {
43808 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
43809 }
43810 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
43811 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
43812 }
43813 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
43814 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
43815 }
43816 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
43817 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43818 }
43819 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
43820 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
43821 }
43822 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
43823 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
43824 }
43825 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
43826 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
43827 }
43828 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
43829 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
43830 }
43831 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
43832 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
43833 }
43834 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
43835 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
43836 }
43837 static void *_p_wxListItemTo_p_wxObject(void *x) {
43838 return (void *)((wxObject *) ((wxListItem *) x));
43839 }
43840 static void *_p_wxImageTo_p_wxObject(void *x) {
43841 return (void *)((wxObject *) ((wxImage *) x));
43842 }
43843 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
43844 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
43845 }
43846 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
43847 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
43848 }
43849 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
43850 return (void *)((wxObject *) ((wxGenericDragImage *) x));
43851 }
43852 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
43853 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
43854 }
43855 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
43856 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43857 }
43858 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
43859 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43860 }
43861 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
43862 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43863 }
43864 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
43865 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43866 }
43867 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
43868 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43869 }
43870 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
43871 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
43872 }
43873 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
43874 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
43875 }
43876 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
43877 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
43878 }
43879 static void *_p_wxWindowTo_p_wxObject(void *x) {
43880 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
43881 }
43882 static void *_p_wxMenuTo_p_wxObject(void *x) {
43883 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
43884 }
43885 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
43886 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
43887 }
43888 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
43889 return (void *)((wxObject *) ((wxFileSystem *) x));
43890 }
43891 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
43892 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
43893 }
43894 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
43895 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
43896 }
43897 static void *_p_wxPyAppTo_p_wxObject(void *x) {
43898 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
43899 }
43900 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
43901 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
43902 }
43903 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
43904 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
43905 }
43906 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
43907 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
43908 }
43909 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
43910 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
43911 }
43912 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
43913 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
43914 }
43915 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
43916 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
43917 }
43918 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
43919 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
43920 }
43921 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
43922 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
43923 }
43924 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
43925 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
43926 }
43927 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
43928 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
43929 }
43930 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
43931 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
43932 }
43933 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
43934 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
43935 }
43936 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
43937 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
43938 }
43939 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
43940 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
43941 }
43942 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
43943 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
43944 }
43945 static void *_p_wxToolBarTo_p_wxObject(void *x) {
43946 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
43947 }
43948 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
43949 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
43950 }
43951 static void *_p_wxValidatorTo_p_wxObject(void *x) {
43952 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
43953 }
43954 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
43955 return (void *)((wxWindow *) ((wxMenuBar *) x));
43956 }
43957 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
43958 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
43959 }
43960 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
43961 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
43962 }
43963 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
43964 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
43965 }
43966 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
43967 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
43968 }
43969 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
43970 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
43971 }
43972 static void *_p_wxControlTo_p_wxWindow(void *x) {
43973 return (void *)((wxWindow *) ((wxControl *) x));
43974 }
43975 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
43976 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
43977 }
43978 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
43979 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
43980 }
43981 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
43982 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
43983 }
43984 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
43985 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43986 }
43987 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
43988 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
43989 }
43990 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
43991 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
43992 }
43993 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
43994 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
43995 }
43996 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
43997 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
43998 }
43999 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
44000 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
44001 }
44002 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
44003 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
44004 }
44005 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
44006 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
44007 }
44008 static void *_p_wxListbookTo_p_wxWindow(void *x) {
44009 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
44010 }
44011 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
44012 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
44013 }
44014 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
44015 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
44016 }
44017 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
44018 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
44019 }
44020 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
44021 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
44022 }
44023 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
44024 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
44025 }
44026 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
44027 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
44028 }
44029 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
44030 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
44031 }
44032 static void *_p_wxListViewTo_p_wxWindow(void *x) {
44033 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
44034 }
44035 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
44036 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
44037 }
44038 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
44039 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
44040 }
44041 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
44042 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
44043 }
44044 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
44045 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
44046 }
44047 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
44048 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
44049 }
44050 static void *_p_wxSliderTo_p_wxWindow(void *x) {
44051 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
44052 }
44053 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
44054 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
44055 }
44056 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
44057 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
44058 }
44059 static void *_p_wxButtonTo_p_wxWindow(void *x) {
44060 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
44061 }
44062 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
44063 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
44064 }
44065 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
44066 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
44067 }
44068 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
44069 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
44070 }
44071 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
44072 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
44073 }
44074 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
44075 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
44076 }
44077 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
44078 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
44079 }
44080 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
44081 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
44082 }
44083 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
44084 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
44085 }
44086 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
44087 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
44088 }
44089 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
44090 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
44091 }
44092 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
44093 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
44094 }
44095 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
44096 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
44097 }
44098 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
44099 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
44100 }
44101 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
44102 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
44103 }
44104 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
44105 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
44106 }
44107 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
44108 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
44109 }
44110 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
44111 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
44112 }
44113 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
44114 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
44115 }
44116 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
44117 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
44118 }
44119 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
44120 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
44121 }
44122 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
44123 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
44124 }
44125 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
44126 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
44127 }
44128 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
44129 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
44130 }
44131 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
44132 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
44133 }
44134 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
44135 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
44136 }
44137 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
44138 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
44139 }
44140 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
44141 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
44142 }
44143 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
44144 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
44145 }
44146 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
44147 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
44148 }
44149 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
44150 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
44151 }
44152 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
44153 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
44154 }
44155 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
44156 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
44157 }
44158 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
44159 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
44160 }
44161 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
44162 return (void *)((wxControlWithItems *) ((wxChoice *) x));
44163 }
44164 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
44165 return (void *)((wxControlWithItems *) ((wxListBox *) x));
44166 }
44167 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
44168 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
44169 }
44170 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
44171 return (void *)((wxValidator *) ((wxPyValidator *) x));
44172 }
44173 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
44174 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
44175 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};
44176 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
44177 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
44178 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
44179 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
44180 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
44181 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
44182 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
44183 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
44184 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
44185 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
44186 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
44187 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
44188 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
44189 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
44190 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
44191 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
44192 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
44193 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
44194 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
44195 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
44196 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
44197 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
44198 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
44199 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
44200 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
44201 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
44202 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
44203 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
44204 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
44205 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
44206 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
44207 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
44208 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
44209 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
44210 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
44211 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
44212 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
44213 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
44214 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
44215 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
44216 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
44217 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
44218 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
44219 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
44220 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
44221 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
44222 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
44223 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
44224 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
44225 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
44226 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
44227 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
44228 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
44229 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
44230 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
44231 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
44232 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
44233 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
44234 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
44235 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
44236 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
44237 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
44238 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
44239 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
44240 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
44241 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
44242 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
44243 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
44244 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
44245 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
44246 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
44247 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
44248 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
44249 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
44250 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
44251 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
44252 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
44253 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
44254 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
44255 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
44256 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
44257 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
44258 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
44259 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
44260 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
44261 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
44262 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
44263 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
44264 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
44265 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
44266 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
44267 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
44268 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
44269 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
44270 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
44271 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
44272 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
44273 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
44274 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
44275 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
44276 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
44277 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
44278 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
44279 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
44280 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
44281 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
44282 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
44283 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
44284 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
44285 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
44286 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
44287 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
44288 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
44289 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
44290 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
44291 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
44292 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
44293 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
44294 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
44295 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
44296 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
44297 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
44298 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
44299 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
44300 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
44301 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
44302 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
44303 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
44304 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
44305 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
44306 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
44307 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
44308 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
44309 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
44310 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
44311 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
44312 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
44313 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
44314 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
44315 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
44316 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
44317 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
44318 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
44319 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
44320 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
44321 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
44322 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
44323 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
44324 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
44325 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
44326 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
44327 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
44328 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
44329 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
44330 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
44331 static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
44332 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
44333 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
44334 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
44335 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
44336 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
44337 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
44338 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
44339
44340 static swig_type_info *swig_type_initial[] = {
44341 &_swigt__p_bool,
44342 &_swigt__p_char,
44343 &_swigt__p_form_ops_t,
44344 &_swigt__p_int,
44345 &_swigt__p_long,
44346 &_swigt__p_unsigned_char,
44347 &_swigt__p_unsigned_int,
44348 &_swigt__p_unsigned_long,
44349 &_swigt__p_void,
44350 &_swigt__p_wxANIHandler,
44351 &_swigt__p_wxAcceleratorTable,
44352 &_swigt__p_wxActivateEvent,
44353 &_swigt__p_wxArrayInt,
44354 &_swigt__p_wxArrayString,
44355 &_swigt__p_wxBMPHandler,
44356 &_swigt__p_wxBitmap,
44357 &_swigt__p_wxBitmapButton,
44358 &_swigt__p_wxBookCtrlBase,
44359 &_swigt__p_wxBookCtrlBaseEvent,
44360 &_swigt__p_wxBoxSizer,
44361 &_swigt__p_wxButton,
44362 &_swigt__p_wxCURHandler,
44363 &_swigt__p_wxCheckBox,
44364 &_swigt__p_wxCheckListBox,
44365 &_swigt__p_wxChildFocusEvent,
44366 &_swigt__p_wxChoice,
44367 &_swigt__p_wxChoicebook,
44368 &_swigt__p_wxChoicebookEvent,
44369 &_swigt__p_wxClipboardTextEvent,
44370 &_swigt__p_wxCloseEvent,
44371 &_swigt__p_wxColour,
44372 &_swigt__p_wxComboBox,
44373 &_swigt__p_wxCommandEvent,
44374 &_swigt__p_wxContextHelp,
44375 &_swigt__p_wxContextHelpButton,
44376 &_swigt__p_wxContextMenuEvent,
44377 &_swigt__p_wxControl,
44378 &_swigt__p_wxControlWithItems,
44379 &_swigt__p_wxCursor,
44380 &_swigt__p_wxDC,
44381 &_swigt__p_wxDateEvent,
44382 &_swigt__p_wxDatePickerCtrl,
44383 &_swigt__p_wxDateTime,
44384 &_swigt__p_wxDirFilterListCtrl,
44385 &_swigt__p_wxDisplayChangedEvent,
44386 &_swigt__p_wxDropFilesEvent,
44387 &_swigt__p_wxDuplexMode,
44388 &_swigt__p_wxEraseEvent,
44389 &_swigt__p_wxEvent,
44390 &_swigt__p_wxEvtHandler,
44391 &_swigt__p_wxFSFile,
44392 &_swigt__p_wxFileSystem,
44393 &_swigt__p_wxFlexGridSizer,
44394 &_swigt__p_wxFocusEvent,
44395 &_swigt__p_wxFont,
44396 &_swigt__p_wxGBSizerItem,
44397 &_swigt__p_wxGIFHandler,
44398 &_swigt__p_wxGauge,
44399 &_swigt__p_wxGenericDirCtrl,
44400 &_swigt__p_wxGenericDragImage,
44401 &_swigt__p_wxGridBagSizer,
44402 &_swigt__p_wxGridSizer,
44403 &_swigt__p_wxHelpEvent,
44404 &_swigt__p_wxHelpProvider,
44405 &_swigt__p_wxHyperlinkCtrl,
44406 &_swigt__p_wxHyperlinkEvent,
44407 &_swigt__p_wxICOHandler,
44408 &_swigt__p_wxIcon,
44409 &_swigt__p_wxIconizeEvent,
44410 &_swigt__p_wxIdleEvent,
44411 &_swigt__p_wxImage,
44412 &_swigt__p_wxImageHandler,
44413 &_swigt__p_wxImageList,
44414 &_swigt__p_wxIndividualLayoutConstraint,
44415 &_swigt__p_wxInitDialogEvent,
44416 &_swigt__p_wxItemContainer,
44417 &_swigt__p_wxJPEGHandler,
44418 &_swigt__p_wxKeyEvent,
44419 &_swigt__p_wxLayoutConstraints,
44420 &_swigt__p_wxListBox,
44421 &_swigt__p_wxListEvent,
44422 &_swigt__p_wxListItem,
44423 &_swigt__p_wxListItemAttr,
44424 &_swigt__p_wxListView,
44425 &_swigt__p_wxListbook,
44426 &_swigt__p_wxListbookEvent,
44427 &_swigt__p_wxMaximizeEvent,
44428 &_swigt__p_wxMemoryDC,
44429 &_swigt__p_wxMenu,
44430 &_swigt__p_wxMenuBar,
44431 &_swigt__p_wxMenuEvent,
44432 &_swigt__p_wxMenuItem,
44433 &_swigt__p_wxMouseCaptureChangedEvent,
44434 &_swigt__p_wxMouseEvent,
44435 &_swigt__p_wxMoveEvent,
44436 &_swigt__p_wxNavigationKeyEvent,
44437 &_swigt__p_wxNcPaintEvent,
44438 &_swigt__p_wxNotebook,
44439 &_swigt__p_wxNotebookEvent,
44440 &_swigt__p_wxNotifyEvent,
44441 &_swigt__p_wxObject,
44442 &_swigt__p_wxPCXHandler,
44443 &_swigt__p_wxPNGHandler,
44444 &_swigt__p_wxPNMHandler,
44445 &_swigt__p_wxPaintEvent,
44446 &_swigt__p_wxPaletteChangedEvent,
44447 &_swigt__p_wxPaperSize,
44448 &_swigt__p_wxPoint,
44449 &_swigt__p_wxPyApp,
44450 &_swigt__p_wxPyCommandEvent,
44451 &_swigt__p_wxPyControl,
44452 &_swigt__p_wxPyEvent,
44453 &_swigt__p_wxPyImageHandler,
44454 &_swigt__p_wxPyListCtrl,
44455 &_swigt__p_wxPySizer,
44456 &_swigt__p_wxPyTreeCtrl,
44457 &_swigt__p_wxPyTreeItemData,
44458 &_swigt__p_wxPyValidator,
44459 &_swigt__p_wxQueryNewPaletteEvent,
44460 &_swigt__p_wxRadioBox,
44461 &_swigt__p_wxRadioButton,
44462 &_swigt__p_wxRect,
44463 &_swigt__p_wxScrollBar,
44464 &_swigt__p_wxScrollEvent,
44465 &_swigt__p_wxScrollWinEvent,
44466 &_swigt__p_wxSetCursorEvent,
44467 &_swigt__p_wxShowEvent,
44468 &_swigt__p_wxSimpleHelpProvider,
44469 &_swigt__p_wxSize,
44470 &_swigt__p_wxSizeEvent,
44471 &_swigt__p_wxSizer,
44472 &_swigt__p_wxSizerItem,
44473 &_swigt__p_wxSlider,
44474 &_swigt__p_wxSpinButton,
44475 &_swigt__p_wxSpinCtrl,
44476 &_swigt__p_wxSpinEvent,
44477 &_swigt__p_wxStaticBitmap,
44478 &_swigt__p_wxStaticBox,
44479 &_swigt__p_wxStaticBoxSizer,
44480 &_swigt__p_wxStaticLine,
44481 &_swigt__p_wxStaticText,
44482 &_swigt__p_wxStdDialogButtonSizer,
44483 &_swigt__p_wxString,
44484 &_swigt__p_wxSysColourChangedEvent,
44485 &_swigt__p_wxTIFFHandler,
44486 &_swigt__p_wxTextAttr,
44487 &_swigt__p_wxTextCtrl,
44488 &_swigt__p_wxTextUrlEvent,
44489 &_swigt__p_wxToggleButton,
44490 &_swigt__p_wxToolBar,
44491 &_swigt__p_wxToolBarBase,
44492 &_swigt__p_wxToolBarToolBase,
44493 &_swigt__p_wxToolbook,
44494 &_swigt__p_wxToolbookEvent,
44495 &_swigt__p_wxTreeCtrl,
44496 &_swigt__p_wxTreeEvent,
44497 &_swigt__p_wxTreeItemId,
44498 &_swigt__p_wxTreebook,
44499 &_swigt__p_wxTreebookEvent,
44500 &_swigt__p_wxUpdateUIEvent,
44501 &_swigt__p_wxValidator,
44502 &_swigt__p_wxVisualAttributes,
44503 &_swigt__p_wxWindow,
44504 &_swigt__p_wxWindowCreateEvent,
44505 &_swigt__p_wxWindowDestroyEvent,
44506 &_swigt__p_wxXPMHandler,
44507 };
44508
44509 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
44510 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
44511 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
44512 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
44513 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
44514 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
44515 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
44516 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
44517 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
44518 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
44519 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
44520 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
44521 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}};
44522 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}};
44523 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}};
44524 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}};
44525 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
44526 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
44527 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}};
44528 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
44529 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
44530 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
44531 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
44532 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
44533 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
44534 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
44535 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
44536 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
44537 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
44538 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
44539 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
44540 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
44541 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_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
44542 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
44543 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
44544 static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_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_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
44545 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}};
44546 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
44547 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
44548 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
44549 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
44550 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
44551 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
44552 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
44553 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
44554 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
44555 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
44556 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
44557 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
44558 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
44559 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
44560 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
44561 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
44562 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
44563 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
44564 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
44565 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
44566 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
44567 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44568 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44569 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44570 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44571 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
44572 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
44573 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
44574 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
44575 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
44576 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_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
44577 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
44578 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
44579 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
44580 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
44581 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
44582 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
44583 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
44584 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
44585 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
44586 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
44587 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}};
44588 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
44589 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
44590 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
44591 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
44592 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}};
44593 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
44594 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}};
44595 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
44596 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
44597 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
44598 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
44599 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
44600 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
44601 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
44602 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
44603 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
44604 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
44605 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}};
44606 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
44607 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
44608 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
44609 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
44610 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
44611 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
44612 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
44613 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
44614 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
44615 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
44616 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
44617 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
44618 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
44619 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
44620 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
44621 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
44622 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
44623 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
44624 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
44625 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
44626 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
44627 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
44628 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
44629 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
44630 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
44631 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
44632 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
44633 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
44634 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
44635 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
44636 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_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_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_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_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}};
44637 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
44638 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
44639 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
44640 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}};
44641 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
44642 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
44643 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
44644 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
44645 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
44646 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
44647 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
44648 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
44649 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
44650 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
44651 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
44652 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
44653 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
44654 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
44655 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
44656 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
44657 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
44658 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
44659 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
44660 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
44661 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
44662 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
44663 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}};
44664 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
44665 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
44666 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
44667 static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
44668 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
44669 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
44670 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
44671 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
44672 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}};
44673 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
44674 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_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_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
44675
44676 static swig_cast_info *swig_cast_initial[] = {
44677 _swigc__p_bool,
44678 _swigc__p_char,
44679 _swigc__p_form_ops_t,
44680 _swigc__p_int,
44681 _swigc__p_long,
44682 _swigc__p_unsigned_char,
44683 _swigc__p_unsigned_int,
44684 _swigc__p_unsigned_long,
44685 _swigc__p_void,
44686 _swigc__p_wxANIHandler,
44687 _swigc__p_wxAcceleratorTable,
44688 _swigc__p_wxActivateEvent,
44689 _swigc__p_wxArrayInt,
44690 _swigc__p_wxArrayString,
44691 _swigc__p_wxBMPHandler,
44692 _swigc__p_wxBitmap,
44693 _swigc__p_wxBitmapButton,
44694 _swigc__p_wxBookCtrlBase,
44695 _swigc__p_wxBookCtrlBaseEvent,
44696 _swigc__p_wxBoxSizer,
44697 _swigc__p_wxButton,
44698 _swigc__p_wxCURHandler,
44699 _swigc__p_wxCheckBox,
44700 _swigc__p_wxCheckListBox,
44701 _swigc__p_wxChildFocusEvent,
44702 _swigc__p_wxChoice,
44703 _swigc__p_wxChoicebook,
44704 _swigc__p_wxChoicebookEvent,
44705 _swigc__p_wxClipboardTextEvent,
44706 _swigc__p_wxCloseEvent,
44707 _swigc__p_wxColour,
44708 _swigc__p_wxComboBox,
44709 _swigc__p_wxCommandEvent,
44710 _swigc__p_wxContextHelp,
44711 _swigc__p_wxContextHelpButton,
44712 _swigc__p_wxContextMenuEvent,
44713 _swigc__p_wxControl,
44714 _swigc__p_wxControlWithItems,
44715 _swigc__p_wxCursor,
44716 _swigc__p_wxDC,
44717 _swigc__p_wxDateEvent,
44718 _swigc__p_wxDatePickerCtrl,
44719 _swigc__p_wxDateTime,
44720 _swigc__p_wxDirFilterListCtrl,
44721 _swigc__p_wxDisplayChangedEvent,
44722 _swigc__p_wxDropFilesEvent,
44723 _swigc__p_wxDuplexMode,
44724 _swigc__p_wxEraseEvent,
44725 _swigc__p_wxEvent,
44726 _swigc__p_wxEvtHandler,
44727 _swigc__p_wxFSFile,
44728 _swigc__p_wxFileSystem,
44729 _swigc__p_wxFlexGridSizer,
44730 _swigc__p_wxFocusEvent,
44731 _swigc__p_wxFont,
44732 _swigc__p_wxGBSizerItem,
44733 _swigc__p_wxGIFHandler,
44734 _swigc__p_wxGauge,
44735 _swigc__p_wxGenericDirCtrl,
44736 _swigc__p_wxGenericDragImage,
44737 _swigc__p_wxGridBagSizer,
44738 _swigc__p_wxGridSizer,
44739 _swigc__p_wxHelpEvent,
44740 _swigc__p_wxHelpProvider,
44741 _swigc__p_wxHyperlinkCtrl,
44742 _swigc__p_wxHyperlinkEvent,
44743 _swigc__p_wxICOHandler,
44744 _swigc__p_wxIcon,
44745 _swigc__p_wxIconizeEvent,
44746 _swigc__p_wxIdleEvent,
44747 _swigc__p_wxImage,
44748 _swigc__p_wxImageHandler,
44749 _swigc__p_wxImageList,
44750 _swigc__p_wxIndividualLayoutConstraint,
44751 _swigc__p_wxInitDialogEvent,
44752 _swigc__p_wxItemContainer,
44753 _swigc__p_wxJPEGHandler,
44754 _swigc__p_wxKeyEvent,
44755 _swigc__p_wxLayoutConstraints,
44756 _swigc__p_wxListBox,
44757 _swigc__p_wxListEvent,
44758 _swigc__p_wxListItem,
44759 _swigc__p_wxListItemAttr,
44760 _swigc__p_wxListView,
44761 _swigc__p_wxListbook,
44762 _swigc__p_wxListbookEvent,
44763 _swigc__p_wxMaximizeEvent,
44764 _swigc__p_wxMemoryDC,
44765 _swigc__p_wxMenu,
44766 _swigc__p_wxMenuBar,
44767 _swigc__p_wxMenuEvent,
44768 _swigc__p_wxMenuItem,
44769 _swigc__p_wxMouseCaptureChangedEvent,
44770 _swigc__p_wxMouseEvent,
44771 _swigc__p_wxMoveEvent,
44772 _swigc__p_wxNavigationKeyEvent,
44773 _swigc__p_wxNcPaintEvent,
44774 _swigc__p_wxNotebook,
44775 _swigc__p_wxNotebookEvent,
44776 _swigc__p_wxNotifyEvent,
44777 _swigc__p_wxObject,
44778 _swigc__p_wxPCXHandler,
44779 _swigc__p_wxPNGHandler,
44780 _swigc__p_wxPNMHandler,
44781 _swigc__p_wxPaintEvent,
44782 _swigc__p_wxPaletteChangedEvent,
44783 _swigc__p_wxPaperSize,
44784 _swigc__p_wxPoint,
44785 _swigc__p_wxPyApp,
44786 _swigc__p_wxPyCommandEvent,
44787 _swigc__p_wxPyControl,
44788 _swigc__p_wxPyEvent,
44789 _swigc__p_wxPyImageHandler,
44790 _swigc__p_wxPyListCtrl,
44791 _swigc__p_wxPySizer,
44792 _swigc__p_wxPyTreeCtrl,
44793 _swigc__p_wxPyTreeItemData,
44794 _swigc__p_wxPyValidator,
44795 _swigc__p_wxQueryNewPaletteEvent,
44796 _swigc__p_wxRadioBox,
44797 _swigc__p_wxRadioButton,
44798 _swigc__p_wxRect,
44799 _swigc__p_wxScrollBar,
44800 _swigc__p_wxScrollEvent,
44801 _swigc__p_wxScrollWinEvent,
44802 _swigc__p_wxSetCursorEvent,
44803 _swigc__p_wxShowEvent,
44804 _swigc__p_wxSimpleHelpProvider,
44805 _swigc__p_wxSize,
44806 _swigc__p_wxSizeEvent,
44807 _swigc__p_wxSizer,
44808 _swigc__p_wxSizerItem,
44809 _swigc__p_wxSlider,
44810 _swigc__p_wxSpinButton,
44811 _swigc__p_wxSpinCtrl,
44812 _swigc__p_wxSpinEvent,
44813 _swigc__p_wxStaticBitmap,
44814 _swigc__p_wxStaticBox,
44815 _swigc__p_wxStaticBoxSizer,
44816 _swigc__p_wxStaticLine,
44817 _swigc__p_wxStaticText,
44818 _swigc__p_wxStdDialogButtonSizer,
44819 _swigc__p_wxString,
44820 _swigc__p_wxSysColourChangedEvent,
44821 _swigc__p_wxTIFFHandler,
44822 _swigc__p_wxTextAttr,
44823 _swigc__p_wxTextCtrl,
44824 _swigc__p_wxTextUrlEvent,
44825 _swigc__p_wxToggleButton,
44826 _swigc__p_wxToolBar,
44827 _swigc__p_wxToolBarBase,
44828 _swigc__p_wxToolBarToolBase,
44829 _swigc__p_wxToolbook,
44830 _swigc__p_wxToolbookEvent,
44831 _swigc__p_wxTreeCtrl,
44832 _swigc__p_wxTreeEvent,
44833 _swigc__p_wxTreeItemId,
44834 _swigc__p_wxTreebook,
44835 _swigc__p_wxTreebookEvent,
44836 _swigc__p_wxUpdateUIEvent,
44837 _swigc__p_wxValidator,
44838 _swigc__p_wxVisualAttributes,
44839 _swigc__p_wxWindow,
44840 _swigc__p_wxWindowCreateEvent,
44841 _swigc__p_wxWindowDestroyEvent,
44842 _swigc__p_wxXPMHandler,
44843 };
44844
44845
44846 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
44847
44848 static swig_const_info swig_const_table[] = {
44849 {0, 0, 0, 0.0, 0, 0}};
44850
44851 #ifdef __cplusplus
44852 }
44853 #endif
44854 /* -----------------------------------------------------------------------------
44855 * Type initialization:
44856 * This problem is tough by the requirement that no dynamic
44857 * memory is used. Also, since swig_type_info structures store pointers to
44858 * swig_cast_info structures and swig_cast_info structures store pointers back
44859 * to swig_type_info structures, we need some lookup code at initialization.
44860 * The idea is that swig generates all the structures that are needed.
44861 * The runtime then collects these partially filled structures.
44862 * The SWIG_InitializeModule function takes these initial arrays out of
44863 * swig_module, and does all the lookup, filling in the swig_module.types
44864 * array with the correct data and linking the correct swig_cast_info
44865 * structures together.
44866 *
44867 * The generated swig_type_info structures are assigned staticly to an initial
44868 * array. We just loop though that array, and handle each type individually.
44869 * First we lookup if this type has been already loaded, and if so, use the
44870 * loaded structure instead of the generated one. Then we have to fill in the
44871 * cast linked list. The cast data is initially stored in something like a
44872 * two-dimensional array. Each row corresponds to a type (there are the same
44873 * number of rows as there are in the swig_type_initial array). Each entry in
44874 * a column is one of the swig_cast_info structures for that type.
44875 * The cast_initial array is actually an array of arrays, because each row has
44876 * a variable number of columns. So to actually build the cast linked list,
44877 * we find the array of casts associated with the type, and loop through it
44878 * adding the casts to the list. The one last trick we need to do is making
44879 * sure the type pointer in the swig_cast_info struct is correct.
44880 *
44881 * First off, we lookup the cast->type name to see if it is already loaded.
44882 * There are three cases to handle:
44883 * 1) If the cast->type has already been loaded AND the type we are adding
44884 * casting info to has not been loaded (it is in this module), THEN we
44885 * replace the cast->type pointer with the type pointer that has already
44886 * been loaded.
44887 * 2) If BOTH types (the one we are adding casting info to, and the
44888 * cast->type) are loaded, THEN the cast info has already been loaded by
44889 * the previous module so we just ignore it.
44890 * 3) Finally, if cast->type has not already been loaded, then we add that
44891 * swig_cast_info to the linked list (because the cast->type) pointer will
44892 * be correct.
44893 * ----------------------------------------------------------------------------- */
44894
44895 #ifdef __cplusplus
44896 extern "C" {
44897 #if 0
44898 } /* c-mode */
44899 #endif
44900 #endif
44901
44902 #if 0
44903 #define SWIGRUNTIME_DEBUG
44904 #endif
44905
44906 SWIGRUNTIME void
44907 SWIG_InitializeModule(void *clientdata) {
44908 size_t i;
44909 swig_module_info *module_head;
44910 static int init_run = 0;
44911
44912 clientdata = clientdata;
44913
44914 if (init_run) return;
44915 init_run = 1;
44916
44917 /* Initialize the swig_module */
44918 swig_module.type_initial = swig_type_initial;
44919 swig_module.cast_initial = swig_cast_initial;
44920
44921 /* Try and load any already created modules */
44922 module_head = SWIG_GetModule(clientdata);
44923 if (module_head) {
44924 swig_module.next = module_head->next;
44925 module_head->next = &swig_module;
44926 } else {
44927 /* This is the first module loaded */
44928 swig_module.next = &swig_module;
44929 SWIG_SetModule(clientdata, &swig_module);
44930 }
44931
44932 /* Now work on filling in swig_module.types */
44933 #ifdef SWIGRUNTIME_DEBUG
44934 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
44935 #endif
44936 for (i = 0; i < swig_module.size; ++i) {
44937 swig_type_info *type = 0;
44938 swig_type_info *ret;
44939 swig_cast_info *cast;
44940
44941 #ifdef SWIGRUNTIME_DEBUG
44942 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
44943 #endif
44944
44945 /* if there is another module already loaded */
44946 if (swig_module.next != &swig_module) {
44947 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
44948 }
44949 if (type) {
44950 /* Overwrite clientdata field */
44951 #ifdef SWIGRUNTIME_DEBUG
44952 printf("SWIG_InitializeModule: found type %s\n", type->name);
44953 #endif
44954 if (swig_module.type_initial[i]->clientdata) {
44955 type->clientdata = swig_module.type_initial[i]->clientdata;
44956 #ifdef SWIGRUNTIME_DEBUG
44957 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
44958 #endif
44959 }
44960 } else {
44961 type = swig_module.type_initial[i];
44962 }
44963
44964 /* Insert casting types */
44965 cast = swig_module.cast_initial[i];
44966 while (cast->type) {
44967 /* Don't need to add information already in the list */
44968 ret = 0;
44969 #ifdef SWIGRUNTIME_DEBUG
44970 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
44971 #endif
44972 if (swig_module.next != &swig_module) {
44973 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
44974 #ifdef SWIGRUNTIME_DEBUG
44975 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
44976 #endif
44977 }
44978 if (ret) {
44979 if (type == swig_module.type_initial[i]) {
44980 #ifdef SWIGRUNTIME_DEBUG
44981 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
44982 #endif
44983 cast->type = ret;
44984 ret = 0;
44985 } else {
44986 /* Check for casting already in the list */
44987 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
44988 #ifdef SWIGRUNTIME_DEBUG
44989 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
44990 #endif
44991 if (!ocast) ret = 0;
44992 }
44993 }
44994
44995 if (!ret) {
44996 #ifdef SWIGRUNTIME_DEBUG
44997 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
44998 #endif
44999 if (type->cast) {
45000 type->cast->prev = cast;
45001 cast->next = type->cast;
45002 }
45003 type->cast = cast;
45004 }
45005 cast++;
45006 }
45007 /* Set entry in modules->types array equal to the type */
45008 swig_module.types[i] = type;
45009 }
45010 swig_module.types[i] = 0;
45011
45012 #ifdef SWIGRUNTIME_DEBUG
45013 printf("**** SWIG_InitializeModule: Cast List ******\n");
45014 for (i = 0; i < swig_module.size; ++i) {
45015 int j = 0;
45016 swig_cast_info *cast = swig_module.cast_initial[i];
45017 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
45018 while (cast->type) {
45019 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
45020 cast++;
45021 ++j;
45022 }
45023 printf("---- Total casts: %d\n",j);
45024 }
45025 printf("**** SWIG_InitializeModule: Cast List ******\n");
45026 #endif
45027 }
45028
45029 /* This function will propagate the clientdata field of type to
45030 * any new swig_type_info structures that have been added into the list
45031 * of equivalent types. It is like calling
45032 * SWIG_TypeClientData(type, clientdata) a second time.
45033 */
45034 SWIGRUNTIME void
45035 SWIG_PropagateClientData(void) {
45036 size_t i;
45037 swig_cast_info *equiv;
45038 static int init_run = 0;
45039
45040 if (init_run) return;
45041 init_run = 1;
45042
45043 for (i = 0; i < swig_module.size; i++) {
45044 if (swig_module.types[i]->clientdata) {
45045 equiv = swig_module.types[i]->cast;
45046 while (equiv) {
45047 if (!equiv->converter) {
45048 if (equiv->type && !equiv->type->clientdata)
45049 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
45050 }
45051 equiv = equiv->next;
45052 }
45053 }
45054 }
45055 }
45056
45057 #ifdef __cplusplus
45058 #if 0
45059 {
45060 /* c-mode */
45061 #endif
45062 }
45063 #endif
45064
45065
45066
45067 #ifdef __cplusplus
45068 extern "C" {
45069 #endif
45070
45071 /* Python-specific SWIG API */
45072 #define SWIG_newvarlink() SWIG_Python_newvarlink()
45073 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
45074 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
45075
45076 /* -----------------------------------------------------------------------------
45077 * global variable support code.
45078 * ----------------------------------------------------------------------------- */
45079
45080 typedef struct swig_globalvar {
45081 char *name; /* Name of global variable */
45082 PyObject *(*get_attr)(void); /* Return the current value */
45083 int (*set_attr)(PyObject *); /* Set the value */
45084 struct swig_globalvar *next;
45085 } swig_globalvar;
45086
45087 typedef struct swig_varlinkobject {
45088 PyObject_HEAD
45089 swig_globalvar *vars;
45090 } swig_varlinkobject;
45091
45092 SWIGINTERN PyObject *
45093 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
45094 return PyString_FromString("<Swig global variables>");
45095 }
45096
45097 SWIGINTERN PyObject *
45098 swig_varlink_str(swig_varlinkobject *v) {
45099 PyObject *str = PyString_FromString("(");
45100 swig_globalvar *var;
45101 for (var = v->vars; var; var=var->next) {
45102 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
45103 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
45104 }
45105 PyString_ConcatAndDel(&str,PyString_FromString(")"));
45106 return str;
45107 }
45108
45109 SWIGINTERN int
45110 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
45111 PyObject *str = swig_varlink_str(v);
45112 fprintf(fp,"Swig global variables ");
45113 fprintf(fp,"%s\n", PyString_AsString(str));
45114 Py_DECREF(str);
45115 return 0;
45116 }
45117
45118 SWIGINTERN void
45119 swig_varlink_dealloc(swig_varlinkobject *v) {
45120 swig_globalvar *var = v->vars;
45121 while (var) {
45122 swig_globalvar *n = var->next;
45123 free(var->name);
45124 free(var);
45125 var = n;
45126 }
45127 }
45128
45129 SWIGINTERN PyObject *
45130 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
45131 PyObject *res = NULL;
45132 swig_globalvar *var = v->vars;
45133 while (var) {
45134 if (strcmp(var->name,n) == 0) {
45135 res = (*var->get_attr)();
45136 break;
45137 }
45138 var = var->next;
45139 }
45140 if (res == NULL && !PyErr_Occurred()) {
45141 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
45142 }
45143 return res;
45144 }
45145
45146 SWIGINTERN int
45147 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
45148 int res = 1;
45149 swig_globalvar *var = v->vars;
45150 while (var) {
45151 if (strcmp(var->name,n) == 0) {
45152 res = (*var->set_attr)(p);
45153 break;
45154 }
45155 var = var->next;
45156 }
45157 if (res == 1 && !PyErr_Occurred()) {
45158 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
45159 }
45160 return res;
45161 }
45162
45163 SWIGINTERN PyTypeObject*
45164 swig_varlink_type(void) {
45165 static char varlink__doc__[] = "Swig var link object";
45166 static PyTypeObject varlink_type;
45167 static int type_init = 0;
45168 if (!type_init) {
45169 const PyTypeObject tmp
45170 = {
45171 PyObject_HEAD_INIT(NULL)
45172 0, /* Number of items in variable part (ob_size) */
45173 (char *)"swigvarlink", /* Type name (tp_name) */
45174 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
45175 0, /* Itemsize (tp_itemsize) */
45176 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
45177 (printfunc) swig_varlink_print, /* Print (tp_print) */
45178 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
45179 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
45180 0, /* tp_compare */
45181 (reprfunc) swig_varlink_repr, /* tp_repr */
45182 0, /* tp_as_number */
45183 0, /* tp_as_sequence */
45184 0, /* tp_as_mapping */
45185 0, /* tp_hash */
45186 0, /* tp_call */
45187 (reprfunc)swig_varlink_str, /* tp_str */
45188 0, /* tp_getattro */
45189 0, /* tp_setattro */
45190 0, /* tp_as_buffer */
45191 0, /* tp_flags */
45192 varlink__doc__, /* tp_doc */
45193 0, /* tp_traverse */
45194 0, /* tp_clear */
45195 0, /* tp_richcompare */
45196 0, /* tp_weaklistoffset */
45197 #if PY_VERSION_HEX >= 0x02020000
45198 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
45199 #endif
45200 #if PY_VERSION_HEX >= 0x02030000
45201 0, /* tp_del */
45202 #endif
45203 #ifdef COUNT_ALLOCS
45204 0,0,0,0 /* tp_alloc -> tp_next */
45205 #endif
45206 };
45207 varlink_type = tmp;
45208 varlink_type.ob_type = &PyType_Type;
45209 type_init = 1;
45210 }
45211 return &varlink_type;
45212 }
45213
45214 /* Create a variable linking object for use later */
45215 SWIGINTERN PyObject *
45216 SWIG_Python_newvarlink(void) {
45217 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
45218 if (result) {
45219 result->vars = 0;
45220 }
45221 return ((PyObject*) result);
45222 }
45223
45224 SWIGINTERN void
45225 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
45226 swig_varlinkobject *v = (swig_varlinkobject *) p;
45227 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
45228 if (gv) {
45229 size_t size = strlen(name)+1;
45230 gv->name = (char *)malloc(size);
45231 if (gv->name) {
45232 strncpy(gv->name,name,size);
45233 gv->get_attr = get_attr;
45234 gv->set_attr = set_attr;
45235 gv->next = v->vars;
45236 }
45237 }
45238 v->vars = gv;
45239 }
45240
45241 SWIGINTERN PyObject *
45242 SWIG_globals() {
45243 static PyObject *_SWIG_globals = 0;
45244 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
45245 return _SWIG_globals;
45246 }
45247
45248 /* -----------------------------------------------------------------------------
45249 * constants/methods manipulation
45250 * ----------------------------------------------------------------------------- */
45251
45252 /* Install Constants */
45253 SWIGINTERN void
45254 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
45255 PyObject *obj = 0;
45256 size_t i;
45257 for (i = 0; constants[i].type; ++i) {
45258 switch(constants[i].type) {
45259 case SWIG_PY_POINTER:
45260 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
45261 break;
45262 case SWIG_PY_BINARY:
45263 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
45264 break;
45265 default:
45266 obj = 0;
45267 break;
45268 }
45269 if (obj) {
45270 PyDict_SetItemString(d, constants[i].name, obj);
45271 Py_DECREF(obj);
45272 }
45273 }
45274 }
45275
45276 /* -----------------------------------------------------------------------------*/
45277 /* Fix SwigMethods to carry the callback ptrs when needed */
45278 /* -----------------------------------------------------------------------------*/
45279
45280 SWIGINTERN void
45281 SWIG_Python_FixMethods(PyMethodDef *methods,
45282 swig_const_info *const_table,
45283 swig_type_info **types,
45284 swig_type_info **types_initial) {
45285 size_t i;
45286 for (i = 0; methods[i].ml_name; ++i) {
45287 char *c = methods[i].ml_doc;
45288 if (c && (c = strstr(c, "swig_ptr: "))) {
45289 int j;
45290 swig_const_info *ci = 0;
45291 char *name = c + 10;
45292 for (j = 0; const_table[j].type; ++j) {
45293 if (strncmp(const_table[j].name, name,
45294 strlen(const_table[j].name)) == 0) {
45295 ci = &(const_table[j]);
45296 break;
45297 }
45298 }
45299 if (ci) {
45300 size_t shift = (ci->ptype) - types;
45301 swig_type_info *ty = types_initial[shift];
45302 size_t ldoc = (c - methods[i].ml_doc);
45303 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
45304 char *ndoc = (char*)malloc(ldoc + lptr + 10);
45305 if (ndoc) {
45306 char *buff = ndoc;
45307 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
45308 if (ptr) {
45309 strncpy(buff, methods[i].ml_doc, ldoc);
45310 buff += ldoc;
45311 strncpy(buff, "swig_ptr: ", 10);
45312 buff += 10;
45313 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
45314 methods[i].ml_doc = ndoc;
45315 }
45316 }
45317 }
45318 }
45319 }
45320 }
45321
45322 #ifdef __cplusplus
45323 }
45324 #endif
45325
45326 /* -----------------------------------------------------------------------------*
45327 * Partial Init method
45328 * -----------------------------------------------------------------------------*/
45329
45330 #ifdef __cplusplus
45331 extern "C"
45332 #endif
45333 SWIGEXPORT void SWIG_init(void) {
45334 PyObject *m, *d;
45335
45336 /* Fix SwigMethods to carry the callback ptrs when needed */
45337 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
45338
45339 m = Py_InitModule((char *) SWIG_name, SwigMethods);
45340 d = PyModule_GetDict(m);
45341
45342 SWIG_InitializeModule(0);
45343 SWIG_InstallConstants(d,swig_const_table);
45344
45345
45346 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
45347 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
45348 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
45349 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
45350 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
45351 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
45352 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
45353 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
45354 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
45355 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
45356 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
45357 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
45358 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
45359 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
45360 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
45361 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
45362 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
45363 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
45364 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
45365 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
45366 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
45367 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
45368 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
45369 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
45370 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
45371 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
45372 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
45373 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
45374 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
45375 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
45376 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
45377 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
45378 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
45379 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
45380 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
45381 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
45382 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
45383 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
45384 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
45385 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
45386 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
45387 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
45388 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
45389 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
45390 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
45391 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
45392 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
45393 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
45394 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
45395 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
45396 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
45397 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
45398 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
45399 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
45400 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
45401 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
45402 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
45403 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
45404 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
45405 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
45406 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
45407 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
45408 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
45409 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
45410 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
45411 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
45412 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
45413 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
45414 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
45415 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
45416 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
45417 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
45418 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
45419 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
45420 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
45421 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
45422 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
45423 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
45424 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
45425 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
45426 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
45427 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
45428 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
45429 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
45430 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
45431 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
45432 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
45433 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
45434 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
45435 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
45436 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
45437 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
45438 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
45439 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
45440 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
45441 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
45442 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
45443 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
45444 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
45445 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
45446 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
45447 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
45448 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
45449 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
45450 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
45451 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
45452 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
45453 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
45454 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
45455 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
45456 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
45457 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
45458 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
45459 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
45460 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
45461 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
45462 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
45463 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
45464 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
45465 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
45466 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
45467 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
45468 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
45469 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
45470 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
45471 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
45472 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
45473 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
45474 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
45475 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
45476 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
45477 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
45478 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
45479 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
45480 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
45481 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
45482 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
45483 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
45484 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
45485 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
45486 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
45487 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
45488 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
45489 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
45490 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
45491 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
45492 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
45493 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
45494 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
45495 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
45496 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
45497 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
45498 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
45499 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
45500 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
45501 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
45502 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
45503 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
45504 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
45505 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
45506 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
45507 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
45508 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
45509 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
45510 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
45511 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
45512 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
45513 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
45514 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
45515 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
45516 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
45517 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
45518 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
45519 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
45520 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
45521 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
45522 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
45523 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
45524 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
45525 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
45526 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
45527 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
45528 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
45529 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
45530 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
45531 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
45532 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
45533 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
45534 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
45535 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
45536 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
45537 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
45538 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
45539 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
45540 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
45541 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
45542 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
45543 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
45544 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
45545 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
45546 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
45547 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
45548 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
45549 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
45550 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
45551 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
45552 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
45553 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
45554 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
45555 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
45556 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
45557 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
45558 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
45559 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
45560 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
45561 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
45562 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
45563 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
45564 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
45565 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
45566 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
45567 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
45568 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
45569 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
45570 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
45571 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
45572 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
45573 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
45574 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
45575 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
45576 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
45577 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
45578 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
45579 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
45580 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
45581 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
45582 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
45583 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
45584 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
45585 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
45586 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
45587 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
45588 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
45589 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
45590 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
45591 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
45592 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
45593 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
45594 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
45595
45596 // Map renamed classes back to their common name for OOR
45597 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
45598
45599 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
45600 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
45601 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
45602 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
45603 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
45604 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
45605 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
45606 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
45607 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
45608 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
45609 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
45610 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
45611 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
45612 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
45613 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
45614 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
45615 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
45616 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
45617 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
45618 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
45619 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
45620 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
45621 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
45622 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
45623 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
45624 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
45625 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
45626 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
45627 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
45628 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
45629 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
45630 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
45631 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
45632 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
45633 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
45634 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
45635 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
45636 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
45637 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
45638 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
45639 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
45640 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
45641 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
45642 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
45643 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
45644 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
45645 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
45646 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
45647 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
45648 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
45649 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
45650 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
45651 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
45652 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
45653 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
45654
45655 // Map renamed classes back to their common name for OOR
45656 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
45657 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
45658
45659 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
45660 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
45661 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
45662 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
45663 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
45664 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
45665 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
45666 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
45667 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
45668 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
45669 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
45670 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
45671 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
45672
45673 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
45674
45675 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
45676 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
45677 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
45678 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
45679 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
45680 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
45681 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
45682 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
45683 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
45684 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
45685 }
45686